Commit fbef1172 authored by ulan@chromium.org's avatar ulan@chromium.org

Use the old idle notification handler when context is disposed.

BUG=
TEST=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10121 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4ca20a1d
......@@ -4541,7 +4541,8 @@ void Heap::EnsureHeapIsIterable() {
bool Heap::IdleNotification(int hint) {
if (!FLAG_incremental_marking || FLAG_expose_gc || Serializer::enabled()) {
if (contexts_disposed_ > 0 || !FLAG_incremental_marking ||
FLAG_expose_gc || Serializer::enabled()) {
return hint < 1000 ? true : IdleGlobalGC();
}
......
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