# HG changeset patch # User Tom Rodriguez # Date 1394484084 25200 # Node ID 976f44f08fb317f09b0f4742b667d5b6f8241952 # Parent e09829e6680fea08e7d1f167ff0b7556a03a95c0 currentThread is not exact diff -r e09829e6680f -r 976f44f08fb3 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ThreadSubstitutions.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ThreadSubstitutions.java Mon Mar 10 18:14:24 2014 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ThreadSubstitutions.java Mon Mar 10 13:41:24 2014 -0700 @@ -45,7 +45,7 @@ @MethodSubstitution public static Thread currentThread() { - return PiNode.piCastExactNonNull(CurrentJavaThreadNode.get().readObject(threadObjectOffset(), LocationIdentity.FINAL_LOCATION), Thread.class); + return PiNode.piCastNonNull(CurrentJavaThreadNode.get().readObject(threadObjectOffset(), LocationIdentity.FINAL_LOCATION), Thread.class); } @MethodSubstitution(isStatic = false)