Skip to content Skip to sidebar Skip to footer

How Does V8 Handle Objects In "large Object Space"

I've read in V8 wiki that there's large object space in heap which is not moved by GC. Large-object-space: This space contains objects which are larger than the size limits of oth

Solution 1:

(V8 developer here.) Bergi's comment is correct. Large objects are not moved to large object space, they are created in large object space. As long as they are alive, they are not moved. But they are garbage collected like any other object: when the GC detects that they are no longer live, the memory will be freed. In general, freeing dead objects does not involve moving them.


Post a Comment for "How Does V8 Handle Objects In "large Object Space""