Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: src/heap/heap.cc

Issue 614393002: Attempt to fix GC mole failures. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 2a86e1bef11dcd72c48c928e35be046e1d559f80..f76a0cf40aeea1103af3675ad82656b64fdaeb05 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2830,10 +2830,14 @@ void Heap::CreateInitialObjects() {
set_instanceof_cache_map(Smi::FromInt(0));
set_instanceof_cache_answer(Smi::FromInt(0));
-#define SYMBOL_INIT(name) \
- roots_[k##name##RootIndex] = *factory->NewPrivateOwnSymbol();
- PRIVATE_SYMBOL_LIST(SYMBOL_INIT)
+ {
+ HandleScope scope(isolate());
+#define SYMBOL_INIT(name) \
+ Handle<Symbol> name = factory->NewPrivateOwnSymbol(); \
+ roots_[k##name##RootIndex] = *name;
+ PRIVATE_SYMBOL_LIST(SYMBOL_INIT)
#undef SYMBOL_INIT
+ }
CreateFixedStubs();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698