Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 91002 invoked from network); 26 Jan 2007 08:27:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jan 2007 08:27:12 -0000 Received: (qmail 83429 invoked by uid 500); 26 Jan 2007 08:27:16 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 83409 invoked by uid 500); 26 Jan 2007 08:27:16 -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 83396 invoked by uid 99); 26 Jan 2007 08:27:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2007 00:27:16 -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; Fri, 26 Jan 2007 00:27:09 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 627DC7142D6 for ; Fri, 26 Jan 2007 00:26:49 -0800 (PST) Message-ID: <14087001.1169800009400.JavaMail.jira@brutus> Date: Fri, 26 Jan 2007 00:26:49 -0800 (PST) From: "Gregory Shimansky (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-2022) [drlvm] Fix ClassLoading in exception raised state. 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-2022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gregory Shimansky resolved HARMONY-2022. ---------------------------------------- Resolution: Fixed Patch applied at 500178 with recommendations from Pavel P. Please check that it was applied as expected. I also had to fix a bad assertion in 500157. > [drlvm] Fix ClassLoading in exception raised state. > --------------------------------------------------- > > Key: HARMONY-2022 > URL: https://issues.apache.org/jira/browse/HARMONY-2022 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Pavel Afremov > Assigned To: Gregory Shimansky > Attachments: Fix-ClassLoading-in-exception-raised-state.patch, Fix-ClassLoading-in-exception-raised-state.txt > > > The following test crashes VM, if it runs with parameters -Xms16m -Xmx32m: > import java.lang.ref.*; > public class PhantomTest { > static int MAX_MEM = 0; > public static void main(String[] args) { > if(args.length>0) { > try { > MAX_MEM = Integer.parseInt(args[0]); > } > catch(NumberFormatException e) { //ignore > } > } > if(MAX_MEM <= 0) { > MAX_MEM = 100000; > } > ReferenceQueue q = new ReferenceQueue(); > PhantomReference [] ref = new PhantomReference[MAX_MEM]; > FinalizedObject obj = null; > for(int i= 0; i < ref.length; ++i) { > if(i > 0) ref[i - 1] = new PhantomReference(obj, q); > obj = null; > obj = new FinalizedObject(1024, i); > Reference r = null; > while( (r=q.poll())!=null) { > r.clear(); > System.out.println("r = " + r); > } > } > System.out.println("TEST COMPLETED!"); > } > static class FinalizedObject { > byte [] bytes; > int ind = 0; > FinalizedObject(int size, int ind) { > bytes = new byte[size]; > this.ind = ind; > } > protected void finalize() { > System.out.println("Finalize: " + ind); > } > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.