Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 51263 invoked from network); 20 Aug 2007 02:21:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2007 02:21:51 -0000 Received: (qmail 99060 invoked by uid 500); 20 Aug 2007 02:21:48 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 99041 invoked by uid 500); 20 Aug 2007 02:21:48 -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 99032 invoked by uid 99); 20 Aug 2007 02:21:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Aug 2007 19:21:48 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 02:21:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A5A29714201 for ; Sun, 19 Aug 2007 19:21:30 -0700 (PDT) Message-ID: <27991654.1187576490637.JavaMail.jira@brutus> Date: Sun, 19 Aug 2007 19:21:30 -0700 (PDT) From: "Andrew Zhang (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-4649) [p-unit] memory utils, fixes In-Reply-To: <18633699.1187443833378.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521000 ] Andrew Zhang commented on HARMONY-4649: --------------------------------------- Hi Alexei, Excellent! Thanks for the improvement. I only have one question about the commit: * Fixed testInstance allocation: allocate it once for class (as it is done in ng-unit). Where's the exact code? Does it mean that the test methods will affect each other? Best regards, Andrew > [p-unit] memory utils, fixes > ---------------------------- > > Key: HARMONY-4649 > URL: https://issues.apache.org/jira/browse/HARMONY-4649 > Project: Harmony > Issue Type: Improvement > Components: Misc > Reporter: Alexei Fedotov > > Andrew, sorry for delay. Here go some improvements. > * Added junit-style shouldStop() method to detect timeout expiration from inside the test > * Allocate thread objects once for all test iterations. > * Replaced logger.* and assert.* domains with sensible ones. > * Slightly corrected messages in float and double asserts. > * Fixed testInstance allocation: allocate it once for class (as it is done in ng-unit). > * Improved memory deallocation algorithm in MemoryUtil.clear() to free objects with finalizers on RI, added wilderness utilities and maximum total memory calculation. Restored org.punit.exception.OutOfMemoryException. Added related test. > * Fixed Maximum/Minimum watcher value accumulation in case when _scale changes. > * Fixed formatting and tabs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.