< prev index next >

src/os_cpu/linux_zero/vm/os_linux_zero.cpp

Print this page
rev 12308 : imported patch new_os_guard_for_java_thread.patch

@@ -321,11 +321,11 @@
 }
 
 size_t os::Linux::default_guard_size(os::ThreadType thr_type) {
   // Only enable glibc guard pages for non-Java threads
   // (Java threads have HotSpot guard pages)
-  return (thr_type == java_thread ? 0 : page_size());
+  return ((thr_type == java_thread || thr_type == os::compiler_thread) ? 0 : page_size());
 }
 
 static void current_stack_region(address *bottom, size_t *size) {
   pthread_attr_t attr;
   int res = pthread_getattr_np(pthread_self(), &attr);
< prev index next >