Skip to content
Snippets Groups Projects
Commit df77aa8e authored by deuce's avatar deuce
Browse files

Enable Valgrind support in debug builds. It's a valuable tool in tracking

down GC issues.
parent 48749597
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ include $(SRC_ROOT)/build/Common.gmake # defines clean and output directory rule
JS_CONFIGURE_ARGS += --with-system-nspr --disable-tests --disable-shared-js --enable-threadsafe --prefix=$(shell echo `pwd`$(DIRSEP)$(JS_IDIR))
ifdef DEBUG
JS_CONFIGURE_ARGS += --enable-debug-symbols --disable-optimize
JS_CONFIGURE_ARGS += --enable-debug-symbols --disable-optimize --enable-valgrind
else
JS_CONFIGURE_ARGS += --enable-optimize=-O3
endif
......
--- js-1.8.5/js/src/jsapi.cpp.orig 2011-10-28 18:26:10.000000000 -0700
+++ js-1.8.5/js/src/jsapi.cpp 2011-10-28 18:33:03.000000000 -0700
@@ -955,6 +955,28 @@
--- js-1.8.5/js/src/jsapi.cpp.orig 2011-11-02 15:45:55.000000000 -0700
+++ js-1.8.5/js/src/jsapi.cpp 2011-11-02 15:46:35.000000000 -0700
@@ -955,6 +955,27 @@
#endif
}
......@@ -8,8 +8,7 @@
+JS_RequestDepth(JSContext *cx)
+{
+#ifdef JS_THREADSAFE
+ JS_ASSERT(CURRENT_THREAD_IS_ME(cx->thread));
+ return JS_THREAD_DATA(cx)->requestDepth;
+ return cx->outstandingRequests;
+#else
+ return false;
+#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment