JDK-8256254 : Convert vmIntrinsics::ID to enum class
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-11-12
  • Updated: 2024-02-06
  • Resolved: 2020-12-01
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 16
16 b27Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Convert vmIntrinsics::SID to enum class to provide better type safety.

Also, put this enum class in the top level, so it can be forward-declared. I.e.,

enum class vmIntrinsicID : int;

This avoids excessive inclusion of vmIntrinsics.hpp (which currently is included indirectly in almost every hotspot source files).
Comments
Changeset: f48737c7 Author: Ioi Lam <iklam@openjdk.org> Date: 2020-12-01 05:35:29 +0000 URL: https://git.openjdk.java.net/jdk/commit/f48737c7
01-12-2020