Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 55922 invoked from network); 13 Aug 2008 08:43:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2008 08:43:35 -0000 Received: (qmail 84205 invoked by uid 500); 13 Aug 2008 08:43:34 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 84190 invoked by uid 500); 13 Aug 2008 08:43:34 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 84181 invoked by uid 99); 13 Aug 2008 08:43:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2008 01:43:34 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2008 08:42:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 76961234C1AD for ; Wed, 13 Aug 2008 01:42:44 -0700 (PDT) Message-ID: <662863646.1218616964484.JavaMail.jira@brutus> Date: Wed, 13 Aug 2008 01:42:44 -0700 (PDT) From: "li, shisheng (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-5947) NOS size can go up and down even gc.nos_size command option is set. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org NOS size can go up and down even gc.nos_size command option is set. ------------------------------------------------------------------- Key: HARMONY-5947 URL: https://issues.apache.org/jira/browse/HARMONY-5947 Project: Harmony Issue Type: Bug Components: DRLVM Affects Versions: 5.0M6 Environment: All Reporter: li, shisheng With this bug, even you specify nos_size command options, the real NOS size will still go up and down. That option is expected to really fix the size of NOS. To reproduce the bug, you need to firstly write a simple hello world program which will alloc much data in both NOS and LOS. Here is one example. import java.io.*; import java.util.*; public class Hello { public static void main(String[] args) { Object o = null; Object[] os = null; while(true) { o = new Object(); os = new Object[100 * 1024]; } } } And then try a command like this: java -Xms512m -Xmx512m -verbose:gc -XX:gc.nos_size=8M -XX:gc.minor_algorithm=PARTIAL_FORWARD -jar hello.jar Here with gc verbose, you can get the NOS size easily. With the command above, in my system, the NOS size go up to 117M firstly and then go down to 3M, then get stable. One source of this bug is in file: los\lspace_alloc_collect.cpp, function:lspace_reset_for_slide , which is called when los collection. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.