Closed
Bug 771281
Opened 13 years ago
Closed 13 years ago
remove shell workers
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: Benjamin, Assigned: Benjamin)
Details
Attachments
(1 file)
58.55 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #639439 -
Flags: review?
Assignee | ||
Updated•13 years ago
|
Attachment #639439 -
Flags: review?
Assignee | ||
Updated•13 years ago
|
Attachment #639439 -
Flags: review?(jorendorff)
Updated•13 years ago
|
Attachment #639439 -
Flags: review?(jorendorff) → review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
![]() |
||
Comment 2•13 years ago
|
||
(Phew.)
Comment 3•13 years ago
|
||
Updated•13 years ago
|
Assignee: general → bpeterson
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
![]() |
||
Comment 5•13 years ago
|
||
Were shell workers preventing other stuff from going forward, or is this just to get rid of some unimportant code? Why were they added in the first place? (I'm not criticizing the removal, I'm just curious.)
Comment 6•13 years ago
|
||
If anybody could comment on the need for removal, that would be awesome. I want to run web-workers-like code in a non-browser embedding, and keep it working post JS 1.8.7 -- knowing where the landmines are ahead of time would be quite helpful.
Comment 7•13 years ago
|
||
(In reply to Wesley W. Garland from comment #6)
> If anybody could comment on the need for removal, that would be awesome. I
> want to run web-workers-like code in a non-browser embedding, and keep it
> working post JS 1.8.7 -- knowing where the landmines are ahead of time would
> be quite helpful.
I have no idea why they were added. I do know that they were under js/src/shell/ and thus only in the js shell and not available to embeddings. It's for the best, really: the code was in an obviously bit-rotted state. I'd have agitated for either removing or rewriting it if it were actually available to embeddings. As is, I just ignored it and hoped it would go away :-).
Comment 8•13 years ago
|
||
Sorry I didn't respond here sooner.
JS shell workers were added just-pre-compartments so we could have unit tests for the multithreaded JSAPI patterns we knew we would have to continue to support.
There was nothing horribly *wrong* with that code, and certainly the general approach to multithreading is still basically what embedders should do. This was just deleted because the maintenance costs were senseless, given we have even better tests for (real) Web workers.
The API is evolving faster than ever. It was a legitimate pain in the butt to keep updating shell workers for every little thing. (Especially GC work. The data structures in the shell worker code were nontrivial; switching to handles was going to be a big pain.)
Comment 9•13 years ago
|
||
Sorry, I did not mean to imply that the code was wrong, only a bit moldy. :-)
You need to log in
before you can comment on or make changes to this bug.
Description
•