--- a/jdk/src/java.base/share/classes/java/lang/Thread.java Thu Jul 02 17:50:25 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/Thread.java Fri Jul 03 07:23:45 2015 +0200
@@ -40,7 +40,7 @@
import sun.reflect.CallerSensitive;
import sun.reflect.Reflection;
import sun.security.util.SecurityConstants;
-
+import jdk.internal.HotSpotIntrinsicCandidate;
/**
* A <i>thread</i> is a thread of execution in a program. The Java
@@ -261,6 +261,7 @@
*
* @return the currently executing thread.
*/
+ @HotSpotIntrinsicCandidate
public static native Thread currentThread();
/**
@@ -966,6 +967,7 @@
* is reset or not based on the value of ClearInterrupted that is
* passed.
*/
+ @HotSpotIntrinsicCandidate
private native boolean isInterrupted(boolean ClearInterrupted);
/**