Core library garbage collection and code review