Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8275886: G1: remove obsolete comment in HeapRegion::setup_heap_region…
…_size

Reviewed-by: mli, tschatzl
  • Loading branch information
albertnetymk committed Oct 27, 2021
1 parent 9f75d5c commit 9e831bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hotspot/share/gc/g1/heapRegion.cpp
Expand Up @@ -84,8 +84,6 @@ void HeapRegion::setup_heap_region_size(size_t max_heap_size) {
LogOfHRGrainBytes = region_size_log;

guarantee(GrainBytes == 0, "we should only set it once");
// The cast to int is safe, given that we've bounded region_size by
// MIN_REGION_SIZE and MAX_REGION_SIZE.
GrainBytes = region_size;

guarantee(GrainWords == 0, "we should only set it once");
Expand Down

1 comment on commit 9e831bc

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.