8254348: Build fails when cds is disabled after JDK-8247536

Reviewed-by: dcubed
This commit is contained in:
Jie Fu 2020-10-10 04:26:37 +00:00
parent e4469d2c8c
commit ec41046c5c

View File

@ -3869,7 +3869,11 @@ JVM_END
JVM_ENTRY(jboolean, JVM_IsDumpingClassList(JNIEnv *env))
JVMWrapper("JVM_IsDumpingClassList");
#if INCLUDE_CDS
return DumpLoadedClassList != NULL && classlist_file != NULL && classlist_file->is_open();
#else
return false;
#endif // INCLUDE_CDS
JVM_END
JVM_ENTRY(void, JVM_LogLambdaFormInvoker(JNIEnv *env, jstring line))