RFR: 8326975: Parallel: Remove redundant PSOldGen::is_allocated
Guoxiong Li
gli at openjdk.org
Thu Feb 29 09:37:54 UTC 2024
On Wed, 28 Feb 2024 16:30:37 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
> Simple removing redundant code, since old-gen should have been allocated in the caller context.
We can't comfirm all the callers in the future have allocated the old-gen (though the situation is highly unlikely). Just as @tschatzl mentioned, `is_allocated` is more like an assert. So I suggest to keep it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18047#issuecomment-1970749201
More information about the hotspot-gc-dev
mailing list