Closed Bug 132089 Opened 23 years ago Closed 23 years ago

NSPR should use the new adaptive pthread mutexes on Linux

Categories

(NSPR :: NSPR, defect, P1)

4.1.2
x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

References

Details

Attachments

(3 files)

In glibc 2.2, there is a new pthread mutex type called PTHREAD_MUTEX_ADAPTIVE_NP, which has better performance than the default mutex type. NSPR should use the new adaptive pthread mutex to implement PRLock.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → 4.2
Attached patch Proposed patchSplinter Review
Fix checked into the tip of NSPR.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
It turns out that pthread_mutexattr_setkind_np is deprecated. We should use the new pthread_mutexattr_settype function, introduced in UNIX98. We need to define _XOPEN_SOURCE as 500 to enable the UNIX98 compilation environment.
I checked in the pthread_mutexattr_settype patch into the NSPR tip.
Blocks: 133659
Blocks: 1350966
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: