mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-08 11:35:21 +00:00
8385747: Test gc/g1/TestGCLogMessages.java failed: 'Update Derived Pointers' found in stdout
Reviewed-by: dholmes, tschatzl
This commit is contained in:
parent
e5d8e33205
commit
cb502e7993
@ -747,6 +747,14 @@ WB_ENTRY(void, WB_NMTArenaMalloc(JNIEnv* env, jobject o, jlong arena, jlong size
|
||||
a->Amalloc(size_t(size));
|
||||
WB_END
|
||||
|
||||
WB_ENTRY(jboolean, WB_isC2Included(JNIEnv* env))
|
||||
#ifdef COMPILER2
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
WB_END
|
||||
|
||||
static jmethodID reflected_method_to_jmid(JavaThread* thread, JNIEnv* env, jobject method) {
|
||||
assert(method != nullptr, "method should not be null");
|
||||
ThreadToNativeFromVM ttn(thread);
|
||||
@ -2843,6 +2851,7 @@ static JNINativeMethod methods[] = {
|
||||
{CC"NMTNewArena", CC"(J)J", (void*)&WB_NMTNewArena },
|
||||
{CC"NMTFreeArena", CC"(J)V", (void*)&WB_NMTFreeArena },
|
||||
{CC"NMTArenaMalloc", CC"(JJ)V", (void*)&WB_NMTArenaMalloc },
|
||||
{CC"isC2Included", CC"()Z", (void*)&WB_isC2Included },
|
||||
{CC"deoptimizeFrames", CC"(Z)I", (void*)&WB_DeoptimizeFrames },
|
||||
{CC"isFrameDeoptimized", CC"(I)Z", (void*)&WB_IsFrameDeoptimized},
|
||||
{CC"deoptimizeAll", CC"()V", (void*)&WB_DeoptimizeAll },
|
||||
|
||||
@ -86,7 +86,7 @@ public class TestGCLogMessages {
|
||||
}
|
||||
|
||||
public boolean isAvailable() {
|
||||
return Compiler.isC2Enabled();
|
||||
return Compiler.isC2Included();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -336,6 +336,8 @@ public class WhiteBox {
|
||||
|
||||
// Compiler
|
||||
|
||||
public native boolean isC2Included();
|
||||
|
||||
public native int matchesMethod(Executable method, String pattern);
|
||||
public native int matchesInline(Executable method, String pattern);
|
||||
public native boolean shouldPrintAssembly(Executable method, int comp_level);
|
||||
|
||||
@ -34,6 +34,15 @@ public class Compiler {
|
||||
|
||||
private static final WhiteBox WB = WhiteBox.getWhiteBox();
|
||||
|
||||
/**
|
||||
* Check if C2 was included in the VM build
|
||||
*
|
||||
* @return true if C2 was included in the VM build.
|
||||
*/
|
||||
public static boolean isC2Included() {
|
||||
return WB.isC2Included();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if C2 is used as JIT compiler.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user