harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1258) [drlvm][kernel] Incorrect detection of privileged and reflection frames in Java_org_apache_harmony_vm_VMStack_getClasses
Date Tue, 22 Aug 2006 10:56:13 GMT
[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


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

        

Mime
View raw message