4 ms·
Cute. The Boehm-Demers-Weiser collector has GC_reachable_here for this reason. Guile has scm_remember_upto_here since before it switched to libgc. I'm sure o
by wingo 15y ago
Cute. The Boehm-Demers-Weiser collector has GC_reachable_here for this reason. Guile has scm_remember_upto_here since before it switched to libgc. I'm sure other systems have their things too.
That said, I like Handle, the RAII thing that V8 uses. It also allows for compacting collection. Too bad C doesn't do RAII.
- thibaut_barrere 15y ago.Net has GCHandle [1] and I believe the JVM calls to JNI have a similar mechanism (GetXXCritical [2]) [1] http://www.shafqatahmed.com/2008/05/memory-control.html http://www.shafqatahmed.com/2008/05/memory-control.html [2] http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index.jsp?topic=/com.ibm.java.doc.diagnostics.50/diag/understanding/jni_copypin.html http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index....
- onedognight 15y agoWhile C doesn't support RAII, gcc does: https://secure.wikimedia.org/wikipedia/en/wiki/Resource_Acquisition_Is_Initialization#C_Example_using_GCC_extensions https://secure.wikimedia.org/wikipedia/en/wiki/Resource_Acqu...