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

Move objectWaiter field to VirtualThread instance

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: