Closed Bug 415566 Opened 16 years ago Closed 2 years ago

Use new NSPR atomic macros - general

Categories

(Core :: XPCOM, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: swsnyder, Unassigned)

References

Details

(Keywords: perf)

Attachments

(1 file, 2 obsolete files)

Use the recently-added NSPR atomic Increment/Decrement/Set/Add macros rather
than function calls in existing code.  The goal is to improve general
performance by moving those atomic operations to inline code.

The inline code is much faster than the function calls at the cost of
increasing the code size by about 8 bytes per use.

For platforms that do not support the use of inline atomic operations, the
original function calls are used, making this patch a no-op.
Marked as dependant on bug 415563 because that patch adds MSVC-compatible casting of parameters to atomic intrinsic functions.
Attached patch A less general general patch (obsolete) — Splinter Review
Original patch was a little too general.  Removed Python and JavaScript subsystems.
Attachment #301305 - Attachment is obsolete: true
Assignee: swsnyder → nobody
Product: Mozilla Application Suite → Core
QA Contact: general → general
Status: NEW → ASSIGNED
Assignee: nobody → swsnyder
Attachment #301308 - Attachment is obsolete: true

The bug assignee didn't login in Bugzilla in the last 7 months.
:overholt, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: swsnyder → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(overholt)

Probably at this point we don't want to use NSPR if possible...

Status: NEW → RESOLVED
Closed: 2 years ago
Component: General → XPCOM
Flags: needinfo?(overholt)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: