<div dir="ltr"><div>Hi erlang-bugs,</div><div>I couple of months ago I tried running our full application using HiPE. I ran into several issues, some manageable, some not... The most problematic issue was due to locking, specifically, the hipe_mfait_lock (you can see the lock counter output in the gist bellow).</div><div><br></div><div><a href="https://gist.github.com/lpgauth/2b3220f4bceeed6f62d0">https://gist.github.com/lpgauth/2b3220f4bceeed6f62d0</a><br></div><div><br></div><div>Looking at the code it's obvious that this is a known problem... the following comment was added when the lock was added in 2010.</div><div><br></div><div>"XXX: Redesign apply et al to avoid those updates."</div><div><a href="https://github.com/erlang/otp/blob/maint/erts/emulator/hipe/hipe_bif0.c#L1218">https://github.com/erlang/otp/blob/maint/erts/emulator/hipe/hipe_bif0.c#L1218</a><br></div><div><br></div><div>Unfortunately, I'm don't know the runtime enough to start patching it... so instead I'm reporting it.</div><div><br></div><div>Thanks,</div><div>LP</div><div><br></div><div><br></div><div><br></div><br></div>