harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-1727) [drlvm][gc] Unexpected behaviour of GC
Date Tue, 20 Feb 2007 15:05:05 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-1727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gregory Shimansky closed HARMONY-1727.
--------------------------------------

    Resolution: Duplicate

It looks like this bug is the same as in HARMONY-2742, so I am closing this issue as duplicate
because there is more evaluation in that issue.

> [drlvm][gc] Unexpected behaviour  of GC
> ---------------------------------------
>
>                 Key: HARMONY-1727
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1727
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Igor V. Stolyarov
>
> GC releases memory by the wrong way
> Test:
> Test.java---------------------------------------------
> import java.util.Vector;
> import java.util.Hashtable;
> class Run implements Runnable{
>     int ar[];
>     String content;
>     public Run(){
>         content = new String(".");
>         ar = new int[65536];
>     }
>     public void run() {
>         System.err.print(content);
>         try{
>             Thread.sleep(100);
>         }catch(InterruptedException e){
>             Thread.currentThread().interrupt();
>         }
>     }
> }
> public class Test {
>     public static void main(String[] args) {
>         while(true){
>             try{
>                 Thread t = new Thread(new Run());
>                 t.start();
>             }catch(OutOfMemoryError oome){
>                 System.gc();
>                 try{
>                     Thread.sleep(100);
>                 }catch(InterruptedException e){
>                     Thread.currentThread().interrupt();
>                 }   
>             } 
>         }
>     }
> }
> On DRLVM this test  longs for to allocate all memory and then VM is crashing. 

-- 
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