FS#40944 - [gc] build with --enable-redirect-malloc
Attached to Project:
Arch Linux
Opened by Alexandre Kandalintsev (exe2) - Monday, 23 June 2014, 10:39 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 11 February 2015, 18:22 GMT
Opened by Alexandre Kandalintsev (exe2) - Monday, 23 June 2014, 10:39 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 11 February 2015, 18:22 GMT
|
Details
It is useful to build extra/gc with
--enable-redirect-malloc
Without this it is impossible to write wrappers of malloc/free/etc functions and call GC_* inside them. What do you think? |
This task depends upon
Closed by Jan de Groot (JGC)
Wednesday, 11 February 2015, 18:22 GMT
Reason for closing: Won't implement
Wednesday, 11 February 2015, 18:22 GMT
Reason for closing: Won't implement
You may be able to build the collector with --enable-redirect-malloc and set the LD_PRELOAD environment variable to point to the resulting library, thus replacing the standard malloc with its garbage-collected counterpart. This is rather platform dependent. See the leak detection documentation for some more details.
I don't see why our packaged version should have this. I don't know if this will affect running code in any way and so far no other distributions enable this.