RFR: JDK-8281450: Remove unnecessary operator new and delete from ObjectMonitor

David Holmes dholmes at openjdk.java.net
Tue Feb 8 13:01:05 UTC 2022


On Tue, 8 Feb 2022 08:03:51 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Trivial (?) patch to remove ObjectMonitor operator new and delete. Since ObjectMonitor derives from CHeapObj, we don't need those. 
> 
> This also solves the problem that the local new overrules the NMT category flag set in CHeapObj (both currently are mtInternal, so the problem is theoretical).

Hi Thomas,

Initially I was a bit confused as I found the ADLC definition of CHeapObj :) But now I see this is a trivial cleanup.

Thanks,
David

-------------

Marked as reviewed by dholmes (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/7377


More information about the hotspot-runtime-dev mailing list