--- old/src/hotspot/share/gc/shared/objectMarker.hpp 2020-02-21 11:14:10.419697966 +0100 +++ new/src/hotspot/share/gc/shared/objectMarker.hpp 2020-02-21 11:14:10.163693682 +0100 @@ -35,19 +35,22 @@ protected: bool _needs_reset; public: - virtual bool init() = 0; // initialize - virtual void done() = 0; // clean-up + // initialize + virtual bool init() = 0; + // clean-up + virtual void done() = 0; // mark an object if not yet marked. // return true if the oop is marked by this call virtual bool mark(oop o) = 0; - virtual bool visited(oop o) = 0; // check if object has been visited + // check if the object has been + virtual bool marked(oop o) = 0; bool needs_reset() const { return _needs_reset; } void set_needs_reset(bool v) { _needs_reset = v; } }; -// ObjectMarker provides the mark and visited functions +// Default implementation class DefaultObjectMarker : public ObjectMarker { private: // saved headers @@ -60,7 +63,7 @@ void done(); bool mark(oop o); - bool visited(oop o); + bool marked(oop o); }; #endif // SHARE_GC_SHARED_OBJECTMARKER_HPP