Autorelease pool mechanism