8055006: Store original value of Min/MaxHeapFreeRatio

Store the value set by the user and some makefile changes required to change the flags.

Reviewed-by: sla, mchung, bchristi, jmasa, dholmes, erikj
This commit is contained in:
Jesper Wilhelmsson 2014-09-16 16:02:32 +02:00
parent 66abbc4862
commit 9390fa3b72
5 changed files with 44 additions and 6 deletions

View file

@ -285,7 +285,11 @@ class Arguments : AllStatic {
// Value of the conservative maximum heap alignment needed
static size_t _conservative_max_heap_alignment;
static uintx _min_heap_size;
static uintx _min_heap_size;
// Used to store original flag values
static uintx _min_heap_free_ratio;
static uintx _max_heap_free_ratio;
// -Xrun arguments
static AgentLibraryList _libraryList;
@ -516,6 +520,10 @@ class Arguments : AllStatic {
static uintx min_heap_size() { return _min_heap_size; }
static void set_min_heap_size(uintx v) { _min_heap_size = v; }
// Returns the original values of -XX:MinHeapFreeRatio and -XX:MaxHeapFreeRatio
static uintx min_heap_free_ratio() { return _min_heap_free_ratio; }
static uintx max_heap_free_ratio() { return _max_heap_free_ratio; }
// -Xrun
static AgentLibrary* libraries() { return _libraryList.first(); }
static bool init_libraries_at_startup() { return !_libraryList.is_empty(); }