Tom Tromey
9c6f74cd3f
natReference.cc (finalize_referred_to_object): Set `list->reference' to DELETED_REFERENCE when removing dead object.
...
* java/lang/ref/natReference.cc (finalize_referred_to_object):
Set `list->reference' to DELETED_REFERENCE when removing dead
object.
(find_slot): Added an assert.
(DELETED_REFERENCE): New define.
(add_to_hash): Check for DELETED_REFERENCE.
(remove_from_hash): Just return if found slot isn't ours.
From-SVN: r70599
2003-08-20 15:30:04 +00:00
Tom Tromey
da98b11a83
natReference.cc (add_to_hash): Look at copy', not
referent'.
...
* java/lang/ref/natReference.cc (add_to_hash): Look at `copy', not
`referent'.
(finalize_referred_to_object): Don't modify `referent' or `copy'
fields.
(add_to_hash): Correctly set `n->next' when updating list.
* java/lang/ref/Reference.java (enqueue): Return false if already
enqueued.
From-SVN: r59278
2002-11-19 21:59:41 +00:00
Tom Tromey
b52a8930ff
natReference.cc (add_to_hash): Set n->next before setting *link.
...
* java/lang/ref/natReference.cc (add_to_hash): Set n->next before
setting *link.
From-SVN: r45996
2001-10-03 16:47:02 +00:00
Tom Tromey
2b3d3db68d
javaprims.h: Rebuilt class list.
...
* gcj/javaprims.h: Rebuilt class list.
* boehm.cc (_Jv_GCRegisterDisappearingLink): New function.
(_Jv_GCCanReclaimSoftReference): New function.
* include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare.
(_Jv_GCCanReclaimSoftReference): Declare.
* java/lang/ref/Reference.java (referent): Now a RawData.
(create): Renamed from `created'. Added object argument.
(Reference): Don't initialize `referent' here.
* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Added new file.
* java/lang/ref/natReference.cc: New file.
From-SVN: r45958
2001-10-02 14:31:47 +00:00