Talk:C dynamic memory allocation/Archive 2: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Talk:C dynamic memory allocation) (bot
m Archiving 1 discussion(s) from Talk:C dynamic memory allocation) (bot
Line 74:
 
*'''Comment.''' In case anyone's curious to see them, here are some links to archival snapshots of malloc at [http://minnie.tuhs.org/cgi-bin/utree.pl The Unix Tree]. The earliest I could find was dmr's [http://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/nsys/dmr/malloc.c Fourth Edition malloc.c], dated 8-31-1973. The [http://minnie.tuhs.org/cgi-bin/utree.pl?file=PWB1/sys/source/s4/malloc.c PWB1 malloc.c], dated 2-10-1980, implemented the whole memory allocator, including free, but realloc was separately compiled as [http://minnie.tuhs.org/cgi-bin/utree.pl?file=PWB1/sys/source/s4/realloc.c realloc.c], so that if you didn't actually need those bytes of code, they wouldn't be linked in. In the [http://minnie.tuhs.org/cgi-bin/utree.pl?file=SysIII/usr/src/lib/libc/vax/gen/malloc.c System III malloc.c], dated 4-11-1980, and the [http://minnie.tuhs.org/cgi-bin/utree.pl?file=Ultrix-3.1/src/libc/gen/malloc.c Ultrix 3.1 malloc.c], dated 4-22-1986, realloc is part of malloc.c. You can compare those mallocs to the [http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD/usr/src/lib/libc/gen/malloc.c BSD4.3 malloc.c], dated 3-9-1986. The BSD malloc does not do coalescing; instead, it just uses a small number of lists of fixed sized blocks (analogous to the strategy I mentioned PL/I programmers used to use.) The Bell Labs mallocs all did coalescing. [[User:Msnicki|Msnicki]] ([[User talk:Msnicki|talk]]) 17:57, 30 October 2011 (UTC)
 
==Move discussion in progress==
There is a move discussion in progress which affects this page. Please participate at [[Talk:C standard library#Move request through WP:RM|Talk:C standard library - Requested move]] and not in this talk page section. Thank you. <!-- Talk:C standard library crosspost --> —[[User:RM bot|RM bot]] 09:40, 8 November 2011 (UTC)