Skip to content

Commit da6c1c7

Browse files
committedJul 3, 2023
8252530: Fix inconsistencies in hotspot whitebox
Reviewed-by: lucy Backport-of: ab17be2
1 parent 9c97b37 commit da6c1c7

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
 

‎src/hotspot/share/prims/whitebox.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ WB_ENTRY(jboolean, WB_AreOpenArchiveHeapObjectsMapped(JNIEnv* env))
18321832
return MetaspaceShared::open_archive_heap_region_mapped();
18331833
WB_END
18341834

1835-
WB_ENTRY(jboolean, WB_IsCDSIncludedInVmBuild(JNIEnv* env))
1835+
WB_ENTRY(jboolean, WB_IsCDSIncluded(JNIEnv* env))
18361836
#if INCLUDE_CDS
18371837
# ifdef _LP64
18381838
if (!UseCompressedOops || !UseCompressedClassPointers) {
@@ -1851,7 +1851,7 @@ WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
18511851
WB_END
18521852

18531853

1854-
WB_ENTRY(jboolean, WB_IsJFRIncludedInVmBuild(JNIEnv* env))
1854+
WB_ENTRY(jboolean, WB_IsJFRIncluded(JNIEnv* env))
18551855
#if INCLUDE_JFR
18561856
return true;
18571857
#else
@@ -2282,8 +2282,8 @@ static JNINativeMethod methods[] = {
22822282
{CC"areSharedStringsIgnored", CC"()Z", (void*)&WB_AreSharedStringsIgnored },
22832283
{CC"getResolvedReferences", CC"(Ljava/lang/Class;)Ljava/lang/Object;", (void*)&WB_GetResolvedReferences},
22842284
{CC"areOpenArchiveHeapObjectsMapped", CC"()Z", (void*)&WB_AreOpenArchiveHeapObjectsMapped},
2285-
{CC"isCDSIncludedInVmBuild", CC"()Z", (void*)&WB_IsCDSIncludedInVmBuild },
2286-
{CC"isJFRIncludedInVmBuild", CC"()Z", (void*)&WB_IsJFRIncludedInVmBuild },
2285+
{CC"isCDSIncluded", CC"()Z", (void*)&WB_IsCDSIncluded },
2286+
{CC"isJFRIncluded", CC"()Z", (void*)&WB_IsJFRIncluded },
22872287
{CC"isJavaHeapArchiveSupported", CC"()Z", (void*)&WB_IsJavaHeapArchiveSupported },
22882288

22892289
{CC"clearInlineCaches0", CC"(Z)V", (void*)&WB_ClearInlineCaches },

‎test/jtreg-ext/requires/VMProps.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ protected String vmHasSA() {
324324
* support.
325325
*/
326326
protected String vmHasJFR() {
327-
return "" + WB.isJFRIncludedInVmBuild();
327+
return "" + WB.isJFRIncluded();
328328
}
329329

330330
/**
@@ -398,7 +398,7 @@ protected String vmAotEnabled() {
398398
* @return true if CDS is supported by the VM to be tested.
399399
*/
400400
protected String vmCDS() {
401-
return "" + WB.isCDSIncludedInVmBuild();
401+
return "" + WB.isCDSIncluded();
402402
}
403403

404404
/**

‎test/lib/sun/hotspot/WhiteBox.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,8 @@ public Object getMethodOption(Executable method, String name) {
520520
public native boolean isShared(Object o);
521521
public native boolean isSharedClass(Class<?> c);
522522
public native boolean areSharedStringsIgnored();
523-
public native boolean isCDSIncludedInVmBuild();
524-
public native boolean isJFRIncludedInVmBuild();
523+
public native boolean isCDSIncluded();
524+
public native boolean isJFRIncluded();
525525
public native boolean isJavaHeapArchiveSupported();
526526
public native Object getResolvedReferences(Class<?> c);
527527
public native boolean areOpenArchiveHeapObjectsMapped();

‎test/lib/sun/hotspot/code/Compiler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it

0 commit comments

Comments
 (0)