Skip to content

Commit e347904

Browse files
committed
cvm/overlay: (2/2) Fix NMethod test infra
Match makeMethodNotCompilable and NMethod whitebox API
1 parent 3b34465 commit e347904

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

cvm.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ define overlay_single
415415
endef
416416

417417
ifeq ($(CVM_ARCH),x86_64)
418-
JT_OPTS_EXCLUDE=-exclude:$(JDK8_SRCROOT)/jdk/test/ProblemList.txt -exclude:$(CVM8_SRCROOT)/conf/jtreg_jdk8_excludes.list -exclude:$(CVM8_SRCROOT)/conf/jtreg_hotspot8_excludes_x64.list
418+
JT_OPTS_EXCLUDE=-exclude:$(JDK8_SRCROOT)/jdk/test/ProblemList.txt -exclude:$(CVM8_SRCROOT)/conf/jtreg_jdk8_excludes.list
419419
else ifeq ($(CVM_ARCH),aarch64)
420-
JT_OPTS_EXCLUDE=-exclude:$(JDK8_SRCROOT)/jdk/test/ProblemList.txt -exclude:$(CVM8_SRCROOT)/conf/jtreg_jdk8_excludes.list -exclude:$(CVM8_SRCROOT)/conf/jtreg_hotspot8_excludes_aarch64.list
420+
JT_OPTS_EXCLUDE=-exclude:$(JDK8_SRCROOT)/jdk/test/ProblemList.txt -exclude:$(CVM8_SRCROOT)/conf/jtreg_jdk8_excludes.list
421421
else
422422
ARCH_ERROR := 1
423423
endif
@@ -439,6 +439,7 @@ endif
439439
$(call overlay_single,jdk8u,hotspot/test/compiler/7196199/Test7196199.java, $(JDK8_SRCROOT))
440440
$(call overlay_single,jdk8u,hotspot/test/compiler/8004741/Test8004741.java, $(JDK8_SRCROOT))
441441
$(call overlay_single,jdk8u,hotspot/test/compiler/stable/StableConfiguration.java, $(JDK8_SRCROOT))
442+
$(call overlay_single,jdk8u,hotspot/test/testlibrary/whitebox/sun/hotspot/code/NMethod.java, $(JDK8_SRCROOT))
442443

443444
-overlay-jtreg:
444445
$(call overlay_single,jdk8u,test/jtreg-ext/requires/VMProps.java, $(JDK8_SRCROOT))

src/hotspot/share/prims/whitebox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2471,7 +2471,7 @@ static JNINativeMethod methods[] = {
24712471
{CC"isIntrinsicAvailable0",
24722472
CC"(Ljava/lang/reflect/Executable;Ljava/lang/reflect/Executable;I)Z",
24732473
(void*)&WB_IsIntrinsicAvailable},
2474-
{CC"makeMethodNotCompilable0",
2474+
{CC"makeMethodNotCompilable",
24752475
CC"(Ljava/lang/reflect/Executable;IZ)V", (void*)&WB_MakeMethodNotCompilable},
24762476
#if HOTSPOT_TARGET_CLASSLIB == 8
24772477
{CC"testSetDontInlineMethod",

0 commit comments

Comments
 (0)