Commit 0028030d authored by vegorov@chromium.org's avatar vegorov@chromium.org

Fix TestInternalWeakLists test

Releasing context handle is not enough to release context, it might be indirectly reachable through compilation cache.

TBR=sgjesse@chromium.org

Review URL: http://codereview.chromium.org/3750017

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5652 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 705a5726
......@@ -1029,6 +1029,9 @@ TEST(TestInternalWeakLists) {
ctx[i]->Exit();
}
// Force compilation cache cleanup.
Heap::CollectAllGarbage(true);
// Dispose the global contexts one by one.
for (int i = 0; i < kNumTestContexts; i++) {
ctx[i].Dispose();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment