RFR (XS) JDK-8164482,[REDO] G1 does not implement millis_since_last_gc which is needed by RMI GC

Thomas Schatzl thomas.schatzl at oracle.com
Thu Sep 8 14:18:04 UTC 2016


Hi Joe,

On Thu, 2016-09-08 at 09:54 -0400, Joseph Provino wrote:
> Latest Webrev:  http://cr.openjdk.java.net/~jprovino/8164482/webrev.0
> 1
> JDK-8164482 [REDO] G1 does not implement millis_since_last_gc which
> is needed by RMI GC
> Tests:  JPRT.  Also, I put in a log message for testing.  It calls
> millis_since_last_gc() before each collection.  This will be removed
> before pushing.  The messages printed show millis since last gc
> always >= 0 and the warning message is never printed.
> thanks.
> 

  I think this looks good. Could you also write a small test that calls
sun.misc.GC.maxObjectInspectionAge() (or wherever it has been moved in
jdk9, it should be in sun.rmi.transport now?) to verify that no gc
returns 0 after a GC (and some artificial pause)?

Using whitebox to issue full/young gcs directly should make that fairly
easy.

Thanks,
  Thomas



More information about the hotspot-gc-dev mailing list