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

Christian Thalinger christian.thalinger at oracle.com
Wed May 15 13:31:17 PDT 2013


On May 15, 2013, at 7:34 AM, David Chase <david.r.chase at oracle.com> wrote:

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

Shouldn't we use some kind of HotSpot related namespace and remove all properties in that namespace?  That would make future additions easier.  Maybe:  com.oracle.jvm.hotspot.*

-- Chris

> 
> 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