Closed
Bug 554691
Opened 15 years ago
Closed 13 years ago
js_RegisterCloseableIterator uses a runtime-wide lock
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: gal, Assigned: evilpie)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
This hits every for-in loop, and is horribly slow. This should be per-thread.
JS_LOCK_GC(rt);
ok = rt->gcIteratorTable.append(obj);
JS_UNLOCK_GC(rt);
Comment 1•15 years ago
|
||
iirc this is because workers can migrate from thread to thread. ack!
When that happens, they can move their iterators into an expensive runtime thing and flag them so that we remove from the expensive runtime thing later.
(Are threads really that expensive that we can't have one per worker? I guess it's a lot of non-pageable memory on some systems.)
Comment 3•15 years ago
|
||
I think we can get rid of this table altogether with some work on iteration. Don't panic!
/be
Comment 4•15 years ago
|
||
(In reply to comment #1)
> iirc this is because workers can migrate from thread to thread. ack!
Yes, this is indeed the case. I should have filed a bug to support migration of JSThread to another native thread long time ago. But it is better late than never, bug 554866.
Assignee | ||
Comment 5•13 years ago
|
||
Okay this function was removed, but not the definition in jsgc.h oO
Assignee | ||
Comment 6•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #576822 -
Flags: review?(Ms2ger)
Comment 7•13 years ago
|
||
Comment on attachment 576822 [details] [diff] [review]
rm
I bet nobody will mind... rs=me
Attachment #576822 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Updated•13 years ago
|
Assignee: general → evilpies
Assignee | ||
Comment 8•13 years ago
|
||
Comment 9•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
You need to log in
before you can comment on or make changes to this bug.
Description
•