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

Tighten up assert(_keep_alive >= 0) in CLD::inc_keep_alive

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      The assertion implies the possible transition _keep_alive = 0 -> _keep_alive = 1, which has implication to GC.

      Based on comments in JDK-8162553, it was done this way due to null class loader data having a _keep_alive value of 0.

      However, we now set null class loader data's _keep_alive = 1 in ClassLoaderData's constructor, so above case should not happen. Let's tighten the assertion to avoid confusion.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zgu Zhengyu Gu
              Reporter:
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: