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] Commented: (HARMONY-1727) [DRLVM] [GC] Unexpected behaviour of GC
Date Wed, 22 Nov 2006 23:01:04 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1727?page=comments#action_12452072 ] 
            
Gregory Shimansky commented on HARMONY-1727:
--------------------------------------------

Is it fixable? Or is it better not to apply the fix at all?

> [DRLVM] [GC] Unexpected behaviour  of GC
> ----------------------------------------
>
>                 Key: HARMONY-1727
>                 URL: http://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.
-
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

        

Mime
View raw message