Commit 9f263cd
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
Co-authored-by: Thad House <[email protected]>
1 parent 06d6548 commit 9f263cd
File tree
2 files changed
+11
-5
lines changed- csharp/src/Google.Protobuf
- Collections
2 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
715 | 721 | | |
716 | 722 | | |
717 | 723 | | |
| |||
772 | 778 | | |
773 | 779 | | |
774 | 780 | | |
775 | | - | |
| 781 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments