summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-03 16:47:02 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-03 16:47:02 +0000
commitb897308db9a445d0165e83b2459c7b4ceecff752 (patch)
tree5c27ba5fca4caf41bd8f1913a72fdc12a9f94d9e /libjava
parentd1ad0100e45a00a0fefe765df74949cb905f3959 (diff)
downloadgcc-b897308db9a445d0165e83b2459c7b4ceecff752.tar.gz
* java/lang/ref/natReference.cc (add_to_hash): Set n->next before
setting *link. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45996 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/lang/ref/natReference.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 69e846ffc2e..450e0c894a4 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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.
diff --git a/libjava/java/lang/ref/natReference.cc b/libjava/java/lang/ref/natReference.cc
index 8e316ee3850..5743349caaf 100644
--- a/libjava/java/lang/ref/natReference.cc
+++ b/libjava/java/lang/ref/natReference.cc
@@ -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