Dead instance calls left in code #40402
Labels
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
P3
A lower priority bug or feature request
triaged
Issue has been triaged by sub team
vm-aot-code-size
Related to improvements in AOT code size
vm-tfa
Sometimes, the table dispatch transformation encounters instance calls for which no targets exist in the program. This happens when the TFA tree shaker has deemed all of those targets unreachable but hasn't removed the calls to them. Logically, such a call is itself either unreachable, or the receiver is always null.
In debug mode, the table dispatch transformation inserts a null check followed by a breakpoint with a comment saying
Dead instance call executed.
. Searching for that comment in the disassembly reveals the offending calls. For instance, runningreveals 7 such callsites.
The text was updated successfully, but these errors were encountered: