Closed Bug 468163 Opened 17 years ago Closed 14 years ago

Multitude of JSContext*s created by xbl loading

Categories

(Core :: XBL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: taras.mozilla, Unassigned)

References

Details

(Keywords: perf)

Not sure what the performance/security ramifications of this are, but seems that xbl is the leading cause of JSContexts. I get 31 JS_NewContext calls in a fennec startup.
We basically create one per script global (so one per proto document). I'd think this is pretty cheap, though.
yeah, I haven't noticed any overhead in creating jscontexts. I'm not sure of the memory efficiency, etc. Is there a reason you don't just swap out global objects?
jst might know the history there. This code is from before my time. :(
Blocks: 459117
Is this an issue or not?
(In reply to Marco Castelluccio from comment #4) > Is this an issue or not? It is not. JS engine will eventually get rid of contexts and this will get cleaned up in another bug.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.