[erlang-patches] Patch for hibernate/HiPE bug

Paul Guyot <>
Sat May 21 09:12:06 CEST 2011


Hello,

This commit :
https://github.com/erlang/otp/commit/b7ecdcd1ae9e11b8f75e11b82d94da32837932bc
introduced a new flag (F_HIBERNATE_SCHED) that is set when hibernating and cleared when hibernated process is scheduled out.
However, this flag was not cleared when the hibernated process is scheduled out in hipe_mode_switch. As a result, a process that would hibernate, wake up and then trap by a BIF would be stuck.

The following commit fixes this bug and includes a non-regression test.
https://github.com/pguyot/otp/commit/614c92088cb947a8849ab4681458b233d2151f40
git fetch git://github.com/pguyot/otp.git fix-hibernate-scheduling-with-hipe

Regards,

Paul
-- 
Semiocast            http://semiocast.com/
+33.183627948 - 20 rue Lacaze, 75014 Paris



More information about the erlang-patches mailing list