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

C2: Optimize scoped values

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • 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.

            roland Roland Westrelin
            aph Andrew Haley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: