From c5d85e05fd1ab6469998737afa70804867be77dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Wed, 28 Aug 2024 14:44:18 +0200 Subject: [PATCH] fixup! Fix performance regression caused by a bug fix --- erts/emulator/beam/erl_process.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/erts/emulator/beam/erl_process.h b/erts/emulator/beam/erl_process.h index b3eae36e7089..97c4e24d9dcf 100644 --- a/erts/emulator/beam/erl_process.h +++ b/erts/emulator/beam/erl_process.h @@ -1057,7 +1057,15 @@ struct process { Eterm* heap; /* Heap start */ Eterm* hend; /* Heap end */ + + /* If abandoned_heap is not a NULL pointer, it points to the heap + * that was active when delay_garbage_collection() in erl_gc.c was + * called. The high water mark that was active at that time is + * saved in p->hend[0]. + */ + Eterm* abandoned_heap; + Uint heap_sz; /* Size of heap in words */ Uint min_heap_size; /* Minimum size of heap (in words). */ Uint min_vheap_size; /* Minimum size of virtual heap (in words). */