summaryrefslogtreecommitdiff
path: root/sys/src/libc/port/malloc.c
AgeCommit message (Collapse)Author
2020-12-07libc: open internal file-descriptor with OCEXEC flagcinap_lenrek
2016-11-05libc: move calloc() into its own compilation unitcinap_lenrek
move calloc() in its own compilation unit to avoid code duplication. also, calloc() is used rarely in plan9 programs.
2016-03-19libc: trailing whitespace cleanupBurnZeZ
2014-02-02malloctag: only store lower 32bit of malloc tag, fix getrealloctagcinap_lenrek
as erik quanstro suggests, theres not much of a point in storing the full 64bit pc as one cannot get a code segment bigger than 4G and amd64 makes it hard to use a pc that isnt 64bit sign extension of 32bit. instead, we only store ulong (as originally), but sign extend back when returning in getmalloctag() and getrealloctag(). getrealloctag() used to be broken. its now fixed.
2014-01-20malloc: change malloc and realloc tag types to uintptrcinap_lenrek
2012-08-19calloc: check multiplication overflowcinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen