Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Get this to actually compile in a hacky way
  • Loading branch information
leto committed Jan 23, 2012
1 parent 3909c88 commit 453db08
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/src/jsgc.cpp
Expand Up @@ -2670,6 +2670,10 @@ MarkAndSweep(JSContext *cx, JSGCInvocationKind gckind)


AutoUnlockGC unlock(rt); 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); GCMarker gcmarker(cx, mark_stack_size);
JS_ASSERT(IS_GC_MARKING_TRACER(&gcmarker)); JS_ASSERT(IS_GC_MARKING_TRACER(&gcmarker));
JS_ASSERT(gcmarker.getMarkColor() == BLACK); JS_ASSERT(gcmarker.getMarkColor() == BLACK);
Expand Down Expand Up @@ -3284,7 +3288,8 @@ struct VerifyTracer : JSTracer {
/* A dummy marker used for the write barriers; stored in gcMarkingTracer. */ /* A dummy marker used for the write barriers; stored in gcMarkingTracer. */
GCMarker gcmarker; 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) {}
}; };


/* /*
Expand Down

0 comments on commit 453db08

Please sign in to comment.