Ver Fonte

comment out bogus assertion

David Rose há 19 anos atrás
pai
commit
372c1973fc
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      dtool/src/dtoolbase/deletedChain.T

+ 3 - 1
dtool/src/dtoolbase/deletedChain.T

@@ -98,7 +98,9 @@ deallocate(Type *ptr) {
   TVOLATILE ObjectNode *obj = (ObjectNode *)ptr;
   TVOLATILE ObjectNode *obj = (ObjectNode *)ptr;
 
 
 #ifndef NDEBUG
 #ifndef NDEBUG
-  assert(obj->_flag != ((PN_int32)obj ^ deleted_chain_flag_hash));
+  // We can't *guarantee* that this value is not a legitimate value of
+  // the deleted object, so we can't safely make this assertion.
+  //  assert(obj->_flag != ((PN_int32)obj ^ deleted_chain_flag_hash));
   obj->_flag = (PN_int32)obj ^ deleted_chain_flag_hash;
   obj->_flag = (PN_int32)obj ^ deleted_chain_flag_hash;
 #endif  // NDEBUG
 #endif  // NDEBUG