Generate VMVersion::_features_string lazily

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 19
    • Component/s: hotspot

      JDK-8283199 shows that _features_string initialization affects JVM startup. The point measures show it takes about 50 microseconds after JDK-8283199 with existing sysfs file, and about 100 microseconds with non-existing one. The more bullet-proof way would be to avoid generating the _features_string on startup altogether. It looks like this string is only used during error reporting, and we already read /proc and /sys on those error handling paths.

            Assignee:
            Unassigned
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: