Reviewers: Jakob,
Description:
Fix bug in CompilationHandlescope constructor.
This will never be triggered in the state v8 is currently in, but will
crash v8
when multiple DeferredHandles are queued up during parallel compilation.
BUG=
TEST=
Please review this at http://codereview.chromium.org/10696178/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/api.h
Index: src/api.h
diff --git a/src/api.h b/src/api.h
index
2341c4c8fc59d809e708e04337ccdb97c2401152..78b3ca051c10503c104fd9de1631c8a92ce776d5
100644
--- a/src/api.h
+++ b/src/api.h
@@ -400,7 +400,9 @@ class DeferredHandles {
DeferredHandles(DeferredHandles* next, Object** first_block_limit,
HandleScopeImplementer* impl)
: next_(next), previous_(NULL),
first_block_limit_(first_block_limit),
- impl_(impl) {}
+ impl_(impl) {
+ if (next != NULL) next->previous_ = this;
+ }
void Iterate(ObjectVisitor* v);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev