From 2dc045bf3f020bb3b5aff981322a1cf51b28b000 Mon Sep 17 00:00:00 2001 From: Patrick Fontanilla Date: Fri, 31 Jul 2026 19:46:41 +0000 Subject: [PATCH] Modify comment --- .../share/gc/shenandoah/shenandoahRegionPinCache.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hotspot/share/gc/shenandoah/shenandoahRegionPinCache.hpp b/src/hotspot/share/gc/shenandoah/shenandoahRegionPinCache.hpp index 8f9b4bba6b0..d316f4e41e6 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoahRegionPinCache.hpp +++ b/src/hotspot/share/gc/shenandoah/shenandoahRegionPinCache.hpp @@ -31,10 +31,10 @@ // Holds (caches) the pending pinned object count adjustment for the region // _region_idx on a per thread basis. -// Keeping such a cache avoids the expensive atomic operations when updating the -// pin count for the very common case that the application pins and unpins the -// same object without any interleaving by a garbage collection or pinning/unpinning -// to an object in another region. +// Keeping such a cache avoids expensive atomic operations when updating the +// pin count for the very common case that a single thread pins and unpins +// the same object without any interleaving by garbage collection or by +// pinning/unpinning of objects in other regions. class ShenandoahRegionPinCache : public StackObj { size_t _region_idx; size_t _count;