From patchwork Tue Jul 8 09:35:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Nevill X-Patchwork-Id: 33182 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2947120969 for ; Tue, 8 Jul 2014 09:35:27 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id wn1sf4131342obc.11 for ; Tue, 08 Jul 2014 02:35:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:subject:from:reply-to:to :cc:date:organization:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=nfDM8oGrqfzZqMj+iiMmb49UpgydQnV0X8zjfBU9ois=; b=BuWuGiDv5zmtoRxvrqVidI4rYtVQu7uSrFHoMjVmN9a7tZAkYUQGYsB/8gLR8vh4Ro UoL3hndB1rXkDZUF2kRRwKWZTL4aJY5aHsWTmzWoK7xIX/Nvubr971SDEl9vcW6h0+IM VvVEGbkFL8nh6T49ElGn/U+wrAstBzJsKCd9dCu/JMW3BTzxyQYLeEuUPZidEJZyYAUr 8H4TEErB+SjvA10wzC9BND9Mg/ci5N4K6SP7ugQT4gM5uUJWwpW4PN6LtTpOc8lKnqSV c9tz8KkhfFUjWCRFuAGaFn2bo1BBklaHhfEy3QEx8ieCc/3Tfn7UPmher8cgAKrOYu8O xUiQ== X-Gm-Message-State: ALoCoQn3jRfp/UqusQMt8MbFkdgPtaT92LN7uqSARcO8/QjFggLPJOgrmiFTMppeaTqj669EjXMB X-Received: by 10.42.235.8 with SMTP id ke8mr17991302icb.22.1404812126620; Tue, 08 Jul 2014 02:35:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.70 with SMTP id w64ls116609qgw.73.gmail; Tue, 08 Jul 2014 02:35:26 -0700 (PDT) X-Received: by 10.221.64.80 with SMTP id xh16mr646168vcb.35.1404812126540; Tue, 08 Jul 2014 02:35:26 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id ki13si19935240veb.67.2014.07.08.02.35.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 02:35:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db11so5235300veb.26 for ; Tue, 08 Jul 2014 02:35:26 -0700 (PDT) X-Received: by 10.220.92.193 with SMTP id s1mr706051vcm.34.1404812126477; Tue, 08 Jul 2014 02:35:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp754970vcb; Tue, 8 Jul 2014 02:35:25 -0700 (PDT) X-Received: by 10.180.211.101 with SMTP id nb5mr2444825wic.53.1404812125324; Tue, 08 Jul 2014 02:35:25 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id fb20si53156155wjc.71.2014.07.08.02.35.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 02:35:25 -0700 (PDT) Received-SPF: pass (google.com: domain of edward.nevill@linaro.org designates 209.85.212.172 as permitted sender) client-ip=209.85.212.172; Received: by mail-wi0-f172.google.com with SMTP id hi2so614377wib.5 for ; Tue, 08 Jul 2014 02:35:24 -0700 (PDT) X-Received: by 10.180.10.138 with SMTP id i10mr2345738wib.81.1404812124739; Tue, 08 Jul 2014 02:35:24 -0700 (PDT) Received: from [10.0.7.5] ([88.98.47.97]) by mx.google.com with ESMTPSA id nf11sm4959933wic.9.2014.07.08.02.35.23 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 08 Jul 2014 02:35:24 -0700 (PDT) Message-ID: <1404812123.11399.18.camel@localhost.localdomain> Subject: Restrict ReservedCodeCache to 128M From: Edward Nevill Reply-To: edward.nevill@linaro.org To: "aarch64-port-dev@openjdk.java.net" Cc: patches@linaro.org Date: Tue, 08 Jul 2014 10:35:23 +0100 Organization: Linaro X-Mailer: Evolution 3.8.5 (3.8.5-2.fc19) Mime-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: edward.nevill@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Hi, The following patch restricts the default code cache to 128M. I have chosen to only restrict the default code cache size so it can still be overridden with -XX:ReservedCodeCacheSize Regards, Ed. --- CUT HERE --- # HG changeset patch # User Edward Nevill edward.nevill@linaro.org # Date 1404811944 -3600 # Tue Jul 08 10:32:24 2014 +0100 # Node ID f60e306e9ec6f570bba3bdc4a8b65dd459888092 # Parent 2a489b2bb083062d3356ee6c470aaf4d2d0a481d Restrict default ReservedCodeCacheSize to 128M diff -r 2a489b2bb083 -r f60e306e9ec6 src/share/vm/runtime/arguments.cpp --- a/src/share/vm/runtime/arguments.cpp Tue Jul 08 05:25:15 2014 -0400 +++ b/src/share/vm/runtime/arguments.cpp Tue Jul 08 10:32:24 2014 +0100 @@ -1130,7 +1130,7 @@ } // Increase the code cache size - tiered compiles a lot more. if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) { - FLAG_SET_DEFAULT(ReservedCodeCacheSize, ReservedCodeCacheSize * 5); + FLAG_SET_DEFAULT(ReservedCodeCacheSize, MIN2(ReservedCodeCacheSize * 5, 128*M)); } if (!UseInterpreter) { // -Xcomp Tier3InvokeNotifyFreqLog = 0; --- CUT HERE ---