8164293: HotSpot leaking memory in long-running requests Applied RMs in sweep_code_cache and related codes. Reviewed-by: kvn, thartmann