8141140: Zero JVM fails to initialize after JDK-8078554
authorsgehwolf
Mon, 02 Nov 2015 17:18:37 +0100
changeset 33750 6f5873dfa67f
parent 33749 6b67a05d2fcc
child 33751 5cc611ec85b3
8141140: Zero JVM fails to initialize after JDK-8078554 Summary: Disable AllocatePrefetchDistance for Zero. Reviewed-by: coleenp
hotspot/src/cpu/zero/vm/vm_version_zero.cpp
--- a/hotspot/src/cpu/zero/vm/vm_version_zero.cpp	Mon Nov 02 16:54:49 2015 +0100
+++ b/hotspot/src/cpu/zero/vm/vm_version_zero.cpp	Mon Nov 02 17:18:37 2015 +0100
@@ -37,4 +37,9 @@
     warning("Unaligned memory access is not available on this CPU");
     FLAG_SET_DEFAULT(UseUnalignedAccesses, false);
   }
+  // Disable prefetching for Zero
+  if (! FLAG_IS_DEFAULT(AllocatePrefetchDistance)) {
+    warning("Prefetching is not available for a Zero VM");
+  }
+  FLAG_SET_DEFAULT(AllocatePrefetchDistance, 0);
 }