RFR: 8243287: Removal of Unsafe::defineAnonymousClass
Brian Goetz
brian.goetz at oracle.com
Tue May 11 13:20:27 UTC 2021
There may be some JDK code that checks for anon classes by comparing the name to see if it contains a slash, especially tests, but which don’t say “anonymous”. Did you do a search for these idioms too, which are now dead tests?
Sent from my iPad
> On May 11, 2021, at 8:59 AM, Harold Seigel <hseigel at openjdk.java.net> wrote:
>
> Please review this large change to remove Unsafe::defineAnonymousClass(). The change removes dAC relevant code and changes a lot of tests. Many of the changed tests need renaming. I hope to do this in a follow up RFE. Some of the tests were modified to use hidden classes, others were deleted because either similar hidden classes tests already exist or they tested dAC specific functionality, such as host classes.
>
> This change was tested with Mach5 tiers 1-2 on Linux, Mac OS, and Windows, and Mach5 tiers 3-7 on Linux x64.
>
> Thanks, Harold
>
> -------------
>
> Commit messages:
> - 8243287: Removal of Unsafe::defineAnonymousClass
>
> Changes: https://git.openjdk.java.net/jdk/pull/3974/files
> Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3974&range=00
> Issue: https://bugs.openjdk.java.net/browse/JDK-8243287
> Stats: 3516 lines in 116 files changed: 69 ins; 3181 del; 266 mod
> Patch: https://git.openjdk.java.net/jdk/pull/3974.diff
> Fetch: git fetch https://git.openjdk.java.net/jdk pull/3974/head:pull/3974
>
> PR: https://git.openjdk.java.net/jdk/pull/3974
More information about the core-libs-dev
mailing list