classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] native/jni/classpath/native_state.c


From: Craig Black
Subject: [cp-patches] native/jni/classpath/native_state.c
Date: Tue, 1 Feb 2005 14:34:26 -0700 (MST)

Hello,
The following patch fixes a potential state table corruption issue.
"add_node" now behaves the same as "get_node" when moving a node to the
front of the list. Okay to commit?

Craig


2005-02-01  Craig Black  <address@hidden>

  * native/jni/classpath/native_state.c
  (add_node): Update head pointer when moving node to front of list.



Index: native/jni/classpath/native_state.c
===================================================================
RCS file:
/cvsroot/classpath/classpath/native/jni/classpath/native_state.c,v
retrieving revision 1.8
diff -u -r1.8 native_state.c
--- native/jni/classpath/native_state.c 21 Jun 2004 19:35:37 -0000
1.8
+++ native/jni/classpath/native_state.c 1 Feb 2005 21:20:27 -0000
@@ -151,6 +151,7 @@
            {
              back_ptr->next = node->next;
              node->next = *head;
+             *head = node;
            }
          node->c_state = state;
          return;







reply via email to

[Prev in Thread] Current Thread [Next in Thread]