harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Afremov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2502) [DRLVM] Runtime exception in fast path helpers crashes DRLVM.
Date Wed, 06 Dec 2006 15:30:21 GMT
[DRLVM] Runtime exception in fast path helpers crashes DRLVM.

                 Key: HARMONY-2502
                 URL: http://issues.apache.org/jira/browse/HARMONY-2502
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Pavel Afremov

The following simple test can crash DRLVM (VM crashes without any message) :

class ConstructorStackTest {
    private static final int MAX_DEPTH = 1000000;

    ConstructorStackTest(int c) {
        if (c > 0) {
            new ConstructorStackTest(c - 1);

    public static void main(String[] args) {
        try {
            new ConstructorStackTest(MAX_DEPTH);
         } catch (StackOverflowError soe) {
            System.out.println("PASS : " + soe);
        } catch (Throwable th) {

The source of the crash is in throwing StackOverflowError in fast path GC helper, where M2n
frame is not created. To fix this bug required implement support of runtime exceptions in
runtime helper or rewrite this helpers on "magic".

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


View raw message