Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 2532 invoked from network); 1 Mar 2007 09:26:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 09:26:13 -0000 Received: (qmail 90378 invoked by uid 500); 1 Mar 2007 09:26:21 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 90363 invoked by uid 500); 1 Mar 2007 09:26:21 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 90353 invoked by uid 99); 1 Mar 2007 09:26:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 01:26:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 01:26:11 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B4EA714293 for ; Thu, 1 Mar 2007 01:25:51 -0800 (PST) Message-ID: <16966268.1172741151174.JavaMail.jira@brutus> Date: Thu, 1 Mar 2007 01:25:51 -0800 (PST) From: "Salikh Zakirov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3203) [drlvm]Deadlock in vm_gc_lock_enum() In-Reply-To: <18436389.1171965725974.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Salikh Zakirov updated HARMONY-3203: ------------------------------------ Attachment: hythread_global_lock-make-sure-we-are-not-requested-to-suspend.patch hythread_global_lock-make-sure-we-are-not-requested-to-suspend.patch fixed hythread_global_lock() to test for a suspend request status, and release global lock before suspending to prevent deadlock > [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 > Attachments: hythread_global_lock-make-sure-we-are-not-requested-to-suspend.patch > > > 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.