Skip to content

Use generic Marshal.SizeOf when possible (#21964)#23951

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_818676280
Oct 13, 2025
Merged

Use generic Marshal.SizeOf when possible (#21964)#23951
copybara-service[bot] merged 1 commit intomainfrom
test_818676280

Conversation

@copybara-service
Copy link

Use generic Marshal.SizeOf when possible (#21964)

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
FUTURE_COPYBARA_INTEGRATE_REVIEW=#21964 from ThadHouse:genericsizeof a12294e

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
@copybara-service copybara-service bot merged commit b9fc8a3 into main Oct 13, 2025
@copybara-service copybara-service bot deleted the test_818676280 branch October 13, 2025 16:25
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.

Update to 3.31.0 breaks AOT build

1 participant