Today, the ZNMethodDataOops use a custom deferred freeing mechanism to handle the case where C1 performs code patching that generates more immediate oops, while the GC is concurrently walking the code cache for class unloading.
It would be nice to use GlobalCounter instead, which is a more standardized way of doing it.
It would be nice to use GlobalCounter instead, which is a more standardized way of doing it.