JDK-8256424 : Move ciSymbol::symbol_name() to ciSymbols::symbol_name()
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-11-16
  • Updated: 2022-06-27
  • Resolved: 2020-12-10
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 17
17 b01Fixed
Related Reports
Relates :  
Description
ciSymbol.hpp use a macro to wrap symbols exported by vmSymbols.hpp. E.g., we have functions like

ciSymbol* ciSymbol::java_lang_System();
ciSymbol* ciSymbol::java_lang_String();

See https://github.com/openjdk/jdk/blob/0357db358133b38d82ad959261bc3175ea442043/src/hotspot/share/ci/ciSymbol.hpp#L101

This causes vmSymbols.hpp and vmIntrinsics.hpp to be recursively included by a large number of CPP files. Since only small number of CPP files actually use these functions, we should move this to a new header file, ciSymbols.hpp, so we can reduce the unnecessary includes.

Comments
Changeset: f5740561 Author: Claes Redestad <redestad@openjdk.org> Date: 2020-12-10 17:22:48 +0000 URL: https://git.openjdk.java.net/jdk/commit/f5740561
10-12-2020