JDK-8324341 : Remove redundant preprocessor #if's checks
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-01-22
  • Updated: 2024-06-03
  • Resolved: 2024-05-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.
JDK 23
23 b25Fixed
Related Reports
Relates :  
Description
There are a few redundant #if/#ifdefs throughout the code base. This RFE is to find those and remove them.

For example in deoptimization.cpp file, JDK-8312579 changes added Vector API support to Graal and changed #ifdef COMPILER2 to #if COMPILER2_OR_JVMCI. But in some places the code is already under such #if. 
Comments
Changeset: 6d718ae5 Author: Cesar Soares Lucas <cslucas@openjdk.org> Committer: Albert Mingkun Yang <ayang@openjdk.org> Date: 2024-05-29 09:36:13 +0000 URL: https://git.openjdk.org/jdk/commit/6d718ae51aeb7143ebfa561501b87fe1ba48039a
29-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19378 Date: 2024-05-24 02:01:36 +0000
24-05-2024