Inform V8 of external allocations.
authorRyan <ry@tinyclouds.org>
Fri, 15 May 2009 14:28:10 +0000 (16:28 +0200)
committerRyan <ry@tinyclouds.org>
Fri, 15 May 2009 14:28:10 +0000 (16:28 +0200)
commitbaed9d514d0c145fdf696324601f67dda89adf3c
tree1189b0a8897c6942cd52909f15d577c1f69fed56
parent81691c7dc5919cc04ff65ab354e47225604e1de1
Inform V8 of external allocations.

This is sloppy: after each ObjectWrap allocation the user needs to
call ObjectWrap::InformV8ofAllocation(). In addition each class deriving
from  ObjectWrap needs to implement the virtual method size() which should
return the size of the derived class. If I was better at C++ I could
possibly make this less ugly. For now this is how it is.

Memory usage looks much better after this commit.
12 files changed:
configure
src/file.cc
src/file.h
src/http.cc
src/http.h
src/net.cc
src/net.h
src/node.cc
src/node.h
src/timer.cc
src/timer.h
test_http.js