Closed Bug 416813 Opened 16 years ago Closed 16 years ago

jslock.c does not link on VC7.1 due to use of _InterlockedCompareExchange

Categories

(Core :: JavaScript Engine, defect, P2)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED
mozilla1.9beta4

People

(Reporter: longsonr, Assigned: brendan)

References

Details

Attachments

(1 file, 1 obsolete file)

 
Attached patch patch (obsolete) — Splinter Review
Attachment #302587 - Flags: review?(brendan)
Comment on attachment 302587 [details] [diff] [review]
patch

This is one of those "if it works, it doesn't need review." I can rubber-stamp for sure. Only nit-picks: avoid doubled space, use prevailing style for formatting and parameter names:

extern long __cdecl
_InterlockedCompareExchange(long *volatile dest, long exchange, long comp);

/be
Attachment #302587 - Flags: review?(brendan)
Attachment #302587 - Flags: review+
Attachment #302587 - Flags: approval1.9+
Attached patch with nits pickedSplinter Review
I'm assuming the extern doesn't hurt -- please holler if MSVC disagrees.

/be
Attachment #302587 - Attachment is obsolete: true
Attachment #302867 - Flags: review+
Attachment #302867 - Flags: approval1.9+
Assignee: general → brendan
Priority: -- → P2
Target Milestone: --- → mozilla1.9beta4
Robert, could you please test the revised patch? I'm pretty sure it will work but hate to go in untested. Thanks,

/be
Status: NEW → ASSIGNED
The patch works fine for me. I'll have to leave it to you to to check in; I just discovered I don't have check in privileges for the Javascript partition.
Flags: in-testsuite-
Fixed on trunk:

js/src/jslock.c 3.76

with credit to Robert -- thanks!

/be
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: