3 .globl _dl_tunable_set_mmap_threshold
4 .type _dl_tunable_set_mmap_threshold, @function
5 _dl_tunable_set_mmap_threshold
:
9 movq
%rax
, 16+mp_
(%rip
)
13 .size _dl_tunable_set_mmap_threshold, .-_dl_tunable_set_mmap_threshold
15 .globl _dl_tunable_set_mmaps_max
16 .type _dl_tunable_set_mmaps_max, @function
17 _dl_tunable_set_mmaps_max
:
20 movl
%eax
, 44+mp_
(%rip
)
22 .size _dl_tunable_set_mmaps_max, .-_dl_tunable_set_mmaps_max
24 .globl _dl_tunable_set_top_pad
25 .type _dl_tunable_set_top_pad, @function
26 _dl_tunable_set_top_pad
:
29 movq
%rax
, 8+mp_
(%rip
)
31 .size _dl_tunable_set_top_pad, .-_dl_tunable_set_top_pad
33 .globl _dl_tunable_set_perturb_byte
34 .type _dl_tunable_set_perturb_byte, @function
35 _dl_tunable_set_perturb_byte
:
37 movl
%eax
, perturb_byte
(%rip
)
39 .size _dl_tunable_set_perturb_byte, .-_dl_tunable_set_perturb_byte
41 .globl _dl_tunable_set_trim_threshold
42 .type _dl_tunable_set_trim_threshold, @function
43 _dl_tunable_set_trim_threshold
:
48 .size _dl_tunable_set_trim_threshold, .-_dl_tunable_set_trim_threshold
50 .globl _dl_tunable_set_arena_max
51 .type _dl_tunable_set_arena_max, @function
52 _dl_tunable_set_arena_max
:
54 movq
%rax
, 32+mp_
(%rip
)
56 .size _dl_tunable_set_arena_max, .-_dl_tunable_set_arena_max
58 .globl _dl_tunable_set_arena_test
59 .type _dl_tunable_set_arena_test, @function
60 _dl_tunable_set_arena_test
:
62 movq
%rax
, 24+mp_
(%rip
)
64 .size _dl_tunable_set_arena_test, .-_dl_tunable_set_arena_test
66 .globl _dl_tunable_set_tcache_max
67 .type _dl_tunable_set_tcache_max, @function
68 _dl_tunable_set_tcache_max
:
72 movq
%rax
, 88+mp_
(%rip
)
82 movq
%rdx
, 80+mp_
(%rip
)
85 .size _dl_tunable_set_tcache_max, .-_dl_tunable_set_tcache_max
87 .globl _dl_tunable_set_tcache_count
88 .type _dl_tunable_set_tcache_count, @function
89 _dl_tunable_set_tcache_count
:
93 movq
%rax
, 96+mp_
(%rip
)
96 .size _dl_tunable_set_tcache_count, .-_dl_tunable_set_tcache_count
98 .globl _dl_tunable_set_tcache_unsorted_limit
99 .type _dl_tunable_set_tcache_unsorted_limit, @function
100 _dl_tunable_set_tcache_unsorted_limit
:
102 movq
%rax
, 104+mp_
(%rip
)
104 .size _dl_tunable_set_tcache_unsorted_limit, .-_dl_tunable_set_tcache_unsorted_limit
106 .globl _dl_tunable_set_mxfast
107 .type _dl_tunable_set_mxfast, @function
108 _dl_tunable_set_mxfast
:
118 movq
%rdx
, global_max_fast
(%rip
)
121 .size _dl_tunable_set_mxfast, .-_dl_tunable_set_mxfast
123 .type mem2mem_check, @function
142 leaq
-17(%rcx
,%rdx
,8), %rcx
157 movb
%dl
, (%rax
,%rcx
)
162 movb
%dil
, (%rax
,%rsi
)
165 .size mem2mem_check, .-mem2mem_check
167 .type mem2chunk_check, @function
185 movl
4+main_arena
(%rip
), %edx
188 movq
72+mp_
(%rip
), %r10
191 addq
2184+main_arena
(%rip
), %r10
192 leaq
(%rax
,%rcx
), %r11
200 testb $
1, -8(%rdi
,%rcx
)
206 leaq
(%rax
,%rdi
), %rcx
226 leaq
(%rax
,%rdi
), %rcx
248 cmpq
%r9, 72+mp_
(%rip
)
264 movq _dl_pagesize
(%rip
), %rdx
289 leaq
(%rax
,%rdx
), %rcx
309 leaq
(%rax
,%rdx
), %rcx
317 leaq
-256(%r10), %r11
320 leaq
-1024(%r10), %r11
327 .size mem2chunk_check, .-mem2chunk_check
329 .type malloc_init_state, @function
332 leaq
2128(%rdi
), %rdx
342 leaq main_arena
(%rip
), %rax
351 movq $
128, global_max_fast
(%rip
)
353 .size malloc_init_state, .-malloc_init_state
354 .section .rodata.str1.1,"aMS",@progbits,1
359 .type malloc_printerr, @function
361 leaq
.LC0(%rip), %rsi
367 .size malloc_printerr, .-malloc_printerr
368 .section .rodata.str1.1
370 .string "malloc: top chunk is corrupt"
373 .type top_check, @function
375 movq
96+main_arena
(%rip
), %rax
376 leaq
96+main_arena
(%rip
), %rdx
388 testb $
2, 4+main_arena
(%rip
)
390 movq
2184+main_arena
(%rip
), %rdx
391 addq
72+mp_
(%rip
), %rdx
398 leaq
.LC1(%rip), %rdi
401 .size top_check, .-top_check
402 .section .rodata.str1.8,"aMS",@progbits,1
405 .string "int_mallinfo(): unaligned fastbin chunk detected"
408 .type int_mallinfo, @function
439 leaq
.LC2(%rip), %rdi
446 leaq
2128(%rdi
), %rbx
450 leaq
(%r10,%rbp
), %r8
471 movq
2184(%rdi
), %rax
478 leaq main_arena
(%rip
), %rax
485 movslq
40+mp_
(%rip
), %rax
488 movq
56+mp_
(%rip
), %rax
496 .size int_mallinfo, .-int_mallinfo
497 .section .rodata.str1.1
502 .section .rodata.str1.8
505 .string "%s%s%s:%u: %s%sAssertion `%s' failed.\n"
508 .type __malloc_assert, @function
512 movq __progname
(%rip
), %rdx
513 leaq
.LC3(%rip), %r10
514 leaq
.LC4(%rip), %rax
516 leaq
.LC5(%rip), %rsi
526 movq stderr
(%rip
), %rdi
530 .size __malloc_assert, .-__malloc_assert
532 .type new_heap, @function
541 movq _dl_pagesize
(%rip
), %rbp
546 movq aligned_heap_area
(%rip
), %rdi
547 leaq
-1(%rsi
,%rbp
), %rax
560 movq $
0, aligned_heap_area
(%rip
)
562 testl $
67108863, %eax
593 movl $
134217728, %esi
597 leaq
67108863(%rax
), %rbx
598 andq $
-67108864, %rbx
600 leaq
67108864(%rbx
), %r12
603 movq
%r12, aligned_heap_area
(%rip
)
644 testl $
67108863, %eax
654 .size new_heap, .-new_heap
655 .section .rodata.str1.1
659 .string "chunk_is_mmapped (p)"
660 .section .rodata.str1.8
663 .string "munmap_chunk(): invalid pointer"
666 .type munmap_chunk, @function
675 movq _dl_pagesize
(%rip
), %rax
690 lock;decl
40+mp_
(%rip
)
697 lock;addq
%rax
, 56+mp_
(%rip
)
705 leaq
.LC8(%rip), %rdi
708 leaq __PRETTY_FUNCTION__.12735
(%rip
), %rcx
709 leaq
.LC6(%rip), %rsi
710 leaq
.LC7(%rip), %rdi
713 .size munmap_chunk, .-munmap_chunk
714 .section .rodata.str1.8
717 .string "mremap_chunk(): invalid pointer"
718 .section .rodata.str1.1
720 .string "aligned_OK (chunk2rawmem (p))"
722 .string "prev_size (p) == offset"
725 .type mremap_chunk, @function
731 movq _dl_pagesize
(%rip
), %rcx
738 leaq
0(%rbp
,%r12), %r8
750 leaq
7(%rcx
,%rsi
), %rbx
764 leaq
(%rax
,%rbp
), %rdi
776 lock xaddq
%rax
, 56+mp_
(%rip
)
779 movq
64+mp_
(%rip
), %rax
782 lock cmpxchgq
%rbx
, 64+mp_
(%rip
)
793 leaq
.LC9(%rip), %rdi
801 leaq __PRETTY_FUNCTION__.12747
(%rip
), %rcx
802 leaq
.LC6(%rip), %rsi
803 leaq
.LC7(%rip), %rdi
807 leaq __PRETTY_FUNCTION__.12747
(%rip
), %rcx
808 leaq
.LC6(%rip), %rsi
809 leaq
.LC10(%rip), %rdi
813 leaq __PRETTY_FUNCTION__.12747
(%rip
), %rcx
814 leaq
.LC6(%rip), %rsi
815 leaq
.LC11(%rip), %rdi
818 .size mremap_chunk, .-mremap_chunk
820 .type ptmalloc_init.part.0, @function
821 ptmalloc_init.part.0
:
823 leaq main_arena
(%rip
), %rdi
825 movq thread_arena@gottpoff
(%rip
), %rax
826 movl $
0, __libc_malloc_initialized
(%rip
)
828 movq
%rdi
, %fs:(%rax
)
829 call malloc_init_state
830 leaq _dl_tunable_set_mallopt_check
(%rip
), %rdx
833 call __tunable_get_val@PLT
834 leaq _dl_tunable_set_top_pad
(%rip
), %rdx
837 call __tunable_get_val@PLT
838 leaq _dl_tunable_set_perturb_byte
(%rip
), %rdx
841 call __tunable_get_val@PLT
842 leaq _dl_tunable_set_mmap_threshold
(%rip
), %rdx
845 call __tunable_get_val@PLT
846 leaq _dl_tunable_set_trim_threshold
(%rip
), %rdx
849 call __tunable_get_val@PLT
850 leaq _dl_tunable_set_mmaps_max
(%rip
), %rdx
853 call __tunable_get_val@PLT
854 leaq _dl_tunable_set_arena_max
(%rip
), %rdx
857 call __tunable_get_val@PLT
858 leaq _dl_tunable_set_arena_test
(%rip
), %rdx
861 call __tunable_get_val@PLT
862 leaq _dl_tunable_set_tcache_max
(%rip
), %rdx
865 call __tunable_get_val@PLT
866 leaq _dl_tunable_set_tcache_count
(%rip
), %rdx
869 call __tunable_get_val@PLT
870 leaq _dl_tunable_set_tcache_unsorted_limit
(%rip
), %rdx
873 call __tunable_get_val@PLT
874 leaq _dl_tunable_set_mxfast
(%rip
), %rdx
877 call __tunable_get_val@PLT
878 movl $
1, __libc_malloc_initialized
(%rip
)
882 .size ptmalloc_init.part.0, .-ptmalloc_init.part.0
883 .section .rodata.str1.1
885 .string "corrupted size vs. prev_size"
887 .string "corrupted double-linked list"
888 .section .rodata.str1.8
891 .string "corrupted double-linked list (not small)"
894 .type unlink_chunk.isra.2, @function
900 cmpq
(%rdi
,%rax
), %rax
931 leaq
.LC13(%rip), %rdi
952 leaq
.LC12(%rip), %rdi
955 leaq
.LC14(%rip), %rdi
957 .size unlink_chunk.isra.2, .-unlink_chunk.isra.2
958 .section .rodata.str1.8
961 .string "malloc_consolidate(): unaligned fastbin chunk detected"
964 .string "malloc_consolidate(): invalid chunk size"
967 .string "corrupted size vs. prev_size in fastbins"
970 .type malloc_consolidate, @function
999 testb $
1, 8(%rax
,%rcx
)
1003 movq
112(%r13), %rax
1005 movq
%rbx
, 112(%r13)
1018 movq
%rbp
, (%rbx
,%rbp
)
1028 leaq
16(%r13,%rax
,8), %rax
1035 leaq
(%rbx
,%rbp
), %rax
1054 call unlink_chunk.isra.2
1089 call unlink_chunk.isra.2
1095 leaq
.LC15(%rip), %rdi
1096 call malloc_printerr
1100 leaq
.LC17(%rip), %rdi
1101 call malloc_printerr
1103 leaq
.LC16(%rip), %rdi
1104 call malloc_printerr
1105 .size malloc_consolidate, .-malloc_consolidate
1106 .section .rodata.str1.1
1109 .section .rodata.str1.8
1112 .string "replaced_arena->attached_threads > 0"
1113 .section .text.unlikely,"ax",@progbits
1114 .type detach_arena.part.3, @function
1115 detach_arena.part.3
:
1116 leaq __PRETTY_FUNCTION__.11963
(%rip
), %rcx
1117 leaq
.LC18(%rip), %rsi
1118 leaq
.LC19(%rip), %rdi
1121 call __malloc_assert
1122 .size detach_arena.part.3, .-detach_arena.part.3
1123 .section .rodata.str1.1
1125 .string "result->attached_threads == 0"
1128 .type get_free_list, @function
1130 cmpq $
0, free_list
(%rip
)
1135 movq thread_arena@gottpoff
(%rip
), %rbp
1136 movq
%fs:0(%rbp
), %r12
1146 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1147 cmpxchgl
%edx
, free_list_lock
(%rip
)
1151 movq free_list
(%rip
), %rbx
1155 movq
2168(%rbx
), %rax
1156 movq
%rax
, free_list
(%rip
)
1161 movq
2176(%r12), %rax
1165 movq
%rax
, 2176(%r12)
1174 subl $
1, free_list_lock
(%rip
)
1187 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1188 cmpxchgl
%edx
, (%rbx
)
1192 movq
%rbx
, %fs:0(%rbp
)
1212 lock cmpxchgl
%edx
, (%rbx
)
1215 call __lll_lock_wait_private
1222 lock cmpxchgl
%edx
, free_list_lock
(%rip
)
1224 leaq free_list_lock
(%rip
), %rdi
1225 call __lll_lock_wait_private
1233 xchgl
%eax
, free_list_lock
(%rip
)
1241 leaq free_list_lock
(%rip
), %rdi
1251 leaq __PRETTY_FUNCTION__.12067
(%rip
), %rcx
1252 leaq
.LC18(%rip), %rsi
1253 leaq
.LC20(%rip), %rdi
1255 call __malloc_assert
1257 call detach_arena.part.3
1258 .size get_free_list, .-get_free_list
1259 .section .rodata.str1.1
1261 .string "p->attached_threads == 0"
1264 .type arena_get2.part.4, @function
1271 movq narenas_limit.12181
(%rip
), %rax
1272 movq narenas
(%rip
), %rdx
1275 movq
32+mp_
(%rip
), %rax
1278 movq
%rax
, narenas_limit.12181
(%rip
)
1283 movq next_to_use.12122
(%rip
), %rbx
1294 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1295 cmpxchgl
%edx
, (%rbx
)
1301 movq
2160(%rbx
), %rbx
1302 cmpq next_to_use.12122
(%rip
), %rbx
1313 lock cmpxchgl
%edx
, (%rbx
)
1321 movq thread_arena@gottpoff
(%rip
), %rbp
1322 movq
%fs:0(%rbp
), %r12
1332 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1333 cmpxchgl
%edx
, free_list_lock
(%rip
)
1339 movq
2176(%r12), %rax
1343 movq
%rax
, 2176(%r12)
1345 movq free_list
(%rip
), %rdx
1362 movq
2168(%rdx
), %rax
1374 subl $
1, free_list_lock
(%rip
)
1376 movq
2160(%rbx
), %rax
1377 movq
%rbx
, %fs:0(%rbp
)
1378 movq
%rax
, next_to_use.12122
(%rip
)
1390 cmpq
%rdx
, 24+mp_
(%rip
)
1400 movq narenas
(%rip
), %rdx
1402 movq
%rax
, narenas_limit.12181
(%rip
)
1419 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1420 cmpxchgl
%edx
, (%rbx
)
1427 leaq
2168(%rdx
), %rcx
1430 movq
2168(%rdx
), %rax
1436 leaq main_arena
(%rip
), %rbx
1437 movq
%rbx
, next_to_use.12122
(%rip
)
1442 movq
2160(%rbx
), %rbx
1454 0: cmpxchgq
%rcx
, narenas
(%rip
)
1459 movq narenas
(%rip
), %rdx
1460 movq narenas_limit.12181
(%rip
), %rax
1467 lock cmpxchgl
%edx
, free_list_lock
(%rip
)
1469 leaq free_list_lock
(%rip
), %rdi
1470 call __lll_lock_wait_private
1478 xchgl
%eax
, free_list_lock
(%rip
)
1486 leaq free_list_lock
(%rip
), %rdi
1496 leaq free_list
(%rip
), %rcx
1501 lock cmpxchgl
%edx
, (%rbx
)
1504 call __lll_lock_wait_private
1507 movq $
16, narenas_limit.12181
(%rip
)
1508 movq narenas
(%rip
), %rdx
1512 movq
8+mp_
(%rip
), %rsi
1523 call malloc_init_state
1525 leaq
2248(%rbp
), %rcx
1527 leaq
2232(%rbp
), %rdx
1529 movq
%rax
, 2224(%rbp
)
1530 movq
%rax
, 2216(%rbp
)
1536 movq
%rdx
, 128(%rbp
)
1540 movq thread_arena@gottpoff
(%rip
), %rax
1542 movq
%fs:(%rax
), %r13
1543 movq
%r12, %fs:(%rax
)
1553 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1554 cmpxchgl
%edx
, list_lock
(%rip
)
1558 movq
2160+main_arena
(%rip
), %rax
1559 movq
%rax
, 2192(%rbp
)
1560 movq
%r12, 2160+main_arena
(%rip
)
1568 subl $
1, list_lock
(%rip
)
1579 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1580 cmpxchgl
%edx
, free_list_lock
(%rip
)
1586 movq
2176(%r13), %rax
1590 movq
%rax
, 2176(%r13)
1599 subl $
1, free_list_lock
(%rip
)
1610 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1611 cmpxchgl
%edx
, 32(%rbp
)
1623 0: decq narenas
(%rip
)
1629 leaq __PRETTY_FUNCTION__.12114
(%rip
), %rcx
1630 leaq
.LC18(%rip), %rsi
1631 leaq
.LC21(%rip), %rdi
1633 call __malloc_assert
1635 movq
8+mp_
(%rip
), %rsi
1647 lock cmpxchgl
%edx
, free_list_lock
(%rip
)
1649 leaq free_list_lock
(%rip
), %rdi
1650 call __lll_lock_wait_private
1658 xchgl
%eax
, list_lock
(%rip
)
1666 leaq list_lock
(%rip
), %rdi
1680 lock cmpxchgl
%edx
, list_lock
(%rip
)
1682 leaq list_lock
(%rip
), %rdi
1683 call __lll_lock_wait_private
1690 lock cmpxchgl
%edx
, (%r12)
1693 call __lll_lock_wait_private
1701 xchgl
%eax
, free_list_lock
(%rip
)
1709 leaq free_list_lock
(%rip
), %rdi
1719 call detach_arena.part.3
1720 .size arena_get2.part.4, .-arena_get2.part.4
1722 .type arena_get_retry, @function
1725 leaq main_arena
(%rip
), %rax
1747 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1748 cmpxchgl
%edx
, main_arena
(%rip
)
1751 leaq main_arena
(%rip
), %rax
1774 leaq main_arena
(%rip
), %rsi
1776 jmp arena_get2.part.4
1804 lock cmpxchgl
%edx
, main_arena
(%rip
)
1805 leaq main_arena
(%rip
), %rax
1809 call __lll_lock_wait_private
1834 .size arena_get_retry, .-arena_get_retry
1836 .globl _dl_tunable_set_mallopt_check
1837 .type _dl_tunable_set_mallopt_check, @function
1838 _dl_tunable_set_mallopt_check
:
1842 leaq malloc_check
(%rip
), %rax
1843 movl $
1, using_malloc_checking
(%rip
)
1844 movq
%rax
, __malloc_hook
(%rip
)
1845 leaq free_check
(%rip
), %rax
1846 movq
%rax
, __free_hook
(%rip
)
1847 leaq realloc_check
(%rip
), %rax
1848 movq
%rax
, __realloc_hook
(%rip
)
1849 leaq memalign_check
(%rip
), %rax
1850 movq
%rax
, __memalign_hook
(%rip
)
1853 .size _dl_tunable_set_mallopt_check, .-_dl_tunable_set_mallopt_check
1854 .section .rodata.str1.1
1856 .string "<heap nr=\"%d\">\n<sizes>\n"
1857 .section .rodata.str1.8
1860 .string "__malloc_info(): unaligned fastbin chunk detected"
1863 .string " <size from=\"%zu\" to=\"%zu\" total=\"%zu\" count=\"%zu\"/>\n"
1866 .string " <unsorted from=\"%zu\" to=\"%zu\" total=\"%zu\" count=\"%zu\"/>\n"
1869 .string "</sizes>\n<total type=\"fast\" count=\"%zu\" size=\"%zu\"/>\n<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n<system type=\"current\" size=\"%zu\"/>\n<system type=\"max\" size=\"%zu\"/>\n"
1872 .string "<aspace type=\"total\" size=\"%zu\"/>\n<aspace type=\"mprotect\" size=\"%zu\"/>\n<aspace type=\"subheaps\" size=\"%zu\"/>\n"
1875 .string "<aspace type=\"total\" size=\"%zu\"/>\n<aspace type=\"mprotect\" size=\"%zu\"/>\n"
1876 .section .rodata.str1.1
1879 .section .rodata.str1.8
1882 .ascii "<total type=\"fast\" count"
1883 .string "=\"%zu\" size=\"%zu\"/>\n<total type=\"rest\" count=\"%zu\" size=\"%zu\"/>\n<total type=\"mmap\" count=\"%d\" size=\"%zu\"/>\n<system type=\"current\" size=\"%zu\"/>\n<system type=\"max\" size=\"%zu\"/>\n<aspace type=\"total\" size=\"%zu\"/>\n<aspace type=\"mprotect\" size=\"%zu\"/>\n</malloc>\n"
1886 .type __malloc_info.part.11, @function
1887 __malloc_info.part.11
:
1890 leaq main_arena
(%rip
), %rax
1900 leaq
128(%rsp
), %rax
1912 leaq
.LC22(%rip), %rsi
1927 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
1928 cmpxchgl
%esi
, (%rbx
)
1938 leaq
320(%rdi
), %r10
1962 leaq
.LC23(%rip), %rdi
1963 call malloc_printerr
1975 movq
%rcx
, -16(%rdi
)
1983 leaq
320(%rax
), %rcx
1985 leaq
4384(%rax
), %r11
2029 leaq main_arena
(%rip
), %rsi
2035 andq $
-67108864, %rax
2046 movq
%rdx
, 104(%rsp
)
2047 movq
%rcx
, 112(%rsp
)
2048 movq
%rsi
, 120(%rsp
)
2077 leaq
.LC24(%rip), %rsi
2092 leaq
.LC26(%rip), %rsi
2096 movq
2184(%rbx
), %rax
2097 movq
2192(%rbx
), %rdx
2107 leaq main_arena
(%rip
), %rax
2111 movq
112(%rsp
), %r15
2112 movq
104(%rsp
), %rbx
2113 leaq
.LC27(%rip), %rsi
2123 leaq
.LC29(%rip), %rdi
2125 leaq main_arena
(%rip
), %rbx
2129 movq
2160(%rax
), %rax
2133 movl
40+mp_
(%rip
), %eax
2135 leaq
.LC30(%rip), %rsi
2168 leaq
-15(%rax
), %rdx
2184 lock cmpxchgl
%edi
, (%rbx
)
2187 call __lll_lock_wait_private
2191 movq
456(%rsp
), %rcx
2192 leaq
.LC25(%rip), %rsi
2193 movq
448(%rsp
), %rdx
2200 leaq
.LC28(%rip), %rsi
2203 movq
2184(%rbx
), %rdx
2206 movq
2184(%rbx
), %rax
2231 .size __malloc_info.part.11, .-__malloc_info.part.11
2233 .type systrim.isra.1.constprop.12, @function
2234 systrim.isra.1
.constprop.12:
2235 movq
96+main_arena
(%rip
), %rax
2241 leaq
-33(%rbx
), %rbp
2244 movq _dl_pagesize
(%rip
), %rax
2250 call
*__morecore
(%rip
)
2252 movq
96+main_arena
(%rip
), %rax
2258 call
*__morecore
(%rip
)
2259 movq __after_morecore_hook
(%rip
), %rax
2264 call
*__morecore
(%rip
)
2269 movq
96+main_arena
(%rip
), %rax
2271 subq
%r12, 2184+main_arena
(%rip
)
2292 .size systrim.isra.1.constprop.12, .-systrim.isra.1.constprop.12
2293 .section .rodata.str1.1
2295 .string "free(): invalid pointer"
2297 .string "free(): invalid size"
2298 .section .rodata.str1.8
2301 .string "free(): too many chunks detected in tcache"
2304 .string "free(): unaligned chunk detected in tcache 2"
2307 .string "free(): double free detected in tcache 2"
2310 .string "free(): invalid next size (fast)"
2313 .string "double free or corruption (fasttop)"
2314 .section .rodata.str1.1
2316 .string "invalid fastbin entry (free)"
2317 .section .rodata.str1.8
2320 .string "double free or corruption (top)"
2323 .string "double free or corruption (out)"
2326 .string "double free or corruption (!prev)"
2329 .string "free(): invalid next size (normal)"
2332 .string "corrupted size vs. prev_size while consolidating"
2335 .string "free(): corrupted unsorted chunks"
2336 .section .rodata.str1.1
2338 .string "heap->ar_ptr == av"
2339 .section .rodata.str1.8
2342 .string "chunksize_nomask (p) == (0 | PREV_INUSE)"
2345 .string "new_size > 0 && new_size < (long) (2 * MINSIZE)"
2348 .string "new_size > 0 && new_size < HEAP_MAX_SIZE"
2351 .string "((unsigned long) ((char *) p + new_size) & (pagesz - 1)) == 0"
2354 .string "((char *) p + new_size) == ((char *) heap + heap->size)"
2357 .string "/proc/sys/vm/overcommit_memory"
2360 .type _int_free, @function
2384 movq
%fs:tcache@tpoff
, %rcx
2388 leaq
-17(%r12), %rdx
2390 cmpq
%rdx
, 80+mp_
(%rip
)
2394 movq
96+mp_
(%rip
), %rdi
2397 leaq
(%rcx
,%rdx
,2), %r9
2403 cmpq global_max_fast
(%rip
), %r12
2405 leaq
(%rbx
,%r12), %r14
2410 cmpq
2184(%rbp
), %rax
2413 movl perturb_byte
(%rip
), %eax
2420 leaq
0(%rbp
,%rax
,8), %rcx
2474 leaq
(%rbx
,%r12), %r13
2487 cmpq
%r14, 2184(%rbp
)
2489 movl perturb_byte
(%rip
), %esi
2503 call unlink_chunk.isra.2
2507 testb $
1, 8(%r13,%r14)
2511 movq
112(%rbp
), %rax
2521 movq
%rbx
, 112(%rbp
)
2526 movq
%r12, (%rbx
,%r12)
2546 leaq
(%rcx
,%rdx
,8), %rdx
2551 xorq
128(%rdx
), %rax
2565 leaq
.LC31(%rip), %rdi
2566 call malloc_printerr
2570 leaq
.LC32(%rip), %rdi
2571 call malloc_printerr
2587 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
2588 cmpxchgl
%edx
, 0(%rbp
)
2598 cmpq
2184(%rbp
), %rax
2613 leaq
.LC36(%rip), %rdi
2614 call malloc_printerr
2624 leaq
.LC38(%rip), %rdi
2625 call malloc_printerr
2629 lock cmpxchgl
%edx
, 0(%rbp
)
2632 call __lll_lock_wait_private
2640 leaq
16(%rbp
,%rax
,8), %rsi
2651 0: cmpxchgq
%rbx
, (%rsi
)
2670 0: cmpxchgq
%rbx
, (%rsi
)
2680 leaq
.LC37(%rip), %rdi
2681 call malloc_printerr
2689 leaq main_arena
(%rip
), %rax
2694 andq $
-67108864, %rdi
2698 movq
8+mp_
(%rip
), %rax
2702 movq _dl_pagesize
(%rip
), %rax
2707 leaq
-16(%rcx
), %rdx
2708 leaq
(%r14,%rdx
), %rax
2716 movl $
67108864, %r13d
2720 leaq
32(%r8,%rbx
), %r12
2727 leaq
(%rbx
,%r15), %rax
2744 leaq
-16(%rcx
), %rdx
2745 leaq
(%r10,%rdx
), %rax
2768 cmpq $
67108862, %rax
2776 subq
%rax
, 2184(%r14)
2777 leaq
67108864(%rdi
), %rax
2778 cmpq
%rax
, aligned_heap_area
(%rip
)
2781 movl $
67108864, %esi
2787 call unlink_chunk.isra.2
2792 movq $
0, aligned_heap_area
(%rip
)
2806 leaq
.LC42(%rip), %rdi
2807 call malloc_printerr
2813 leaq
-16(%r12), %rdx
2814 movabsq $
72340172838076673, %rsi
2824 movq
%rax
, 8(%rbx
,%rsi
)
2832 call unlink_chunk.isra.2
2837 movq
128(%rcx
,%rdx
,8), %rsi
2867 leaq
.LC34(%rip), %rdi
2868 call malloc_printerr
2872 leaq
.LC39(%rip), %rdi
2873 call malloc_printerr
2882 leaq
.LC40(%rip), %rdi
2883 call malloc_printerr
2887 leaq
.LC41(%rip), %rdi
2888 call malloc_printerr
2892 leaq
-16(%r12), %rdx
2906 cmpq
%rdx
, mp_
(%rip
)
2925 movl may_shrink_heap.11292
(%rip
), %edx
2932 leaq
(%r14,%rcx
), %rdi
2942 subq
%r12, 2184(%r15)
2949 call malloc_consolidate
2965 cmpq mp_
(%rip
), %rax
2967 movq
8+mp_
(%rip
), %rdi
2968 call systrim.isra.1
.constprop.12
2981 movl
%r15d
, 20(%rsp
)
2985 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
2986 cmpxchgl
%edx
, 0(%rbp
)
2991 leaq
.LC44(%rip), %rdi
2992 call malloc_printerr
2994 leaq
.LC43(%rip), %rdi
2995 call malloc_printerr
2997 movl
20(%rsp
), %r15d
3000 xchgl
%r15d
, 0(%rbp
)
3041 lock cmpxchgl
%edx
, 0(%rbp
)
3045 call __lll_lock_wait_private
3052 leaq __PRETTY_FUNCTION__.11956
(%rip
), %rcx
3053 leaq
.LC18(%rip), %rsi
3054 leaq
.LC48(%rip), %rdi
3056 call __malloc_assert
3058 leaq __PRETTY_FUNCTION__.11956
(%rip
), %rcx
3059 leaq
.LC18(%rip), %rsi
3060 leaq
.LC47(%rip), %rdi
3062 call __malloc_assert
3064 leaq __PRETTY_FUNCTION__.11956
(%rip
), %rcx
3065 leaq
.LC18(%rip), %rsi
3066 leaq
.LC46(%rip), %rdi
3068 call __malloc_assert
3082 movl __libc_enable_secure
(%rip
), %ecx
3084 movl
%ecx
, may_shrink_heap.11292
(%rip
)
3087 leaq
.LC51(%rip), %rdi
3090 call __open_nocancel
3094 cmpl $
0, may_shrink_heap.11292
(%rip
)
3098 leaq __PRETTY_FUNCTION__.11956
(%rip
), %rcx
3099 leaq
.LC18(%rip), %rsi
3100 leaq
.LC50(%rip), %rdi
3102 call __malloc_assert
3104 leaq __PRETTY_FUNCTION__.11956
(%rip
), %rcx
3105 leaq
.LC18(%rip), %rsi
3106 leaq
.LC49(%rip), %rdi
3108 call __malloc_assert
3110 leaq
.LC35(%rip), %rdi
3111 call malloc_printerr
3117 call __read_nocancel
3127 movl
%ecx
, may_shrink_heap.11292
(%rip
)
3128 call __close_nocancel
3131 leaq
.LC33(%rip), %rdi
3132 call malloc_printerr
3134 leaq __PRETTY_FUNCTION__.13291
(%rip
), %rcx
3135 leaq
.LC6(%rip), %rsi
3136 leaq
.LC45(%rip), %rdi
3138 call __malloc_assert
3139 .size _int_free, .-_int_free
3140 .section .rodata.str1.8
3143 .string "((INTERNAL_SIZE_T) chunk2rawmem (mm) & MALLOC_ALIGN_MASK) == 0"
3146 .string "(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)"
3149 .string "(unsigned long) (old_size) < (unsigned long) (nb + MINSIZE)"
3152 .string "break adjusted to free malloc space"
3153 .section .rodata.str1.1
3155 .string "correction >= 0"
3156 .section .rodata.str1.8
3159 .string "((unsigned long) chunk2rawmem (brk) & MALLOC_ALIGN_MASK) == 0"
3162 .type sysmalloc, @function
3173 movq _dl_pagesize
(%rip
), %r15
3175 cmpq
%rdi
, 16+mp_
(%rip
)
3181 leaq
7(%r15,%rbx
), %rax
3195 leaq
0(%r13,%r12), %r11
3211 leaq main_arena
(%rip
), %rax
3217 andq $
-67108864, %r8
3220 movq _dl_pagesize
(%rip
), %rax
3222 leaq
-1(%rdx
,%rax
), %rcx
3225 leaq
(%rax
,%r9), %rcx
3226 cmpq $
67108864, %rcx
3234 movq
2184(%rbp
), %rdx
3240 movq
%rdx
, 2184(%rbp
)
3244 cmpq
%rdx
, 2192(%rbp
)
3246 movq
%rdx
, 2192(%rbp
)
3252 leaq main_arena
(%rip
), %rax
3254 leaq
(%rsi
,%rbx
), %rcx
3279 movl
44+mp_
(%rip
), %eax
3280 cmpl %eax
, 40+mp_
(%rip
)
3282 leaq
7(%r15,%rdi
), %r12
3294 movq
8+mp_
(%rip
), %rsi
3303 movq
2184(%rbp
), %rdx
3314 movq
%rdx
, 2184(%rbp
)
3319 leaq
0(%r13,%rax
), %rcx
3330 leaq
7(%r15,%rdi
), %r12
3353 lock xaddl
%edx
, 40+mp_
(%rip
)
3356 movl
48+mp_
(%rip
), %eax
3359 lock cmpxchgl
%edx
, 48+mp_
(%rip
)
3363 lock xaddq
%r15, 56+mp_
(%rip
)
3366 movq
64+mp_
(%rip
), %rax
3369 lock cmpxchgq
%r12, 64+mp_
(%rip
)
3377 movq
8+mp_
(%rip
), %rax
3380 leaq
32(%rbx
,%rax
), %rdx
3384 leaq
(%rdx
,%rdi
), %r15
3394 call
*__morecore
(%rip
)
3399 movq __after_morecore_hook
(%rip
), %rsi
3405 cmpq $
0, 72+mp_
(%rip
)
3408 movq
2184+main_arena
(%rip
), %rdx
3411 movq
%rdx
, 2184+main_arena
(%rip
)
3416 movq
96+main_arena
(%rip
), %rsi
3425 leaq
(%rdx
,%rdi
), %r15
3448 movq
2184+main_arena
(%rip
), %rdx
3450 movq
96+main_arena
(%rip
), %rsi
3455 movq $
17, 8(%r13,%r12)
3463 movq
2184(%rbp
), %rdx
3504 movq __libc_errno@gottpoff
(%rip
), %rax
3505 movl $
12, %fs:(%rax
)
3512 testb $
2, 4+main_arena
(%rip
)
3524 movq
%rdx
, 2184+main_arena
(%rip
)
3531 leaq
(%rcx
,%rdx
), %rsi
3535 leaq
(%rcx
,%r15), %rax
3546 call
*__morecore
(%rip
)
3553 call
*__morecore
(%rip
)
3559 testb $
2, 4+main_arena
(%rip
)
3566 movq
2184(%rbp
), %rdx
3572 movq
%rcx
, 72+mp_
(%rip
)
3583 call
*__morecore
(%rip
)
3588 movq
2184+main_arena
(%rip
), %rdx
3596 movq
%rsi
, 96+main_arena
(%rip
)
3601 movq
%rdx
, 2184+main_arena
(%rip
)
3609 movq $
17, 8(%r13,%r12)
3610 movq $
17, 24(%r13,%r12)
3612 leaq main_arena
(%rip
), %rdi
3632 orl $
2, 4+main_arena
(%rip
)
3655 movzbl
40(%rsp
), %edi
3660 movq __after_morecore_hook
(%rip
), %rdx
3663 movq
2184+main_arena
(%rip
), %rdx
3675 movq
2184+main_arena
(%rip
), %rdx
3681 leaq __PRETTY_FUNCTION__.12690
(%rip
), %rcx
3682 leaq
.LC6(%rip), %rsi
3683 leaq
.LC53(%rip), %rdi
3685 call __malloc_assert
3687 leaq __PRETTY_FUNCTION__.12690
(%rip
), %rcx
3688 leaq
.LC6(%rip), %rsi
3689 leaq
.LC54(%rip), %rdi
3691 call __malloc_assert
3693 leaq __PRETTY_FUNCTION__.12690
(%rip
), %rcx
3694 leaq
.LC6(%rip), %rsi
3695 leaq
.LC52(%rip), %rdi
3697 call __malloc_assert
3710 leaq __PRETTY_FUNCTION__.12690
(%rip
), %rcx
3711 leaq
.LC6(%rip), %rsi
3712 leaq
.LC57(%rip), %rdi
3714 call __malloc_assert
3727 leaq
.LC55(%rip), %rdi
3728 call malloc_printerr
3730 leaq __PRETTY_FUNCTION__.12690
(%rip
), %rcx
3731 leaq
.LC6(%rip), %rsi
3732 leaq
.LC56(%rip), %rdi
3734 call __malloc_assert
3735 .size sysmalloc, .-sysmalloc
3736 .section .rodata.str1.8
3739 .string "malloc(): unaligned fastbin chunk detected 2"
3742 .string "malloc(): unaligned fastbin chunk detected"
3745 .string "malloc(): memory corruption (fast)"
3748 .string "malloc(): unaligned fastbin chunk detected 3"
3751 .string "malloc(): smallbin double linked list corrupted"
3754 .string "malloc(): invalid size (unsorted)"
3757 .string "malloc(): invalid next size (unsorted)"
3760 .string "malloc(): mismatching next->prev_size (unsorted)"
3763 .string "malloc(): unsorted double linked list corrupted"
3766 .string "malloc(): invalid next->prev_inuse (unsorted)"
3767 .section .rodata.str1.1
3769 .string "chunk_main_arena (bck->bk)"
3771 .string "chunk_main_arena (fwd)"
3772 .section .rodata.str1.8
3775 .string "malloc(): largebin double linked list corrupted (nextsize)"
3778 .string "malloc(): largebin double linked list corrupted (bk)"
3781 .string "malloc(): unaligned tcache chunk detected"
3784 .string "malloc(): corrupted unsorted chunks"
3785 .section .rodata.str1.1
3788 .section .rodata.str1.8
3791 .string "(unsigned long) (size) >= (unsigned long) (nb)"
3794 .string "malloc(): corrupted unsorted chunks 2"
3795 .section .rodata.str1.1
3797 .string "malloc(): corrupted top size"
3800 .type _int_malloc, @function
3822 cmpq global_max_fast
(%rip
), %rax
3825 leaq
(%r12,%rax
,8), %r8
3827 leaq
16(,%rax
,8), %rsi
3854 movq
%fs:tcache@tpoff
, %r15
3857 leaq
-17(%r14), %rax
3859 cmpq
%rax
, 80+mp_
(%rip
)
3861 movzwl
(%r15,%rax
,2), %edx
3862 cmpq
%rdx
, 96+mp_
(%rip
)
3869 leaq
(%r15,%rax
,8), %r10
3870 leaq
(%r15,%rax
,2), %r9
3877 xorq
128(%r10), %rax
3880 movq
%rbx
, 128(%r10)
3885 cmpq
96+mp_
(%rip
), %rax
3913 cmpq $
31, global_max_fast
(%rip
)
3927 leaq main_arena
(%rip
), %r10
3928 orq $
1, 8(%rcx
,%r14)
3935 movq
%fs:tcache@tpoff
, %r9
3938 leaq
-17(%r14), %rdx
3940 cmpq
%rdx
, 80+mp_
(%rip
)
3942 leaq
(%r9,%rdx
,2), %rbx
3943 movq
96+mp_
(%rip
), %rdi
3944 leaq
(%r9,%rdx
,8), %rbp
3945 movzwl
(%rbx
), %r11d
3963 movl perturb_byte
(%rip
), %esi
3991 0: cmpxchgq
%r9, (%rsi
)
4027 leal
110(%rsi
), %r10d
4028 leal
124(%rax
), %r8d
4029 movq
%rsi
, 104(%rsp
)
4030 leal
119(%r15), %r11d
4038 movq
%r15, 112(%rsp
)
4039 movl
%r8d
, 124(%rsp
)
4040 movl
%r11d
, 128(%rsp
)
4041 movl
%r10d
, 132(%rsp
)
4042 movl
%esi
, 120(%rsp
)
4058 movq
%fs:tcache@tpoff
, %r15
4059 leaq
-17(%r14), %rax
4064 cmpq
%rax
, 80+mp_
(%rip
)
4074 movq
104+mp_
(%rip
), %rax
4075 movq
120(%r12), %rdx
4080 movq
96+mp_
(%rip
), %rax
4084 leaq
(%r15,%r11,2), %rax
4086 leaq
(%r15,%r11,8), %rax
4094 leaq
(%rdx
,%rax
), %rdi
4096 movq
2184(%r12), %rsi
4129 leal
-2(%rcx
,%rcx
), %eax
4131 leaq
112(%r12,%rax
,8), %rax
4141 orl
%ebx
, 2144(%r12,%rax
,4)
4156 leaq
(%r15,%r11,8), %rdx
4157 movq
128(%rdx
), %rcx
4163 movq
%rax
, 128(%rdx
)
4164 subw $
1, (%r15,%r11,2)
4173 leaq
(%r12,%rax
,8), %r8
4180 leal
2147483647(%rbx
), %eax
4182 leaq
112(,%rax
,8), %rax
4193 0: cmpxchgq
%rbx
, (%rsi
)
4212 leaq
.LC59(%rip), %rdi
4213 call malloc_printerr
4218 call malloc_consolidate
4228 movl $
110, 132(%rsp
)
4234 movl
%edi
, 120(%rsp
)
4235 movl $
119, 128(%rsp
)
4236 movl $
124, 124(%rsp
)
4243 leaq main_arena
(%rip
), %rax
4261 movl perturb_byte
(%rip
), %esi
4278 movq
120(%r12), %rdx
4283 leaq
.LC63(%rip), %rdi
4284 call malloc_printerr
4288 movq __libc_errno@gottpoff
(%rip
), %rax
4290 movl $
12, %fs:(%rax
)
4310 leaq
.LC64(%rip), %rdi
4311 call malloc_printerr
4325 leal
-2(%rcx
,%rcx
), %esi
4327 leaq
112(%r12,%rsi
,8), %r8
4356 addl $
2147483647, %eax
4358 leaq
112(%r12,%rax
,8), %rax
4360 leaq
-16(%rax
), %rcx
4369 leaq
96(%r12,%rax
,8), %rdx
4375 movl
2144(%r12,%r9,4), %esi
4399 movl
%esi
, 2144(%r12,%r9,4)
4409 leaq
.LC66(%rip), %rdi
4410 call malloc_printerr
4426 movq
104(%r12), %r11
4428 movq
%r11, 136(%rsp
)
4436 movq
%rdx
, 112(%r12)
4437 movq
%rdx
, 120(%r12)
4438 movq
%rdx
, 104(%r12)
4445 leaq main_arena
(%rip
), %rax
4447 movq
136(%rsp
), %rbx
4459 movl perturb_byte
(%rip
), %eax
4475 movl
2144(%r12,%r9,4), %esi
4486 cmpq
%rax
, 2184(%r12)
4497 call malloc_consolidate
4509 movl
120(%rsp
), %eax
4513 movl
132(%rsp
), %eax
4517 movl
124(%rsp
), %eax
4518 cmovb
128(%rsp
), %eax
4521 movq
%fs:tcache@tpoff
, %r15
4526 leaq
.LC61(%rip), %rdi
4527 call malloc_printerr
4531 leaq
.LC65(%rip), %rdi
4532 call malloc_printerr
4536 leaq
.LC58(%rip), %rdi
4537 call malloc_printerr
4542 orq $
1, 8(%rdx
,%r14)
4554 xorq
128(%rbp
), %rsi
4556 movq
%r15, 128(%rbp
)
4562 leaq
.LC67(%rip), %rdi
4563 call malloc_printerr
4573 xorq
128(%rbx
), %rsi
4575 movq
%rcx
, 128(%rbx
)
4583 leaq
.LC60(%rip), %rdi
4584 call malloc_printerr
4595 leaq
.LC62(%rip), %rdi
4596 call malloc_printerr
4640 leaq
.LC71(%rip), %rdi
4641 call malloc_printerr
4662 leaq
96(%r12,%rax
,8), %rdx
4693 call unlink_chunk.isra.2
4697 leaq main_arena
(%rip
), %rax
4703 movl perturb_byte
(%rip
), %eax
4709 movq
112(%r12), %rdx
4710 leaq
(%r8,%r14), %rax
4716 movq
%rax
, 112(%r12)
4719 movq
%rax
, 104(%r12)
4726 leaq main_arena
(%rip
), %rdx
4738 movq
%rbx
, (%r8,%r15)
4741 leaq
.LC70(%rip), %rdi
4742 call malloc_printerr
4744 leaq
.LC77(%rip), %rdi
4745 call malloc_printerr
4754 movl perturb_byte
(%rip
), %eax
4759 leaq main_arena
(%rip
), %rdx
4762 leaq
(%rcx
,%r14), %rdi
4775 movl perturb_byte
(%rip
), %eax
4780 leaq __PRETTY_FUNCTION__.13182
(%rip
), %rcx
4781 leaq
.LC6(%rip), %rsi
4782 leaq
.LC74(%rip), %rdi
4784 call __malloc_assert
4807 call unlink_chunk.isra.2
4811 leaq main_arena
(%rip
), %rax
4812 orq $
1, 8(%rbx
,%r15)
4817 movl perturb_byte
(%rip
), %eax
4823 leaq __PRETTY_FUNCTION__.13182
(%rip
), %rcx
4824 leaq
.LC6(%rip), %rsi
4825 leaq
.LC69(%rip), %rdi
4827 call __malloc_assert
4829 leaq
.LC72(%rip), %rdi
4830 call malloc_printerr
4832 leaq
.LC76(%rip), %rdi
4833 call malloc_printerr
4835 leaq __PRETTY_FUNCTION__.13182
(%rip
), %rcx
4836 leaq
.LC6(%rip), %rsi
4837 leaq
.LC68(%rip), %rdi
4839 call __malloc_assert
4841 leaq __PRETTY_FUNCTION__.13182
(%rip
), %rcx
4842 leaq
.LC6(%rip), %rsi
4843 leaq
.LC75(%rip), %rdi
4845 call __malloc_assert
4847 movq
112(%r12), %rdx
4848 leaq
(%rbx
,%r14), %rax
4854 movq
%rax
, 112(%r12)
4860 leaq main_arena
(%rip
), %rdx
4872 movq
%rsi
, (%rbx
,%r15)
4875 leaq
.LC73(%rip), %rdi
4876 call malloc_printerr
4878 leaq __PRETTY_FUNCTION__.13182
(%rip
), %rcx
4879 leaq
.LC6(%rip), %rsi
4880 leaq
.LC69(%rip), %rdi
4882 call __malloc_assert
4883 .size _int_malloc, .-_int_malloc
4885 .type malloc_check, @function
4903 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
4904 cmpxchgl
%edx
, main_arena
(%rip
)
4909 leaq main_arena
(%rip
), %rdi
4920 subl $
1, main_arena
(%rip
)
4933 lock cmpxchgl
%edx
, main_arena
(%rip
)
4935 leaq main_arena
(%rip
), %rdi
4936 call __lll_lock_wait_private
4944 xchgl
%eax
, main_arena
(%rip
)
4952 leaq main_arena
(%rip
), %rdi
4962 movq __libc_errno@gottpoff
(%rip
), %rax
4963 movl $
12, %fs:(%rax
)
4969 .size malloc_check, .-malloc_check
4971 .type tcache_init.part.6, @function
4973 movq thread_arena@gottpoff
(%rip
), %rax
4975 movq
%fs:(%rax
), %rbx
4987 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
4988 cmpxchgl
%edx
, (%rbx
)
5011 movq
%r8, %fs:tcache@tpoff
5032 call arena_get2.part.4
5047 call arena_get_retry
5062 lock cmpxchgl
%edx
, (%rbx
)
5065 call __lll_lock_wait_private
5090 .size tcache_init.part.6, .-tcache_init.part.6
5091 .section .rodata.str1.8
5094 .string "newsize >= nb && (((unsigned long) (chunk2rawmem (p))) % alignment) == 0"
5097 .type _int_memalign, @function
5116 leaq
32(%r12,%rsi
), %rsi
5122 leaq
-16(%rax
), %rcx
5126 leaq
-1(%rbx
,%rbp
), %rax
5132 leaq
(%rax
,%rbp
), %r14
5144 leaq main_arena
(%rip
), %rdx
5153 orq $
1, 8(%r14,%r15)
5179 leaq main_arena
(%rip
), %rdx
5181 leaq
(%rcx
,%r12), %rsi
5209 addq
-16(%rbx
), %rsi
5218 movq __libc_errno@gottpoff
(%rip
), %rax
5220 movl $
12, %fs:(%rax
)
5223 leaq __PRETTY_FUNCTION__.13380
(%rip
), %rcx
5224 leaq
.LC6(%rip), %rsi
5225 leaq
.LC78(%rip), %rdi
5227 call __malloc_assert
5228 .size _int_memalign, .-_int_memalign
5230 .type memalign_check, @function
5253 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
5254 cmpxchgl
%edx
, main_arena
(%rip
)
5260 leaq main_arena
(%rip
), %rdi
5271 subl $
1, main_arena
(%rip
)
5282 movabsq $
-9223372036854775808, %rdx
5316 lock cmpxchgl
%edx
, main_arena
(%rip
)
5318 leaq main_arena
(%rip
), %rdi
5319 call __lll_lock_wait_private
5327 xchgl
%eax
, main_arena
(%rip
)
5335 leaq main_arena
(%rip
), %rdi
5347 movq __libc_errno@gottpoff
(%rip
), %rax
5348 movl $
12, %fs:(%rax
)
5358 movq __libc_errno@gottpoff
(%rip
), %rax
5359 movl $
22, %fs:(%rax
)
5364 .size memalign_check, .-memalign_check
5366 .type free_check, @function
5372 movq __libc_errno@gottpoff
(%rip
), %rbp
5375 movl
%fs:0(%rbp
), %r12d
5385 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
5386 cmpxchgl
%edx
, main_arena
(%rip
)
5392 call mem2chunk_check
5405 subl $
1, main_arena
(%rip
)
5410 movl
%r12d
, %fs:0(%rbp
)
5418 leaq main_arena
(%rip
), %rdi
5429 movl
%r12d
, %fs:0(%rbp
)
5430 subl $
1, main_arena
(%rip
)
5444 lock cmpxchgl
%edx
, main_arena
(%rip
)
5446 leaq main_arena
(%rip
), %rdi
5447 call __lll_lock_wait_private
5455 xchgl
%eax
, main_arena
(%rip
)
5463 leaq main_arena
(%rip
), %rdi
5478 xchgl
%eax
, main_arena
(%rip
)
5486 leaq main_arena
(%rip
), %rdi
5496 leaq
.LC31(%rip), %rdi
5497 call malloc_printerr
5498 .size free_check, .-free_check
5499 .section .rodata.str1.1
5501 .string "realloc(): invalid old size"
5503 .string "!chunk_is_mmapped (oldp)"
5505 .string "realloc(): invalid next size"
5506 .section .rodata.str1.8
5509 .string "(unsigned long) (newsize) >= (unsigned long) (nb)"
5512 .type _int_realloc, @function
5524 movq
2184(%rdi
), %rdi
5530 leaq
(%rsi
,%rdx
), %r13
5547 leaq main_arena
(%rip
), %rcx
5571 testb $
1, 8(%r13,%rsi
)
5574 leaq
-15(%rcx
), %rsi
5582 leaq
-16(%rax
), %rax
5595 leaq
-16(%rdx
,%rax
,8), %rdx
5612 leaq main_arena
(%rip
), %rdx
5613 leaq
(%rbx
,%rcx
), %rsi
5632 leaq
(%rdx
,%rsi
), %r14
5637 leaq
(%rbx
,%r14), %r13
5638 call unlink_chunk.isra.2
5652 leaq
(%rbx
,%rdx
), %r13
5657 leaq
.LC79(%rip), %rdi
5658 call malloc_printerr
5662 leaq
.LC81(%rip), %rdi
5663 call malloc_printerr
5667 leaq
(%rdx
,%rsi
), %rdi
5674 leaq main_arena
(%rip
), %rax
5681 leaq
(%rbx
,%rcx
), %rax
5689 leaq __PRETTY_FUNCTION__.13362
(%rip
), %rcx
5690 leaq
.LC6(%rip), %rsi
5691 leaq
.LC80(%rip), %rdi
5693 call __malloc_assert
5695 leaq __PRETTY_FUNCTION__.13362
(%rip
), %rcx
5696 leaq
.LC6(%rip), %rsi
5697 leaq
.LC82(%rip), %rdi
5699 call __malloc_assert
5700 .size _int_realloc, .-_int_realloc
5701 .section .rodata.str1.1
5703 .string "realloc(): invalid pointer"
5706 .type realloc_check, @function
5733 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
5734 cmpxchgl
%edx
, main_arena
(%rip
)
5740 call mem2chunk_check
5749 subl $
1, main_arena
(%rip
)
5772 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
5773 cmpxchgl
%ecx
, main_arena
(%rip
)
5800 subl $
1, main_arena
(%rip
)
5819 leaq main_arena
(%rip
), %rdi
5847 lock cmpxchgl
%edx
, main_arena
(%rip
)
5849 leaq main_arena
(%rip
), %rdi
5850 call __lll_lock_wait_private
5858 xchgl
%eax
, main_arena
(%rip
)
5866 leaq main_arena
(%rip
), %rdi
5881 xchgl
%eax
, main_arena
(%rip
)
5889 leaq main_arena
(%rip
), %rdi
5905 leaq main_arena
(%rip
), %rdi
5911 leaq
-16(%r15), %rdx
5924 lock cmpxchgl
%ecx
, main_arena
(%rip
)
5926 leaq main_arena
(%rip
), %rdi
5927 call __lll_lock_wait_private
5937 movq __libc_errno@gottpoff
(%rip
), %rax
5938 movl $
12, %fs:(%rax
)
5942 leaq
.LC83(%rip), %rdi
5943 call malloc_printerr
5944 .size realloc_check, .-realloc_check
5946 .globl __malloc_fork_lock_parent
5947 .hidden __malloc_fork_lock_parent
5948 .type __malloc_fork_lock_parent, @function
5949 __malloc_fork_lock_parent
:
5950 movl __libc_malloc_initialized
(%rip
), %eax
5965 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
5966 cmpxchgl
%edx
, list_lock
(%rip
)
5970 leaq main_arena
(%rip
), %rbp
5985 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
5986 cmpxchgl
%edx
, (%rbx
)
5990 movq
2160(%rbx
), %rbx
6001 lock cmpxchgl
%edx
, (%rbx
)
6004 call __lll_lock_wait_private
6015 lock cmpxchgl
%edx
, list_lock
(%rip
)
6017 leaq list_lock
(%rip
), %rdi
6018 call __lll_lock_wait_private
6020 .size __malloc_fork_lock_parent, .-__malloc_fork_lock_parent
6022 .globl __malloc_fork_unlock_parent
6023 .hidden __malloc_fork_unlock_parent
6024 .type __malloc_fork_unlock_parent, @function
6025 __malloc_fork_unlock_parent
:
6026 movl __libc_malloc_initialized
(%rip
), %eax
6029 leaq main_arena
(%rip
), %r9
6057 subl $
1, list_lock
(%rip
)
6095 xchgl
%eax
, list_lock
(%rip
)
6103 leaq list_lock
(%rip
), %rdi
6112 .size __malloc_fork_unlock_parent, .-__malloc_fork_unlock_parent
6114 .globl __malloc_fork_unlock_child
6115 .hidden __malloc_fork_unlock_child
6116 .type __malloc_fork_unlock_child, @function
6117 __malloc_fork_unlock_child
:
6118 movl __libc_malloc_initialized
(%rip
), %eax
6121 movq thread_arena@gottpoff
(%rip
), %rax
6122 movl $
0, free_list_lock
(%rip
)
6123 movq
%fs:(%rax
), %rcx
6128 leaq main_arena
(%rip
), %rsi
6129 movq $
0, free_list
(%rip
)
6139 movq
%rdx
, 2168(%rax
)
6144 movq
2160(%rax
), %rax
6150 movl $
0, list_lock
(%rip
)
6154 movq
%rdx
, free_list
(%rip
)
6156 .size __malloc_fork_unlock_child, .-__malloc_fork_unlock_child
6158 .globl __malloc_check_init
6159 .hidden __malloc_check_init
6160 .type __malloc_check_init, @function
6161 __malloc_check_init
:
6162 leaq malloc_check
(%rip
), %rax
6163 movl $
1, using_malloc_checking
(%rip
)
6164 movq
%rax
, __malloc_hook
(%rip
)
6165 leaq free_check
(%rip
), %rax
6166 movq
%rax
, __free_hook
(%rip
)
6167 leaq realloc_check
(%rip
), %rax
6168 movq
%rax
, __realloc_hook
(%rip
)
6169 leaq memalign_check
(%rip
), %rax
6170 movq
%rax
, __memalign_hook
(%rip
)
6172 .size __malloc_check_init, .-__malloc_check_init
6173 .section .rodata.str1.8
6176 .string "!victim || chunk_is_mmapped (mem2chunk (victim)) || &main_arena == arena_for_chunk (mem2chunk (victim))"
6179 .string "!victim || chunk_is_mmapped (mem2chunk (victim)) || ar_ptr == arena_for_chunk (mem2chunk (victim))"
6182 .globl __libc_malloc
6183 .hidden __libc_malloc
6184 .type __libc_malloc, @function
6189 movq __malloc_hook
(%rip
), %rax
6199 movq
%fs:tcache@tpoff
, %rax
6203 cmpq
80+mp_
(%rip
), %rbp
6213 leaq main_arena
(%rip
), %rdi
6225 leaq main_arena
(%rip
), %rdx
6226 andq $
-67108864, %rax
6239 leaq
-17(%rax
), %rbp
6245 cmpb $
0, %fs:tcache_shutting_down@tpoff
6247 call tcache_init.part.6
6248 cmpq
%rbp
, 80+mp_
(%rip
)
6250 movq
%fs:tcache@tpoff
, %rax
6256 leaq
(%rax
,%rbp
,2), %rcx
6260 leaq
(%rax
,%rbp
,8), %rsi
6268 movq
%rax
, 128(%rsi
)
6296 movq __libc_errno@gottpoff
(%rip
), %rax
6298 movl $
12, %fs:(%rax
)
6303 movq thread_arena@gottpoff
(%rip
), %rax
6304 movq
%fs:(%rax
), %rbp
6316 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
6317 cmpxchgl
%edx
, 0(%rbp
)
6343 leaq main_arena
(%rip
), %rdx
6346 andq $
-67108864, %rax
6351 leaq __PRETTY_FUNCTION__.12849
(%rip
), %rcx
6352 leaq
.LC6(%rip), %rsi
6353 leaq
.LC85(%rip), %rdi
6355 call __malloc_assert
6365 call arena_get2.part.4
6380 call arena_get_retry
6391 leaq __PRETTY_FUNCTION__.12849
(%rip
), %rcx
6392 leaq
.LC6(%rip), %rsi
6393 leaq
.LC84(%rip), %rdi
6395 call __malloc_assert
6399 leaq
.LC72(%rip), %rdi
6400 call malloc_printerr
6404 lock cmpxchgl
%edx
, 0(%rbp
)
6407 call __lll_lock_wait_private
6430 .size __libc_malloc, .-__libc_malloc
6432 .set malloc,__libc_malloc
6434 .set __malloc,__libc_malloc
6436 .type malloc_hook_ini, @function
6438 movl __libc_malloc_initialized
(%rip
), %eax
6439 movq $
0, __malloc_hook
(%rip
)
6448 call ptmalloc_init.part.0
6452 .size malloc_hook_ini, .-malloc_hook_ini
6453 .section .rodata.str1.8
6456 .string "!p || chunk_is_mmapped (mem2chunk (p)) || &main_arena == arena_for_chunk (mem2chunk (p))"
6459 .string "!p || chunk_is_mmapped (mem2chunk (p)) || ar_ptr == arena_for_chunk (mem2chunk (p))"
6462 .type _mid_memalign, @function
6464 movq __memalign_hook
(%rip
), %rax
6484 leaq main_arena
(%rip
), %rdi
6497 leaq main_arena
(%rip
), %rdx
6498 andq $
-67108864, %rax
6510 movabsq $
-9223372036854775808, %rax
6547 movq thread_arena@gottpoff
(%rip
), %rax
6548 movq
%fs:(%rax
), %r12
6560 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
6561 cmpxchgl
%edx
, (%r12)
6588 leaq main_arena
(%rip
), %rdx
6591 andq $
-67108864, %rax
6596 leaq __PRETTY_FUNCTION__.12988
(%rip
), %rcx
6597 leaq
.LC6(%rip), %rsi
6598 leaq
.LC87(%rip), %rdi
6600 call __malloc_assert
6606 lock cmpxchgl
%edx
, (%r12)
6609 call __lll_lock_wait_private
6614 movq __libc_errno@gottpoff
(%rip
), %rax
6616 movl $
22, %fs:(%rax
)
6623 leaq
32(%rbx
,%rbp
), %rdi
6625 call arena_get2.part.4
6641 call arena_get_retry
6674 leaq __PRETTY_FUNCTION__.12988
(%rip
), %rcx
6675 leaq
.LC6(%rip), %rsi
6676 leaq
.LC86(%rip), %rdi
6678 call __malloc_assert
6682 .size _mid_memalign, .-_mid_memalign
6684 .type memalign_hook_ini, @function
6687 movl __libc_malloc_initialized
(%rip
), %eax
6688 movq $
0, __memalign_hook
(%rip
)
6699 call ptmalloc_init.part.0
6705 .size memalign_hook_ini, .-memalign_hook_ini
6709 .type __libc_free, @function
6714 movq __free_hook
(%rip
), %rax
6720 movq __libc_errno@gottpoff
(%rip
), %rbx
6721 leaq
-16(%rdi
), %rsi
6723 movl
%fs:(%rbx
), %ebp
6725 cmpq $
0, %fs:tcache@tpoff
6729 leaq main_arena
(%rip
), %rdi
6732 andq $
-67108864, %rax
6737 movl
%ebp
, %fs:(%rbx
)
6746 movl
52+mp_
(%rip
), %edx
6749 cmpq
16+mp_
(%rip
), %rax
6751 cmpq $
33554432, %rax
6756 movl
%ebp
, %fs:(%rbx
)
6773 movq
%rax
, 16+mp_
(%rip
)
6775 movq
%rax
, mp_
(%rip
)
6780 cmpb $
0, %fs:tcache_shutting_down@tpoff
6784 call tcache_init.part.6
6789 .size __libc_free, .-__libc_free
6791 .set free,__libc_free
6793 .set __free,__libc_free
6794 .section .rodata.str1.8
6797 .string "tcache_thread_shutdown(): unaligned tcache chunk detected"
6798 .section .rodata.str1.1
6800 .string "a->attached_threads > 0"
6803 .globl __malloc_arena_thread_freeres
6804 .hidden __malloc_arena_thread_freeres
6805 .type __malloc_arena_thread_freeres, @function
6806 __malloc_arena_thread_freeres
:
6810 movq
%fs:tcache@tpoff
, %rbp
6813 movq $
0, %fs:tcache@tpoff
6814 movb $
1, %fs:tcache_shutting_down@tpoff
6815 leaq
128(%rbp
), %rbx
6816 leaq
640(%rbp
), %r12
6832 leaq
.LC88(%rip), %rdi
6833 call malloc_printerr
6845 movq thread_arena@gottpoff
(%rip
), %rax
6846 movq
%fs:(%rax
), %rbx
6859 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
6860 cmpxchgl
%edx
, free_list_lock
(%rip
)
6864 movq
2176(%rbx
), %rax
6869 movq
%rax
, 2176(%rbx
)
6871 movq free_list
(%rip
), %rax
6872 movq
%rbx
, free_list
(%rip
)
6873 movq
%rax
, 2168(%rbx
)
6882 subl $
1, free_list_lock
(%rip
)
6891 lock cmpxchgl
%edx
, free_list_lock
(%rip
)
6893 leaq free_list_lock
(%rip
), %rdi
6894 call __lll_lock_wait_private
6900 xchgl
%eax
, free_list_lock
(%rip
)
6908 leaq free_list_lock
(%rip
), %rdi
6918 leaq __PRETTY_FUNCTION__.12287
(%rip
), %rcx
6919 leaq
.LC18(%rip), %rsi
6920 leaq
.LC89(%rip), %rdi
6922 call __malloc_assert
6923 .size __malloc_arena_thread_freeres, .-__malloc_arena_thread_freeres
6924 .section .rodata.str1.8
6927 .string "!newp || chunk_is_mmapped (mem2chunk (newp)) || ar_ptr == arena_for_chunk (mem2chunk (newp))"
6930 .globl __libc_realloc
6931 .hidden __libc_realloc
6932 .type __libc_realloc, @function
6941 movq __realloc_hook
(%rip
), %rax
6955 leaq
-16(%rbx
), %rbp
6997 leaq main_arena
(%rip
), %rdx
7000 leaq
-16(%r12), %rax
7001 andq $
-67108864, %rax
7019 cmpq $
0, %fs:tcache@tpoff
7023 leaq main_arena
(%rip
), %r8
7026 andq $
-67108864, %rdx
7047 leaq
-16(%r15), %rdx
7081 movq __libc_errno@gottpoff
(%rip
), %rax
7083 movl $
12, %fs:(%rax
)
7094 cmpb $
0, %fs:tcache_shutting_down@tpoff
7096 call tcache_init.part.6
7111 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
7112 cmpxchgl
%edx
, (%r8)
7139 leaq main_arena
(%rip
), %rdx
7141 leaq
-16(%r12), %rax
7142 andq $
-67108864, %rax
7147 leaq __PRETTY_FUNCTION__.12922
(%rip
), %rcx
7148 leaq
.LC6(%rip), %rsi
7149 leaq
.LC90(%rip), %rdi
7151 call __malloc_assert
7197 lock cmpxchgl
%edx
, (%r8)
7201 call __lll_lock_wait_private
7205 leaq
.LC83(%rip), %rdi
7206 call malloc_printerr
7208 leaq __PRETTY_FUNCTION__.12922
(%rip
), %rcx
7209 leaq
.LC6(%rip), %rsi
7210 leaq
.LC90(%rip), %rdi
7212 call __malloc_assert
7213 .size __libc_realloc, .-__libc_realloc
7215 .set realloc,__libc_realloc
7217 .set __realloc,__libc_realloc
7219 .type realloc_hook_ini, @function
7221 movl __libc_malloc_initialized
(%rip
), %eax
7222 movq $
0, __malloc_hook
(%rip
)
7223 movq $
0, __realloc_hook
(%rip
)
7233 call ptmalloc_init.part.0
7238 .size realloc_hook_ini, .-realloc_hook_ini
7240 .globl __libc_memalign
7241 .hidden __libc_memalign
7242 .type __libc_memalign, @function
7246 .size __libc_memalign, .-__libc_memalign
7248 .set memalign,__libc_memalign
7250 .set __memalign,__libc_memalign
7252 .set aligned_alloc,__libc_memalign
7254 .globl __libc_valloc
7255 .type __libc_valloc, @function
7258 movl __libc_malloc_initialized
(%rip
), %eax
7264 movq _dl_pagesize
(%rip
), %rdi
7271 call ptmalloc_init.part.0
7274 .size __libc_valloc, .-__libc_valloc
7276 .set valloc,__libc_valloc
7278 .set __valloc,__libc_valloc
7280 .globl __libc_pvalloc
7281 .type __libc_pvalloc, @function
7283 movl __libc_malloc_initialized
(%rip
), %eax
7289 movq _dl_pagesize
(%rip
), %rdi
7302 call ptmalloc_init.part.0
7305 movq __libc_errno@gottpoff
(%rip
), %rax
7306 movl $
12, %fs:(%rax
)
7310 .size __libc_pvalloc, .-__libc_pvalloc
7312 .set pvalloc,__libc_pvalloc
7314 .set __pvalloc,__libc_pvalloc
7315 .section .rodata.str1.8
7318 .string "!mem || chunk_is_mmapped (mem2chunk (mem)) || av == arena_for_chunk (mem2chunk (mem))"
7319 .section .rodata.str1.1
7321 .string "nclears >= 3"
7324 .globl __libc_calloc
7325 .type __libc_calloc, @function
7341 movq __malloc_hook
(%rip
), %rax
7344 cmpq $
0, %fs:tcache@tpoff
7354 movq
96+main_arena
(%rip
), %r12
7355 leaq main_arena
(%rip
), %r13
7380 movl perturb_byte
(%rip
), %eax
7427 leaq main_arena
(%rip
), %rdx
7430 andq $
-67108864, %rax
7435 leaq __PRETTY_FUNCTION__.13069
(%rip
), %rcx
7436 leaq
.LC6(%rip), %rsi
7437 leaq
.LC91(%rip), %rdi
7439 call __malloc_assert
7466 movq __libc_errno@gottpoff
(%rip
), %rax
7468 movl $
12, %fs:(%rax
)
7497 cmpb $
0, %fs:tcache_shutting_down@tpoff
7499 call tcache_init.part.6
7504 movq thread_arena@gottpoff
(%rip
), %rax
7505 movq
%fs:(%rax
), %r13
7517 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
7518 cmpxchgl
%edx
, 0(%r13)
7523 leaq main_arena
(%rip
), %rax
7529 andq $
-67108864, %rax
7559 call arena_get_retry
7587 call arena_get2.part.4
7597 lock cmpxchgl
%edx
, 0(%r13)
7600 call __lll_lock_wait_private
7624 leaq __PRETTY_FUNCTION__.13069
(%rip
), %rcx
7625 leaq
.LC6(%rip), %rsi
7626 leaq
.LC92(%rip), %rdi
7628 call __malloc_assert
7629 .size __libc_calloc, .-__libc_calloc
7631 .set calloc,__libc_calloc
7633 .set __calloc,__libc_calloc
7634 .section .rodata.str1.8
7637 .string "(char *) chunk2rawmem (p) + 2 * CHUNK_HDR_SZ <= paligned_mem"
7640 .string "(char *) p + size > paligned_mem"
7643 .globl __malloc_trim
7644 .type __malloc_trim, @function
7653 movl __libc_malloc_initialized
(%rip
), %eax
7658 leaq main_arena
(%rip
), %rax
7672 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
7673 cmpxchgl
%edx
, (%rcx
)
7678 call malloc_consolidate
7679 movq _dl_pagesize
(%rip
), %rcx
7698 cmpl %r15d
, 16(%rsp
)
7724 leaq
(%rbx
,%r13), %rdi
7729 leaq
(%rbx
,%rsi
), %rax
7743 leaq main_arena
(%rip
), %rcx
7759 leaq main_arena
(%rip
), %rcx
7760 movq
2160(%rax
), %rax
7792 call systrim.isra.1
.constprop.12
7797 leaq __PRETTY_FUNCTION__.13394
(%rip
), %rcx
7798 leaq
.LC6(%rip), %rsi
7799 leaq
.LC94(%rip), %rdi
7801 call __malloc_assert
7803 leaq __PRETTY_FUNCTION__.13394
(%rip
), %rcx
7804 leaq
.LC6(%rip), %rsi
7805 leaq
.LC93(%rip), %rdi
7807 call __malloc_assert
7810 lock cmpxchgl
%edx
, (%rcx
)
7813 call __lll_lock_wait_private
7822 leal
110(%rbp
), %eax
7850 call ptmalloc_init.part.0
7857 leal
119(%rbp
), %eax
7866 leal
124(%rbp
), %eax
7869 .size __malloc_trim, .-__malloc_trim
7871 .set malloc_trim,__malloc_trim
7872 .section .rodata.str1.8
7875 .string "malloc_check_get_size: memory corruption"
7878 .globl __malloc_usable_size
7879 .type __malloc_usable_size, @function
7880 __malloc_usable_size
:
7884 leaq
-16(%rdi
), %rsi
7888 cmpl $
1, using_malloc_checking
(%rip
)
7892 leaq
-16(%rdx
), %rax
7897 testb $
1, -8(%rdi
,%rdx
)
7920 leaq
-1(%rdx
,%rax
,8), %rax
7921 movzbl
-16(%rdi
,%rax
), %edx
7940 movzbl
(%rsi
,%rax
), %edx
7947 leaq
.LC95(%rip), %rdi
7949 call malloc_printerr
7950 .size __malloc_usable_size, .-__malloc_usable_size
7951 .weak malloc_usable_size
7952 .set malloc_usable_size,__malloc_usable_size
7954 .globl __libc_mallinfo2
7955 .hidden __libc_mallinfo2
7956 .type __libc_mallinfo2, @function
7965 movl __libc_malloc_initialized
(%rip
), %eax
7970 leaq main_arena
(%rip
), %rbp
7974 movaps
%xmm0
, (%rsp
)
7975 movaps
%xmm0
, 16(%rsp
)
7976 movaps
%xmm0
, 32(%rsp
)
7977 movaps
%xmm0
, 48(%rsp
)
7978 movaps
%xmm0
, 64(%rsp
)
7991 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
7992 cmpxchgl
%edx
, (%rbx
)
8008 movq
2160(%rbx
), %rbx
8011 movdqa
(%rsp
), %xmm0
8013 movups
%xmm0
, 0(%r13)
8014 movdqa
16(%rsp
), %xmm0
8015 movups
%xmm0
, 16(%r13)
8016 movdqa
32(%rsp
), %xmm0
8017 movups
%xmm0
, 32(%r13)
8018 movdqa
48(%rsp
), %xmm0
8019 movups
%xmm0
, 48(%r13)
8020 movdqa
64(%rsp
), %xmm0
8021 movups
%xmm0
, 64(%r13)
8056 lock cmpxchgl
%edx
, (%rbx
)
8059 call __lll_lock_wait_private
8064 call ptmalloc_init.part.0
8066 .size __libc_mallinfo2, .-__libc_mallinfo2
8068 .set mallinfo2,__libc_mallinfo2
8070 .set __mallinfo2,__libc_mallinfo2
8072 .globl __libc_mallinfo
8073 .type __libc_mallinfo, @function
8079 call __libc_mallinfo2
8104 .size __libc_mallinfo, .-__libc_mallinfo
8106 .set mallinfo,__libc_mallinfo
8108 .set __mallinfo,__libc_mallinfo
8109 .section .rodata.str1.1
8111 .string "Arena %d:\n"
8113 .string "system bytes = %10u\n"
8115 .string "in use bytes = %10u\n"
8117 .string "Total (incl. mmap):\n"
8119 .string "max mmap regions = %10u\n"
8121 .string "max mmap bytes = %10lu\n"
8124 .globl __malloc_stats
8125 .type __malloc_stats, @function
8134 movl __libc_malloc_initialized
(%rip
), %eax
8135 movq
56+mp_
(%rip
), %rbp
8140 movq stderr
(%rip
), %rax
8141 leaq main_arena
(%rip
), %r13
8145 movl
116(%rax
), %ecx
8149 movl
%edx
, 116(%rax
)
8157 movaps
%xmm0
, (%r15)
8158 movaps
%xmm0
, 16(%r15)
8159 movaps
%xmm0
, 32(%r15)
8160 movaps
%xmm0
, 48(%r15)
8161 movaps
%xmm0
, 64(%r15)
8171 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
8172 cmpxchgl
%edx
, (%r14)
8179 movq stderr
(%rip
), %rdi
8180 leaq
.LC96(%rip), %rsi
8185 movq stderr
(%rip
), %rdi
8186 leaq
.LC97(%rip), %rsi
8190 movq stderr
(%rip
), %rdi
8191 leaq
.LC98(%rip), %rsi
8194 addl
16(%rsp
), %r12d
8205 movq
2160(%r14), %r14
8208 movq stderr
(%rip
), %rcx
8209 leaq
.LC99(%rip), %rdi
8213 movq stderr
(%rip
), %rdi
8214 leaq
.LC97(%rip), %rsi
8218 movq stderr
(%rip
), %rdi
8219 leaq
.LC98(%rip), %rsi
8223 movl
48+mp_
(%rip
), %edx
8224 movq stderr
(%rip
), %rdi
8225 leaq
.LC100(%rip), %rsi
8228 movq
64+mp_
(%rip
), %rdx
8229 movq stderr
(%rip
), %rdi
8230 leaq
.LC101(%rip), %rsi
8233 movq stderr
(%rip
), %rax
8235 movl
%ecx
, 116(%rax
)
8271 lock cmpxchgl
%edx
, (%r14)
8274 call __lll_lock_wait_private
8279 call ptmalloc_init.part.0
8281 .size __malloc_stats, .-__malloc_stats
8283 .set malloc_stats,__malloc_stats
8285 .globl __libc_mallopt
8286 .hidden __libc_mallopt
8287 .type __libc_mallopt, @function
8294 movl __libc_malloc_initialized
(%rip
), %eax
8307 # 47 "../sysdeps/unix/sysv/linux/x86/lowlevellock.h" 1
8308 cmpxchgl
%edx
, main_arena
(%rip
)
8312 leaq main_arena
(%rip
), %rdi
8313 call malloc_consolidate
8317 leaq
.L1546(%rip), %rdx
8318 movslq
(%rdx
,%rax
,4), %rax
8339 call ptmalloc_init.part.0
8344 movq
%rbp
, mp_
(%rip
)
8345 movl $
1, 52+mp_
(%rip
)
8357 subl $
1, main_arena
(%rip
)
8370 movq
%rbp
, 32+mp_
(%rip
)
8384 movq
%rax
, global_max_fast
(%rip
)
8390 movl
%ebp
, 44+mp_
(%rip
)
8391 movl $
1, 52+mp_
(%rip
)
8400 movq
%rbp
, 24+mp_
(%rip
)
8405 movl
%ebp
, perturb_byte
(%rip
)
8412 cmpq $
33554432, %rbp
8414 movq
%rbp
, 16+mp_
(%rip
)
8415 movl $
1, 52+mp_
(%rip
)
8421 movq
%rbp
, 8+mp_
(%rip
)
8422 movl $
1, 52+mp_
(%rip
)
8436 xchgl
%eax
, main_arena
(%rip
)
8444 leaq main_arena
(%rip
), %rdi
8458 lock cmpxchgl
%edx
, main_arena
(%rip
)
8460 leaq main_arena
(%rip
), %rdi
8461 call __lll_lock_wait_private
8463 .size __libc_mallopt, .-__libc_mallopt
8465 .set mallopt,__libc_mallopt
8467 .set __mallopt,__libc_mallopt
8469 .globl __posix_memalign
8470 .type __posix_memalign, @function
8511 .size __posix_memalign, .-__posix_memalign
8512 .weak posix_memalign
8513 .set posix_memalign,__posix_memalign
8514 .section .rodata.str1.1
8516 .string "<malloc version=\"1\">\n"
8519 .globl __malloc_info
8520 .type __malloc_info, @function
8524 movl __libc_malloc_initialized
(%rip
), %eax
8530 leaq
.LC102(%rip), %rdi
8535 jmp __malloc_info.part.11
8539 call ptmalloc_init.part.0
8544 .size __malloc_info, .-__malloc_info
8546 .set malloc_info,__malloc_info
8547 .section .rodata.str1.1
8548 .type __PRETTY_FUNCTION__.13394, @object
8549 .size __PRETTY_FUNCTION__.13394, 6
8550 __PRETTY_FUNCTION__.13394
:
8552 .section .rodata.str1.8
8554 .type __PRETTY_FUNCTION__.13069, @object
8555 .size __PRETTY_FUNCTION__.13069, 14
8556 __PRETTY_FUNCTION__.13069
:
8557 .string "__libc_calloc"
8559 .type __PRETTY_FUNCTION__.12988, @object
8560 .size __PRETTY_FUNCTION__.12988, 14
8561 __PRETTY_FUNCTION__.12988
:
8562 .string "_mid_memalign"
8564 .type __PRETTY_FUNCTION__.12922, @object
8565 .size __PRETTY_FUNCTION__.12922, 15
8566 __PRETTY_FUNCTION__.12922
:
8567 .string "__libc_realloc"
8568 .section .rodata.str1.16,"aMS",@progbits,1
8570 .type __PRETTY_FUNCTION__.12114, @object
8571 .size __PRETTY_FUNCTION__.12114, 22
8572 __PRETTY_FUNCTION__.12114
:
8573 .string "remove_from_free_list"
8574 .local next_to_use.12122
8575 .comm next_to_use.12122,8,8
8576 .section .rodata.str1.8
8578 .type __PRETTY_FUNCTION__.11963, @object
8579 .size __PRETTY_FUNCTION__.11963, 13
8580 __PRETTY_FUNCTION__.11963
:
8581 .string "detach_arena"
8583 .type __PRETTY_FUNCTION__.12067, @object
8584 .size __PRETTY_FUNCTION__.12067, 14
8585 __PRETTY_FUNCTION__.12067
:
8586 .string "get_free_list"
8587 .local narenas_limit.12181
8588 .comm narenas_limit.12181,8,8
8590 .type __PRETTY_FUNCTION__.12849, @object
8591 .size __PRETTY_FUNCTION__.12849, 14
8592 __PRETTY_FUNCTION__.12849
:
8593 .string "__libc_malloc"
8595 .type __PRETTY_FUNCTION__.13362, @object
8596 .size __PRETTY_FUNCTION__.13362, 13
8597 __PRETTY_FUNCTION__.13362
:
8598 .string "_int_realloc"
8600 .type __PRETTY_FUNCTION__.12747, @object
8601 .size __PRETTY_FUNCTION__.12747, 13
8602 __PRETTY_FUNCTION__.12747
:
8603 .string "mremap_chunk"
8605 .type __PRETTY_FUNCTION__.12735, @object
8606 .size __PRETTY_FUNCTION__.12735, 13
8607 __PRETTY_FUNCTION__.12735
:
8608 .string "munmap_chunk"
8611 .type may_shrink_heap.11292, @object
8612 .size may_shrink_heap.11292, 4
8613 may_shrink_heap.11292
:
8615 .section .rodata.str1.8
8617 .type __PRETTY_FUNCTION__.11956, @object
8618 .size __PRETTY_FUNCTION__.11956, 10
8619 __PRETTY_FUNCTION__.11956
:
8622 .type __PRETTY_FUNCTION__.13291, @object
8623 .size __PRETTY_FUNCTION__.13291, 10
8624 __PRETTY_FUNCTION__.13291
:
8627 .type __PRETTY_FUNCTION__.12690, @object
8628 .size __PRETTY_FUNCTION__.12690, 10
8629 __PRETTY_FUNCTION__.12690
:
8632 .type __PRETTY_FUNCTION__.13182, @object
8633 .size __PRETTY_FUNCTION__.13182, 12
8634 __PRETTY_FUNCTION__.13182
:
8635 .string "_int_malloc"
8637 .type __PRETTY_FUNCTION__.13380, @object
8638 .size __PRETTY_FUNCTION__.13380, 14
8639 __PRETTY_FUNCTION__.13380
:
8640 .string "_int_memalign"
8641 .section .rodata.str1.16
8643 .type __PRETTY_FUNCTION__.12287, @object
8644 .size __PRETTY_FUNCTION__.12287, 30
8645 __PRETTY_FUNCTION__.12287
:
8646 .string "__malloc_arena_thread_freeres"
8647 .section .tbss,"awT",@nobits
8649 .type tcache, @object
8653 .type tcache_shutting_down, @object
8654 .size tcache_shutting_down, 1
8655 tcache_shutting_down
:
8657 .local using_malloc_checking
8658 .comm using_malloc_checking,4,4
8659 .local aligned_heap_area
8660 .comm aligned_heap_area,8,8
8661 .hidden __libc_malloc_initialized
8662 .globl __libc_malloc_initialized
8665 .type __libc_malloc_initialized, @object
8666 .size __libc_malloc_initialized, 4
8667 __libc_malloc_initialized
:
8674 .type narenas, @object
8678 .local free_list_lock
8679 .comm free_list_lock,4,4
8682 .type thread_arena, @object
8683 .size thread_arena, 8
8687 .comm perturb_byte,4,4
8688 .weak __after_morecore_hook
8691 .type __after_morecore_hook, @object
8692 .size __after_morecore_hook, 8
8693 __after_morecore_hook
:
8695 .weak __memalign_hook
8696 .section .data.rel.local,"aw",@progbits
8698 .type __memalign_hook, @object
8699 .size __memalign_hook, 8
8701 .quad memalign_hook_ini
8702 .weak __realloc_hook
8704 .type __realloc_hook, @object
8705 .size __realloc_hook, 8
8707 .quad realloc_hook_ini
8710 .type __malloc_hook, @object
8711 .size __malloc_hook, 8
8713 .quad malloc_hook_ini
8717 .type __free_hook, @object
8718 .size __free_hook, 8
8737 .section .data.rel.local
8739 .type main_arena, @object
8740 .size main_arena, 2200
8748 .local global_max_fast
8749 .comm global_max_fast,8,8
8752 .type __morecore, @object
8755 .quad __default_morecore
8756 .hidden __default_morecore
8757 .hidden __close_nocancel
8758 .hidden __read_nocancel
8759 .hidden __open_nocancel
8764 .hidden __get_nprocs
8765 .hidden __lll_lock_wait_private
8773 .hidden __libc_message