Review Request: JDK-8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
Mandy Chung
mandy.chung at oracle.com
Mon Oct 22 17:08:40 UTC 2018
Thanks for the review, Tobias.
I will rerun the tests and add hs-tier1-3 jobs before the push.
Mandy
On 10/21/18 11:26 PM, Tobias Hartmann wrote:
> Hi Mandy,
>
> the compiler related changes look good to me.
>
> Please run hs-tier1-3 if you haven't done so yet.
>
> Best regards,
> Tobias
>
>
> On 16.10.18 18:08, Mandy Chung wrote:
>> Webrev:
>> http://cr.openjdk.java.net/~mchung/jdk12/webrevs/8207146/webrev.00/
>>
>> Unsafe::getObject returns a reference to an object. Similarly
>> Unsafe::putObject sets a reference in the given base+offset.
>> This patch proposes to rename Unsafe xxxObject to xxxReference
>> that will make the xxxReference API very clear that these
>> are getters/setters for a reference (instance of object class)
>> and ready for adding xxxValue in the futurefor values.
>> Note that this renaming only applies to jdk.internal.misc.Unsafe
>> but not sun.misc.Unsafe. So no impact to existing libraries
>> that depends on sun.misc.Unsafe in jdk.unsupported module.
>>
>> I ran jdk_core, core_tools, langtools and nashorn tier1-3,
>> hotspot_runtime, hotspot_compiler test groups.
>>
>> thanks
>> Mandy
More information about the core-libs-dev
mailing list