Skip to content

Regression: explicit TCO and Fat LTO jump table size explosion with inline #162118

Open

Description

@stevefan1999-personal

On fat LTO, it seems like the jump table generation is not taken in effect, or rather taken too literally.

For thin LTO however, did seems to work.

Reported as of explodingcamera/tinywasm#55 (comment)

rustc version: nightly 1.100.0

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 1, 2026
  2. added
    I-heavyIssue: Problems and improvements with respect to binary size of generated code.
    regression-untriagedUntriaged performance or correctness regression.
    on Sep 1, 2026
  3. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Sep 1, 2026
  4. apiraino commented on Sep 2, 2026

    @apiraino
    Contributor

    hi @stevefan1999-personal I'm not too familiar with wasm. could you drop a reproducible to allow us bisecting to where this started? thanks

  5. stevefan1999-personal commented on Sep 3, 2026

    @stevefan1999-personal
    Author

    hi @stevefan1999-personal I'm not too familiar with wasm. could you drop a reproducible to allow us bisecting to where this started? thanks

    https://github.com/stevefan1999-personal/rust-162118-repro

    here you go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-heavyIssue: Problems and improvements with respect to binary size of generated code.I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingregression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions