Bug 931738 - Remove nsPurpleBufferEntry from nsISupportsImpl.h. r=smaug

This commit is contained in:
Andrew McCreight 2013-11-26 14:29:59 -05:00
parent 204e61c5d0
commit eaa17634f8
4 changed files with 12 additions and 12 deletions

View File

@ -731,6 +731,17 @@ CanonicalizeParticipant(void **parti, nsCycleCollectionParticipant **cp)
}
}
struct nsPurpleBufferEntry {
union {
void *mObject; // when low bit unset
nsPurpleBufferEntry *mNextInFreeList; // when low bit set
};
nsCycleCollectingAutoRefCnt *mRefCnt;
nsCycleCollectionParticipant *mParticipant; // nullptr for nsISupports
};
class nsCycleCollector;
struct nsPurpleBuffer

View File

@ -31,7 +31,6 @@ DECL_CLASS(nsIDirectoryServiceProvider);
DECL_CLASS(nsIMemory);
DECL_CLASS(nsIDebug);
DECL_CLASS(nsITraceRefcnt);
DECL_STRUCT(nsPurpleBufferEntry);
#ifdef __cplusplus
namespace mozilla {

View File

@ -15,6 +15,7 @@
class nsStringContainer;
class nsCStringContainer;
class nsIComponentLoader;
class nsPurpleBufferEntry;
/**
* During this shutdown notification all threads which run XPCOM code must

View File

@ -74,17 +74,6 @@ private:
// Support for ISupports classes which interact with cycle collector.
struct nsPurpleBufferEntry {
union {
void *mObject; // when low bit unset
nsPurpleBufferEntry *mNextInFreeList; // when low bit set
};
nsCycleCollectingAutoRefCnt *mRefCnt;
nsCycleCollectionParticipant *mParticipant; // nullptr for nsISupports
};
#define NS_NUMBER_OF_FLAGS_IN_REFCNT 2
#define NS_IN_PURPLE_BUFFER (1 << 0)
#define NS_IS_PURPLE (1 << 1)