FIX: check permission before doing GC
FIX: kLogGC -> kLogGc