Mercurial > hg > graal-jvmci-8
comparison src/os/solaris/vm/os_solaris.cpp @ 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 | b97de546208e |
comparison
equal
deleted
inserted
replaced
78:e1e86702e43e | 79:82db0859acbe |
---|---|
3087 UseISM = UseISM && | 3087 UseISM = UseISM && |
3088 Solaris::ism_sanity_check(warn_on_failure, &_large_page_size); | 3088 Solaris::ism_sanity_check(warn_on_failure, &_large_page_size); |
3089 if (UseISM) { | 3089 if (UseISM) { |
3090 // ISM disables MPSS to be compatible with old JDK behavior | 3090 // ISM disables MPSS to be compatible with old JDK behavior |
3091 UseMPSS = false; | 3091 UseMPSS = false; |
3092 _page_sizes[0] = _large_page_size; | |
3093 _page_sizes[1] = vm_page_size(); | |
3092 } | 3094 } |
3093 | 3095 |
3094 UseMPSS = UseMPSS && | 3096 UseMPSS = UseMPSS && |
3095 Solaris::mpss_sanity_check(warn_on_failure, &_large_page_size); | 3097 Solaris::mpss_sanity_check(warn_on_failure, &_large_page_size); |
3096 | 3098 |
3173 } | 3175 } |
3174 | 3176 |
3175 // MPSS allows application to commit large page memory on demand; with ISM | 3177 // MPSS allows application to commit large page memory on demand; with ISM |
3176 // the entire memory region must be allocated as shared memory. | 3178 // the entire memory region must be allocated as shared memory. |
3177 bool os::can_commit_large_page_memory() { | 3179 bool os::can_commit_large_page_memory() { |
3180 return UseISM ? false : true; | |
3181 } | |
3182 | |
3183 bool os::can_execute_large_page_memory() { | |
3178 return UseISM ? false : true; | 3184 return UseISM ? false : true; |
3179 } | 3185 } |
3180 | 3186 |
3181 static int os_sleep(jlong millis, bool interruptible) { | 3187 static int os_sleep(jlong millis, bool interruptible) { |
3182 const jlong limit = INT_MAX; | 3188 const jlong limit = INT_MAX; |