Fix client hang when the server goes away
Extract class CodeCacheGcTrigger
Fix logging for full code cache condition