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




Thanks again Mike.  It's the same Java version (1.4.2) on all platforms.  No, not the same hardware, of course, since I'm on a Mac or AIX or Windoze or Solaris which all have their own hardware (though Mac & AIX are PPC I think).

I'm not even sure a workaround would work, since the actually hang, which indirectly is causing the lock on java.lang.Runtime.loadLibrary0 to be held, is happening in the native method java.lang.ClassLoader$NativeLibrary.load, so it might hang there ANYWAY, since the AWT thread will have the lock on loadLibrary0 (which it does in my current situation).  

I did find, poking around in XCode, that the AWT thread, in the native code of ClassLoader$NativeLibrary.load it calls JNI_OnLoad which calls something very Objective-C-ish which looks like +[AWTStarter :start]  (not sure if I have that exactly right).  And THAT is where the hang in happening.

So, I'm off to try some stuff... if y'all come up with any other thoughts/idea/etc, I'll appreciate hearing them!

Thanks again!

-Eric


Michael Hall <email@hidden>

05/03/2006 02:10 PM

To
Eric Feigenson <email@hidden>
cc
email@hidden, java-dev-bounces+eric_feigenson=email@hidden
Subject
Re: JVM apparently hanging






On May 3, 2006, at 12:59 PM, Eric Feigenson wrote:


Mike, I'd agree with you,and I might have to try your suggestions, but ALL this code runs just fine on other platforms (WIndoze, Linux, AIX, Solaris), so I'm wondering (a) What's different on the Mac and/or (b) What am I doing to make this difference manifest itself?


But the workaround might have to be enough.


Thanks for the suggestion!
 

Threading is sort of platform specific is my understanding. Might explain a unique platform problem here. Also, it it the same jvm versions? Is it the same hardware? Faster or slower might figure into race condition deadlocks. It may turn up on the other platforms yet, just being more probable with the Mac configuration.


Mike Hall        mikehall at spacestar dot net
http://www.spacestar.net/users/mikehall
http://sourceforge.net/projects/macnative



 _______________________________________________
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

References: 
 >Re: JVM apparently hanging (From: Michael Hall <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.