RFR: 8196325: GarbageCollectionNotificationInfo has same information for before and after

mandy chung mandy.chung at oracle.com
Wed Apr 18 09:20:41 UTC 2018


Hi Sangheon,


On 4/18/18 12:41 PM, sangheon.kim wrote:
>
> CR: https://bugs.openjdk.java.net/browse/JDK-8196325
> webrev: http://cr.openjdk.java.net/~sangheki/8196325/webrev.0/

This is indeed a regression.  GcInfoBuilder depends on the order of the 
pool name array.

The change looks okay.  I would suggest to use stream in the new 
getAllMemoryPoolNames() like this:

     public static String[] getAllMemoryPoolNames() {
         return Arrays.stream(MemoryImpl.getMemoryPools())
                       .map(MemoryPoolMXBean::getName)
                      .toArray(String[]::new);
     }

> Testing: jdk-tier1,jdk-tier2,jdk-tier3,hs-tier1,hs-tier2,builds-tier1, 
> jdk_management, jdk_jmx
>

These test groups are good.

Mandy

> Thanks,
> Sangheon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20180418/ced19b0b/attachment.html>


More information about the serviceability-dev mailing list