Create an Array with lenght 2^28 (that is < 2^32)
Do a for/while loop to put inside this array some int values (eg the value 
of the counter itself)
Node crashes around the 20mil element when reaching (according to system 
monitor 1.7/1.8 Gb of RAM)

v8 (3.14.5.8, the one in node 0.10.4), 64bit enviroment, > 16Gb ram, 
--max_old_space_size=16192 on command line

Snippet:

var newFilledArray2 = function(len) {
    var a = new Array(len);
    for(var i = 0; i < len; i++) {
        a[i] = i;
    }
    return a;};
var jsArray = newFilledArray(Math.pow(2,28));

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to