| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3607684 commit 1a66dc1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -533,6 +533,14 @@ const limit = (concurrency) => { | |||
| 533 | 533 | ||
| 534 | 534 | class WPTRunner { | |
| 535 | 535 | constructor(path, { concurrency = os.availableParallelism() - 1 || 1 } = {}) { | |
| 536 | + // RISC-V has very limited virtual address space in the currently common | ||
| 537 | + // sv39 mode, in which we can only create a very limited number of wasm | ||
| 538 | + // memories(27 from a fresh node repl). Limit the concurrency to avoid | ||
| 539 | + // creating too many wasm memories that would fail. | ||
| 540 | + if (process.arch === 'riscv64' || process.arch === 'riscv32') { | ||
| 541 | + concurrency = Math.min(10, concurrency); | ||
| 542 | + } | ||
| 543 | + | ||
| 536 | 544 | this.path = path; | |
| 537 | 545 | this.resource = new ResourceLoader(path); | |
| 538 | 546 | this.concurrency = concurrency; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments