Changeset 101777 in vbox for trunk/src/libs/xpcom18a4/xpcom/base
- Timestamp:
- Nov 4, 2023 6:26:43 PM (18 months ago)
- svn:sync-xref-src-repo-rev:
- 159873
- Location:
- trunk/src/libs/xpcom18a4/xpcom/base
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/base/nsTraceRefcntImpl.cpp
r64625 r101777 584 584 static PRInt32 GetSerialNumber(void* aPtr, PRBool aCreate) 585 585 { 586 #ifdef GC_LEAK_DETECTOR587 // need to disguise this pointer, so the table won't keep the object alive.588 aPtr = (void*) ~PLHashNumber(aPtr);589 #endif590 586 PLHashEntry** hep = PL_HashTableRawLookup(gSerialNumbers, PLHashNumber(NS_PTR_TO_INT32(aPtr)), aPtr); 591 587 if (hep && *hep) { … … 607 603 static PRInt32* GetRefCount(void* aPtr) 608 604 { 609 #ifdef GC_LEAK_DETECTOR610 // need to disguise this pointer, so the table won't keep the object alive.611 aPtr = (void*) ~PLHashNumber(aPtr);612 #endif613 605 PLHashEntry** hep = PL_HashTableRawLookup(gSerialNumbers, PLHashNumber(NS_PTR_TO_INT32(aPtr)), aPtr); 614 606 if (hep && *hep) { … … 621 613 static PRInt32* GetCOMPtrCount(void* aPtr) 622 614 { 623 #ifdef GC_LEAK_DETECTOR624 // need to disguise this pointer, so the table won't keep the object alive.625 aPtr = (void*) ~PLHashNumber(aPtr);626 #endif627 615 PLHashEntry** hep = PL_HashTableRawLookup(gSerialNumbers, PLHashNumber(NS_PTR_TO_INT32(aPtr)), aPtr); 628 616 if (hep && *hep) { … … 635 623 static void RecycleSerialNumberPtr(void* aPtr) 636 624 { 637 #ifdef GC_LEAK_DETECTOR638 // need to disguise this pointer, so the table won't keep the object alive.639 aPtr = (void*) ~PLHashNumber(aPtr);640 #endif641 625 PL_HashTableRemove(gSerialNumbers, aPtr); 642 626 }
Note:
See TracChangeset
for help on using the changeset viewer.