8138892: C1: Improve counter overflow checking

Reviewed-by: iveresov, goetz, twisti, vlivanov
6 files changed