Hoard allocator not "working"?

Posted by Cowboy on Stack Overflow See other posts from Stack Overflow or by Cowboy
Published on 2010-05-03T11:39:30Z Indexed on 2010/05/07 19:28 UTC
Read the original article Hit count: 144

Filed under:
|
|

I'm trying to Hoard allocator to work, but it seems it doesn't. I have a benchmark application that does a lot of dynamic memory management. The execution time for Hoard and glibc memory manager is the same. It makes me wonder if I'm doing the right thing.

What I do is...

export LD_PRELOAD="/path/libhoard.so"

g++ main.cpp -O3 -o bm -lpthread -lrt

Shouldn't I have to link to Hoard allocator? Does it matter what path (in LD_PRELOAD) is, or can I have whatever path?

I'm running Ubuntu 8.04, and g++ 4.2.4

Cheers

© Stack Overflow or respective owner

Related posts about hoard

Related posts about memory-allocation