allow GC-logging by using C_post_gc_hook