Status: New
Owner: ----
New issue 2221 by [email protected]: Memory leak when setting the
InternalFieldCount of an ObjectTemplate >0
http://code.google.com/p/v8/issues/detail?id=2221
I suspected a massive memory leak that causes a massive decrease of
performance as a side effect.
Using the attached example code, if tpl->SetInternalFieldCount(1); is
commented out, no problem occurs. The memory consumption remains constant
(with small fluctuations because of the garbage collector of course).
If the InternalFieldCount is set to one or higher, the memory consumption
grows constantly, until the Error "Allocation failed - process out of
memory" is being shown.
The two attached files contain the outputs of the Test-Program. One version
using InternalFieldCount == 1, the other using InternalFieldCount == 0.
I tested this against the upstream version of Ubuntu Precise Pangolin
(version 3.7.12.22) and the relatively new git revision
725315fbb2d0652648e4154ffcb37754d88d0e11
Using the Upstream Version, the memory leak grows much faster.
Attachments:
main.cpp 2.0 KB
FieldCount_0 3.2 MB
FieldCount_1 19.7 KB
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev