Revision: 24370
Author:   [email protected]
Date:     Wed Oct  1 15:39:12 2014 UTC
Log:      Attempt to fix GC mole failures.

[email protected]

Review URL: https://codereview.chromium.org/614393002
https://code.google.com/p/v8/source/detail?r=24370

Modified:
 /branches/bleeding_edge/src/heap/heap.cc

=======================================
--- /branches/bleeding_edge/src/heap/heap.cc    Wed Oct  1 11:53:29 2014 UTC
+++ /branches/bleeding_edge/src/heap/heap.cc    Wed Oct  1 15:39:12 2014 UTC
@@ -2830,10 +2830,14 @@
   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();

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to