Ioannis Koutras
|
558319c421
use atomic operations for locks
|
12 years ago |
Ioannis Koutras
|
8ac1cf5852
remove unneeded allocator locks
|
12 years ago |
Ioannis Koutras
|
208f5e41e1
support for multiple allocator states, each one for each thread
|
12 years ago |
Ioannis Koutras
|
97fbea0bb8
allocator space for allocator state on the heap
|
12 years ago |
Ioannis Koutras
|
01079e92b5
remove used big blocks information
|
12 years ago |
Ioannis Koutras
|
f2dea9fed9
malloc() and memalign(): check for size before parsing through raw blocks
|
12 years ago |
Ioannis Koutras
|
52b135e316
option to use a trylock on malloc() instead of a lock
|
12 years ago |
iraklis
|
21b7e5be25
Fixed the warning for correct cast in DEAD (0xD34D) pointer
|
12 years ago |
Ioannis Koutras
|
e7505ae95a
make malloc(0) return a unique pointer value
|
12 years ago |
Ioannis Koutras
|
23d2b771b9
malloc: fix the range check of the memory block address inside a non-big block
|
12 years ago |
Ioannis Koutras
|
554909b120
fixes for compatibility with the STHORM SDK
|
13 years ago |
Ioannis Koutras
|
f194860d49
memalign(): improved statistics and fix big block address in the list
|
13 years ago |
Ioannis Koutras
|
97655dc9a9
Check directly in macros if file descriptors are initialized before using them
|
13 years ago |
Ioannis Koutras
|
9d1fec9368
fixes on debug traces
|
13 years ago |
Ioannis Koutras
|
e82506a2fd
add comments in malloc()
|
13 years ago |
Ioannis Koutras
|
32df8bd4fe
rewrite macros to refactor some code
|
13 years ago |
Ioannis Koutras
|
702afbe006
minor cosmetic fixes
|
13 years ago |
Ioannis Koutras
|
d8b415d87a
support for using trace files and parsing environment variables
|
13 years ago |
Ioannis Koutras
|
5d5729fe61
track total_mem_allocated correctly, use proper locks
|
13 years ago |
Ioannis Koutras
|
9c496bf224
capitalize the lock macros
|
13 years ago |
Ioannis Koutras
|
82e8ffaef8
memalign() implementation for free-list organised raw blocks
|
13 years ago |
Ioannis Koutras
|
0e43f0ae97
knobs support on setting the size of the raw block, the good-fit percentage, the maximum coalescing and minimum splitting sizes
|
13 years ago |
Ioannis Koutras
|
e40ad8c107
malloc: check that a valid pointer is returned from a non-big block
|
13 years ago |
Ioannis Koutras
|
c5b63eb8b8
correct tracking of big block statistics
|
13 years ago |
Ioannis Koutras
|
7ecf85adf2
freelist refactoring
|
13 years ago |
Ioannis Koutras
|
279df2491f
Use macros for singly-linked lists as defined in /usr/include/sys/queue.h
|
13 years ago |
Ioannis Koutras
|
a86dc08071
some more refactoring; keeping better tracking of big blocks during debug mode
|
13 years ago |
Ioannis Koutras
|
4bbf6ecc0f
clean up more define guards in top-level files
|
13 years ago |
Ioannis Koutras
|
8356eff3b0
refactor locking mechanisms; more char * to uintptr_t conversions
|
13 years ago |
Ioannis Koutras
|
11b5e54d3e
remove big blocks from list when debug is enabled; use uintptr_t instead of char *
|
13 years ago |