--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java 2018-04-06 15:03:09.518483199 +0530 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java 2018-04-06 15:03:09.170483199 +0530 @@ -1,5 +1,5 @@ /* - * 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 @@ -87,6 +87,7 @@ 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 */ @@ -717,6 +718,16 @@ 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());