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

C2: More efficient TypeFunc creation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 23, 25
    • 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.

            amitkumar Amit Kumar
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: