[erlang-patches] Patch for hibernate/HiPE bug

Kostis Sagonas kostis@REDACTED
Sat May 21 09:25:26 CEST 2011


Paul Guyot wrote:
> 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

Merci Paul,

I hope it's not too late to include this in the upcoming R14B03.
It would be nice to do so.

Kostis




More information about the erlang-patches mailing list