Skip to content

Commit

Permalink
8327997: G1: Move G1ScanClosureBase::reference_iteration_mode to subc…
Browse files Browse the repository at this point in the history
…lass

Reviewed-by: gli, tschatzl, sjohanss
  • Loading branch information
albertnetymk committed Mar 14, 2024
1 parent 6f8b0a3 commit 954c50e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/g1/g1OopClosures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ class G1ScanClosureBase : public BasicOopIterateClosure {
template <class T>
inline void handle_non_cset_obj_common(G1HeapRegionAttr const region_attr, T* p, oop const obj);
public:
virtual ReferenceIterationMode reference_iteration_mode() { return DO_FIELDS; }

inline void trim_queue_partially();
};

Expand All @@ -68,6 +66,8 @@ class G1ScanCardClosure : public G1ScanClosureBase {
size_t& heap_roots_found) :
G1ScanClosureBase(g1h, pss), _heap_roots_found(heap_roots_found) { }

virtual ReferenceIterationMode reference_iteration_mode() { return DO_FIELDS; }

template <class T> void do_oop_work(T* p);
virtual void do_oop(narrowOop* p) { do_oop_work(p); }
virtual void do_oop(oop* p) { do_oop_work(p); }
Expand Down

1 comment on commit 954c50e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.