--- old/src/share/vm/runtime/arguments.hpp 2013-09-04 15:47:21.097519154 +0200 +++ new/src/share/vm/runtime/arguments.hpp 2013-09-04 15:47:20.929519158 +0200 @@ -263,6 +263,9 @@ // Option flags static bool _has_profile; static const char* _gc_log_filename; + // value of the conservative maximum heap alignment needed + static size_t _conservative_max_heap_alignment; + static uintx _min_heap_size; // -Xrun arguments @@ -308,6 +311,7 @@ // Garbage-First (UseG1GC) static void set_g1_gc_flags(); // GC ergonomics + static void set_conservative_max_heap_alignment(); static void set_use_compressed_oops(); static void set_use_compressed_klass_ptrs(); static void set_ergonomics_flags(); @@ -415,6 +419,8 @@ public: // Parses the arguments static jint parse(const JavaVMInitArgs* args); + // Apply ergonomics + static jint apply_ergonomics(); // Adjusts the arguments after the OS have adjusted the arguments static jint adjust_after_os(); // Check for consistency in the selection of the garbage collector. @@ -428,6 +434,10 @@ // Used by os_solaris static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); + static size_t conservative_max_heap_alignment() { return _conservative_max_heap_alignment; } + // return the maximum size a heap with compressed oops can take + static size_t max_heap_for_compressed_oops(); + // return a char* array containing all options static char** jvm_flags_array() { return _jvm_flags_array; } static char** jvm_args_array() { return _jvm_args_array; }