Commit 905c179
authored
Do not free globals when threads are enabled (#304)
When threads are enabled, it's possible that other threads are still
running while neko is shutting down. This means freeing builtins or the
thread local storage slot for the vm context may cause a crash on those
threads.1 parent ba97d55 commit 905c179
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
343 | 348 | | |
| 349 | + | |
344 | 350 | | |
345 | 351 | | |
346 | 352 | | |
| |||
0 commit comments