I was playing around with the V8 engine and stumbled upon the zone stats tool. I understand the zone memory concept, but what are these different zones in zone stats memory?
When I upload a trace zone memory log into it, I see that there are for zones for turbofan:
I understand that the compilation job zone is used for compiling (maybe?correct me if I am wrong), but what are the other zones?
(V8 developer here.) Since Turbofan is a compiler, all the zones it uses are used for compiling.
It uses more than one zone so that temporary data that’s only needed for a short time can be freed afterwards, whereas the main zone sticks around until the entire compilation job is completed. This is most obvious for the "register-allocation-zone", which is used by the register allocator.
Answered By – jmrk
Answer Checked By – Candace Johnson (BugsFixing Volunteer)