From 0818ea7b6431b053c53ca428367a60a6c73582b0 Mon Sep 17 00:00:00 2001
From: Jon Masamitsu <jmasa@openjdk.org>
Date: Fri, 10 Jun 2016 11:40:02 -0700
Subject: [PATCH] 8026752: Cancel MetaspaceGC request for a CMS concurrent
 collection after GC

Reviewed-by: sjohanss, sangheki
---
 test/lib/sun/hotspot/WhiteBox.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/lib/sun/hotspot/WhiteBox.java b/test/lib/sun/hotspot/WhiteBox.java
index 690b07af0bd..7fd742b79c1 100644
--- a/test/lib/sun/hotspot/WhiteBox.java
+++ b/test/lib/sun/hotspot/WhiteBox.java
@@ -376,6 +376,7 @@ public class WhiteBox {
   public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
   public native long incMetaspaceCapacityUntilGC(long increment);
   public native long metaspaceCapacityUntilGC();
+  public native boolean metaspaceShouldConcurrentCollect();
 
   // Force Young GC
   public native void youngGC();