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

LINUX: need a different way to detect floating stack pthread lib

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.0
    • hotspot
    • None
    • generic
    • linux

      As the fix for 4415774, we need to detect if glibc is running in floating
      stack mode (i686) or if it's running in old 2M fixed-stack mode (i386).
      The detection is done by checking if glibc has the new API pthread_getattr_np().

      However, many recent Linux distributions with latest glibc release are
      still running in fixed stack mode, since pthread_getattr_np() is present
      in glibc since 2.2.3, this can cause VM to believe incorrectly it is running
      on floating stack. It may have some performance impact (because
      pthread_getspecific implementation is slow on fixed stack pthread) as
      well as making some of the logic look confusing.

            hhuangsunw Hui Huang (Inactive)
            hhuangsunw Hui Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: