Commit c55ff40
authored
Allow pthread programs to run without SharedArrayBuffer (#22710)
As long as they don't actually try to start any threads there is no
reason to prevent them from running/starting.
Such programs will now instead fail when they first try to create
a thread.
This is useful for programs that are built with threading support but
might also want to run in environments without SharedArrayBuffer,
e.g. when deployed without COOP/COEP.1 parent ff27062 commit c55ff40
File tree
3 files changed
+12
-13
lines changed- src
- test
3 files changed
+12
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 48 | | |
58 | 49 | | |
59 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12071 | 12071 | | |
12072 | 12072 | | |
12073 | 12073 | | |
| 12074 | + | |
| 12075 | + | |
| 12076 | + | |
| 12077 | + | |
| 12078 | + | |
| 12079 | + | |
| 12080 | + | |
| 12081 | + | |
| 12082 | + | |
| 12083 | + | |
| 12084 | + | |
| 12085 | + | |
12074 | 12086 | | |
12075 | 12087 | | |
12076 | 12088 | | |
| |||
0 commit comments