C2: More efficient TypeFunc creation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 23, 25
    • Component/s: hotspot
    • b07

      I noticed C2 has functions like LockNode::lock_type() that create a new TypeFunc each time, even though the data never changes. It seems like we could compute it once, lazily, and store it in static memory, or maybe even in read-only memory that is computed at build time with constexpr and a parameterized template type.

            Assignee:
            Amit Kumar
            Reporter:
            Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: