On Fri, 30 Apr 2021 22:39:46 GMT, Mandy Chung <[email protected]> wrote:

> Replace the use of reflection with a direct method call to a 
> platform-specific implementation class where `SystemMetrics::instance` 
> returns `CgroupMetrics.getInstance()` on linux and returns null on other 
> platforms.

This pull request has now been integrated.

Changeset: 3544a9d0
Author:    Mandy Chung <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/3544a9d0e4a071ad9c82aa17ab113e0101b4020b
Stats:     103 lines in 4 files changed: 93 ins; 8 del; 2 mod

8266391: Replace use of reflection in jdk.internal.platform.Metrics

Reviewed-by: redestad

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

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

Reply via email to