Use 1UL instead of static_cast<size_t>(1)

This commit is contained in:
Xiaolong Peng 2026-01-27 15:41:58 -08:00
parent e6087ad195
commit 76675c5429

View File

@ -582,7 +582,7 @@ void ShenandoahOldGeneration::handle_failed_evacuation() {
}
void ShenandoahOldGeneration::handle_failed_promotion(Thread* thread, size_t size) {
_promotion_failure_count.add_then_fetch(static_cast<size_t>(1));
_promotion_failure_count.add_then_fetch(1UL);
_promotion_failure_words.and_then_fetch(size);
LogTarget(Debug, gc, plab) lt;