JDK-8308657 : ReplayInline is not availabe in production build
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-23
  • Updated: 2023-06-01
  • Resolved: 2023-05-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21 b25Fixed
Related Reports
Relates :  
Description
DumpInline option is available in production build but ReplayInline is ifdef-ed out in the product build:

---
#ifndef PRODUCT
  set_parsed_irreducible_loop(false);

  if (directive->ReplayInlineOption) {
    _replay_inline_data = ciReplay::load_inline_data(method(), entry_bci(), ci_env->comp_level());
  }
#endif
---

If DumpInline is enabled in product builds, so should the ReplayInline be.
Comments
Changeset: ce5251af Author: Ashutosh Mehra <asmehra@redhat.com> Committer: Tobias Hartmann <thartmann@openjdk.org> Date: 2023-05-26 14:48:14 +0000 URL: https://git.openjdk.org/jdk/commit/ce5251aff7b3d8fb458061ae209d713b6a5a88c8
26-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14152 Date: 2023-05-25 14:37:54 +0000
25-05-2023

Ah, yes, you are right!
25-05-2023

@Tobias Hartmann Correct me if I am wrong, it looks like DumpInline and ReplayInline are not regular hotspot options but rather compiler directives which do not have "diagnostic" flag associated with them. So to enable ReplayInline in product builds all that needs to be done is to move the call to ciReplay::load_inline_data() out of "#ifndef PRODUCT".
24-05-2023

I think this should be a diagnostic flag (see also JDK-8292561).
23-05-2023

Turning this into an RFE as it is not an actual bug but rather an unfortunate limitation.
23-05-2023