RFR: 8184914: Use MacroAssembler::cmpoop() consistently when comparing heap objects

coleen.phillimore at oracle.com coleen.phillimore at oracle.com
Mon Oct 23 12:30:27 UTC 2017



On 10/23/17 8:21 AM, Roman Kennke wrote:
> Hi Coleen,
>
> thank you. Can you sponsor it? Do you need anything from me?

I do not.  I'll push it now.  I'm curious why you didn't change any of 
the other platforms.  Or do you only need this for x86?
thanks,
Coleen

>
> Thanks, Roman
>
>> I'm calling this as "trivial" and can be pushed now.
>> Thanks,
>> Coleen
>>
>> On 10/17/17 5:05 PM, Roman Kennke wrote:
>>>
>>>>
>>>> This looks reasonable to me.  Maybe the compiler group should 
>>>> review the c1 part.  I changed the mailing list to hotspot-dev.
>>>> I can sponsor this for you.
>>> Thanks, thanks and thanks! ;-)
>>>
>>> Roman
>>>
>>>> Thanks,
>>>> Coleen
>>>>
>>>> On 10/17/17 4:22 PM, Roman Kennke wrote:
>>>>> (Not sure if this is the correct list to ask.. if not, please let 
>>>>> me know and/or redirect me)
>>>>>
>>>>> Currently, cmpoop() is only declared for 32-bit x86, and only used 
>>>>> in 2 places in C1 to compare oops. In other places, oops are 
>>>>> compared using cmpptr(). It would be useful to distinguish normal 
>>>>> pointer comparisons from heap object comparisons, and use cmpoop() 
>>>>> consistently for heap object comparisons. This would remove 
>>>>> clutter in several places where we have #ifdef _LP64 around 
>>>>> comparisons, and would also allow to insert necessary barriers for 
>>>>> GCs that need them (e.g. Shenandoah) later.
>>>>>
>>>>> http://cr.openjdk.java.net/~rkennke/8184914/webrev.00/ 
>>>>> <http://cr.openjdk.java.net/%7Erkennke/8184914/webrev.00/>
>>>>>
>>>>> Tested by running hotspot_gc jtreg tests.
>>>>>
>>>>> Can I get a review please?
>>>>>
>>>>> Thanks, Roman
>>>>>
>>>>>
>>>>
>>>
>>
>



More information about the hotspot-dev mailing list