src/share/vm/runtime/virtualspace.cpp

changeset 7994
04ff2f6cd0eb
parent 7782
30e04eba9e29
parent 6876
710a3c8b516e
child 9138
b56ab8e56604
equal deleted inserted replaced
7993:9bf9a733246b 7994:04ff2f6cd0eb
144 144
145 // If OS doesn't support demand paging for large page memory, we need 145 // If OS doesn't support demand paging for large page memory, we need
146 // to use reserve_memory_special() to reserve and pin the entire region. 146 // to use reserve_memory_special() to reserve and pin the entire region.
147 bool special = large && !os::can_commit_large_page_memory(); 147 bool special = large && !os::can_commit_large_page_memory();
148 char* base = NULL; 148 char* base = NULL;
149
150 #ifdef MIPS64
151 static int code_cache_init_flag = 1;
152 if (UseCodeCacheAllocOpt && code_cache_init_flag && executable) {
153 code_cache_init_flag = 0;
154 requested_address = (char*) (5 * os::Linux::page_size());
155 }
156 #endif
149 157
150 if (requested_address != 0) { 158 if (requested_address != 0) {
151 requested_address -= noaccess_prefix; // adjust requested address 159 requested_address -= noaccess_prefix; // adjust requested address
152 assert(requested_address != NULL, "huge noaccess prefix?"); 160 assert(requested_address != NULL, "huge noaccess prefix?");
153 } 161 }

mercurial