RFR: 8226525: HotSpot compile-time error for x86-32

Andrew Haley aph at redhat.com
Mon Jul 1 14:22:09 UTC 2019


This asm statement:

asm__ volatile ("cpuid " : "+a" (idx) : : "ebx", "ecx", "edx", "memory")

... breaks on 32-bit systems because the GCC we use doesn't allow EBX to be
clobbered. Fixed thusly:

http://cr.openjdk.java.net/~aph/8226525/

There is some small overhead, but given that we're trashing the pipeline
anyway the overhead is insignificant.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the hotspot-dev mailing list