--- a/jdk/src/share/classes/java/lang/invoke/MutableCallSite.java Mon Jan 27 17:13:16 2014 +0400
+++ b/jdk/src/share/classes/java/lang/invoke/MutableCallSite.java Mon Jan 27 14:29:37 2014 +0100
@@ -274,8 +274,8 @@
public static void syncAll(MutableCallSite[] sites) {
if (sites.length == 0) return;
STORE_BARRIER.lazySet(0);
- for (int i = 0; i < sites.length; i++) {
- sites[i].getClass(); // trigger NPE on first null
+ for (MutableCallSite site : sites) {
+ site.getClass(); // trigger NPE on first null
}
// FIXME: NYI
}