diff --git a/common/bin/compare_exceptions.sh.incl b/common/bin/compare_exceptions.sh.incl
index fb68ede81d4..30ae49c6fc1 100644
--- a/common/bin/compare_exceptions.sh.incl
+++ b/common/bin/compare_exceptions.sh.incl
@@ -185,7 +185,6 @@ if [ "$OPENJDK_TARGET_OS" = "solaris" ] && [ "$OPENJDK_TARGET_CPU" = "x86_64" ];
./lib/amd64/libjava.so
./lib/amd64/libjawt.so
./lib/amd64/libjdwp.so
- ./lib/amd64/libjfr.so
./lib/amd64/libjpeg.so
./lib/amd64/libjsdt.so
./lib/amd64/libjsound.so
@@ -321,7 +320,6 @@ if [ "$OPENJDK_TARGET_OS" = "solaris" ] && [ "$OPENJDK_TARGET_CPU" = "sparcv9" ]
./lib/sparcv9/libjava.so
./lib/sparcv9/libjawt.so
./lib/sparcv9/libjdwp.so
- ./lib/sparcv9/libjfr.so
./lib/sparcv9/libjpeg.so
./lib/sparcv9/libjsdt.so
./lib/sparcv9/libjsound.so
diff --git a/make/CompileJavaModules.gmk b/make/CompileJavaModules.gmk
index 8593b3c784f..e8928e2130d 100644
--- a/make/CompileJavaModules.gmk
+++ b/make/CompileJavaModules.gmk
@@ -368,21 +368,7 @@ jdk.compiler_CLEAN_FILES := $(wildcard \
################################################################################
jdk.hotspot.agent_ADD_JAVAC_FLAGS := $(DISABLE_WARNINGS),-overrides
-jdk.hotspot.agent_COPY := .png sa.js .properties
-
-ifeq ($(MODULE), jdk.hotspot.agent)
- ### Copy gif files
- # Special handling to copy gif files in images/toolbarButtonGraphics \
- # -> classes/toolbarButtonGraphics.
- # These can't be handled by COPY to SetupJavaCompilation since they chop off
- # one directory level.
- $(eval $(call SetupCopyFiles, COPY_SA_IMAGES, \
- SRC := $(HOTSPOT_TOPDIR)/src/jdk.hotspot.agent/share/classes/images, \
- DEST := $(JDK_OUTPUTDIR)/modules/$(MODULE), \
- FILES := $(wildcard $(HOTSPOT_TOPDIR)/src/jdk.hotspot.agent/share/classes/images/*/*/*.gif), \
- ))
- jdk.hotspot.agent: $(COPY_SA_IMAGES)
-endif
+jdk.hotspot.agent_COPY := .gif .png sa.js .properties
################################################################################
diff --git a/modules.xml b/modules.xml
index 29133b98552..7061f52301b 100644
--- a/modules.xml
+++ b/modules.xml
@@ -239,6 +239,7 @@
java.xml
jdk.charsets
jdk.management.resource
+ jdk.jfr
jdk.net
jdk.scripting.nashorn
jdk.vm.ci
@@ -249,6 +250,22 @@
java.management
jdk.jvmstat
+
+ jdk.internal.org.xml.sax
+ jdk.jfr
+
+
+ jdk.internal.org.xml.sax.helpers
+ jdk.jfr
+
+
+ jdk.internal.util.xml
+ jdk.jfr
+
+
+ jdk.internal.util.xml.impl
+ jdk.jfr
+
jdk.internal.org.objectweb.asm
java.instrument
@@ -313,6 +330,7 @@
jdk.vm.ci
jdk.zipfs
java.instrument
+ jdk.jfr
sun.net
@@ -922,6 +940,7 @@
sun.management.spi
jdk.management
jdk.management.cmm
+ jdk.management.jfr
diff --git a/test/lib/sun/hotspot/WhiteBox.java b/test/lib/sun/hotspot/WhiteBox.java
index 6b7863ad938..668d2f00c1a 100644
--- a/test/lib/sun/hotspot/WhiteBox.java
+++ b/test/lib/sun/hotspot/WhiteBox.java
@@ -119,6 +119,28 @@ public class WhiteBox {
return getConstantPool0(aClass);
}
+ private native int getConstantPoolCacheIndexTag0();
+ public int getConstantPoolCacheIndexTag() {
+ return getConstantPoolCacheIndexTag0();
+ }
+
+ private native int getConstantPoolCacheLength0(Class> aClass);
+ public int getConstantPoolCacheLength(Class> aClass) {
+ Objects.requireNonNull(aClass);
+ return getConstantPoolCacheLength0(aClass);
+ }
+
+ private native int remapInstructionOperandFromCPCache0(Class> aClass, int index);
+ public int remapInstructionOperandFromCPCache(Class> aClass, int index) {
+ Objects.requireNonNull(aClass);
+ return remapInstructionOperandFromCPCache0(aClass, index);
+ }
+
+ private native int encodeConstantPoolIndyIndex0(int index);
+ public int encodeConstantPoolIndyIndex(int index) {
+ return encodeConstantPoolIndyIndex0(index);
+ }
+
// JVMTI
private native void addToBootstrapClassLoaderSearch0(String segment);
public void addToBootstrapClassLoaderSearch(String segment){
@@ -185,7 +207,7 @@ public class WhiteBox {
// Compiler
public native int matchesMethod(Executable method, String pattern);
public native int matchesInline(Executable method, String pattern);
- public native boolean shouldPrintAssembly(Executable method);
+ public native boolean shouldPrintAssembly(Executable method, int comp_level);
public native int deoptimizeFrames(boolean makeNotEntrant);
public native void deoptimizeAll();