Add GC bug investigation code