This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Commit 2dede46
Improve documentation for thread_attachThis / thread_detachThis
The function rt_moduleTlsDtor must be called before thread_detachThis,
because the memory referenced by thread-local storage could be freed
by the GC after thread_detachThis. A thread-local static destructor
called by rt_moduleTlsDtor could access the already freed memory.
Calling rt_moduleTlsDtor first prevents this.
Links in core.memory to thread_attachThis / thread_detachThis did not
work and are fixed now.
Also added links between thread_attachThis and thread_detachThis.1 parent 0c2400e commit 2dede46
3 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1270 | 1273 | | |
1271 | 1274 | | |
1272 | 1275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
| 819 | + | |
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
823 | 826 | | |
824 | 827 | | |
825 | 828 | | |
| |||
0 commit comments