Closed Bug 1541216 Opened 1 year ago Closed 1 year ago

PR_SetCurrentThreadName() Fails to set the thread name on Android.

Categories

(NSPR :: NSPR, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rbarker, Assigned: rbarker)

References

Details

Attachments

(1 file)

On android *(void**)(&dynamic_pthread_setname_np) = dlsym(RTLD_DEFAULT, "pthread_setname_np"); fails so the thread name is never set. Investigating, I found that WebRTC uses prctl(PR_SET_NAME, name); and SpiderMonkey just calls pthread_setname_np(pthread_self(), name); directly.

Blocks: 1537951
Assignee: nobody → rbarker
Status: NEW → ASSIGNED
Priority: -- → P2
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 4.22

Backed out for landing (via Lando) on the wrong branch.
https://hg.mozilla.org/projects/nspr/rev/bca82e260d71437fb6f74e1dd2fcdecbffda20d4

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 4.22 → ---
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 4.22
Blocks: 1562330
You need to log in before you can comment on or make changes to this bug.