< prev index next >

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

Print this page
rev 58079 : 8238633: JVMTI heap walk should consult GC for marking oops

@@ -1,7 +1,7 @@
 /*
- * 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -329,10 +329,13 @@
 
 MemoryUsage CollectedHeap::memory_usage() {
   return MemoryUsage(InitialHeapSize, used(), capacity(), max_capacity());
 }
 
+ObjectMarker* CollectedHeap::object_marker() {
+  return new DefaultObjectMarker();
+}
 
 #ifndef PRODUCT
 void CollectedHeap::check_for_non_bad_heap_word_value(HeapWord* addr, size_t size) {
   if (CheckMemoryInitialization && ZapUnusedHeapArea) {
     // please note mismatch between size (in 32/64 bit words), and ju_addr that always point to a 32 bit word
< prev index next >