Closed Bug 492659 Opened 15 years ago Closed 15 years ago

Double unlock in js_SetProtoOrParent

Categories

(Core :: JavaScript Engine, defect, P1)

x86
macOS
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: igor, Assigned: igor)

References

Details

(Keywords: fixed1.9.1, regression)

Attachments

(1 file)

As a result of my changes for the bug #489501 js_SetProtoOrParent from jsobj.cpp now contains: JS_UNLOCK_OBJ(cx, obj); bool ok = !!js_GetMutableScope(cx, obj); JS_UNLOCK_OBJ(cx, obj); instead of intended LOCK/UNLOCK pair. Note that it was really hard to sport this when checking the patch, so all blame goes on myself. This resulted in the mochi test faulires with a debug build, see bug 465131 comment 1.
Nominating for 1.9.1 as this is a regression from a 1.9.1 blocker.
Flags: blocking1.9.1?
Flags: blocking1.9.1? → blocking1.9.1+
Blocks: 465131
Attached patch fix (deleted) — Splinter Review
changing the code to use the intended LOCK/UNLOCK pair
Assignee: general → igor
Attachment #377023 - Flags: review?(mrbkap)
Comment on attachment 377023 [details] [diff] [review] fix IMO patches this simple shouldn't require review.
Attachment #377023 - Flags: review?(mrbkap) → review+
(In reply to comment #3) > IMO patches this simple shouldn't require review. Sorry for the review spam - for me the time it takes to follow the procedure is a very good remainder that should help not do such stupid bugs in the future.
Don't worry about it. I wasn't complaining to you. I know the feeling of trying to work too fast (and wasting a bunch of time as a result)!
Priority: -- → P1
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: