6642862: Code cache allocation fails with large pages after 6588638

Reviewed-by: apetrusenko
This commit is contained in:
John Coomes 2008-03-28 23:35:42 -07:00
parent 2ea233816f
commit 5ac01e984f
7 changed files with 22 additions and 6 deletions

View file

@ -3089,6 +3089,8 @@ bool os::large_page_init() {
if (UseISM) {
// ISM disables MPSS to be compatible with old JDK behavior
UseMPSS = false;
_page_sizes[0] = _large_page_size;
_page_sizes[1] = vm_page_size();
}
UseMPSS = UseMPSS &&
@ -3178,6 +3180,10 @@ bool os::can_commit_large_page_memory() {
return UseISM ? false : true;
}
bool os::can_execute_large_page_memory() {
return UseISM ? false : true;
}
static int os_sleep(jlong millis, bool interruptible) {
const jlong limit = INT_MAX;
jlong prevtime;