RFR: 8254874: ZGC: JNIHandleBlock verification failure in stack watermark processing

2020-10-16 Thread Stefan Karlsson
The cm03t001 test creates a local JNI handle in the prepare function. It later uses that handle from a callback function, from another thread. When the callback runs, ZGC applies a load barrier to that handle and self-heals it in the other threads stack. Later when that thread verifies its stack,

Re: RFR: 8254874: ZGC: JNIHandleBlock verification failure in stack watermark processing

2020-10-16 Thread Thomas Schatzl
On Fri, 16 Oct 2020 14:29:46 GMT, Stefan Karlsson wrote: > The cm03t001 test creates a local JNI handle in the prepare function. It > later uses that handle from a callback > function, from another thread. When the callback runs, ZGC applies a load > barrier to that handle and self-heals it in

Re: RFR: 8254874: ZGC: JNIHandleBlock verification failure in stack watermark processing

2020-10-16 Thread Chris Plummer
On Fri, 16 Oct 2020 14:29:46 GMT, Stefan Karlsson wrote: > The cm03t001 test creates a local JNI handle in the prepare function. It > later uses that handle from a callback > function, from another thread. When the callback runs, ZGC applies a load > barrier to that handle and self-heals it in

Re: RFR: 8254874: ZGC: JNIHandleBlock verification failure in stack watermark processing

2020-10-16 Thread Serguei Spitsyn
On Fri, 16 Oct 2020 14:29:46 GMT, Stefan Karlsson wrote: > The cm03t001 test creates a local JNI handle in the prepare function. It > later uses that handle from a callback > function, from another thread. When the callback runs, ZGC applies a load > barrier to that handle and self-heals it in

Re: RFR: 8254874: ZGC: JNIHandleBlock verification failure in stack watermark processing

2020-10-17 Thread Per Liden
On Fri, 16 Oct 2020 14:29:46 GMT, Stefan Karlsson wrote: > The cm03t001 test creates a local JNI handle in the prepare function. It > later uses that handle from a callback > function, from another thread. When the callback runs, ZGC applies a load > barrier to that handle and self-heals it in

Re: RFR: 8254874: ZGC: JNIHandleBlock verification failure in stack watermark processing

2020-10-19 Thread Stefan Karlsson
On Sat, 17 Oct 2020 08:38:10 GMT, Per Liden wrote: >> The cm03t001 test creates a local JNI handle in the prepare function. It >> later uses that handle from a callback >> function, from another thread. When the callback runs, ZGC applies a load >> barrier to that handle and self-heals it in >>