changeset 2350:ad7fd6bb92e0

8150646: Add support for blocking compiles though whitebox API Reviewed-by: kvn, ppunegov, simonis, neliasso Contributed-by: nils.eliasson@oracle.com, volker.simonis@gmail.com
author simonis
date Thu, 03 Mar 2016 16:20:13 +0100
parents da69589a08fc
children fa307bc0ed5a
files test/lib/sun/hotspot/WhiteBox.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/lib/sun/hotspot/WhiteBox.java	Sat Mar 05 20:46:42 2016 -0800
+++ b/test/lib/sun/hotspot/WhiteBox.java	Thu Mar 03 16:20:13 2016 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -455,4 +455,8 @@
   public native boolean isSharedClass(Class<?> c);
   public native boolean isShared(Object o);
   public native boolean areSharedStringsIgnored();
+
+  // Compiler Directive
+  public native int addCompilerDirective(String compDirect);
+  public native void removeCompilerDirective(int count);
 }