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] Commented: (HARMONY-1833) [DRLVM] deadlock during finalization
Date Thu, 12 Oct 2006 05:01:36 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1833?page=comments#action_12441617 ] 
            
Alexey Varlamov commented on HARMONY-1833:
------------------------------------------

Java stack of Thread 1
   [junit]   [0x80a9f58] 0x538b6a18(m): java/lang/FinalizerThread.startFinalization(Z)V
    [junit]   [0x80a9f58] 0x40b0fdc5(n): java/lang/VMClassRegistry.getSystemPackages(I)[[Ljava/lang/String;
    [junit]   [0x80a9f58] 0x41162c57(m): java/lang/ClassLoader$BootstrapLoader.updatePackages()V
    [junit]   [0x80a9f58] 0x41162a7b(m): java/lang/ClassLoader$BootstrapLoader.getPackage(Ljava/lang/String;)Ljava/lang/Package;
    [junit]   [0x80a9f58] 0x41162812(m): java/lang/ClassLoader.getPackage(Ljava/lang/String;)Ljava/lang/Package;
    [junit]   [0x80a9f58] 0x411508e4(m): java/net/URLClassLoader.findClassImpl([Ljava/net/URL;Ljava/lang/String;)Ljava/lang/Class;
    [junit]   [0x80a9f58] 0x4114ea08(m): java/net/URLClassLoader$4.run()Ljava/lang/Class;
    [junit]   [0x80a9f58] 0x4114e961(m): java/net/URLClassLoader$4.run()Ljava/lang/Object;
    [junit]   [0x80a9f58] 0x410e6b69(m): java/security/AccessController.doPrivilegedImpl(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
    [junit]   [0x80a9f58] 0x4114e8cb(m): java/security/AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
    [junit]   [0x80a9f58] 0x4114e637(m): java/net/URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;
    [junit]   [0x80a9f58] 0x41147b69(m): java/lang/ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;
    [junit]   [0x80a9f58] 0x411479d5(m): java/net/URLClassLoader$SubURLClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;
    [junit]   [0x80a9f58] 0x4114780a(m): java/lang/ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;
    [junit]   [0x80a9f58] 0x411394c1(m): java/lang/Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
    [junit]   [0x80a9f58] 0x538b67ef(m): javax/naming/spi/NamingManager$1.run()Ljava/lang/Class;
    [junit]   [0x80a9f58] 0x538b6701(m): javax/naming/spi/NamingManager$1.run()Ljava/lang/Object;
    [junit]   [0x80a9f58] 0x410e6b69(m): java/security/AccessController.doPrivilegedImpl(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;


> [DRLVM] deadlock during finalization
> ------------------------------------
>
>                 Key: HARMONY-1833
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1833
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: SLES 9 32-bit SP2; CPU 2xXeon x64
> gcc 3.3.3 drlvm debug build
>            Reporter: Alexey Varlamov
>
> The classlib tests hang sporadically, usually in JNDI module when running all classlib
unit tests (single runs of JNDI alone always ok).
> Investigation shows that there are deadlocks happening between main thread (MT) and finalizer
thread (FT): 
> 1) MT performs classloading, it grabs ClassLoader::_lock;
> 2) GC happens, FinalizerThread.startFinalization() is called, FT activates;
> 3) FT invokes some finalize() method, compilation starts and grabs g_compileLock;
> 4) FT waits for ClassLoader::_lock to allocate code_chunk_info;
> 5) MT proceeds to compilation of FinalizerThread.spawnBalanceThreads() and waits for
g_compileLock;

-- 
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