Revision: 16826
Author:   [email protected]
Date:     Thu Sep 19 12:06:27 2013 UTC
Log:      Collect garbage before serializing heap in test-serialize

BUG=none
TEST=nosnap bots with i18n enabled are happy
[email protected]

Review URL: https://codereview.chromium.org/24196004
http://code.google.com/p/v8/source/detail?r=16826

Modified:
 /branches/bleeding_edge/test/cctest/test-serialize.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-serialize.cc Thu Sep 19 09:46:15 2013 UTC +++ /branches/bleeding_edge/test/cctest/test-serialize.cc Thu Sep 19 12:06:27 2013 UTC
@@ -256,8 +256,10 @@
     v8::HandleScope scope(isolate);
     v8::Context::New(isolate);
   }
-  WriteToFile(reinterpret_cast<Isolate*>(isolate),
-              FLAG_testing_serialization_file);
+
+  Isolate* internal_isolate = CcTest::i_isolate();
+ internal_isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, "serialize");
+  WriteToFile(internal_isolate, FLAG_testing_serialization_file);
 }


--
--
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/groups/opt_out.

Reply via email to