< prev index next >
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2018, 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.
@@ -85,10 +85,11 @@
private Threads threads;
private ObjectSynchronizer synchronizer;
private JNIHandles handles;
private Interpreter interpreter;
private StubRoutines stubRoutines;
+ private FileMapInfo fileMapInfo;
private Bytes bytes;
/** Flag indicating if JVMTI support is included in the build */
private boolean isJvmtiSupported;
/** Flags indicating whether we are attached to a core, C1, or C2 build */
@@ -715,10 +716,20 @@
vmregImpl = new VMRegImpl();
}
return vmregImpl;
}
+ public FileMapInfo getFileMapInfo() {
+ if (isSharingEnabled() == false) {
+ return null;
+ }
+ if (fileMapInfo == null) {
+ fileMapInfo = new FileMapInfo();
+ }
+ return fileMapInfo;
+ }
+
public Bytes getBytes() {
if (bytes == null) {
bytes = new Bytes(debugger.getMachineDescription());
}
return bytes;
< prev index next >