aerospike / aerospike-client-c

Aerospike C Client
Other
98 stars 103 forks source link

aerospike malloc handler #70

Closed lathakris closed 6 years ago

lathakris commented 7 years ago

Hi,

Is there a custom memory allocator we can use for aerospike ? point to our memory allocator instead of malloc ?

Thanks.

bbulkow commented 7 years ago

Client malloc calls go through the shim located at https://github.com/aerospike/aerospike-common/blob/master/src/main/citrusleaf/cf_alloc.c which gives you a convenient location to call your own allocator. Since this is C, you can use a wide variety of techniques to override that.

lathakris commented 7 years ago

ok. thank you for the response.