Displaying 4 results from an estimated 4 matches for "arena_head".
Did you mean:
arena_header
2018 Feb 03
1
Mismatch between code comments and reality in malloc.h
...I've been doing some deep code diving and I seem to have found a discrepancy between code comments and reality. This difference could hint at a bug or performance degradation, but I doubt it. I thought to ask to get clarification.
In syslinux/core/mem/malloc.h, the comments and definition for arena_header, ARENA_PADDING and free_arena_header are:
/*
* This structure should be a power of two. This becomes the
* alignment unit.
*/
struct arena_header {
malloc_tag_t tag;
size_t attrs; /* Bits 0..1: Type
2..3: Heap,
4..31: MSB of the size */
struct free_arena_header *next,...
2018 Feb 06
0
[PATCH] syslinux/core: Remove discrepancy between code comments and compiled code in malloc.h
From: Brett Walker <brett.walker at geometry.com.au>
Remove a discrepancy between code comments and the definition for arena_header,
ARENA_PADDING and free_arena_header.
When the size of int and pointer are both 32-bits; and compiled with
DEBUG_MALLOC undefined; the following are true: sizeof(arena_header) == 16
and sizeof(free_arena_header) == 56.
To correct this, the type of _pad needs to be changed from size_t to uint8_t...
2006 Jan 14
0
com32's realloc function
...syslinux-3.11/com32/lib/realloc.c
--- /tmp/syslinux-3.11/com32/lib/realloc.c 2004-11-10 22:31:50.000000000 +0000
+++ syslinux-3.11/com32/lib/realloc.c 2006-01-14 23:37:52.000000000 +0000
@@ -24,7 +24,7 @@
}
/* Add the obligatory arena header, and round up */
- size = (size+2*sizeof(struct arena_header)-1) & ARENA_SIZE_MASK;
+ size = (size+2*sizeof(struct arena_header)-1) & ~ARENA_SIZE_MASK;
ah = (struct free_arena_header *)
((struct arena_header *)ptr - 1);
2008 Mar 24
3
I' m a Gsoc Applier
Hello, I'm a student interested in the syslinux project of Gsoc.
And Isincerely hope to have the opportunity to apply the "Dynamic
linker/loader for modules" project.
But it seems the #syslinux channel is not so active and I can't contact
a mentor about that.
Could anybody help me?
Thank you!