summaryrefslogtreecommitdiff
path: root/src/gc/env
diff options
context:
space:
mode:
authorJeff Schwartz <jeffschw@microsoft.com>2017-09-20 10:17:32 -0700
committerJeff Schwartz <jeffschw@microsoft.com>2017-09-20 10:17:32 -0700
commit6a1c28f05642ac0420b78f35ad32a00b6aef0488 (patch)
tree15c10be284ffb033b74b385933ecde09b2db1f84 /src/gc/env
parent4c979bd47655817f190514fb1c1feff98e4595cf (diff)
downloadcoreclr-6a1c28f05642ac0420b78f35ad32a00b6aef0488.tar.gz
coreclr-6a1c28f05642ac0420b78f35ad32a00b6aef0488.tar.bz2
coreclr-6a1c28f05642ac0420b78f35ad32a00b6aef0488.zip
When building as standalone GC the free object is initialized with 0 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.
Diffstat (limited to 'src/gc/env')
-rw-r--r--src/gc/env/gcenv.object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gc/env/gcenv.object.h b/src/gc/env/gcenv.object.h
index 4261c1a148..4d611e562d 100644
--- a/src/gc/env/gcenv.object.h
+++ b/src/gc/env/gcenv.object.h
@@ -53,7 +53,7 @@ public:
{
m_baseSize = 3 * sizeof(void *);
m_componentSize = 1;
- m_flags = 0;
+ m_flags = MTFlag_HasComponentSize | MTFlag_IsArray;
}
uint32_t GetBaseSize()