src/share/vm/runtime/os.hpp

Print this page
rev 5146 : [mq]: first-patch

*** 135,145 **** --- 135,148 ---- static void pd_realign_memory(char *addr, size_t bytes, size_t alignment_hint); public: static void init(void); // Called before command line parsing + static void init_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(); } static void init_3(void); // Called at the end of vm init
*** 250,259 **** --- 253,267 ---- // particular, a single page can be used when region_min_size == // region_max_size == a supported page size. 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 // passed to page_size_for_region() and page_size should be the result of that // call. The (optional) base and size parameters should come from the