Repository navigation
Commit af247c4
perf(mobile): stop iOS syntax highlighting from looking up a thread-local on every lexer call
Compiled as C11, the wasm2c runtime makes its stack depth counter thread-local, and on Apple platforms every lexer function entry then calls _tlv_get_addr. The pod's C files now compile as gnu99, where wasm2c falls back to a plain global on Apple. Callers already serialize the lexer, so the counter never needs per-thread state.1 parent 6b53b3d commit af247c4
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
0 commit comments