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

Cleanup THREAD/TRAPS/CHECK usage in CDS code

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • None
    • b09

      While examining changes related to the TRAPS macro I noticed that a number of CDS related methods were passed a thread parameter that ended up never being used. Fixing this percolates up the call chain resulting in the ability to remove the parameter from other calls. In some places the thread is needed and has to be manifested via Thread::current(), but these are few and non-critical, and the cleanup of the API (including the benefit to the TRAPS work - see JDK-8252685) makes this worthwhile.

      I also changed `Thread* THREAD` to TRAPS where it relates to exception processing (even if CDS diverts to an abort path).

      Some uses of CHECK were removed that were only passing THREAD and the called code never triggers any exceptions.

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: