smalloc: initial implementation
authorTrevor Norris <trev.norris@gmail.com>
Wed, 17 Apr 2013 23:18:47 +0000 (16:18 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Tue, 18 Jun 2013 22:37:51 +0000 (15:37 -0700)
commit8f3f9f7830a48ebabb1d9f78f49b1218f5d0490c
tree80d786417095cac284f96429335a56f27691c037
parentd3b06f19cbd6c9bff6bff3e5c0b2e787d9d0afc4
smalloc: initial implementation

smalloc is a simple utility for quickly allocating external memory onto
js objects. This will be used to centralize how memory is managed in
node, and will become the backer for Buffers. So in the future crypto's
SlabBuffer, stream's SlabAllocator will be removed.

Note on the js API: because no arguments are optional the order of
arguments have been placed to match their cc counterparts as closely as
possible.
node.gyp
src/node_extensions.h
src/smalloc.cc [new file with mode: 0644]
src/smalloc.h [new file with mode: 0644]
test/simple/test-smalloc-alloc-segfault.js [new file with mode: 0644]
test/simple/test-smalloc-sliceonto-segfault.js [new file with mode: 0644]
test/simple/test-smalloc.js [new file with mode: 0644]