JDK-8337031 : Improvements to CompilationMemoryStatistic
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 22,23,24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-07-23
  • Updated: 2024-08-05
  • Resolved: 2024-07-31
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 24
24 b09Fixed
Related Reports
Relates :  
Description
Couple of minor improvements that can be done to CompilationMemoryStatistic:
1. Display arena usage for all existing types of arenas. Currently Arena tag has these four possible values:

  enum class Tag : uint8_t {
    tag_other = 0,
    tag_ra,   // resource area
    tag_ha,   // handle area
    tag_node  // C2 Node arena
  };

and CompilationMemoryStatistic only displays usage for "tag_ra" and "tag_node" arenas. CompilationMemoryStatistic can be updated to display arena usage for all the tags.
In future we can build up on this to add more tags to categorize other usages of arenas to get a more complete picture during compilation.

2. Collect arena usage only after compilation has started. This would remove the need to separately track the arena usage at the time when the compilation has started.

Comments
Changeset: e63d0165 Branch: master Author: Ashutosh Mehra <asmehra@openjdk.org> Date: 2024-07-31 01:36:37 +0000 URL: https://git.openjdk.org/jdk/commit/e63d01654e0b702b3a8c0c4de97a6bb6893fbd1f
31-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20304 Date: 2024-07-23 21:46:50 +0000
23-07-2024