The CDS support code for LatestMethodCache doesn't do much. It just saves the pointer LatestMethodCache::_klass, but this class can be found at runtime by doing something like vmClasses::Finalizer_klass(), which is just a single memory load.
https://github.com/openjdk/jdk/blob/8fc9097b3720314ef7efaf1f3ac31898c8d6ca19/src/hotspot/share/memory/universe.cpp#L1259-L1271
We could save the method lookup in here
https://github.com/openjdk/jdk/blob/8fc9097b3720314ef7efaf1f3ac31898c8d6ca19/src/hotspot/share/memory/universe.cpp#L937
.. by serializing the LatestMethodCache::_method_num, but really there's no meaningful start-up gain here.
Let's just remove the CDS support code for simplicity.
https://github.com/openjdk/jdk/blob/8fc9097b3720314ef7efaf1f3ac31898c8d6ca19/src/hotspot/share/memory/universe.cpp#L1259-L1271
We could save the method lookup in here
https://github.com/openjdk/jdk/blob/8fc9097b3720314ef7efaf1f3ac31898c8d6ca19/src/hotspot/share/memory/universe.cpp#L937
.. by serializing the LatestMethodCache::_method_num, but really there's no meaningful start-up gain here.
Let's just remove the CDS support code for simplicity.