access restriction: GcInfo is not API (access restriction on required library rt.jar)

Ralf Helbing rhelbing at icubic.de
Wed Feb 25 11:53:31 UTC 2015


For quite a while I used code based on 
http://www.fasterj.com/articles/gcnotifs.shtml to monitor GC operation. 
With 1.7 jvms, this had no issues. Java 8 however, considers GcInfo and 
some related classes "no API" anymore.

I can let Eclipse turn this error into a warning and continue, but maybe 
there is a kosher way to obtain this information.
Or maybe restricting access has a reason that developers should be aware of?



More information about the hotspot-gc-use mailing list