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

RESOLVED FIXED in 4.22

Status

defect
P2
normal
RESOLVED FIXED
4 months ago
19 days ago

People

(Reporter: rbarker, Assigned: rbarker)

Tracking

(Blocks 1 bug)

other
4.22
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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: 2 months 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: 2 months ago2 months 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.