Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8329150

Remove CDS support for LatestMethodCache

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • hotspot
    • b17

      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.

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: