ATTN Windows Users: RFC - GCJ/MinGW and Thread-Safe Exception Handling
Bryce McKinlay
mckinlay@redhat.com
Wed Jul 5 18:20:00 GMT 2006
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
More information about the Java
mailing list