Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
12219:41e6ae9f6dd7 | 12252:06ae47d9d088 |
---|---|
137 static void pd_realign_memory(char *addr, size_t bytes, size_t alignment_hint); | 137 static void pd_realign_memory(char *addr, size_t bytes, size_t alignment_hint); |
138 | 138 |
139 | 139 |
140 public: | 140 public: |
141 static void init(void); // Called before command line parsing | 141 static void init(void); // Called before command line parsing |
142 static void init_before_ergo(void); // Called after command line parsing | |
143 // before VM ergonomics processing. | |
142 static jint init_2(void); // Called after command line parsing | 144 static jint init_2(void); // Called after command line parsing |
145 // and VM ergonomics processing | |
143 static void init_globals(void) { // Called from init_globals() in init.cpp | 146 static void init_globals(void) { // Called from init_globals() in init.cpp |
144 init_globals_ext(); | 147 init_globals_ext(); |
145 } | 148 } |
146 static void init_3(void); // Called at the end of vm init | 149 static void init_3(void); // Called at the end of vm init |
147 | 150 |
252 // particular, a single page can be used when region_min_size == | 255 // particular, a single page can be used when region_min_size == |
253 // region_max_size == a supported page size. | 256 // region_max_size == a supported page size. |
254 static size_t page_size_for_region(size_t region_min_size, | 257 static size_t page_size_for_region(size_t region_min_size, |
255 size_t region_max_size, | 258 size_t region_max_size, |
256 uint min_pages); | 259 uint min_pages); |
260 // Return the largest page size that can be used | |
261 static size_t max_page_size() { | |
262 // The _page_sizes array is sorted in descending order. | |
263 return _page_sizes[0]; | |
264 } | |
257 | 265 |
258 // Methods for tracing page sizes returned by the above method; enabled by | 266 // Methods for tracing page sizes returned by the above method; enabled by |
259 // TracePageSizes. The region_{min,max}_size parameters should be the values | 267 // TracePageSizes. The region_{min,max}_size parameters should be the values |
260 // passed to page_size_for_region() and page_size should be the result of that | 268 // passed to page_size_for_region() and page_size should be the result of that |
261 // call. The (optional) base and size parameters should come from the | 269 // call. The (optional) base and size parameters should come from the |