RFR: 8342380: Implement JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe [v3]

Alan Bateman alanb at openjdk.org
Thu Nov 21 09:26:27 UTC 2024


On Thu, 21 Nov 2024 09:04:47 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> Alan Bateman has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains six commits:
>> 
>>  - Merge branch 'master' into JDK-8342380
>>  - Merge branch 'master' into JDK-8342380
>>  - Update test
>>  - Merge branch 'master' into JDK-8342380
>>  - Update usage/man page
>>  - Initial commit
>
> test/jdk/sun/misc/UnsafeMemoryAccessWarnings.java line 51:
> 
>> 49:     @ValueSource(strings = {
>> 50:             "allocateMemory+freeMemory",
>> 51:             "objectFieldOffset+putLong+getLong"
> 
> Is the removal of `invokeCleaner` method name from these method names intentional?

Yes because testOneWarning is only useful when called with two or more method names.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21762#discussion_r1851660061


More information about the core-libs-dev mailing list