src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/AbstractHeapGraphWriter.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
24 |
24 |
25 package sun.jvm.hotspot.utilities; |
25 package sun.jvm.hotspot.utilities; |
26 |
26 |
27 import java.io.*; |
27 import java.io.*; |
28 import sun.jvm.hotspot.debugger.*; |
28 import sun.jvm.hotspot.debugger.*; |
|
29 import sun.jvm.hotspot.gc.shared.OopStorage; |
29 import sun.jvm.hotspot.memory.*; |
30 import sun.jvm.hotspot.memory.*; |
30 import sun.jvm.hotspot.oops.*; |
31 import sun.jvm.hotspot.oops.*; |
31 import sun.jvm.hotspot.runtime.*; |
32 import sun.jvm.hotspot.runtime.*; |
32 |
33 |
33 /** |
34 /** |
145 throws IOException { |
146 throws IOException { |
146 } |
147 } |
147 |
148 |
148 protected void writeGlobalJNIHandles() throws IOException { |
149 protected void writeGlobalJNIHandles() throws IOException { |
149 JNIHandles handles = VM.getVM().getJNIHandles(); |
150 JNIHandles handles = VM.getVM().getJNIHandles(); |
150 JNIHandleBlock blk = handles.globalHandles(); |
151 OopStorage blk = handles.globalHandles(); |
151 if (blk != null) { |
152 if (blk != null) { |
152 try { |
153 try { |
153 blk.oopsDo(new AddressVisitor() { |
154 blk.oopsDo(new AddressVisitor() { |
154 public void visitAddress(Address handleAddr) { |
155 public void visitAddress(Address handleAddr) { |
155 try { |
156 try { |