--- a/jdk/src/java.base/share/classes/java/lang/invoke/CallSite.java Wed Jun 21 21:50:13 2017 +0200
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/CallSite.java Thu Jun 22 15:53:24 2017 +0200
@@ -276,11 +276,9 @@
if (offset > 0) {
return offset;
}
- try {
- offset = TARGET_OFFSET = UNSAFE.objectFieldOffset(CallSite.class.getDeclaredField("target"));
- assert(offset > 0);
- return offset;
- } catch (Exception ex) { throw newInternalError(ex); }
+ offset = TARGET_OFFSET = UNSAFE.objectFieldOffset(CallSite.class, "target");
+ assert(offset > 0);
+ return offset;
}
/*package-private*/