------- Comment #18 from daney at gcc dot gnu dot org 2008-09-23 17:40 ------- Created an attachment (id=16396) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16396&action=view) Possible work-around
This is a patch against 3.4.3 that we are seriously considering using internally. The theory is: With code compiled from valid java source, it is impossible to be GCable while holding a lock, so adding a finalizer is redundant. It is still not clear to me if the number of heavy_locks could grow without bound while using the patch. We are analyzing this now... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18266