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

Avoid upcalls when initializing the statSampler

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 16
    • hotspot
    • b22

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: