Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline layout validation and pointer cast code to optimize out panic #1997

Merged
merged 2 commits into from
Oct 31, 2024

Commits on Oct 31, 2024

  1. Always inline layout validation and pointer cast code to optimize out…

    … panics in
    
    `validate_cast_and_convert_metadata`.
    
    If `try_cast_into` and `validate_cast_and_convert_metadata` are not
    inlined, then the compiler will include a panic in `validate_cast_and_convert_metadata`.
    
    If these functions are inlined, then the panic can be optimized out.
    clundin25 committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    1068bb7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9c4ca2e View commit details
    Browse the repository at this point in the history