RFR: 8288324: Loom: Uninitialized JvmtiEnvs in VM_Virtual* ops
David Holmes
dholmes at openjdk.java.net
Tue Jun 14 07:45:48 UTC 2022
On Mon, 13 Jun 2022 18:14:56 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> SonarCloud reports a few uninitialized fields in new VM_Virtual* ops. Those fields are used, and therefore this is a serious bug. These ops seem to be used only from a few corner cases, which is probably why this was never actually found in testing.
>
> Additional testing:
> - [x] Linux x86_64 fastdebug, `jdk_loom hotspot_loom`
> - [x] Linux x86_64 fastdebug, `serviceability/jvmti`
I'm confused by the comments above. The code failed to initialize the `_env` member but then makes calls via this uninitialized pointer! Surely we should have crashed?
-------------
PR: https://git.openjdk.org/jdk19/pull/10
More information about the serviceability-dev
mailing list