DescriptionDon't share function result caches between contexts.
A reference to the caches array was embedded directly into the builtin
code and this allowed sharing objects between contexts.
Unfortunately, clearing the cache on GC won't prevent sharing so we
either have to have per-context builtin code or load the cache
indirectly from the current context. This change implements the second
approach. The first approach may be interesting to consider in the
future for some perfomance critical functions, and the current
approach can still be improved by putting the caches directly into the
global context (or even global objects).
Committed: http://code.google.com/p/v8/source/detail?r=4486
Patch Set 1 #
Total comments: 8
Patch Set 2 : Review fixes #
Messages
Total messages: 6 (0 generated)
|