Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2013 17:14:32 +0800
From:      Huang Wen Hui <huanghwh@gmail.com>
To:        freebsd-java@freebsd.org
Subject:   Disable background compilation make openjdk7 much stable on 10.
Message-ID:  <CAB8uncbS_HBXzS-aK_enCPrLeQGAdD8PBnaCxToC2OcW-nKiWQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB8uncbS_HBXzS-aK_enCPrLeQGAdD8PBnaCxToC2OcW-nKiWQ>