Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/os.hpp @ 79:82db0859acbe
6642862: Code cache allocation fails with large pages after 6588638
Reviewed-by: apetrusenko
author | jcoomes |
---|---|
date | Fri, 28 Mar 2008 23:35:42 -0700 |
parents | 5a76ab815e34 |
children | fcbfc50865ab |
comparison
equal
deleted
inserted
replaced
78:e1e86702e43e | 79:82db0859acbe |
---|---|
226 static char* reserve_memory_special(size_t size); | 226 static char* reserve_memory_special(size_t size); |
227 static bool release_memory_special(char* addr, size_t bytes); | 227 static bool release_memory_special(char* addr, size_t bytes); |
228 static bool large_page_init(); | 228 static bool large_page_init(); |
229 static size_t large_page_size(); | 229 static size_t large_page_size(); |
230 static bool can_commit_large_page_memory(); | 230 static bool can_commit_large_page_memory(); |
231 static bool can_execute_large_page_memory(); | |
231 | 232 |
232 // OS interface to polling page | 233 // OS interface to polling page |
233 static address get_polling_page() { return _polling_page; } | 234 static address get_polling_page() { return _polling_page; } |
234 static void set_polling_page(address page) { _polling_page = page; } | 235 static void set_polling_page(address page) { _polling_page = page; } |
235 static bool is_poll_address(address addr) { return addr >= _polling_page && addr < (_polling_page + os::vm_page_size()); } | 236 static bool is_poll_address(address addr) { return addr >= _polling_page && addr < (_polling_page + os::vm_page_size()); } |