harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2718) [classlib][drlvm] Simple test is source of memory leak and uncaught OutOfMemoryError.
Date Sun, 30 Dec 2007 23:18:43 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12555049
] 

Nathan Beyer commented on HARMONY-2718:
---------------------------------------

If this is really a duplicate of HARMONY-2530, then it's invalid, as that bug is closed, but
according to the comments, this bug is happening still. If that's true, then the 2530 should
really be reopened.

Can someone else test this independently?

BTW - OutOfMemoryErrors should always be uncaught, at least by the JRE.

> [classlib][drlvm] Simple test is source of memory leak and uncaught OutOfMemoryError.
> -------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2718
>                 URL: https://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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message