Rob,

the location for the static test is wrong. I have moved it 2 lines down.

Thomas

2002-10-18  Thomas Pfaff  <[EMAIL PROTECTED]>

        * thread.cc (verifyable_object_isvalid): Test for a valid object
        pointer before testing for static ptr.
--- thread.cc.org       Thu Oct 17 10:28:32 2002
+++ thread.cc   Fri Oct 18 10:17:54 2002
@@ -1356,10 +1356,10 @@ verifyable_object_state
 verifyable_object_isvalid (void const * objectptr, long magic, void *static_ptr)
 {
   verifyable_object **object = (verifyable_object **)objectptr;
-  if (static_ptr && *object == static_ptr)
-    return VALID_STATIC_OBJECT;
   if (check_valid_pointer (object))
     return INVALID_OBJECT;
+  if (static_ptr && *object == static_ptr)
+    return VALID_STATIC_OBJECT;
   if (!*object)
     return INVALID_OBJECT;
   if (check_valid_pointer (*object))

Reply via email to