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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to