-XX:[+|-]EnableExtendedHCR
This option enables or disables the extended Hot Code Replace (HCR) capability in the VM.
Syntax
-XX:[+|-]EnableExtendedHCR
Setting | Effect | Default |
---|---|---|
-XX:+EnableExtendedHCR |
Enable | |
-XX:-EnableExtendedHCR |
Disable | yes |
Explanation
Supporting extended HCR has a maintenance cost and because only few users use this capability, the extended HCR feature is deprecated and will be removed in a future release. From OpenJDK 25 onwards, extended HCR will not be supported. Following that, the extended HCR support will be removed from other earlier OpenJDK versions also.
If the extended HCR support is disabled (-XX:-EnableExtendedHCR
), it might result in a JVMTI failure. In case of such a failure, the following warning message is displayed:
Warning: Extended HCR is disabled, enable with -XX:+EnableExtendedHCR. This feature is deprecated. In the future, the extended HCR capability, and the option to enable it, will be completely removed from all versions.