Status: Accepted Owner: [email protected] Labels: Type-Bug Priority-Medium
New issue 524 by [email protected]: Creating a million live slow-case objects exhausts map space. http://code.google.com/p/v8/issues/detail?id=524 We copy maps whenever we normalize objects. Map space is limited to 8MB, so keeping a million slow-case objects alive will exhaust map space. One possible solution is to associate a canonical slow-case map with the initial map for a constructor function. Most of the time we will be able to use that one and avoid the copying. It would also be nice to allow a larger map space as well. Reduced test case: V8 version 2.0.2 (candidate) > var i = 1000000 > var a = new Array(i) > for (var j = 0; j < i; j++) { var o = {}; o.x = 42; delete o.x; a[j] = o; } # # Fatal error in (null) # Allocation failed - process out of memory # -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
