ZNMethodData delegates the responsibility to safely free it's memory to ZNMethodTable. I propose we break this dependency by introducing a ZNMethodAllocator class that both classes can use.
This is a step towards decoupling the ZNMethodTable implementation from the ZGC class unloading code.
This is a step towards decoupling the ZNMethodTable implementation from the ZGC class unloading code.