The following code in serialize.cc:
int top_format_length = StrLength(top_address_format) - 2;
for (uint16_t i = 0; i < Top::k_top_address_count; ++i) {
const char* address_name = AddressNames[i];
Vector<char> name =
Vector<char>::New(top_format_length + StrLength(address_name)
+ 1);
const char* chars = name.start();
OS::SNPrintF(name, top_address_format, address_name);
Add(Top::get_address_from_id((Top::AddressId)i), TOP_ADDRESS, i,
chars);
}
allocates a new Vector each loop iteration, shouldn't it call Dispose
() method on "name" to release the allocated memory at the end of the
for loop?
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users