Closed
Bug 1181155
Opened 10 years ago
Closed 10 years ago
Create a common RootLists structure to share the root list fields between PerThreadData and ContextFriendFields
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla42
| Tracking | Status | |
|---|---|---|
| firefox42 | --- | fixed |
People
(Reporter: terrence, Assigned: terrence)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
10.29 KB,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
This seems slightly cleaner to me.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4db69179ff3e
Attachment #8630476 -
Flags: review?(jcoppeard)
Comment 1•10 years ago
|
||
Comment on attachment 8630476 [details] [diff] [review]
split_out_root_list_structures-v0.diff
Review of attachment 8630476 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good!
::: js/src/jspubtd.h
@@ +355,5 @@
> template <> struct RootKind<jsid> : SpecificRootKind<jsid, THING_ROOT_ID> {};
> template <> struct RootKind<JS::Value> : SpecificRootKind<JS::Value, THING_ROOT_VALUE> {};
>
> +// Abstracts JS rooting mechanisms so that it can be mixed into and rooting
> +// mechanisms used with any of PerThreadData, JSRuntime, and JSContext
I'm not sure about the use of "mixed into" here. It sounds like you're talking about mixins, but I don't think that's the case.
Also the comment needs full stop at the end.
@@ +363,5 @@
> + JS::Rooted<void*>* stackRoots_[THING_ROOT_LIMIT];
> + template <typename T> friend class JS::Rooted;
> +
> + // Stack GC roots for stack-allocated AutoFooRooter classes.
> + JS::AutoGCRooter* autoGCRooters_;
Nit: Remove extra space between type and field name.
Attachment #8630476 -
Flags: review?(jcoppeard) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•