mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
6642862: Code cache allocation fails with large pages after 6588638
Reviewed-by: apetrusenko
This commit is contained in:
parent
2ea233816f
commit
5ac01e984f
7 changed files with 22 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue