On Wed, Aug 31, 2016 at 05:39:20PM +0300, Eero Tamminen wrote: > Hi, Hi,
> > On 31.08.2016 16:37, Marek Olšák wrote: > ... > > OK. I'm afraid malloc/calloc/realloc/free from libjemalloc.so will > > conflict with libc and Steam. > > > > When building jemalloc from source, there is an option to add a function > > prefix. > > > > There are basically two options at the moment: > > - my allocator: is faster, has much higher memory usage, but is simple > > to integrate. > > - jemalloc: should have reasonable memory usage, but it's not clear > > yet how to integrate it with Mesa. > > If static library is used, symbols get resolved at build time, so that isn't > a problem. If distro's static version isn't build with -fPIC, linking it to > a library wouldn't be nice though (code relocations would dirty text/code > memory mappings when library is loaded). jemalloc will always name its static library libjemalloc_pic.a when it is compiled with -fPIC, and libjemalloc.a when it isn’t. By default it compiles both, but distributions may install only a subset of what’s built (ArchLinux only ships the _pic one for example). -- Emmanuel Gil Peyrot _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev