The public relocInfo constructor uses assignment of (*this) from a new relocInfo created by one of the private constructors. This appears to be a clumsy mimicking of constructor delegation But with C++11 we now have real constructor delegation and can avoid contortions while not requiring code duplication or introducing a shared "initialization" function for the parts common among the various constructors.
- relates to
-
JDK-8253302 hotspot build warning in src/hotspot/share/runtime/sharedRuntime.cpp with clang version 12.0.0
- Closed
-
JDK-8160404 RelocationHolder constructors have bugs
- Resolved