Possible bug in StackFrameInfo#getByteCodeIndex?
Vitaly Davidovich
vitalyd at gmail.com
Tue Dec 12 14:11:06 UTC 2017
On Tue, Dec 12, 2017 at 8:45 AM, David Lloyd <david.lloyd at redhat.com> wrote:
> On Mon, Dec 11, 2017 at 9:03 PM, mandy chung <mandy.chung at oracle.com>
> wrote:
> > On 12/11/17 6:31 PM, Martin Buchholz wrote:
> >> Java has an unsigned 16 bit type. Could bci be of type "char" ?
> >
> > Yes but I think keeping it short is fine.
>
> Call me strange if you like, but I never liked using char as anything
> other than a UTF-16 character. Anyway one expects that the '0xffff'
> forms should be optimized fairly easily.
>
It's optimized - just changes the width of the load. There's
Short::toUnsignedInt (added in Java 8) if you want code reuse :).
>
>
> --
> - DML
>
More information about the core-libs-dev
mailing list