RFR: 8290715: Fix incorrect uses of G1CollectedHeap::heap_region_containing() [v3]

Sangheon Kim sangheki at openjdk.org
Fri Jul 29 13:40:48 UTC 2022


On Thu, 28 Jul 2022 10:15:41 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> Hi all,
>> 
>>   please review this change that fixes some callers of `G1CollectedHeap::heap_region_containing` to a) fail on trying to get the `Heapregion*` on uncommitted regions and b) change some callers to use the correct `heap_region_containing_or_null` method that had been intended there.
>> 
>> Also remove some now unneccessary asserts as `heap_region_containing` will fail when it previously returned `nullptr`.
>> 
>> Testing: tier1-5
>> 
>> Thanks,
>>   Thomas
>
> Thomas Schatzl has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 11 commits:
> 
>  - Merge branch 'master' into 8290715-heapregion-containing-no-null
>  - Some more removal of unnecessary checks
>  - Initial changes
>  - Fix the places where the wrong heap_region_containing() method has been used
>  - kbarrett review
>  - Remove some more casts
>  - Revert changes to heap_region_containing()
>  - Remove cast
>  - Remove unnecessary changes
>  - some changes
>  - ... and 1 more: https://git.openjdk.org/jdk/compare/97fc8deb...5dc2fc08

Looks good.

-------------

Marked as reviewed by sangheki (Reviewer).

PR: https://git.openjdk.org/jdk/pull/9584



More information about the hotspot-gc-dev mailing list