Repository navigation
Commit 9cc697a
committed
fix(runtime): count an object constructed from JS under its class
RegisterInstance links the wrapper before the class is known to the
link, then records the class with SetJavaClass. That set only the
instance info, so getWrapperClassCounts(), which reads the weak-callback
state, counted every JS-constructed object under <unknown>, and a dead
canary's record never got the class either. SetJavaClass now updates the
state too.1 parent 30ff362 commit 9cc697a
2 files changed
Lines changed: 11 additions & 0 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 | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
760 | 768 | | |
761 | 769 | | |
762 | 770 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
365 | 368 | | |
366 | 369 | | |
367 | 370 | | |
| |||
0 commit comments