Description[Android] Cache function templates in GinJavaBridgeObject to avoid memory leak
V8 caches all function templates internally for the lifetime of a web page in an
unbounded cache. Thus, creating a new function template for each call to a
method of injected object caused JS heap memory to grow linearly.
This is similar to a fix for Pepper Plugin objects (https://codereview.chromium.org/785213002/)
BUG=462664
Committed: https://crrev.com/8f8de9cf6f95d27dd01b834f2fabcc8389315d37
Cr-Commit-Position: refs/heads/master@{#318890}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|