Nasty workaround for bug 632.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4012 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
kasperl@chromium.org 2010-03-04 07:43:05 +00:00
parent 6e32048eda
commit 5cee8eeb3d

View File

@ -2909,6 +2909,10 @@ Persistent<Context> v8::Context::New(
i::Handle<i::Context> env;
{
ENTER_V8;
// BUG(632): Force GC to workaround instability issues.
i::Heap::CollectAllGarbage(false);
v8::Handle<ObjectTemplate> proxy_template = global_template;
i::Handle<i::FunctionTemplateInfo> proxy_constructor;
i::Handle<i::FunctionTemplateInfo> global_constructor;