summaryrefslogtreecommitdiff
path: root/gc_cpp.cc
diff options
context:
space:
mode:
authorhboehm <hboehm>2006-04-13 00:33:04 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:36 +0400
commite740040e62c64675c8a20253cc4c2a37d8580473 (patch)
tree0f25928d003ed7e8b167e4e12e71bd679b15f4c8 /gc_cpp.cc
parent7c72aee80a04eaa5d9e80fa7bfe8b174d86a3453 (diff)
downloadbdwgc-e740040e62c64675c8a20253cc4c2a37d8580473.tar.gz
2006-04-12 Hans Boehm <Hans.Boehm@hp.com> (Really mostly Andrei Polushin.)
* Makefile, Makefile.am, Makefile.direct, NT_MAKEFILE, NT_STATIC_THREADS_MAKEFILE, NT_THREADS_MAKEFILE, gc.mak, msvc_dbg.c, include/private/msvc_dbg.h: Add msvc_dbg.c, include/private/msvc_dbg.h. * Makefile.am, configure.ac: Simplify solaris threads handling. * gc_cpp.cc: Add another msft-specific new operator. * misc.c: Use per executable log-file location. * os_dep.c: Improve GetWriteWatch handling (incomplete). Support stack traces for MSVC++. * configure, Makefile.in: Regenerate. * include/gc_allocator.h: Add <new> include, more PTRFREE decls, MSVC++ 6 support.
Diffstat (limited to 'gc_cpp.cc')
-rw-r--r--gc_cpp.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gc_cpp.cc b/gc_cpp.cc
index f8b803a8..c4dc4cd2 100644
--- a/gc_cpp.cc
+++ b/gc_cpp.cc
@@ -57,5 +57,11 @@ void* operator new( size_t size,
#endif
}
+// This new operator is used by VC++ 7.0 and later in Debug builds.
+void* operator new[](size_t size, int nBlockUse, const char* szFileName, int nLine)
+{
+ return operator new(size, nBlockUse, szFileName, nLine);
+}
+
#endif /* _MSC_VER */