--- old/src/hotspot/share/gc/shared/collectedHeap.hpp 2020-02-21 11:14:38.536168483 +0100 +++ new/src/hotspot/share/gc/shared/collectedHeap.hpp 2020-02-21 11:14:38.332165070 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -27,6 +27,7 @@ #include "gc/shared/gcCause.hpp" #include "gc/shared/gcWhen.hpp" +#include "gc/shared/objectMarker.hpp" #include "gc/shared/verifyOption.hpp" #include "memory/allocation.hpp" #include "runtime/handles.hpp" @@ -383,6 +384,9 @@ virtual GrowableArray memory_managers() = 0; virtual GrowableArray memory_pools() = 0; + // ObjectMarker for JVMTI heap walk + virtual ObjectMarker* object_marker(); + // Iterate over all objects, calling "cl.do_object" on each. virtual void object_iterate(ObjectClosure* cl) = 0;