Kudo / react-native-v8

Opt-in V8 runtime for React Native Android
MIT License
924 stars 69 forks source link

Fix crash for accessing V8::Global dangling pointer #107

Closed Kudo closed 2 years ago

Kudo commented 2 years ago

when V8::Global::Reset in V8PointerValue dtor, we should also protect by a lock. otherwise, there're chances to access dangling pointers.

that should fix the problem @jzxchiang1 had in https://github.com/software-mansion/react-native-reanimated/pull/3132#issuecomment-1112878884