From 81a4e555723e9767fe029521a8b56f9330942b71 Mon Sep 17 00:00:00 2001 From: JianxiaoLuIntel Date: Fri, 24 Jun 2022 11:05:42 +0800 Subject: [PATCH] [heap][cleanup] Remove unused MarkCompactCollector::DrainMarkingWorklist Change-Id: I4f3d03ebad41f32eff5d6570ad4d011586f1bac7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3722486 Commit-Queue: Jianxiao Lu Reviewed-by: Michael Lippautz Cr-Commit-Position: refs/heads/main@{#81344} --- src/heap/mark-compact.cc | 2 -- src/heap/mark-compact.h | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc index a930bf6241..9bd359bd0d 100644 --- a/src/heap/mark-compact.cc +++ b/src/heap/mark-compact.cc @@ -2307,8 +2307,6 @@ void MarkCompactCollector::PerformWrapperTracing() { } } -void MarkCompactCollector::DrainMarkingWorklist() { ProcessMarkingWorklist(0); } - template std::pair MarkCompactCollector::ProcessMarkingWorklist( size_t bytes_to_process) { diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h index 26cc27c9d7..6bc1f500b9 100644 --- a/src/heap/mark-compact.h +++ b/src/heap/mark-compact.h @@ -615,10 +615,6 @@ class MarkCompactCollector final { // otherwise they can die and try to deoptimize the underlying code. void ProcessTopOptimizedFrame(ObjectVisitor* visitor, Isolate* isolate); - // Drains the main thread marking work list. Will mark all pending objects - // if no concurrent threads are running. - void DrainMarkingWorklist(); - // Implements ephemeron semantics: Marks value if key is already reachable. // Returns true if value was actually marked. bool ProcessEphemeron(HeapObject key, HeapObject value);