Skip to content

Conversation

NinoFloris
Copy link
Member

Doing (T?)(object)(T)value apparently causes the jit to emit a box, even though it knows both concrete types due to specializiation.

Fix by making the method constrained to struct so we can concretely wrap the T instead of using the unboxing support for nullables.

@NinoFloris NinoFloris added this to the 8.0.2 milestone Jan 31, 2024
@NinoFloris NinoFloris merged commit df80534 into main Jan 31, 2024
@NinoFloris NinoFloris deleted the fix-nullable-boxing branch January 31, 2024 21:34
NinoFloris added a commit that referenced this pull request Jan 31, 2024
@NinoFloris
Copy link
Member Author

Backported to 8.0.2 via 62701ba

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.

2 participants