RFR: 8145096: Undefined behaviour in HotSpot
aph at redhat.com
Fri Dec 11 23:19:53 UTC 2015
On 11/12/15 19:33, Kim Barrett wrote:
> pps. The union trick is undefined behavior because it reads a union
> member other than the last one written.
Hmm. The members are certainly in the same memory locations, and I
suspect that the language in 3.10 (Lvalues and rvalues) about signed
and unsigned types allows it too. But never mind: we only need one
way to do this, and if we can agree that it works we're done.
More information about the hotspot-dev