Skip to content

Commit

Permalink
When building as standalone GC the free object is initialized with 0 …
Browse files Browse the repository at this point in the history
…flags. This leads to the free list plugs not having the right size on heap traversal (often leading to a crash). The fix is for the free object to be an array with a compenent size of 1 byte.

Commit migrated from dotnet/coreclr@6a1c28f
  • Loading branch information
jeffschwMSFT committed Sep 20, 2017
1 parent 4f4ca65 commit 7cae92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/src/gc/env/gcenv.object.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class MethodTable
{
m_baseSize = 3 * sizeof(void *);
m_componentSize = 1;
m_flags = 0;
m_flags = MTFlag_HasComponentSize | MTFlag_IsArray;
}

uint32_t GetBaseSize()
Expand Down

0 comments on commit 7cae92f

Please sign in to comment.