```
// The cast to int is safe, given that we've bounded region_size by
// MIN_REGION_SIZE and MAX_REGION_SIZE.
GrainBytes = region_size;
```
Both variables are of `size_t` (changed inJDK-7095194); the comment was obsolete.
// The cast to int is safe, given that we've bounded region_size by
// MIN_REGION_SIZE and MAX_REGION_SIZE.
GrainBytes = region_size;
```
Both variables are of `size_t` (changed in
- relates to
-
JDK-7095194 G1: HeapRegion::GrainBytes, GrainWords, and CardsPerRegion should be size_t
-
- Closed
-