JDK-8281450 : Remove unnecessary operator new and delete from ObjectMonitor
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-02-08
  • Updated: 2022-04-01
  • Resolved: 2022-02-08
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 JDK 19
17.0.4Fixed 19 b09Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Description
Since JDK-8253064 moved OMs to C-heap, ObjectMonitor derives from CHeapObj. So we don't need to define local versions of new and delete. This also solves the problem that the local operators overrule the NMT category flag set in CHeapObj (atm both are mtInternal, so the problem is theoretical).


Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/327 Date: 2022-04-01 05:13:25 +0000
01-04-2022

Fix Request (17) Applies cleanly. Zero risk. Necessary to get OMs displayed with the correct category in NMT (together with JDK-8291460, already backported).
01-04-2022

JDK-8253064 changed ObjectMonitor to derive from CHeapObj.
08-02-2022

Changeset: 83d67452 Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2022-02-08 14:43:45 +0000 URL: https://git.openjdk.java.net/jdk/commit/83d67452da248db17bc72de80247a670d6813cf5
08-02-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7377 Date: 2022-02-08 08:03:51 +0000
08-02-2022