-
Bug
-
Resolution: Fixed
-
P4
-
13
-
b21
inline uint32_t Atomic::CmpxchgByteUsingInt::set_byte_in_int(uint32_t n,
uint8_t b,
uint32_t idx) {
int bitsIdx = BitsPerByte * idx;
return (n & ~(0xff << bitsIdx)) | (b << bitsIdx); // <--- at "b << bitsIdx"
}
I think when "b << bitsIdx" is done, "b" is promoted to int first. Probably casting to uint32_t first is safer.
- relates to
-
JDK-8231612 100% cpu on arm32 in Service Thread
-
- Closed
-