Details
Description
The nmethod sweeper is not allowed to unregister an nmethod while the GC is iterating over the ZNMethodTable. The current code spins in a loop releasing the lock and sleeping for 1 ms. I propose that we replace this with wait and notify.