Status: New
Owner: [email protected]
Labels: Type-Bug Priority-Medium
New issue 1567 by [email protected]: UnionOfDoubleKeys should be handlified
http://code.google.com/p/v8/issues/detail?id=1567
The use of NumberFromDouble in UnionOfDoubleKeys for large double arrays
will likely cause UnionOfDoubleKeys to always collect, and it also calls
NumberFromDouble twice for each property name it adds.
Mads' comment:
This is nasty. This can lead to out-of-memory crashes when we are in fact
not
out of memory if the double array is large enough. That is probably very
unlikely to happen, but still. I wonder if we can restrict the API so that
we
can never get doubles in key arrays (require integers and strings only)?
Alternatively, we should be able to create the key integer/string directly
from
the double without going through a heap number allocation.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev