Skip to content

[Asyncify/Bysyncify] Mechanism to exclude indirect calls in certain functions #2218

@Keno

Description

@Keno

In investigating the performance of bysyncify (for JuliaLang/julia#32532), I'm noticing a significant number of functions being instrumented that could never appear on stack during an unwind. The reason that these functions are being instrumented is that they're using indirect calls. However, the call targets for these indirect calls is limited and none of the call targets can possibly unwind. It would be useful to be able to exclude these from the bysyncify transform. In the short term, a command line argument to emcc and bysyncify is probably sufficient, though longer term it would be nice to be able to annotate such functions in the C source (since that's a more natural place to keep this knowledge in sync). I don't know the wasm object file format well enough to know if there is some mechanism we could piggy back on to plumb this information through (cc @sbc100 for thoughts on that).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions