diff options
author | Lukas Larsson <[email protected]> | 2019-04-15 11:28:58 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2019-04-18 14:14:42 +0200 |
commit | bea8399d5d4b54ec2c77d86921885eb9539b00d6 (patch) | |
tree | ab3e6c5f919a5fe04081af69b5ff01d062b464c2 | |
parent | 94f7912c4a12a2a1ab325f62daebfe1b31fe101f (diff) | |
download | otp-bea8399d5d4b54ec2c77d86921885eb9539b00d6.tar.gz otp-bea8399d5d4b54ec2c77d86921885eb9539b00d6.tar.bz2 otp-bea8399d5d4b54ec2c77d86921885eb9539b00d6.zip |
erts: Fix cleanup of message factory undo
-rw-r--r-- | erts/emulator/beam/erl_message.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_message.c b/erts/emulator/beam/erl_message.c index 2a0fb9e2aa..6645341512 100644 --- a/erts/emulator/beam/erl_message.c +++ b/erts/emulator/beam/erl_message.c @@ -1590,6 +1590,9 @@ void erts_factory_undo(ErtsHeapFactory* factory) factory->message->hfrag.next = factory->heap_frags; else factory->message->data.heap_frag = factory->heap_frags; + /* Set the message to NIL in order for this message not to be + treated as a distributed message by the cleanup_messages logic */ + factory->message->m[0] = NIL; erts_cleanup_messages(factory->message); break; case FACTORY_TMP: |