-
Bug
-
Resolution: Unresolved
-
P4
-
19, 20, 21
FloatIntConv and DoubleLongConv usage lead to undefined behaviours due to type aliasing violations. The conformed way is to implement a bit cast using memcpy.
jlong_accessor usage leads to undefined behaviours due to reading from inactive members of unions. While type punning is legal in C, it is not in C++, and may break in the future. Using a struct combined with memcpy would be sufficient here.
jlong_accessor usage leads to undefined behaviours due to reading from inactive members of unions. While type punning is legal in C, it is not in C++, and may break in the future. Using a struct combined with memcpy would be sufficient here.
- relates to
-
JDK-8233144 undefined behavior: signed integer overflow
- Open
-
JDK-8297539 Use PrimitiveConversions::cast for local uses of the int<->float union conversion trick
- Resolved
-
JDK-8299688 Adopt C++14 compatible std::bit_cast introduced in C++20
- Closed
- links to
-
Review openjdk/jdk/6930