Hey,
I've been working on a problem our web app has. Our response times are
spiking. I tracked to this down being caused by marksweep gc. Response's
can take up to 6 seconds.
I enabled gc logs and and the scavenge seems to be happening very
frequently but not getting rid of anything. New objec
Here's what Jochen originally said:
v8 has an per-isolate cache of function templates. As the string is
> referenced by the function template, it will never go out of scope.
> I'd recommend to create a weak handle to the function you create via
> GetFunction() instead
https://groups.google.com
I don't know which cache you are talking about. Afaik there's only a
"function-template-instantations-cache". That caches JSFunctions per native
context resulting from instantiating a function template.
On Mon, Nov 21, 2016 at 12:05 PM Ben Noordhuis wrote:
> On Sun, Nov 20, 2016 at 11:09 PM, w
On Sun, Nov 20, 2016 at 11:09 PM, wrote:
> Jochen Eisinger said that "v8 has an per-isolate cache of function
> templates". I have a few questions about this cache:
>
> If I create multiple FunctionTemplates with different callback data but the
> same callback function and everything else, does i
There is always a stack limit, which always prevents infinite recursion; as
well as, in fact, finite but very deep recursion.
As Ben said, the only way to prevent infinite or long-running loops is by
interrupting the program from another thread. You may have heard of
the *Halting
Problem*, TL;DR: