During the investigation around a potential memory leak, initially thought to be related to JFR and OldObjectSamples but eventually reduced to https://bugs.openjdk.org/browse/JDK-8303767, a few minor improvements were made.
There is no need to save class unload typesets if there are no new unresolved entries for the epoch in the priority queue.
There is no need to save class unload typesets if there are no new unresolved entries for the epoch in the priority queue.