Closed Bug 1295739 Opened 8 years ago Closed 8 years ago

Make JSRuntime::ownerThread_ a js::Thread::Id instead of void*

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

References

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → nfitzgerald
Blocks: 956899
Status: NEW → ASSIGNED
Comment on attachment 8781697 [details] [diff] [review]
Make JSRuntime::ownerThread_ a js::Thread::Id instead of void*

Review of attachment 8781697 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/vm/Runtime.cpp
@@ +167,5 @@
>      numCompartments(0),
>      localeCallbacks(nullptr),
>      defaultLocale(nullptr),
>      defaultVersion_(JSVERSION_DEFAULT),
> +    ownerThread_(),

We should just initialize the thread owner here if possible and assert in init that we were called called on the same thread. I think anything else is probably a bug.
Attachment #8781697 - Flags: review?(terrence) → review+
Pushed by nfitzgerald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6100b7cdc384
Make JSRuntime::ownerThread_ a js::Thread::Id instead of void*; r=terrence
https://hg.mozilla.org/mozilla-central/rev/6100b7cdc384
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: