Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 25752 invoked from network); 14 Dec 2006 16:34:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2006 16:34:03 -0000 Received: (qmail 46532 invoked by uid 500); 14 Dec 2006 16:33:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 46467 invoked by uid 500); 14 Dec 2006 16:33:52 -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 46359 invoked by uid 99); 14 Dec 2006 16:33:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Thu, 14 Dec 2006 08:33:51 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2103D7140F6 for ; Thu, 14 Dec 2006 08:32:21 -0800 (PST) Message-ID: <4347677.1166113941132.JavaMail.jira@brutus> Date: Thu, 14 Dec 2006 08:32:21 -0800 (PST) From: "Pavel Afremov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-2718) [classlib][drlvm] Simple test is source of memory leak and uncaught OutOfMemoryError. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][drlvm] Simple test is source of memory leak and uncaught OutOfMemoryError. ------------------------------------------------------------------------------------- Key: HARMONY-2718 URL: http://issues.apache.org/jira/browse/HARMONY-2718 Project: Harmony Issue Type: Bug Components: Classlib Reporter: Pavel Afremov Attachments: ZipDictionaryTest.java The following test is source of memory leak (in classlib native code conceivably) and uncaught OutOfMemoryError. import java.util.zip.Deflater; public class ZipDictionaryTest { private static final int MAX_ITERATION_NUMBER = 30000000; private static final int PRINT_ITERATION_NUMBER = 500000; private static final int DICTIONARY_SIZE = 100; public static void main(String[] args) { Deflater compresser = new Deflater(); byte[] dictionary = new byte [DICTIONARY_SIZE]; for (int i = 0; i < MAX_ITERATION_NUMBER;) { System.out.println("Iteration = " + i); for (int l = i + PRINT_ITERATION_NUMBER; i < l; ++i) { compresser.setDictionary(dictionary,0,DICTIONARY_SIZE); } } System.out.println("PASS"); } } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira