[ https://issues.apache.org/jira/browse/HARMONY-2718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12555018
]
Vladimir Beliaev commented on HARMONY-2718:
-------------------------------------------
This issue is still reproducible on M4 release... (I've checked it on Windows x86, release
build).
> [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.
|