eolivelli commented on a change in pull request #9580:
URL: https://github.com/apache/pulsar/pull/9580#discussion_r575454082
##########
File path:
pulsar-common/src/main/java/org/apache/pulsar/common/stats/JvmDefaultGCMetricsLogger.java
##########
@@ -36,19 +40,46 @@
private volatile long accumulatedFullGcTime = 0;
private volatile long currentFullGcTime = 0;
- @SuppressWarnings("restriction")
- private static sun.management.HotspotRuntimeMBean runtime;
+ private static Object /*sun.management.HotspotRuntimeMBean*/ runtime;
+ private static Method getTotalSafepointTimeHandle;
Review comment:
I tried with method hanldes but I was not able to access the method.
So I did fall back to old reflection style
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]