This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ATTN Windows Users: RFC - GCJ/MinGW and Thread-Safe Exception Handling


Andi Vajda wrote:
On Wed, 5 Jul 2006, Adam Megacz wrote:

In the libgcj world, since we spawn all threads, we can put the
deallocation code at the end of the thread-spawning function.  I think
that's the future fix I was thinking of when I wrote "for now...".

Even though that is the case today because of a limitation in boehm-gc, it would be better not to make such assumptions. One day - according to Hans - it should be possible to create threads outside of libgcj and still have them aall into libgcj and allocate java objects without crashing.

That shouldn't be a problem. Correctly-written applications will use the CNI/JNI DetachCurrentThread functions, so any required thread cleanup code can be called from there.


Bryce


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]