JDK-8310536 : Dead code in LibraryCallKit::scopedValueCache_helper
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19,21
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2023-06-21
  • Updated: 2023-09-29
  • Resolved: 2023-09-29
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
The following code in LibraryCallKit::scopedValueCache_helper is unused:

  ciKlass *objects_klass = ciObjArrayKlass::make(env()->Object_klass());
  const TypeOopPtr *etype = TypeOopPtr::make_from_klass(env()->Object_klass());

  bool xk = etype->klass_is_exact();

https://github.com/openjdk/jdk/blob/886ac1c261a1b7e91e3981e32810c405a0d90329/src/hotspot/share/opto/library_call.cpp#L3455
Comments
Thanks for the clarification Tobias
29-09-2023

Actually, the dead code was removed by JDK-8313248, see: https://github.com/openjdk/jdk/commit/e8a37b90db8dca4dc3653970b2d66d2faf8ef452#diff-1929ace9ae6df116e2fa2a718ed3924d9dae9a2daea454ca9a78177c21477aa3L3590 So this is a duplicate of JDK-8313248.
29-09-2023

The code provided in the description is no longer dead (at least not syntactically) after JDK-8313248.
26-09-2023