Closed
Bug 722348
Opened 14 years ago
Closed 14 years ago
remove JSRuntime::requestCount
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: igor, Assigned: igor)
References
Details
Attachments
(1 file)
|
9.09 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
With single-threaded runtime JSRuntime::requestCount is no longer necessary as the use of the counter can be replaced with checking if JSRuntime::requestDepth >= 0.
| Assignee | ||
Comment 1•14 years ago
|
||
Besides removing JSRuntime::requestCount the patch also removes unused js_NextActiveContext and requires that js_DestroyContext should be called outside the request. This is to allow to simplify s_DestroyContext and minimize other patches for bug 722345.
Attachment #592742 -
Flags: review?
Comment 2•14 years ago
|
||
Note: empty r?
| Assignee | ||
Updated•14 years ago
|
Attachment #592742 -
Flags: review? → review?(luke)
Comment 3•14 years ago
|
||
Comment on attachment 592742 [details] [diff] [review]
v1
Great
>+ } else if (mode == JSDCM_FORCE_GC) {
>+ js_GC(cx, NULL, GC_NORMAL, gcreason::DESTROY_CONTEXT);
>+ } else if (mode == JSDCM_MAYBE_GC) {
> JS_MaybeGC(cx);
unindent
Attachment #592742 -
Flags: review?(luke) → review+
| Assignee | ||
Comment 4•14 years ago
|
||
Comment 5•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
Updated•14 years ago
|
Keywords: dev-doc-needed
Updated•6 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•