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

Make Mutex point to rather than embed _name

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • 17
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: