Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Protect from arrays with ElementType.ElementSize >= 64k - #1247

Merged
MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:64kvalueType
May 6, 2016
Merged

MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:64kvalueType

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

This can't be encoded in the EEType (and in the array GCDescs, for that
matter).

I'm removing checked arithmetic from the GCDesc encoder because that
code runs before ComponentSize emission, but it's not the right place to
check for this, because this also applies to value types with no GC
pointers.

This can't be encoded in the EEType (and in the array GCDescs, for that
matter).

I'm removing checked arithmetic from the GCDesc encoder because that
code runs before ComponentSize emission, but it's not the right place to
check for this, because this also applies to value types with no GC
pointers.
@jkotas

jkotas commented May 6, 2016

Copy link
Copy Markdown
Member

LGTM

@MichalStrehovsky
MichalStrehovsky merged commit ad042fb into dotnet:master May 6, 2016
@MichalStrehovsky
MichalStrehovsky deleted the 64kvalueType branch May 6, 2016 19:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants