Commit 037e878
committed
feat(runtime): close the remaining gaps against the merged iOS loader PR
Four features from the merged overhaul had not made it into the port,
plus the structural move that belonged with them:
- ES modules use the compiled-code cache: CompileFileEsModule consumes
and produces cache blobs through the existing scheme under the same
config gate, with module caches keyed as .mcache - a classic require()
and an import of the same .js file each keep their own blob instead of
overwriting each other's on every load.
- Concurrent module fetches are capped at 16 process-wide: excess jobs
queue and finishing threads drain them, so the cap bounds threads (and
JVM attaches), not just sockets, and the caller never blocks. A failed
thread spawn delivers a transport-error completion instead of wedging
the graph pump, and jobs queued behind it fail rather than wait for a
thread that will never exist.
- The transport takes canonical keys from its callers - computed on the
isolate thread, off-thread canonicalization impossible by construction.
This also fixes cache-bust marks for collapsed-scheme URLs: eviction
marks under the repaired registry key, and the transport previously
canonicalized the raw URL, so the mark could never match or clear.
- Workers accept http(s) entries: the constructor classifies the URL up
front and skips filesystem resolution, the existing HTTP entry branch
and boot options do the work, and the settle gate probes the same
canonical key the entry registers under. The worker inspector target
passes an http(s) URL through instead of prefixing file://.
- The ns:module binding lives beside the loader state it configures; the
transport TU no longer depends on the loader headers, and
configureLoader parses the import map once and installs the parsed
result instead of validating by parse and parsing again.1 parent bce6698 commit 037e878
11 files changed
Lines changed: 726 additions & 518 deletions
File tree
- test-app
- app/src/main
- assets/app/tests
- java/com/tns/tests
- runtime/src/main/cpp
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
199 | 216 | | |
200 | 217 | | |
201 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
1215 | 1217 | | |
1216 | 1218 | | |
1217 | 1219 | | |
1218 | | - | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1219 | 1227 | | |
1220 | 1228 | | |
1221 | 1229 | | |
1222 | | - | |
| 1230 | + | |
1223 | 1231 | | |
1224 | 1232 | | |
1225 | 1233 | | |
| |||
1232 | 1240 | | |
1233 | 1241 | | |
1234 | 1242 | | |
1235 | | - | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1236 | 1246 | | |
1237 | 1247 | | |
1238 | 1248 | | |
| |||
1248 | 1258 | | |
1249 | 1259 | | |
1250 | 1260 | | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
1256 | 1265 | | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1262 | 1284 | | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | 1285 | | |
1268 | 1286 | | |
1269 | 1287 | | |
| |||
0 commit comments