rz_heap_glibc.h: Add have_fastchunks member to RzHeap_MallocState_ structs (#3200)
* Add `have_fastchunks` member to `RzHeap_MallocState_` structs * Show only last few lines of `dmh` output in "dmh allocated" test
This commit is contained in:
parent
ea07efdfb8
commit
3ddbda0a9a
2 changed files with 5 additions and 5 deletions
|
|
@ -117,6 +117,7 @@ typedef RzHeapChunk32 *mchunkptr32;
|
|||
typedef struct rz_malloc_state_32 {
|
||||
int mutex; /* serialized access */
|
||||
int flags; /* flags */
|
||||
int have_fastchunks; /* new free blocks in fastbin chunks? */
|
||||
ut32 fastbinsY[NFASTBINS]; /* array of fastchunks */
|
||||
ut32 top; /* top chunk's base addr */
|
||||
ut32 last_remainder; /* remainder top chunk's addr */
|
||||
|
|
@ -132,6 +133,7 @@ typedef struct rz_malloc_state_32 {
|
|||
typedef struct rz_malloc_state_64 {
|
||||
int mutex; /* serialized access */
|
||||
int flags; /* flags */
|
||||
int have_fastchunks; /* new free blocks in fastbin chunks? */
|
||||
ut64 fastbinsY[NFASTBINS]; /* array of fastchunks */
|
||||
ut64 top; /* top chunk's base addr */
|
||||
ut64 last_remainder; /* remainder top chunk's addr */
|
||||
|
|
|
|||
|
|
@ -19,18 +19,16 @@ FILE=bins/elf/simple_malloc_x86_64
|
|||
ARGS=-d
|
||||
CMDS=<<EOF
|
||||
dcu main
|
||||
dmh
|
||||
dmh | tail -n 2
|
||||
?e ----
|
||||
7dso
|
||||
dmh
|
||||
dmh | tail -n 3
|
||||
EOF
|
||||
REGEXP_FILTER_OUT=(status=[a-z,[0]+)|(size=0x[a-f0-9]+)|-+|\n|[()]|Arena|Chunk
|
||||
REGEXP_FILTER_OUT=(status=[a-z,[0]+)|(size=0x[a-f0-9]+)|-+|\n|[()]|Chunk
|
||||
EXPECT=<<EOF
|
||||
Arena
|
||||
Chunk(status=allocated,size=0x11c10)
|
||||
Chunk(status=free[0m,size=0xf160)
|
||||
----
|
||||
Arena
|
||||
Chunk(status=allocated,size=0x11c10)
|
||||
Chunk(status=allocated,size=0x20)
|
||||
Chunk(status=free[0m,size=0xf140)
|
||||
|
|
|
|||
Loading…
Reference in a new issue