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

Unified Diff: test/cctest/heap/utils-inl.h

Issue 1964023002: [heap] Fine-grained JSArrayBuffer tracking (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tests once more Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« src/heap/scavenger.cc ('K') | « test/cctest/heap/test-array-buffer-tracker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/heap/utils-inl.h
diff --git a/test/cctest/heap/utils-inl.h b/test/cctest/heap/utils-inl.h
index 0e943b4197538bccb7bd79c14c0bcd352a512177..e389c1485f9112e2a513cd31756546b0c5c07638 100644
--- a/test/cctest/heap/utils-inl.h
+++ b/test/cctest/heap/utils-inl.h
@@ -142,6 +142,21 @@ static inline void SimulateIncrementalMarking(i::Heap* heap,
CHECK(marking->IsComplete());
}
+static inline void AbandonCurrentlyFreeMemory(PagedSpace* space) {
+ space->EmptyAllocationInfo();
+ PageIterator pit(space);
+ while (pit.has_next()) {
+ pit.next()->MarkNeverAllocateForTesting();
+ }
+}
+
+static inline void GcAndSweep(Heap* heap, AllocationSpace space) {
Hannes Payer (out of office) 2016/05/11 11:12:34 Why don't we make it a CollectGarbage mode that fi
Michael Lippautz 2016/05/11 18:43:26 Good idea! Fine to do it in a follow up? It requir
+ heap->CollectGarbage(space);
+ if (heap->mark_compact_collector()->sweeping_in_progress()) {
+ heap->mark_compact_collector()->EnsureSweepingCompleted();
+ }
+}
+
} // namespace internal
} // namespace v8
« src/heap/scavenger.cc ('K') | « test/cctest/heap/test-array-buffer-tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698