Request for reviews (S): 6987555: JSR 292 unboxing to a boolean value fails on big-endian SPARC

John Rose john.r.rose at Oracle.Com
Tue Sep 28 20:33:53 PDT 2010

On Sep 28, 2010, at 8:16 PM, Tom Rodriguez wrote:

> Does the value have a purpose beyond driving this piece of logic?  Maybe it's need to be platform dependent.  That seems like a cleaner fix to me.

Yes, that would be cleaner.  Here's a curveball, though:  I want to move that adapter-initializing logic into Java code.  In there, it will be harder to manage platform-specific code.

>> There is no short->byte, since an incoming short on the stack is always represented as an int slot.
> I meant unboxing a Short and turning it into a byte.  Is something like that allowed or is it done in two stages using unboxi then i2i?

Two stages.

-- John

More information about the hotspot-compiler-dev mailing list