浏览代码

comment out bogus assertion

David Rose 19 年之前
父节点
当前提交
372c1973fc
共有 1 个文件被更改,包括 3 次插入1 次删除
  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;
 
 #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;
 #endif  // NDEBUG