JDK-8275886 : G1: remove obsolete comment in HeapRegion::setup_heap_region_size
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-10-25
  • Updated: 2021-11-01
  • Resolved: 2021-10-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b21Fixed
Related Reports
Relates :  
Description
```
  // 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 JDK-7095194); the comment was obsolete.
Comments
Changeset: 9e831bcc Author: Albert Mingkun Yang <ayang@openjdk.org> Date: 2021-10-27 08:24:44 +0000 URL: https://git.openjdk.java.net/jdk/commit/9e831bccd2fc90681b32d1504eca753462afc6f6
27-10-2021