< prev index next >

test/hotspot/jtreg/runtime/whitebox/WBStackSize.java

Print this page
rev 49527 : 8198756: Lazy allocation of compiler threads
Reviewed-by: kvn

@@ -80,11 +80,13 @@
             }
         }
     }
 
     public static void main(String[] args) {
-        long configStackSize = wb.getIntxVMFlag("ThreadStackSize") * K;
+        boolean isCompilerThread = Thread.currentThread().getName().indexOf(" CompilerThread") > 0;
+        long configStackSize = isCompilerThread ? wb.getIntxVMFlag("CompilerThreadStackSize") * K
+                                                : wb.getIntxVMFlag("ThreadStackSize") * K;
         System.out.println("ThreadStackSize VM option: " + configStackSize);
 
         long stackProtectionSize = wb.getIntxVMFlag("StackShadowPages") * wb.getVMPageSize();
         System.out.println("Size of protected shadow pages: " + stackProtectionSize);
 
< prev index next >