C2: Optimize scoped values

XMLWordPrintable

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

      We use a per-thread cache to hold the values of the most-recently-used scoped values. This avoids repeated lookups at runtime. However, we could generate better code if C2 took advantage of the fact that scoped-value bindings are immutable. This would make the performance of scoped values more predictable and we may be able to reduce the memory usage of the scoped-value cache.

            Assignee:
            Roland Westrelin
            Reporter:
            Andrew Haley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: