RFR (S) : 8014362 : Need to expose some processor features via Unsafe interface

David Chase david.r.chase at oracle.com
Wed May 15 07:34:37 PDT 2013


Plan B, pass the information through a property "sun.zip.clmulSupported", to be removed on the JDK side.

http://cr.openjdk.java.net/~drchase/8014362/webrev.01/

The jdk-side patch is not yet up for review, but the code to remove the property looks like this:

diff --git a/src/share/classes/sun/misc/VM.java b/src/share/classes/sun/misc/VM.java
--- a/src/share/classes/sun/misc/VM.java
+++ b/src/share/classes/sun/misc/VM.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -298,6 +298,9 @@
 
         // used by sun.launcher.LauncherHelper
         props.remove("sun.java.launcher.diag");
+
+        // used by java.util.zip.CRC32
+        props.remove("sun.zip.clmulSupported");
     }
 
     // Initialize any miscellenous operating system settings that need to be



More information about the hotspot-compiler-dev mailing list