<div dir="ltr">Hi there!<div><br></div><div>as some of you may know, I've been working on an aarch64 native code</div><div>generator.  Now I've hit a situation where my stage2 compiler somehow</div><div>corrupts my heap.  Initially I thought this would likely be missing memory</div><div>barriers, however they are emitted.  This doesn't mean it can't be, but at</div><div>least it's not as simple as "they are just missing".</div><div><br></div><div>The crashes I see are non deterministic, in fact I sometimes even manage</div><div>to compile a Hello World module, without crashes.  Other times it crashes</div><div>with unknown closure errors or it just crashes.  But it always crashes</div><div>during GC.  Changing the nursery size make it crasha bit more frequent,</div><div>but nothing obvious sticks out yet.</div><div><br></div><div>If anyone has some create ideas, I'd love to hear them.  I've been wondering</div><div>if just logging allocations (offset, range, type) would help figuring out what we</div><div>expected to be there; and then maybe try to break on the allocation, (and</div><div>subsequent writes).</div><div><br></div><div>I'm sure some have been down this road before. </div><div><br></div><div>Cheers,</div><div> Moritz</div></div>