Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JVM apparently hanging



Eric Feigenson wrote:

>Thread [main] (Suspended)
>        Runtime.loadLibrary0(Class, String) line: 780   <-- seems to hang
>here.   Class is sun.security.action.LoadLibraryAction,
>and the String is "zip"
>        System.loadLibrary(String) line: 834             // The value of
>the string argument here is "zip"
>        LoadLibraryAction.run() line: 50 [local variables unavailable]
>        AccessController.doPrivileged(PrivilegedAction) line: not
>available [native method]
>        CRC32.<clinit>() line: 25 [local variables unavailable]
>        ZipInputStream.<init>(InputStream) line: 26
>        ClassHashtable.explodeArchive(String, byte[]) line: 112

Seems like a normal stack-trace to me.  The method Runtime.loadLibrary0()
is synchronized, so maybe that's a clue: deadlock.  Trigger a full
thread-dump and the JVM should tell you about deadlocks it finds.

The only other synchronized method in Runtime is load0(), called by the
Runtime.load() method.  Both loadLibrary0() and load0() eventually call
ClassLoader.loadLibrary(), a package-visible static method.  See the source
for Runtime and ClassLoader for details.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.