In MemoryAllocator, there is a member variable size_ to record current committed memory size.. The size_ increase after allocate or commit a VirtualMemory. >From the perspective of symmetry, the size_ should decrease after free or uncommit a VirtualMemory . But in fact it's in PreFreeMemory. When free pages with mode kPooledAndQueue, the size_ will decrease during UnregisterMemory during PreFreeMemory, but the MemoryChunk is not really freed or uncommitted.
I think the decrease of size_ should be in PerformFreeMemory. I wonder what is the purpose of the current design? -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/0d8ff1f9-6580-442a-8dc4-917897b2f74en%40googlegroups.com.
