[lworld] RFR: 8361082: [lworld] RewriteBytecodesInlineTest fails with SIGSEGV [v3]

Matias Saavedra Silva matsaave at openjdk.org
Wed Jul 2 21:04:57 UTC 2025


On Wed, 2 Jul 2025 19:13:30 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> Matias Saavedra Silva has updated the pull request incrementally with three additional commits since the last revision:
>> 
>>  - Cleanup
>>  - Multilined another log message
>>  - Changed long log messages to multi-line strings
>
> src/hotspot/share/classfile/systemDictionary.cpp line 1109:
> 
>> 1107: 
>> 1108:   assert(real_k != nullptr, "Sanity check");
>> 1109:   if (real_k->access_flags().is_identity_class()) {
> 
> It looks like you could refactor the check for identity and abstract in to InstanceKlass::check_inline_field(TRAPS) and share the code with ClassFileParser. (?)

This check is being done in Klass so I would need to add it there. I think a better name might be `Klass::check_null_restricted_field(TRAPS)` since these are mandatory conditions for a field to be null restricted. The checks may actually be unnecessary since the `@NullRestricted` annotation can only be used on a concrete value class.

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1498#discussion_r2180966266


More information about the valhalla-dev mailing list