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

Fix EEType::BaseSize computation for value types - #1204

Merged
MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:valueTypeBaseSize
Apr 27, 2016
Merged

MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:valueTypeBaseSize

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

BaseSize should report the boxed size of the type instance for value
types.

InstanceByteCount returns the number of bytes that would be reported by
the sizeof() operator. This doesn't include the one inherited field from
System.Object. That field is present when the type is boxed and needs to
be accounted for.

BaseSize should report the boxed size of the type instance for value
types.

InstanceByteCount returns the number of bytes that would be reported by
the sizeof() operator. This doesn't include the one inherited field from
System.Object. That field is present when the type is boxed and needs to
be accounted for.
@jkotas

jkotas commented Apr 26, 2016

Copy link
Copy Markdown
Member

LGTM

@MichalStrehovsky
MichalStrehovsky merged commit 1d9584a into dotnet:master Apr 27, 2016
@MichalStrehovsky
MichalStrehovsky deleted the valueTypeBaseSize branch April 27, 2016 00:15
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