summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.cc
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2019-11-01 16:48:28 -0700
committerHans Boehm <hboehm@google.com>2019-12-04 23:25:06 +0000
commit13e951d2bf4f989b0c561b96eed967e8f84d64ea (patch)
tree68edc727335048994abf31fc5cdf5bd5c6743b93 /compiler/optimizing/loop_optimization.cc
parent1caa1270a53fa08ab9c6934d5bdd2da79c7bf89e (diff)
Fix mallinfo result interpretation
We assumed that mallinfo.hblkhd represents the amount of memory in large blocks allocated directly with mmap. That appears to be the intended interpretation for glibc, but not jemalloc. In the jemalloc case, remove the attempt to sanity check and repair the uordblks field based on this information. The bug requiring it there was fixed long ago. Based on old notes, the check may still be required for glibc. Out of an abundance of caution, leave it there for now. Add a conditional sanity check of the argument for RegisterNativeAllocation(). This was externally reported through unofficial channels. Test: Build and boot AOSP. Change-Id: I5d10f239057ed3efeb39f28e8c7d87849ee60ff0
Diffstat (limited to 'compiler/optimizing/loop_optimization.cc')
0 files changed, 0 insertions, 0 deletions