From 6a1c28f05642ac0420b78f35ad32a00b6aef0488 Mon Sep 17 00:00:00 2001 From: Jeff Schwartz Date: Wed, 20 Sep 2017 10:17:32 -0700 Subject: 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. --- src/gc/env/gcenv.object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gc') 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() -- cgit v1.2.3