We had a bug until recently where you could get out of memory errors
without actually having run out of memory. make sure you have a
version at least as recent as 3285 on the bleeding edge or 3333 on the
trunk.
You can run the VM with --trace-gc to see how much memory it is actually using.
There is an option --max-old-space-size for increasing the amount of
memory available to V8.
I think the developer tools have some functions for tracing where
memory is going, but I am not personally familiar with them.
--
Erik Corry
> Doing some more testing, it appears that my code crashes v8 if the
> tileobj objects have more than 10 fields.
Proposed patch to V8:
- Field m_fields[10];
+ Field m_fields[20];
—Jens ;-)
Should at least be a #define i'd think.
> i hope you guys are kidding about that solution.
Well, of course I was kidding; I figured it was obvious enough not to require a smiley.
> v8 should _never_ crash an app just because a few fields are added to an object.
Especially because in JavaScript, objects are the same things as general-purpose dictionaries/maps/hashtables, which clearly can't have any size limits.
Sorry for the noise.
—Jens