VirtualBox

Ignore:
Timestamp:
Nov 4, 2023 6:26:43 PM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159873
Message:

libs/xpcom: Remove all code associated with GC_LEAK_DETECTOR as it is never set in our case, bugref:10545

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  
    584584static PRInt32 GetSerialNumber(void* aPtr, PRBool aCreate)
    585585{
    586 #ifdef GC_LEAK_DETECTOR
    587   // need to disguise this pointer, so the table won't keep the object alive.
    588   aPtr = (void*) ~PLHashNumber(aPtr);
    589 #endif
    590586  PLHashEntry** hep = PL_HashTableRawLookup(gSerialNumbers, PLHashNumber(NS_PTR_TO_INT32(aPtr)), aPtr);
    591587  if (hep && *hep) {
     
    607603static PRInt32* GetRefCount(void* aPtr)
    608604{
    609 #ifdef GC_LEAK_DETECTOR
    610   // need to disguise this pointer, so the table won't keep the object alive.
    611   aPtr = (void*) ~PLHashNumber(aPtr);
    612 #endif
    613605  PLHashEntry** hep = PL_HashTableRawLookup(gSerialNumbers, PLHashNumber(NS_PTR_TO_INT32(aPtr)), aPtr);
    614606  if (hep && *hep) {
     
    621613static PRInt32* GetCOMPtrCount(void* aPtr)
    622614{
    623 #ifdef GC_LEAK_DETECTOR
    624   // need to disguise this pointer, so the table won't keep the object alive.
    625   aPtr = (void*) ~PLHashNumber(aPtr);
    626 #endif
    627615  PLHashEntry** hep = PL_HashTableRawLookup(gSerialNumbers, PLHashNumber(NS_PTR_TO_INT32(aPtr)), aPtr);
    628616  if (hep && *hep) {
     
    635623static void RecycleSerialNumberPtr(void* aPtr)
    636624{
    637 #ifdef GC_LEAK_DETECTOR
    638   // need to disguise this pointer, so the table won't keep the object alive.
    639   aPtr = (void*) ~PLHashNumber(aPtr);
    640 #endif
    641625  PL_HashTableRemove(gSerialNumbers, aPtr);
    642626}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette