Is there any way to tell the Java VM (for this case, HotSpot or Zing) to no longer treat an objects as if there is a finalize method? Really, the whole class, I'm guessing, if at all possible.
I'm having problems with objects that have already had their resources freed but still put pressure on the VM that thinks it needs to call finalize on them.
This is in a library, so there is no way to change the class.
The use case is a library was written to clean up off-heap resources if you forgot or decided to let the GC do it for you. The problem is I get a lot of them hanging around.