Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/arguments.hpp @ 20345:f933a15469d4
8055006: Store original value of Min/MaxHeapFreeRatio
Summary: Store the value set by the user and some makefile changes required to change the flags.
Reviewed-by: sla, mchung, bchristi, jmasa, dholmes
author | jwilhelm |
---|---|
date | Mon, 28 Jul 2014 22:43:08 +0200 |
parents | 99dbb9cd9521 |
children | 7430aa5718a5 |
comparison
equal
deleted
inserted
replaced
20344:2fd0fd493045 | 20345:f933a15469d4 |
---|---|
282 static bool _has_profile; | 282 static bool _has_profile; |
283 static const char* _gc_log_filename; | 283 static const char* _gc_log_filename; |
284 // Value of the conservative maximum heap alignment needed | 284 // Value of the conservative maximum heap alignment needed |
285 static size_t _conservative_max_heap_alignment; | 285 static size_t _conservative_max_heap_alignment; |
286 | 286 |
287 static uintx _min_heap_size; | 287 static uintx _min_heap_size; |
288 | |
289 // Used to store original flag values | |
290 static uintx _min_heap_free_ratio; | |
291 static uintx _max_heap_free_ratio; | |
288 | 292 |
289 // -Xrun arguments | 293 // -Xrun arguments |
290 static AgentLibraryList _libraryList; | 294 static AgentLibraryList _libraryList; |
291 static void add_init_library(const char* name, char* options) | 295 static void add_init_library(const char* name, char* options) |
292 { _libraryList.add(new AgentLibrary(name, options, false, NULL)); } | 296 { _libraryList.add(new AgentLibrary(name, options, false, NULL)); } |
512 | 516 |
513 // -Xms, -Xmx | 517 // -Xms, -Xmx |
514 static uintx min_heap_size() { return _min_heap_size; } | 518 static uintx min_heap_size() { return _min_heap_size; } |
515 static void set_min_heap_size(uintx v) { _min_heap_size = v; } | 519 static void set_min_heap_size(uintx v) { _min_heap_size = v; } |
516 | 520 |
521 // Returns the original values of -XX:MinHeapFreeRatio and -XX:MaxHeapFreeRatio | |
522 static uintx min_heap_free_ratio() { return _min_heap_free_ratio; } | |
523 static uintx max_heap_free_ratio() { return _max_heap_free_ratio; } | |
524 | |
517 // -Xrun | 525 // -Xrun |
518 static AgentLibrary* libraries() { return _libraryList.first(); } | 526 static AgentLibrary* libraries() { return _libraryList.first(); } |
519 static bool init_libraries_at_startup() { return !_libraryList.is_empty(); } | 527 static bool init_libraries_at_startup() { return !_libraryList.is_empty(); } |
520 static void convert_library_to_agent(AgentLibrary* lib) | 528 static void convert_library_to_agent(AgentLibrary* lib) |
521 { _libraryList.remove(lib); | 529 { _libraryList.remove(lib); |