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

Make Mutex point to rather than embed _name

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: