Re: [v8-users] Re: Intermittent crashing creating a Persistent object.

2022-09-05 Thread ibon
I recently had a problem where a Persistent was being initialised in one Isolate which was then disposed. I accidentally kept an initialised Persistent around and got an immediate crash when calling Persistent Reset after creating a 2nd Isolate. In my case I was neglecting to Reset properly one

Re: [v8-users] Re: Intermittent crashing creating a Persistent object.

2022-08-31 Thread loude...@gmail.com
A mutex around our persistent creation alone didn't solve this problem. Removing v8::Persistent and replacing them with v8::Global is not ideal, since we reuse these Persistent objects across multiple contexts to cache common function/object templates. On Friday, August 26, 2022 at 9:17:00

Re: [v8-users] Re: Intermittent crashing creating a Persistent object.

2022-08-26 Thread Jim Acquavella
Oh, single-threaded. I would have expected v8 to use a mutex around their persistent (global handle) management. I'll try a mutex on my side and see if that resolves the issue. Thanks for your help. 爛 On Fri, Aug 26, 2022 at 12:52 AM dinf...@chromium.org wrote: > Hi, > > Those