< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2000, 2026, 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.

@@ -178,10 +178,11 @@
  
      // Then check if obj.klass() is one of the root objects
      Klass klass = Oop.getKlassForOopHandle(handle);
      if (klass != null) {
        if (klass instanceof TypeArrayKlass) return new TypeArray(handle, this);
+       if (klass instanceof FlatArrayKlass) return new FlatArray(handle, this);
        if (klass instanceof ObjArrayKlass) return new ObjArray(handle, this);
        if (klass instanceof InstanceKlass) return new Instance(handle, this);
      }
  
      if (DEBUG) {
< prev index next >