On Tue, 2 Jun 2026 18:00:33 GMT, Leonid Mesnik <[email protected]> wrote:

> The `javaVFrame *jvf = thread->last_java_vframe(&reg_map);`
> might be null potentially. Shouldn't be null when called from 
> post_field_modification_by_jni but assert doesn't hurt.
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

I don't think the assertions suffice. If something like `SetObjectField` is 
called from an attached thread, but with no Java frame on the stack, then we 
will have a null last-frame and thus vframe.

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

PR Comment: https://git.openjdk.org/jdk/pull/31352#issuecomment-4608932819

Reply via email to