Skip to content

Commit e6212a8

Browse files
committed
* xmas92 review
1 parent 7a19a8c commit e6212a8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/hotspot/share/gc/g1/g1HeapRegionType.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ class G1HeapRegionType {
7878
static bool is_valid(Tag tag);
7979

8080
Tag get() const {
81-
hrt_assert_is_valid(_tag.load_relaxed());
82-
return _tag.load_relaxed();
81+
Tag result = _tag.load_relaxed();
82+
hrt_assert_is_valid(result);
83+
return result;
8384
}
8485

8586
// Sets the type to 'tag'.

0 commit comments

Comments
 (0)