src/share/vm/runtime/os.hpp

Print this page
rev 5146 : imported patch first-patch

*** 250,259 **** --- 250,264 ---- // 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