Commit 3a17176
authored
fix: disable wasm highlighter on riscv64 (#691)
* fix: disable wasm highlighter on riscv64
riscv64 with sv39 has limited virtual memory space, where creating
too many (>=20) wasm memory instances fails.
See nodejs/node#60591 for more details.
This PR fixes the following error encountered during `make test-only`
on riscv64:
[07:02:55.797] ERROR: WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instance
RangeError: WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instancemake[1]: *** [Makefile:392: test/addons/.docbuildstamp] Error 1
make: *** [Makefile:352: test-only] Error 2
Signed-off-by: Levi Zim <rsworktech@outlook.com>
* fix: enable wasm highlighter for s390x
The bug for s390x has been fixed.
* fix: limit threads to 1 on riscv64
And warn user if they set it to a larger value.
---------
Signed-off-by: Levi Zim <rsworktech@outlook.com>1 parent 8966c6a commit 3a17176
2 files changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
124 | 137 | | |
125 | 138 | | |
126 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments