mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 288823: Trace-malloc fails to compile on windows; p=bugzilla@mcsmurf.de,r+sr=dbaron,a=brendan
This commit is contained in:
parent
9631dd8d9e
commit
31f502d4a6
@ -260,6 +260,10 @@ ifdef GC_LEAK_DETECTOR
|
|||||||
EXTRA_DSO_LIBS += boehm
|
EXTRA_DSO_LIBS += boehm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef NS_TRACE_MALLOC
|
||||||
|
EXTRA_DSO_LIBS += tracemalloc
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||||
EXTRA_DSO_LIBS += macmorefiles_s
|
EXTRA_DSO_LIBS += macmorefiles_s
|
||||||
EXTRA_DEPS += $(DIST)/lib/$(LIB_PREFIX)macmorefiles_s.$(LIB_SUFFIX)
|
EXTRA_DEPS += $(DIST)/lib/$(LIB_PREFIX)macmorefiles_s.$(LIB_SUFFIX)
|
||||||
|
@ -2083,7 +2083,7 @@ NS_TraceMallocFlushLogfiles()
|
|||||||
}
|
}
|
||||||
|
|
||||||
PR_IMPLEMENT(void)
|
PR_IMPLEMENT(void)
|
||||||
NS_TrackAllocation(__ptr_t ptr, FILE *ofp)
|
NS_TrackAllocation(void* ptr, FILE *ofp)
|
||||||
{
|
{
|
||||||
PLHashEntry **hep;
|
PLHashEntry **hep;
|
||||||
allocation *alloc;
|
allocation *alloc;
|
||||||
|
@ -43,6 +43,10 @@
|
|||||||
#include <stdio.h> /* for FILE */
|
#include <stdio.h> /* for FILE */
|
||||||
#include "prtypes.h"
|
#include "prtypes.h"
|
||||||
|
|
||||||
|
#ifdef XP_WIN
|
||||||
|
#define setlinebuf(stream) setvbuf((stream), (char *)NULL, _IOLBF, 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
PR_BEGIN_EXTERN_C
|
PR_BEGIN_EXTERN_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -220,7 +224,7 @@ NS_TraceMallocFlushLogfiles(void);
|
|||||||
* Track all realloc and free calls operating on a given allocation.
|
* Track all realloc and free calls operating on a given allocation.
|
||||||
*/
|
*/
|
||||||
PR_EXTERN(void)
|
PR_EXTERN(void)
|
||||||
NS_TrackAllocation(__ptr_t ptr, FILE *ofp);
|
NS_TrackAllocation(void* ptr, FILE *ofp);
|
||||||
|
|
||||||
PR_END_EXTERN_C
|
PR_END_EXTERN_C
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user