Skip to content

Conversation

@zhangskz
Copy link
Member

@zhangskz zhangskz commented Dec 2, 2025

85507b9 introduced a new call to Marshal.Sizeof(Type). This call is not AOT compatible, which is a regression as prior versions were AOT compatible, even if not directly supported.

This conditionally uses the generic version of Marshal.SizeOf, which is AOT compatible to fix the issue.

Closes #21824

Closes #21964

COPYBARA_INTEGRATE_REVIEW=#21964 from ThadHouse:genericsizeof a12294e PiperOrigin-RevId: 818694739

Cherry-pick of b9fc8a3

85507b9 introduced a new call to Marshal.Sizeof(Type). This call is not AOT compatible, which is a regression as prior versions were AOT compatible, even if not directly supported.

This conditionally uses the generic version of Marshal.SizeOf, which is AOT compatible to fix the issue.

Closes #21824

Closes #21964

COPYBARA_INTEGRATE_REVIEW=#21964 from ThadHouse:genericsizeof a12294e
PiperOrigin-RevId: 818694739
@zhangskz zhangskz requested a review from a team as a code owner December 2, 2025 18:08
@zhangskz zhangskz requested review from PilgrimMemoirs and jskeet and removed request for a team December 2, 2025 18:08
@zhangskz zhangskz enabled auto-merge (squash) December 2, 2025 18:09
@zhangskz zhangskz merged commit 9f263cd into 33.x Dec 2, 2025
222 checks passed
@zhangskz zhangskz deleted the backport-csharp branch December 2, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants