diff src/share/vm/runtime/arguments.cpp @ 11176:0630959b64e8

disabled CRC32 intrinsics until they work with Graal
author Doug Simon <doug.simon@oracle.com>
date Thu, 01 Aug 2013 00:57:27 +0200
parents 6b0fd0964b87
children e28663a9f5ef
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Thu Aug 01 00:38:28 2013 +0200
+++ b/src/share/vm/runtime/arguments.cpp	Thu Aug 01 00:57:27 2013 +0200
@@ -2219,6 +2219,14 @@
       ScavengeRootsInCode = 1;
   }
 
+  if (UseCRC32Intrinsics) {
+    // For some yet to be determined reason, enabling CRC32 intrinsics causes
+    // a Graal compiled call to 'static java.util.zip.CRC32.update(int crc, int b)'
+    // to crash the VM
+    warning("disabling CRC32 intrinsics because Graal is enabled");
+  }
+  // This prevents the flag being set to true by VM_Version::get_processor_features()
+  FLAG_SET_CMDLINE(bool, UseCRC32Intrinsics, false);
 #endif
 
   // Need to limit the extent of the padding to reasonable size.