[erlang-patches] wrong arg in call to erts_smp_block_system
Romain Lenglet
romain.lenglet@REDACTED
Tue Nov 25 13:21:37 CET 2008
Hi,
In the emulator, the erts_smp_block_system() function takes as an argument a
bit field, which can be a combination of flags ERTS_BS_FLG_ALLOW_GC,
ERTS_BS_FLG_ALLOW_IO, etc.
The call to erts_smp_block_system() in erl_process.c passes a wrong argument,
ERTS_ACTIVITY_IO, which is an unrelated enum value.
Attached is a one-line patch for R12B-5.
The same bug was already there in R12B-4.
Fortunately, this bug seems not critical as this call is used only to protect
the calculation of the number of reductions, in the statistics/1 BIF.
Best regards,
--
Romain Lenglet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_erts_smp_block_system_arg_r12b-5_2008-11-25.diff
Type: text/x-diff
Size: 549 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20081125/3609a419/attachment.bin>
More information about the erlang-patches
mailing list