Revision: 18710
Author: [email protected]
Date: Tue Jan 21 12:48:10 2014 UTC
Log: Rename MarkCompactCollector::StealMemoryFromSweeperThreads to
RefillFreeLists
The swept memory is now collected on the foreground thread, so it's not
stealing the memory from the threads anymore
BUG=v8:3104
[email protected]
LOG=n
Review URL: https://codereview.chromium.org/143463005
http://code.google.com/p/v8/source/detail?r=18710
Modified:
/branches/bleeding_edge/src/mark-compact.cc
/branches/bleeding_edge/src/mark-compact.h
/branches/bleeding_edge/src/spaces.cc
=======================================
--- /branches/bleeding_edge/src/mark-compact.cc Tue Jan 21 11:48:51 2014 UTC
+++ /branches/bleeding_edge/src/mark-compact.cc Tue Jan 21 12:48:10 2014 UTC
@@ -583,15 +583,14 @@
isolate()->sweeper_threads()[i]->WaitForSweeperThread();
}
sweeping_pending_ = false;
- StealMemoryFromSweeperThreads(heap()->paged_space(OLD_DATA_SPACE));
- StealMemoryFromSweeperThreads(heap()->paged_space(OLD_POINTER_SPACE));
+ RefillFreeLists(heap()->paged_space(OLD_DATA_SPACE));
+ RefillFreeLists(heap()->paged_space(OLD_POINTER_SPACE));
heap()->paged_space(OLD_DATA_SPACE)->ResetUnsweptFreeBytes();
heap()->paged_space(OLD_POINTER_SPACE)->ResetUnsweptFreeBytes();
}
-intptr_t MarkCompactCollector::
- StealMemoryFromSweeperThreads(PagedSpace* space) {
+intptr_t MarkCompactCollector::RefillFreeLists(PagedSpace* space) {
FreeList* free_list = space == heap()->old_pointer_space()
? free_list_old_pointer_space_.get()
: free_list_old_data_space_.get();
=======================================
--- /branches/bleeding_edge/src/mark-compact.h Tue Jan 21 11:48:51 2014 UTC
+++ /branches/bleeding_edge/src/mark-compact.h Tue Jan 21 12:48:10 2014 UTC
@@ -721,7 +721,7 @@
void WaitUntilSweepingCompleted();
- intptr_t StealMemoryFromSweeperThreads(PagedSpace* space);
+ intptr_t RefillFreeLists(PagedSpace* space);
bool AreSweeperThreadsActivated();
=======================================
--- /branches/bleeding_edge/src/spaces.cc Tue Jan 7 10:46:39 2014 UTC
+++ /branches/bleeding_edge/src/spaces.cc Tue Jan 21 12:48:10 2014 UTC
@@ -2612,7 +2612,7 @@
MarkCompactCollector* collector = heap()->mark_compact_collector();
if (collector->AreSweeperThreadsActivated()) {
if (collector->IsConcurrentSweepingInProgress()) {
- if (collector->StealMemoryFromSweeperThreads(this) < size_in_bytes) {
+ if (collector->RefillFreeLists(this) < size_in_bytes) {
if (!collector->sequential_sweeping()) {
collector->WaitUntilSweepingCompleted();
return true;
--
--
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.