Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: src/spaces.cc

Issue 12082101: Release evacuation candidates after parallel sweeper threads completed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 allocation_info_.limit = NULL; 2570 allocation_info_.limit = NULL;
2571 } 2571 }
2572 } 2572 }
2573 2573
2574 2574
2575 bool PagedSpace::EnsureSweeperProgress(intptr_t size_in_bytes) { 2575 bool PagedSpace::EnsureSweeperProgress(intptr_t size_in_bytes) {
2576 MarkCompactCollector* collector = heap()->mark_compact_collector(); 2576 MarkCompactCollector* collector = heap()->mark_compact_collector();
2577 if (collector->AreSweeperThreadsActivated()) { 2577 if (collector->AreSweeperThreadsActivated()) {
2578 if (FLAG_concurrent_sweeping) { 2578 if (FLAG_concurrent_sweeping) {
2579 if (collector->StealMemoryFromSweeperThreads(this) < size_in_bytes) { 2579 if (collector->StealMemoryFromSweeperThreads(this) < size_in_bytes) {
2580 collector->WaitUntilSweepingCompleted(); 2580 if (collector->WaitUntilSweepingCompleted()) {
2581 collector->FinalizeSweeping();
2582 }
2581 return true; 2583 return true;
2582 } 2584 }
2583 return false; 2585 return false;
2584 } 2586 }
2585 return true; 2587 return true;
2586 } else { 2588 } else {
2587 return AdvanceSweeper(size_in_bytes); 2589 return AdvanceSweeper(size_in_bytes);
2588 } 2590 }
2589 } 2591 }
2590 2592
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 object->ShortPrint(); 3153 object->ShortPrint();
3152 PrintF("\n"); 3154 PrintF("\n");
3153 } 3155 }
3154 printf(" --------------------------------------\n"); 3156 printf(" --------------------------------------\n");
3155 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3157 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3156 } 3158 }
3157 3159
3158 #endif // DEBUG 3160 #endif // DEBUG
3159 3161
3160 } } // namespace v8::internal 3162 } } // namespace v8::internal
OLDNEW
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698