Checked cast [Was: RFR: 8310332: Fix -Wconversion warnings in MethodData]

coleen.phillimore at oracle.com coleen.phillimore at oracle.com
Wed Jun 21 12:56:01 UTC 2023



On 6/21/23 8:48 AM, Andrew Haley wrote:
> On 6/20/23 14:59, Andrew Haley wrote:
>> On 6/20/23 14:23, Coleen Phillimore wrote:
>>
>>> Thank you Andrew.  I tried to only use narrowing casts where they're 
>>> obviously correct because checked_cast<> comes with its own set of 
>>> problems
>>
>> Do tell. :-)
>
> Never mind, I just looked at the palaver with checked_cast in PR 8309685.
>

palaver? Yes, checked_cast<> was super unhappy with sign extensions, 
which the emit_intXX callers do.


More information about the hotspot-dev mailing list