[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[WitchTech 00414] Re: 手抜き malloc



$B$3$s$K$A$O!"(BCDR/TK$B$G$9!#(B
wwheap$B$rGR8+$7$^$7$?!#(B

>> > # $B$A$g$C$H$@$1GR8+$7$^$7$?$,!"(Bfree $B$7$?NN0h$r%j%9%H$K$D$J$,$J$$$H%a%b%j$,(B
>> > $BL^BN$J$$$H;W$$$^$7$?!#(B
>> $B8zN($O$H$b$+$/$H$7$F(B(^^;$B!"0l1~%a%b%j$O:FMxMQ$9$k$h$&$K(B

$B$6$C$H8+$?$H$3$m!"$-$A$s$H:FMxMQ$7$F$$$k$H;W$$$^$9!#(B
free$B$N8zN($O!"$d$d0-$$$+$bCN$l$^$;$s$M!#(B

>> # $B!V%j%9%H!W$H$$$&$N$,(B heap_block_t->next $B$K$h$k%j%9%H$H$$$&(B
>> # $B0UL#$G$7$?$i!"$b$H$b$H3F%V%m%C%/$O%j%9%H$+$i@Z$jN%$5$l$:$K(B

$B:G=i$O!";HMQCf$N%V%m%C%/$b%j%9%H$K$D$J$$$G$"$k$3$H$K5$$,$D$-$^$;$s$G$7$?!#(B
# $B$=$&$$$&<BAu$b$"$k$N$+(B...

>> $B8@$$Lu$C$]$$$G$9$,M}M3$O$"$C$F!"(BWitch$B$G(Bmalloc()$B;H$&$H$7$?$i(B
>> $B!VF1$8%5%$%:$N%a%b%j$r(Bmalloc()$B$7$?$j(Bfree()$B$7$?$j$N7+$jJV$7$K(B
>> $B$J$k$N$G$O!)!W$H$$$&M=A[$G$9!#(Bstrdup()$B$N=hM}$N$h$&$J!"ITDjD9(B

OS$B$,LLE]$r8+$F$/$l$J$$4D6-$GL50G$K%5%$%:$N0[$J$k(Bmalloc/free$B$r7+$j$+$($9$N$O(B
$B4m81$G$7$g$&$M!#%a%b%j;HMQ$NFC@-$r9M$($F!"%1!<%9$4$H$KE,@Z$J%a%b%j4IM}%7%9(B
$B%F%`$r<BAu$9$k$Y$-$@$H;W$$$^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