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

Make Mutex point to rather than embed _name

    XMLWordPrintable

    Details

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

      Description

      ie.
      -// The default length of mutex name was originally chosen to be 64 to avoid
      -// false sharing. Now, PaddedMutex and PaddedMonitor are available for this purpose.
      -// TODO: Check if _name[MUTEX_NAME_LEN] should better get replaced by const char*.
      -static const int MUTEX_NAME_LEN = 64;
      -

      Since HandshakeState embeds Mutex, it adds 512 extra bits to JavaThread.

      I ran performance tests on this and there was no change in performance.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: