Closed Bug 473721 Opened 16 years ago Closed 16 years ago

operationLimit assertion failure on OS X

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sayrer, Assigned: igor)

References

Details

(Keywords: fixed1.9.1)

Attachments

(1 file)

Assertion failure: operationLimit <= JS_MAX_OPERATION_LIMIT, at /builds/moz2_slave/mozilla-central-macosx-debug/build/js/src/jsapi.cpp:5272

I hit this when I merged to m-c on the leak test box.
Flags: blocking1.9.1+
js_InitOperationLimit sets this to JS_MAX_OPERATION_LIMIT + 1, which makes this look wrong:

> JS_SetOperationLimit(cx, JS_GetOperationLimit(origCx));
I wallpapered this for now:

http://hg.mozilla.org/mozilla-central/rev/562d8990f33a
This is a regression from the bug 472702.
Blocks: 472702
Attached patch fix v1Splinter Review
My patch for the bug 472702 initializes JSContext.operationLimit to JS_MAX_OPERATION_LIMIT + 1 to detect if the embedding was ever set operation limit for JSContext instance explicitly. This is used by jstracer.cpp not to generate the code to update JSContext.operationCount when the limit is not set assuming that an application will use a separated thread or signals to set JSContext.operationCount to 0.

But I forgot in JS_GetOperationLimit to return JS_MAX_OPERATION_LIMIT, not JS_MAX_OPERATION_LIMIT + 1, so application can freely continue to use JS_(Get|Set)OperationLimit without surprises.
Attachment #357150 - Flags: review?(mrbkap)
Comment on attachment 357150 [details] [diff] [review]
fix v1

Don't forget to back out sayrer's wallpaper from comment 2 out when you check this in! Thanks.
Attachment #357150 - Flags: review?(mrbkap) → review+
landed to tm - http://hg.mozilla.org/tracemonkey/rev/293624178003
Whiteboard: fixed-in-tracemonkey
(In reply to comment #5)
> (From update of attachment 357150 [details] [diff] [review])
> Don't forget to back out sayrer's wallpaper from comment 2 out when you check
> this in! Thanks.

Done - http://hg.mozilla.org/tracemonkey/rev/90bdc10e0c83
http://hg.mozilla.org/mozilla-central/rev/293624178003
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-tracemonkey → [needs 1.9.1 landing]
Flags: in-testsuite-
Flags: in-litmus-
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/9cd0940a9cf2
Keywords: fixed1.9.1
Whiteboard: [needs 1.9.1 landing]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: