2002-10-17 Thomas Pfaff <tpfaff@gmx.net>

* thread.cc (verifyable_object_isvalid): Test for static object first.
This commit is contained in:
Robert Collins 2002-10-17 08:31:30 +00:00
parent d7c2dc62fd
commit 841cf30bc3
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-10-17 Thomas Pfaff <tpfaff@gmx.net>
* thread.cc (verifyable_object_isvalid): Test for static object first.
2002-10-16 Christopher Faylor <cgf@redhat.com>
* fhandler_tty.cc (fhandler_tty_slave::read): Attempt #527 to properly

View File

@ -1356,12 +1356,12 @@ 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 (!*object)
return INVALID_OBJECT;
if (static_ptr && *object == static_ptr)
return VALID_STATIC_OBJECT;
if (check_valid_pointer (*object))
return INVALID_OBJECT;
if ((*object)->magic != magic)