Revision: 16922
Author: yang...@chromium.org
Date: Tue Sep 24 13:39:06 2013 UTC
Log: Flush recompile jobs on last-resort GC.
R=hpa...@chromium.org
BUG=
Review URL: https://codereview.chromium.org/24145011
http://code.google.com/p/v8/source/detail?r=16922
Modified:
/branches/bleeding_edge/src/heap.cc
=======================================
--- /branches/bleeding_edge/src/heap.cc Tue Sep 24 11:19:37 2013 UTC
+++ /branches/bleeding_edge/src/heap.cc Tue Sep 24 13:39:06 2013 UTC
@@ -608,6 +608,11 @@
// Note: as weak callbacks can execute arbitrary code, we cannot
// hope that eventually there will be no weak callbacks invocations.
// Therefore stop recollecting after several attempts.
+ if (FLAG_concurrent_recompilation) {
+ // The optimizing compiler may be unnecessarily holding on to memory.
+ DisallowHeapAllocation no_recursive_gc;
+ isolate()->optimizing_compiler_thread()->Flush();
+ }
mark_compact_collector()->SetFlags(kMakeHeapIterableMask |
kReduceMemoryFootprintMask);
isolate_->compilation_cache()->Clear();
--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.