Closed Bug 79733 Opened 24 years ago Closed 24 years ago

pruthr.c using incorrect internal NSPR calls

Categories

(NSPR :: NSPR, defect, P1)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mkaply, Assigned: larryh)

References

Details

Attachments

(1 file)

pruthr.c is using _MD_NEW_LOCK and _MD_FREE_LOCK when it should be using _PR_MD_NEW_LOCK and _PR_MD_FREE_LOCK. This prevents platforms from implementing these APIs as functions - they have to implement them as #defines in a header. Diff attached.
We should fix this, but using the _MD_ calls does not prevent you from implementing these APIs as functions. You can take a look at _MD_GET_INTERVAL and _MD_CREATE_FILE_MAP in mozilla/nsprpub/pr/include/md/_os2.h as examples.
Status: NEW → ASSIGNED
I understand what you are saying but it does not link. I get unresolved externals for the _MD_ calls without this change. You can see our changes in 81666.
Blocks: 81666
I need to up the severity on this. We have new semaphore code that we want to drop that improves OS/2 performance big time. It relies on this bug and 81666.
Severity: normal → major
I reviewed the attached patch. It is good. Larry, could you please check in the patch on the trunk and NSPRPUB_CLIENT_BRANCH of NSPR today?
Assignee: wtc → larryh
Status: ASSIGNED → NEW
Priority: -- → P1
Target Milestone: --- → 4.2
Status: NEW → ASSIGNED
Checked in fix on the tip of tree.
parts reviewed by wtc, larryh. Checked in on NSPRPUB_CLIENT_BRANCH.
marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Code change went in.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: