Repository navigation
Commit aba8de6
committed
test(runtime): check the leak probe's rebuilt-canary fixture was rebuilt
The spec passed whether the probe saw the original canary or a rebuilt
one, so a regression that kept the original alive went unnoticed. It now
counts canaryRebuilds around the read that rebuilds the canary and
requires one in canary mode. A WeakRef cannot show the original died
there: canary mode's WeakRef.deref() builds a new canary while Java
holds the object.1 parent c645dc5 commit aba8de6
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| 194 | + | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| |||
0 commit comments