Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 45387 invoked from network); 31 Oct 2006 15:40:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2006 15:40:41 -0000 Received: (qmail 39138 invoked by uid 500); 31 Oct 2006 15:40:52 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 39108 invoked by uid 500); 31 Oct 2006 15:40:52 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 39097 invoked by uid 99); 31 Oct 2006 15:40:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 07:40:52 -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; Tue, 31 Oct 2006 07:40:38 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 269B27142EC for ; Tue, 31 Oct 2006 07:40:18 -0800 (PST) Message-ID: <19172786.1162309218155.JavaMail.root@brutus> Date: Tue, 31 Oct 2006 07:40:18 -0800 (PST) From: "Pavel Afremov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-2022) [DRLVM] Fix ClassLoading in exception raised state. In-Reply-To: <14137103.1162309096780.JavaMail.root@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 [ http://issues.apache.org/jira/browse/HARMONY-2022?page=all ] Pavel Afremov updated HARMONY-2022: ----------------------------------- Attachment: Fix-ClassLoading-in-exception-raised-state.txt Fix ClassLoading in exception raised state. The fix consist in: classLoadier returns NULL in exception raised state, add missed FailedLoadingClass call , add OutOfMemoryError support into ReportFailedClass add support that exception class may be not loaded > [DRLVM] Fix ClassLoading in exception raised state. > --------------------------------------------------- > > Key: HARMONY-2022 > URL: http://issues.apache.org/jira/browse/HARMONY-2022 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Pavel Afremov > Attachments: 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. - 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