Move objectWaiter field to VirtualThread instance

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: hotspot
    • b25

      The objectWaiter field should be moved from the stackChunk instance to the VirtualThread instance. Only the top stackChunk uses this field so we could save some memory by just saving it in the virtual thread instance instead. Also, related methods stackChunkOopDesc::current_pending_monitor/current_waiting_monitor which read this field should be moved to the java_lang_VirtualThread class where they naturally belong, since these are the equivalent of the JavaThread methods but for an unmounted vthread.

            Assignee:
            Patricio Chilano Mateo
            Reporter:
            Patricio Chilano Mateo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: