Reviewers: Hannes Payer,
Description:
Flush recompile jobs on last-resort GC.
R=hpa...@chromium.org
BUG=
Please review this at https://codereview.chromium.org/24145011/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+4, -0 lines):
M src/heap.cc
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index
3c24f495b20d276c1cc0052b07f9a20ef0a59fca..47e2ff17a72c52a45bea848a00bc6de0baec455a
100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -608,6 +608,10 @@ void Heap::CollectAllAvailableGarbage(const char*
gc_reason) {
// 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 onto memory.
+ 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.