Commit c0fdb5f
Fix locking region in sjlit_malloc_exec
Cherry-picked from ad89dd8ecd25589d236bd20b36f2abf69f938fd1
(https://github.com/zherczeg/sljit.git)
The locked section needs to extend until we are done modifying internal
block offsets and sizes, otherwise we risk running into data corruption
in a multi-threaded context.
This bug was introduced in 7de0fee9a7376b33e31a3903487cd9933da3a6061 parent 3864abd commit c0fdb5f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | 244 | | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
0 commit comments