aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_ao_firstfit_alloc.h
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-06-21 17:48:35 +0200
committerJohn Högberg <[email protected]>2018-06-28 09:06:43 +0200
commit29ce7ab0e4403fa688d1e5e5e2170e88d7e8f299 (patch)
tree5f9c9b8e3f07d1a249c2796416ba45c4bea5ab13 /erts/emulator/beam/erl_ao_firstfit_alloc.h
parentc67615343b8ab10f10ffc40eccc24c6ec36cd9cd (diff)
downloadotp-29ce7ab0e4403fa688d1e5e5e2170e88d7e8f299.tar.gz
otp-29ce7ab0e4403fa688d1e5e5e2170e88d7e8f299.tar.bz2
otp-29ce7ab0e4403fa688d1e5e5e2170e88d7e8f299.zip
Add 'chaos first fit' to test mixed-order carrier migration
Diffstat (limited to 'erts/emulator/beam/erl_ao_firstfit_alloc.h')
-rw-r--r--erts/emulator/beam/erl_ao_firstfit_alloc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_ao_firstfit_alloc.h b/erts/emulator/beam/erl_ao_firstfit_alloc.h
index 68df9e0a49..9c9b98da86 100644
--- a/erts/emulator/beam/erl_ao_firstfit_alloc.h
+++ b/erts/emulator/beam/erl_ao_firstfit_alloc.h
@@ -32,7 +32,12 @@ enum AOFFSortOrder {
FF_AGEFF = 0, /* carrier trees only */
FF_AOFF = 1,
FF_AOBF = 2, /* block trees only */
- FF_BF = 3 /* block trees only */
+ FF_BF = 3, /* block trees only */
+
+ FF_CHAOS = -1 /* A test-specific sort order that picks any of the above
+ * after instance id. Used to test that carriers created
+ * under one order will work fine after being migrated
+ * to another. */
};
typedef struct {