Hooking up the Boehm collector.

Can we please call this thing the Bone Collector?  That would be much cooler.
Thank you drive through.
This commit is contained in:
jevering%netscape.com 1999-10-16 01:22:01 +00:00
Родитель 6e47ab221b
Коммит 27c9a9f387
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -45,6 +45,7 @@ XPIDL_MODULE = xpcom_base
XPIDLSRCS = \
.\nsrootidl.idl \
.\nsILeakDetector.idl \
.\nsISupports.idl \
.\nsIWeakReference.idl \
$(NULL)
@ -60,6 +61,7 @@ LIBRARY_NAME=xpcombase_s
LINCS = \
-I$(PUBLIC)\xpcom \
-I$(PUBLIC)\xpcom\components \
$(NULL)
LCFLAGS = -D_IMPL_NS_COM -DWIN32_LEAN_AND_MEAN
@ -74,6 +76,7 @@ CPP_OBJS = \
.\$(OBJDIR)\nsWeakReference.obj \
!ifdef GC_LEAK_DETECTOR
.\$(OBJDIR)\nsGarbageCollector.obj \
.\$(OBJDIR)\nsLeakDetector.obj \
!endif
$(NULL)

Просмотреть файл

@ -20,6 +20,7 @@
* Patrick C. Beard <beard@netscape.com>
*/
#define GC_LEAK_DETECTOR
#if defined(GC_LEAK_DETECTOR)
#include "nsLeakDetector.h"
@ -65,7 +66,9 @@ public:
NS_IMPL_ISUPPORTS1(nsLeakDetector, nsILeakDetector)
nsLeakDetector::nsLeakDetector() {}
nsLeakDetector::nsLeakDetector() {
NS_INIT_REFCNT();
}
nsLeakDetector::~nsLeakDetector() {}
NS_METHOD nsLeakDetector::DumpLeaks()