Garbage collection protection