Shenandoah: Deadlock between nmethod_entry_barrier and concurrent code root evacuator

XMLWordPrintable

    • gc
    • b26

      Nightly tests revealed a deadlock after JDK-8256415.

      The new concurrent code root evacuating/updating task sets up EvacOOM scope on the top level. If OOM occurs and nmethod_entry_barrier holds per-nmethod lock, while concurrent code root evacuating/updating task tries to acquire the exact per-nmethod lock, we deadlock.

      The solution is to move EvacOOM scope under per-nmethod lock.

            Assignee:
            Zhengyu Gu
            Reporter:
            Zhengyu Gu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: