From owner-freebsd-java@FreeBSD.ORG Sun Dec 29 09:14:33 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4EBD1FAC for ; Sun, 29 Dec 2013 09:14:33 +0000 (UTC) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0F14115A9 for ; Sun, 29 Dec 2013 09:14:32 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id j5so9865073qaq.19 for ; Sun, 29 Dec 2013 01:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=JjUrvvp/ORkApw1jPjO3R0pkqU17JuL+NVQxC7f/nDI=; b=Cy0WkCxJx3app6tLyxGUSFxNZdw/8rRWWGdDXTir6ygN8gAdmzEs1RoNobgzgqsE1Z juCqPNKwJ+ycLg42HK/eW7vbkKDAkEyo5C+rvj0tv5E9GHR0PHJ7aM66HuZxgJcG7XC3 lRBqfQAhsGyYSPpvG/P1sVUI9AxDK5S8KU4PBMpcUKQceXcDv4SnjFmxk/tMshWEjnq/ f+qYg3muamM1FTOnQYCNu3+ucP5wX6ufVhLgNMNdrjuBgSyb9Ti9w5MbvyHBwlw9Yu58 N9NSfPkFmAfp4Ykcaw4N38bV5UeIPe5QN8icTmcKvNwWFquflYt03m66tcIjoOq8OoLL VNRA== MIME-Version: 1.0 X-Received: by 10.224.124.195 with SMTP id v3mr97734723qar.55.1388308472159; Sun, 29 Dec 2013 01:14:32 -0800 (PST) Received: by 10.224.70.6 with HTTP; Sun, 29 Dec 2013 01:14:32 -0800 (PST) Date: Sun, 29 Dec 2013 17:14:32 +0800 Message-ID: Subject: Disable background compilation make openjdk7 much stable on 10. From: Huang Wen Hui To: freebsd-java@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: huanghwh@gmail.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2013 09:14:33 -0000 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