Revision: 13652
Author: [email protected]
Date: Wed Feb 13 04:46:06 2013
Log: Reduces memory consumption for parallel sweeping.
BUG=
Review URL: https://codereview.chromium.org/12177011
http://code.google.com/p/v8/source/detail?r=13652
Modified:
/branches/bleeding_edge/src/mark-compact.cc
=======================================
--- /branches/bleeding_edge/src/mark-compact.cc Wed Feb 13 03:02:39 2013
+++ /branches/bleeding_edge/src/mark-compact.cc Wed Feb 13 04:46:06 2013
@@ -3854,6 +3854,14 @@
SweepSpace(heap()->old_pointer_space(), how_to_sweep);
SweepSpace(heap()->old_data_space(), how_to_sweep);
+ if (how_to_sweep == PARALLEL_CONSERVATIVE) {
+ // TODO(hpayer): fix race with concurrent sweeper
+ StartSweeperThreads();
+ if (FLAG_parallel_sweeping && !FLAG_concurrent_sweeping) {
+ WaitUntilSweepingCompleted();
+ }
+ }
+
RemoveDeadInvalidatedCode();
SweepSpace(heap()->code_space(), PRECISE);
@@ -3861,15 +3869,6 @@
EvacuateNewSpaceAndCandidates();
- if (how_to_sweep == PARALLEL_CONSERVATIVE) {
- // TODO(hpayer): The starting of the sweeper threads should be after
- // SweepSpace old data space.
- StartSweeperThreads();
- if (FLAG_parallel_sweeping && !FLAG_concurrent_sweeping) {
- WaitUntilSweepingCompleted();
- }
- }
-
// ClearNonLiveTransitions depends on precise sweeping of map space to
// detect whether unmarked map became dead in this collection or in one
// of the previous ones.
--
--
v8-dev mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.