Re: RFR: 8238665: Add JFR event for direct memory statistics

Denghui Dong denghui.ddh at
Tue Mar 31 09:06:54 UTC 2020


@Erik Could you review it? 

Denghui Dong

From:董登辉(卓昂) <denghui.ddh at>
Send Time:2020年3月19日(星期四) 16:35
To:Alan Bateman <Alan.Bateman at>; Erik Gahlin <erik.gahlin at>
Cc:hotspot-jfr-dev <hotspot-jfr-dev at>; core-libs-dev <core-libs-dev at>
Subject:Re: RFR: 8238665: Add JFR event for direct memory statistics


On Mar 18, 2020, at 11:46 PM, Alan Bateman <Alan.Bateman at> wrote:

On 13/03/2020 14:54, Denghui Dong wrote:
Good suggestion, moved.
 This looks much better.

 What would you think about renaming the JFR event to "DirectBufferStatistics"? The concern I have with the proposed naming is that it will be really awkward to extend it to support mapped buffers.

It’s ok for me.

 The implementation changes look okay, hopefully Erik will skim over them. One small suggestion for for ManagementFactoryHelper is that you can stream().collect(Collectors.toList()) to create the value for bufferPools. You could even change it to volatile so that getBufferMXBeans isn't a synchronized method.

Make sense, updated.


@Erik, could you help review it?


Denghui Dong

More information about the core-libs-dev mailing list