mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-10-03 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/lang/ref/natReference.cc (add_to_hash): Set n->next before
|
||||
setting *link.
|
||||
|
||||
2001-10-03 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* resolve.cc (_Jv_PrepareClass): Fix typos in vtable layout.
|
||||
|
||||
@@ -197,8 +197,8 @@ add_to_hash (java::lang::ref::Reference *the_reference)
|
||||
link = &iter->next;
|
||||
iter = *link;
|
||||
}
|
||||
*link = n;
|
||||
n->next = (*link) ? (*link)->next : NULL;
|
||||
*link = n;
|
||||
}
|
||||
|
||||
// This is called when an object is ready to be finalized. This
|
||||
|
||||
Reference in New Issue
Block a user