зеркало из https://github.com/mozilla/gecko-dev.git
Bug 931738 - Remove nsPurpleBufferEntry from nsISupportsImpl.h. r=smaug
This commit is contained in:
Родитель
ebd19c8e62
Коммит
685a29f9b1
|
@ -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
|
||||
|
|
|
@ -31,7 +31,6 @@ DECL_CLASS(nsIDirectoryServiceProvider);
|
|||
DECL_CLASS(nsIMemory);
|
||||
DECL_CLASS(nsIDebug);
|
||||
DECL_CLASS(nsITraceRefcnt);
|
||||
DECL_STRUCT(nsPurpleBufferEntry);
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace mozilla {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
class nsStringContainer;
|
||||
class nsCStringContainer;
|
||||
class nsIComponentLoader;
|
||||
class nsPurpleBufferEntry;
|
||||
|
||||
/**
|
||||
* During this shutdown notification all threads which run XPCOM code must
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче