Skip to content

Commit 9b99bc8

Browse files
fandreuzSendaoYan
authored andcommitted
8369440: Remove RootResolverMarkScope and RootSetClosureMarkScope
Reviewed-by: ayang
1 parent 2dfe458 commit 9b99bc8

File tree

6 files changed

+0
-85
lines changed

6 files changed

+0
-85
lines changed

src/hotspot/share/gc/serial/defNewGeneration.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#include "gc/shared/scavengableNMethods.hpp"
4646
#include "gc/shared/space.hpp"
4747
#include "gc/shared/spaceDecorator.hpp"
48-
#include "gc/shared/strongRootsScope.hpp"
4948
#include "gc/shared/weakProcessor.hpp"
5049
#include "logging/log.hpp"
5150
#include "memory/iterator.inline.hpp"

src/hotspot/share/gc/serial/serialHeap.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
#include "gc/shared/oopStorageSet.inline.hpp"
5757
#include "gc/shared/scavengableNMethods.hpp"
5858
#include "gc/shared/space.hpp"
59-
#include "gc/shared/strongRootsScope.hpp"
6059
#include "gc/shared/suspendibleThreadSet.hpp"
6160
#include "gc/shared/weakProcessor.hpp"
6261
#include "gc/shared/workerThread.hpp"

src/hotspot/share/gc/shared/strongRootsScope.cpp

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/hotspot/share/gc/shared/strongRootsScope.hpp

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/hotspot/share/jfr/leakprofiler/chains/rootSetClosure.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "classfile/stringTable.hpp"
2727
#include "gc/shared/oopStorage.inline.hpp"
2828
#include "gc/shared/oopStorageSet.inline.hpp"
29-
#include "gc/shared/strongRootsScope.hpp"
3029
#include "jfr/leakprofiler/chains/bfsClosure.hpp"
3130
#include "jfr/leakprofiler/chains/dfsClosure.hpp"
3231
#include "jfr/leakprofiler/chains/edgeQueue.hpp"
@@ -61,8 +60,6 @@ void RootSetClosure<Delegate>::do_oop(narrowOop* ref) {
6160
}
6261
}
6362

64-
class RootSetClosureMarkScope : public MarkScope {};
65-
6663
template <typename Delegate>
6764
class RawRootClosure : public OopClosure {
6865
Delegate* _delegate;
@@ -89,8 +86,6 @@ class RawRootClosure : public OopClosure {
8986

9087
template <typename Delegate>
9188
void RootSetClosure<Delegate>::process() {
92-
RootSetClosureMarkScope mark_scope;
93-
9489
CLDToOopClosure cldt_closure(this, ClassLoaderData::_claim_none);
9590
ClassLoaderDataGraph::always_strong_cld_do(&cldt_closure);
9691

src/hotspot/share/jfr/leakprofiler/checkpoint/rootResolver.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "classfile/stringTable.hpp"
2727
#include "gc/shared/oopStorage.inline.hpp"
2828
#include "gc/shared/oopStorageSet.hpp"
29-
#include "gc/shared/strongRootsScope.hpp"
3029
#include "jfr/leakprofiler/checkpoint/rootResolver.hpp"
3130
#include "jfr/leakprofiler/utilities/unifiedOopRef.inline.hpp"
3231
#include "jfr/utilities/jfrThreadIterator.hpp"
@@ -325,12 +324,7 @@ bool ReferenceToThreadRootClosure::do_thread_roots(JavaThread* jt) {
325324
return false;
326325
}
327326

328-
class RootResolverMarkScope : public MarkScope {
329-
};
330-
331327
void RootResolver::resolve(RootCallback& callback) {
332-
RootResolverMarkScope mark_scope;
333-
334328
// thread local roots
335329
ReferenceToThreadRootClosure rtrc(callback);
336330
if (rtrc.complete()) {

0 commit comments

Comments
 (0)