Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255231

Avoid upcalls when initializing the statSampler

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • None
    • hotspot
    • b22

      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.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: