--- a/src/hotspot/share/prims/whitebox.cpp Fri Feb 16 12:18:09 2018 +0100
+++ b/src/hotspot/share/prims/whitebox.cpp Thu Feb 15 11:39:42 2018 -0800
@@ -1740,6 +1740,10 @@
#endif // INCLUDE_CDS
WB_END
+WB_ENTRY(jboolean, WB_IsJavaHeapArchiveSupported(JNIEnv* env))
+ return MetaspaceShared::is_heap_object_archiving_allowed();
+WB_END
+
#if INCLUDE_CDS
@@ -2116,6 +2120,8 @@
{CC"getResolvedReferences", CC"(Ljava/lang/Class;)Ljava/lang/Object;", (void*)&WB_GetResolvedReferences},
{CC"areOpenArchiveHeapObjectsMapped", CC"()Z", (void*)&WB_AreOpenArchiveHeapObjectsMapped},
{CC"isCDSIncludedInVmBuild", CC"()Z", (void*)&WB_IsCDSIncludedInVmBuild },
+ {CC"isJavaHeapArchiveSupported", CC"()Z", (void*)&WB_IsJavaHeapArchiveSupported },
+
{CC"clearInlineCaches0", CC"(Z)V", (void*)&WB_ClearInlineCaches },
{CC"handshakeWalkStack", CC"(Ljava/lang/Thread;Z)I", (void*)&WB_HandshakeWalkStack },
{CC"addCompilerDirective", CC"(Ljava/lang/String;)I",