Current implementation of the statSampler does upcalls to System.getProperty to collect values for a number of properties that are all provided by the VM itself. And since the sampling starts before any user code run then no property can have changed.
I suggest refactoring the code so that no upcalls are made normally - while asserting this invariant holds using assert-only upcalls.
I suggest refactoring the code so that no upcalls are made normally - while asserting this invariant holds using assert-only upcalls.
- relates to
-
JDK-8246020 -XX:+UsePerfData is enabled by default and slows down VM bootstrap by 6%
- Open