Displaying 7 results from an estimated 7 matches for "n_alloc".
Did you mean:
r_alloc
2012 Jan 10
2
plug leaks in febootstrap
...2 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -306,6 +306,7 @@ load_file (const char *filename)
line[len-1] = '\0';
add_string (&lines, &n_used, &n_alloc, line);
}
+ fclose (fp);
add_string (&lines, &n_used, &n_alloc, NULL);
return lines;
--
1.7.9.rc0.13.gbee72
>From f03d46334bb318fad7a7b71900d6a3c11586b68f Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Tue, 10 Jan 2012 17:04:52 +0100
Sub...
2009 Nov 13
0
[LLVMdev] opt -std-compile-opts breaks tail calls
On Nov 13, 2009, at 3:34 AM, Jon Harrop wrote:
>> Point 4 is the one that caused me trouble for some time.
>> Unfortunately
>> it causes a bad interaction with the optimiser, specifically the
>> 'simplifycfg' pass. What seems to happen is that since the function
>> you are calling is marked with 'noreturn', the simplifycfg pass will
>> then
2009 Nov 13
2
[LLVMdev] opt -std-compile-opts breaks tail calls
...= sext i32 %5 to i64 ; <i64> [#uses=1]
%11 = getelementptr %0* %9, i64 %10 ; <%0*> [#uses=1]
store %0 %4, %0* %11
%12 = add i32 %5, 1 ; <i32> [#uses=1]
store i32 %12, i32* @shadow_stack_depth
%13 = load i32* @n_allocated ; <i32> [#uses=1]
%14 = load i32* @quota ; <i32> [#uses=1]
%15 = icmp sgt i32 %13, %14 ; <i1> [#uses=1]
br i1 %15, label %fail, label %cont
fail: ; preds = %entry...
2009 Nov 13
2
[LLVMdev] opt -std-compile-opts breaks tail calls
On Friday 13 November 2009 04:57:43 David Terei wrote:
> I've run into some issues with tail calls in the past, make sure you
> are doing the following:
>
> 1. Call should be marked with tail (obviously)
> 2. Next statement after tail call should be 'return void'
> 3. Use fast call convention for tail calls
> 4. Make sure the function you are calling doesn't
2004 Feb 06
4
memory reduction
...allocations */
+ struct pool_extent *free; /* unfreed extent list */
+ void (*bomb)();
+ /* function to call if
+ * malloc fails */
+ int flags;
+
+ /* statistical data */
+ unsigned long e_created; /* extents created */
+ unsigned long e_freed; /* extents detroyed */
+ uint64 n_allocated; /* calls to alloc */
+ uint64 n_freed; /* calls to free */
+ uint64 b_allocated; /* cum. bytes allocated */
+ uint64 b_freed; /* cum. bytes freed */
+};
+
+struct pool_extent
+{
+ void *start; /* starting address */
+ size_t free; /* free bytecount */
+ size_t bound; /* bytes bo...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...char *dtb);
-
-/* utils.c */
-extern void print_timestamped_message (const char *fs, ...);
-extern int64_t timeval_diff (const struct timeval *x, const struct timeval *y);
-extern int reverse_filevercmp (const void *p1, const void *p2);
-extern void add_string (char ***argv, size_t *n_used, size_t *n_alloc, const char *str);
-extern size_t count_strings (char *const *argv);
-extern char **read_dir (const char *name);
-extern char **filter (char **strings, int (*)(const char *));
-extern char **filter_fnmatch (char **strings, const char *patt, int flags);
-extern char **filter_notmatching_substring (c...
2010 Mar 11
2
[PATCH FOR DISCUSSION ONLY] Rewrite libguestfs-supermin-helper in C.
This needs loads more testing before we include it. However it's in
good shape for testing and review.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
-------------- next part