Repository navigation
Commit fa8dfa5
committed
fix(runtime): leak probe reads a canary record's shell
A JS-extended object's canary record now keeps one shell object, which
carries the first canary's prototype, internal fields and implementation
object, instead of a handle to each. The probe lists the shell among the
record's values, so it stays a runtime handle rather than a root, and a
cycle through the implementation object is found through it.
A planted object whose method closes over the object itself checks that
such a cycle, whose only path runs through the shell, is still reported.1 parent 761ff4c commit fa8dfa5
2 files changed
Lines changed: 24 additions & 6 deletions
File tree
- test-app
- app/src/main/assets/app/tests
- runtime/src/main/cpp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
54 | 65 | | |
55 | 66 | | |
56 | 67 | | |
| |||
137 | 148 | | |
138 | 149 | | |
139 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
140 | 162 | | |
141 | 163 | | |
142 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1218 | 1218 | | |
1219 | 1219 | | |
1220 | 1220 | | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
| 1221 | + | |
| 1222 | + | |
1227 | 1223 | | |
1228 | 1224 | | |
1229 | 1225 | | |
| |||
0 commit comments