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

Java GCCause enum is out of sync with C++ GCCause enum

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • hotspot
    • None
    • gc
    • b115
    • generic
    • generic

      sun.jvm.hotspot.gc_interface.GCCause enum is out of sync with corresponding C++ enum. The relevant files are:

      hotspot/agent/src/share/classes/sun/jvm/hotspot/gc_interface/GCCause.java
      hotspot/src/share/vm/gc_interface/GCCause.hpp

      There is a comment in the .java file noting these need to be kept in sync, but there is no such comment in the C++ file. Probably there should be.

      Although, given that these *are* currently out of sync, it makes me wonder whether the .java code is actually used at all.

            pliden Per Liden (Inactive)
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: