Closed
Bug 977287
Opened 11 years ago
Closed 11 years ago
Rename the operation callback
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: jorendorff, Assigned: jorendorff)
Details
Attachments
(2 files)
124.13 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
4.44 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
"operation callback" is meaningless. It should be called the interrupt callback.
Assignee | ||
Comment 1•11 years ago
|
||
Riskiest thing going on here is moving js_HandleExecutionInterrupt into a namespace and removing the `extern` keyword from its declaration.
Assignee: general → jorendorff
Attachment #8383355 -
Flags: review?(luke)
Assignee | ||
Comment 2•11 years ago
|
||
Not-quite-as-trivial odds and ends found during renaming.
For example, it looks like JSShellContextData::startTime isn't used from the interrupt callback anymore, for years now.
Attachment #8383357 -
Flags: review?(luke)
Assignee | ||
Comment 3•11 years ago
|
||
I'd love to delete the following paragraph from jsapi.h. It basically says, "Note: we might call this callback randomly. No reason. We just do sometimes." Maybe I'm the only person bothered by this.
> /*
> * These functions allow setting an interrupt callback that will be called
> * from the JS thread some time after any thread triggered the callback using
> * JS_RequestInterruptCallback(rt).
> *
>- * To schedule the GC and for other activities the engine internally triggers
>- * interrupt callbacks. The embedding should thus not rely on callbacks being
>- * triggered through the external API only.
>- *
> * Important note: Additional callbacks can occur inside the callback handler
> * if it re-enters the JS engine. The embedding must ensure that the callback
> * is disconnected before attempting such re-entry.
> */
It would be an easy fix, since all the interrupt state is already protected by a lock. We'd still need a comment to the effect that interrupts can be coalesced; you might request 2 and only get 1.
Comment 4•11 years ago
|
||
Comment on attachment 8383355 [details] [diff] [review]
bug-977287-part-1-renaming-v1.patch
Lovely
Attachment #8383355 -
Flags: review?(luke) → review+
Updated•11 years ago
|
Attachment #8383357 -
Flags: review?(luke) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/53139214dcf3
https://hg.mozilla.org/mozilla-central/rev/02400c717fa6
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Updated•10 years ago
|
Keywords: dev-doc-needed
Updated•5 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•