Experimental patches for unsafe cleanup Re: The s.m.Unsafe representation in hotspot and method registration (original) (raw)
Paul Sandoz paul.sandoz at oracle.com
Tue Mar 25 17:05:04 UTC 2014
- Previous message: Experimental patches for unsafe cleanup Re: The s.m.Unsafe representation in hotspot and method registration
- Next message: [9] RFR (S): 8038261: JSR292: cache and reuse typed array accessors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mar 25, 2014, at 2:37 PM, Staffan Larsen <staffan.larsen at oracle.com> wrote:
(Adding hotspot-runtime-dev since some changes are in hotspot code).
On 25 mar 2014, at 14:20, Paul Sandoz <paul.sandoz at oracle.com> wrote:
On Mar 25, 2014, at 9:34 AM, Paul Sandoz <Paul.Sandoz at oracle.com> wrote:
On Mar 24, 2014, at 7:49 PM, Staffan Larsen <staffan.larsen at oracle.com> wrote: We have abandoned the HSX model. From JDK 8 one version of Hotspot will be tied to one version of the JDK. This looks like old code that has not been cleaned up.
Thanks, yes, looks like we can clean this up and also remove the deprecated methods at the same time. Here are some preliminary webrevs to clean up unsafe and also remove all old, deprecated and monitor-related methods: http://cr.openjdk.java.net/~psandoz/jdk9/jdk-unsafe-cleanup/webrev/jdk.patch http://cr.openjdk.java.net/~psandoz/jdk9/hotspot-unsafe-cleanup/webrev/ Passes all tests i have thrown at it locally. There is some additional clean up that could be done to remove prefetch read/write intrinsics hooked up to older versions of Unsafe: _dointrinsic(prefetchRead, sunmiscUnsafe, prefetchReadname, prefetchsignature, FRN) _ _doname( prefetchReadname, "prefetchRead") _ _dointrinsic(prefetchWrite, sunmiscUnsafe, prefetchWritename, prefetchsignature, FRN) _ _doname( prefetchWritename, "prefetchWrite") _ _dointrinsic(prefetchReadStatic, sunmiscUnsafe, prefetchReadStaticname, prefetchsignature, FSN) _ _doname( prefetchReadStaticname, "prefetchReadStatic") _ _dointrinsic(prefetchWriteStatic, sunmiscUnsafe, prefetchWriteStaticname, prefetchsignature, FSN) _ _doname( prefetchWriteStaticname, "prefetchWriteStatic") _ That will also require updates in various other files. I presume these prefetch methods are never used throughout the runtime?
Here is that removal:
http://cr.openjdk.java.net/~psandoz/jdk9/hotspot-unsafe-prefetch-cleanup/webrev/
Again all tests i threw at it passed.
Paul.
- Previous message: Experimental patches for unsafe cleanup Re: The s.m.Unsafe representation in hotspot and method registration
- Next message: [9] RFR (S): 8038261: JSR292: cache and reuse typed array accessors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]