[LLVMbugs] [Bug 16847] New: GetMallocUsage returns wrong value
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 9 08:20:04 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16847
Bug ID: 16847
Summary: GetMallocUsage returns wrong value
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: martin at se.inf.tu-dresden.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11010
--> http://llvm.org/bugs/attachment.cgi?id=11010&action=edit
Patch
GetMallocUsage should return the overall used space allocated by malloc.
Currently, the implementation just returns the space used by the arena (managed
by incrementing/decrementing the data segment). Nevertheless, requesting bigger
memory, malloc falls back to use mmap. That size should be counted as well.
Patch is attached.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130809/dd26f15b/attachment.html>
More information about the llvm-bugs
mailing list