diff options
author | Björn Gustavsson <[email protected]> | 2012-02-07 09:00:22 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2012-02-07 09:00:22 +0100 |
commit | 0c399a77db7eba81f13baccb1f19517991619f4e (patch) | |
tree | 2472685fc5b7911a79ede6c23291798802fdd9cc /erts/emulator/beam/beam_bp.c | |
parent | ee20527da3c90d1f7c10e7702237f9c71e23a3cd (diff) | |
parent | 741eb5821beba958eafba23f11b1f115f63dd75e (diff) | |
download | otp-0c399a77db7eba81f13baccb1f19517991619f4e.tar.gz otp-0c399a77db7eba81f13baccb1f19517991619f4e.tar.bz2 otp-0c399a77db7eba81f13baccb1f19517991619f4e.zip |
Merge branch 'bjorn/erts/bif-stubs/OTP-9861'
* bjorn/erts/bif-stubs/OTP-9861:
beam_bp: Fix faulty assertion in erts_find_local_func()
beam_load: Fix faulty assertion in module_info(native_addresses)
Diffstat (limited to 'erts/emulator/beam/beam_bp.c')
-rw-r--r-- | erts/emulator/beam/beam_bp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_bp.c b/erts/emulator/beam/beam_bp.c index dd13cd179a..53f283ba39 100644 --- a/erts/emulator/beam/beam_bp.c +++ b/erts/emulator/beam/beam_bp.c @@ -486,7 +486,8 @@ erts_find_local_func(Eterm mfa[3]) { for (i = 0; i < n; ++i) { code_ptr = code_base[MI_FUNCTIONS+i]; ASSERT(((BeamInstr) BeamOp(op_i_func_info_IaaI)) == code_ptr[0]); - ASSERT(mfa[0] == ((Eterm) code_ptr[2])); + ASSERT(mfa[0] == ((Eterm) code_ptr[2]) || + is_nil((Eterm) code_ptr[2])); if (mfa[1] == ((Eterm) code_ptr[3]) && ((BeamInstr) mfa[2]) == code_ptr[4]) { return code_ptr + 5; |