You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,19 @@ have problems running existent software!
53
53
54
54
### New memory allocator
55
55
56
-
Clib4 now use `Wheel Of Fortune` allocator that is faster than previous one, and it seems more robust and with a cleaner
57
-
and portable code
56
+
Clib4 now use `wmem` allocator from WireShark that is faster than previous one, and it seems more robust and with a cleaner
57
+
and portable code.
58
+
You can choose at runtime (for test purpose) which kind of allocators want to use setting `CLIB4_MEMORY_ALLOCATOR` env variable.
59
+
At moment you can use:
60
+
61
+
| Value | Allocator |
62
+
|-------|---------------------------|
63
+
| 1 | WMEM_ALLOCATOR_SIMPLE |
64
+
| 2 | WMEM_ALLOCATOR_BLOCK |
65
+
| 3 | WMEM_ALLOCATOR_STRICT |
66
+
| 4 | WMEM_ALLOCATOR_BLOCK_FAST |
67
+
68
+
The default one is `WMEM_ALLOCATOR_BLOCK_STRICT`. `WMEM_ALLOCATOR_BLOCK_FAST` can crash on some situation. Please refer to `wmem/wmem_core.h` for all details.
0 commit comments