Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 69978 invoked from network); 12 Sep 2006 05:08:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2006 05:08:47 -0000 Received: (qmail 22714 invoked by uid 500); 12 Sep 2006 05:08:47 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 22689 invoked by uid 500); 12 Sep 2006 05:08:47 -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 22678 invoked by uid 99); 12 Sep 2006 05:08:47 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 22:08:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:33726] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 0F/B8-29072-AE046054 for ; Mon, 11 Sep 2006 22:08:58 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CDED7410010 for ; Tue, 12 Sep 2006 05:05:23 +0000 (GMT) Message-ID: <2737149.1158037523840.JavaMail.jira@brutus> Date: Mon, 11 Sep 2006 22:05:23 -0700 (PDT) From: "Alexey Varlamov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1258) [drlvm][kernel] Incorrect detection of privileged and reflection frames in Java_org_apache_harmony_vm_VMStack_getClasses In-Reply-To: <29375444.1156244173936.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1258?page=all ] Alexey Varlamov updated HARMONY-1258: ------------------------------------- Attachment: H-1258.patch The fix is provided now. > [drlvm][kernel] Incorrect detection of privileged and reflection frames in Java_org_apache_harmony_vm_VMStack_getClasses > ------------------------------------------------------------------------------------------------------------------------ > > Key: HARMONY-1258 > URL: http://issues.apache.org/jira/browse/HARMONY-1258 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Alexey Varlamov > Attachments: H-1258.patch > > > The API contract of o.a.h.vm.VMStack.getClasses(int maxSize, boolean considerPrivileged) requires special handling of reflection and privileged frames of Java stack, but detection mechanism is buggy: > 1) Only 1 of 4 j.s.AccessController.doPrivileged() methods is recognized (which one depends on bootstrap sequence (!) ); > 2) j.l.reflect.Constructor.newInstance() is not considered as reflection frame. > Also, currently this method is used only by j.s.AccessController, with the same arguments getClasses(-1, true). This method may worth to be re-designed. > The fix will follow later. -- 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