--- old/test/hotspot/jtreg/gc/testlibrary/PerfCounter.java 2018-08-31 15:03:09.147277393 -0700 +++ new/test/hotspot/jtreg/gc/testlibrary/PerfCounter.java 2018-08-31 15:03:08.879279100 -0700 @@ -41,6 +41,15 @@ } /** + * Returns the value of this performance counter as an Object. + * + * @return The value of this performance counter + */ + public Object value() { + return monitor.getValue(); + } + + /** * Returns the value of this performance counter as a long. * * @return The long value of this performance counter