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

Fix comments in access.hpp

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 23
    • None
    • hotspot
    • None
    • b02

    Description

      The comments shown below in `access.hpp` looks wrong.

      ```
      // * atomic_xchg: Atomically swap a new value at an address if previous value matched the compared value.
      // * atomic_xchg_at: Atomically swap a new value at an internal pointer address if previous value matched the compared value.
      ```

      And the following comment is unnecessary after JDK-8230808.

      ```
       The accesses that are allowed through the access.hpp file
      // must be instantiated in access.cpp using the INSTANTIATE_HPP_ACCESS macro.
      ```

      It is good to fix them.

      Attachments

        Issue Links

          Activity

            People

              gli Guoxiong Li
              gli Guoxiong Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: