Mercurial > hg > truffle
diff src/share/vm/runtime/os.hpp @ 12252:06ae47d9d088
Merge
author | tschatzl |
---|---|
date | Thu, 19 Sep 2013 09:26:08 +0200 |
parents | 38f750491293 40136aa2cdb1 |
children | da051ce490eb |
line wrap: on
line diff
--- a/src/share/vm/runtime/os.hpp Wed Sep 18 12:52:15 2013 -0400 +++ b/src/share/vm/runtime/os.hpp Thu Sep 19 09:26:08 2013 +0200 @@ -139,7 +139,10 @@ public: static void init(void); // Called before command line parsing + static void init_before_ergo(void); // Called after command line parsing + // before VM ergonomics processing. static jint init_2(void); // Called after command line parsing + // and VM ergonomics processing static void init_globals(void) { // Called from init_globals() in init.cpp init_globals_ext(); } @@ -254,6 +257,11 @@ static size_t page_size_for_region(size_t region_min_size, size_t region_max_size, uint min_pages); + // Return the largest page size that can be used + static size_t max_page_size() { + // The _page_sizes array is sorted in descending order. + return _page_sizes[0]; + } // Methods for tracing page sizes returned by the above method; enabled by // TracePageSizes. The region_{min,max}_size parameters should be the values