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

Always inline layout validation and pointer cast code to optimize out panics in validate_cast_and_convert_metadata #2013

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Nov 4, 2024

[Back-porting from #1997]

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.

… panics in (#1997)

`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.
@joshlf joshlf requested a review from jswrenn November 4, 2024 16:34
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.46%. Comparing base (255babe) to head (d22f65d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2013   +/-   ##
=======================================
  Coverage   89.46%   89.46%           
=======================================
  Files          16       16           
  Lines        5838     5838           
=======================================
  Hits         5223     5223           
  Misses        615      615           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joshlf joshlf added this pull request to the merge queue Nov 4, 2024
Merged via the queue into main with commit c72fcbf Nov 4, 2024
69 checks passed
@joshlf joshlf deleted the backport-1997 branch November 4, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants