Permalink
Browse files

Get this to actually compile in a hacky way

  • Loading branch information...
1 parent 3909c88 commit 453db082dfda5a360900d320ff12ad92b2bf9730 @leto committed Jan 23, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 js/src/jsgc.cpp
View
@@ -2670,6 +2670,10 @@ MarkAndSweep(JSContext *cx, JSGCInvocationKind gckind)
AutoUnlockGC unlock(rt);
+ size_t mark_stack_size;
+ if (atoi(getenv("JS_MARK_STACK_SIZE")) > 0)
+ mark_stack_size = atoi(getenv("JS_MARK_STACK_SIZE"));
+
GCMarker gcmarker(cx, mark_stack_size);
JS_ASSERT(IS_GC_MARKING_TRACER(&gcmarker));
JS_ASSERT(gcmarker.getMarkColor() == BLACK);
@@ -3284,7 +3288,8 @@ struct VerifyTracer : JSTracer {
/* A dummy marker used for the write barriers; stored in gcMarkingTracer. */
GCMarker gcmarker;
- VerifyTracer(JSContext *cx) : nodemap(cx), gcmarker(cx, mark_stack_size) {}
+ // todo: pass in proper mark stack size?
+ VerifyTracer(JSContext *cx) : nodemap(cx), gcmarker(cx, 42) {}
};
/*

0 comments on commit 453db08

Please sign in to comment.