summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-04-25 18:27:38 -0700
committerChristopher Ferris <cferris@google.com>2016-05-12 17:15:49 -0700
commitf36b5088a32775c44661fb6b348ed0b6b3b67e65 (patch)
treed0f1970e216a9eb4f45dd40f3dd226cb1eb3f017 /libc/malloc_hooks/malloc_hooks.cpp
parentbeb6e08abf1393663151afde2742bb23eccab4e1 (diff)
Fix brk/sbrk error checking.
Note that the kernel returns the current break on error or if the requested break is smaller than the minimum break, or the new break. I don't know where we got the idea that the kernel could return -1. Also optimizes the query case. Also hides an accidentally-exported symbol for LP64. Bug: 28740702 (cherry picked from commit 533dde4dbf87d6615952be3654fc74e5ff2e1003) Change-Id: Ied16987756a501acf292368a14e3727ad631efa5
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions