On Fri, 29 Apr 2022 10:56:49 GMT, Kim Barrett <kbarr...@openjdk.org> wrote:
>> The current approach limits the knowledge of non-strong ref types to >> `instanceRefKlass` file. > > The `_reference_type` used to be initialized correctly in most cases, but > needed fixing up for a few cases during bootstrapping. With this change it is > *never* initialized correctly for Reference subtypes and always needs an > initialization kludge for them. That's not an improvement. `_reference_type` always gets the correct value after the constructor is run. The member initializer list just follows the convention of having all fields set. One could move this field inside the constructor body to ensure this field is set only once. ------------- PR: https://git.openjdk.java.net/jdk/pull/8332