Displaying 5 results from an estimated 5 matches for "malloc_stats".
Did you mean:
alloc_stats
2014 Nov 24
0
Bug#767295: [Xen-devel] [PATCH for-4.5 v2] libxc: don't leak buffer containing the uncompressed PV kernel
...s.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <malloc.h>
#define KB 196
int main(int argc, char **argv)
{
void *p;
char buf[1000];
snprintf(buf, 1000, "pmap -x %d", getpid());
printf("Start of day\n");
system(buf);
malloc_stats();
printf("\n=========================\n\n");
p = malloc(KB*0x1000);
printf("allocated %dKB block at %p\n", KB, p);
system(buf);
malloc_stats();
printf("\n=========================\n\n");
free(p);
printf("Freed block at %p\n", p);
system(buf);...
2014 Nov 21
2
Bug#767295: [Xen-devel] [PATCH for-4.5 v2] libxc: don't leak buffer containing the uncompressed PV kernel
On 11/21/2014 06:12 AM, Ian Campbell wrote:
> On Fri, 2014-11-21 at 11:03 +0000, Ian Campbell wrote:
>> http://man7.org/linux/man-pages/man3/mallopt.3.html also talks about
>> various dynamic thresholds for growing and shrinking the heap. My guess
>> is that we are bouncing up and down over some threshold with every other
>> reboot.
> IOW I'm not overly concerned
1998 May 26
0
Re: Beware of dangerous enviroment (Re: Overflows in minicom)
...because I was too lazy to verify they
were safe...
<<<patch for 5.4.44>>>
--- libc-5.4.44/libc/dl-malloc/malloc.c.secenv Sun Nov 2 03:48:44 1997
+++ libc-5.4.44/libc/dl-malloc/malloc.c Sat May 16 15:28:14 1998
@@ -257,6 +257,8 @@
#include <stdio.h> /* needed for malloc_stats */
+extern char *__libc_secure_getenv(const char *);
+
/*
Compile-time options
@@ -3365,15 +3367,15 @@
if(__libc_malloc_initialized) return;
__libc_malloc_initialized = 1;
- if((s = getenv("MALLOC_TRIM_THRESHOLD_")))
+ if((s = __libc_secure_getenv("MALLOC_TRIM_THRES...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not
allocating RBP to any virtual register, the instances of RBP in function
foo are in the machine code when my register allocator starts.)
Function foo calls function bar. Register RBP is not saved across the
call, though it is live after the call. Function bar includes a virtual
register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...rn struct mallinfo mallinfo (void) __attribute__ ((__nothrow__));
extern int mallopt (int __param, int __val) __attribute__ ((__nothrow__));
extern int malloc_trim (size_t __pad) __attribute__ ((__nothrow__));
extern size_t malloc_usable_size (void *__ptr) __attribute__ ((__nothrow__));
extern void malloc_stats (void) __attribute__ ((__nothrow__));
extern void *malloc_get_state (void) __attribute__ ((__nothrow__));
extern int malloc_set_state (void *__ptr) __attribute__ ((__nothrow__));
extern void (*__malloc_initialize_hook) (void);
extern void (*__free_hook) (void *__ptr, __const void *);
extern void *(...