harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "weldon washburn (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-3203) [drlvm]Deadlock in vm_gc_lock_enum()
Date Fri, 23 Feb 2007 04:51:05 GMT

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

weldon washburn reassigned HARMONY-3203:
----------------------------------------

    Assignee: weldon washburn

> [drlvm]Deadlock in vm_gc_lock_enum()
> ------------------------------------
>
>                 Key: HARMONY-3203
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3203
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Igor V. Stolyarov
>         Assigned To: weldon washburn
>
> Application hangs on creation 7997's thread.
> Test for reproduce:
> import java.util.HashMap;
> import java.io.ByteArrayOutputStream;
> import java.io.ObjectOutputStream;
> import java.io.ByteArrayInputStream;
> import java.io.ObjectInputStream;
> public class ObjectStreamClassTest{
>     private static int MAX_THREADS = 10000;
>     private class HashMapSerialize implements Runnable{
>         HashMap map;
>         byte[] form;
>         public HashMapSerialize(HashMap map){ 
>             this.map = map;
>         }
>         public void run(){
>             try{
>                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
>                 ObjectOutputStream oos = new ObjectOutputStream(baos);
>                 oos.writeObject(map);
>                 oos.flush();
>                 form = baos.toByteArray();
>                 oos.close();
>                 baos.close();
>             }catch(Exception e){
>             }
>         }
>     }
>     public ObjectStreamClassTest(){
>     }
>     public void run(){
>         Thread[] t = new Thread[MAX_THREADS];
>         HashMap hm = new HashMap();
>         hm.put("Runnable.class", Runnable.class);
>         try{
>             for(int i = 0; i < MAX_THREADS; i++){
>                 t[i] = new Thread(new HashMapSerialize(hm));
>                 t[i].start();
>                 System.out.println("Thread " + i + ": - started");
>             }
>         }catch(Exception e){
>             System.out.println("Test faild: " + e);
>             return;
>         }
>         System.out.println("Test pass");
>     }
>     public static void main(String[] argv){
>         ObjectStreamClassTest t = new ObjectStreamClassTest();
>         t.run();
>     }
> }

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