Disable background compilation make openjdk7 much stable on 10.
Huang Wen Hui
huanghwh at gmail.com
Sun Dec 29 09:14:33 UTC 2013
Hi,
As you may notice recent openjdk7 is unstable on 10. I could not build
openjdk7 with openjdk7, and could not build jboss72 with openjdk7 also.
JVM crash randomly.
But disable background compilation can help a lot, with this option
"-Xbatch" or this patch:
--- work/openjdk/hotspot/src/cpu/x86/vm/c1_globals_x86.hpp.orig
2013-12-28 07:38:54.000000000 +0800
+++ work/openjdk/hotspot/src/cpu/x86/vm/c1_globals_x86.hpp 2013-12-28
07:39:26.000000000 +0800
@@ -32,7 +32,7 @@
// (see c1_globals.hpp)
#ifndef TIERED
-define_pd_global(bool, BackgroundCompilation, true );
+define_pd_global(bool, BackgroundCompilation, false);
define_pd_global(bool, UseTLAB, true );
define_pd_global(bool, ResizeTLAB, true );
define_pd_global(bool, InlineIntrinsics, true );
--- work/openjdk/hotspot/src/cpu/x86/vm/c2_globals_x86.hpp.orig
2013-12-28 07:39:06.000000000 +0800
+++ work/openjdk/hotspot/src/cpu/x86/vm/c2_globals_x86.hpp 2013-12-28
07:39:42.000000000 +0800
@@ -31,7 +31,7 @@
// Sets the default values for platform dependent flags used by the server
compiler.
// (see c2_globals.hpp). Alpha-sorted.
-define_pd_global(bool, BackgroundCompilation, true);
+define_pd_global(bool, BackgroundCompilation, false);
define_pd_global(bool, UseTLAB, true);
define_pd_global(bool, ResizeTLAB, true);
define_pd_global(bool, CICompileOSR, true);
JVM crash is gone!! Not sure how to effect performance if disable
background compilation.
Cheers,
Huang Wen Hui
More information about the freebsd-java
mailing list