comparison vmalloc.h @ 203:caa8512f7bdc

changed __brch__ contents for update naming scheme
author Me@portablequad
date Mon, 13 Feb 2012 09:23:27 -0800
parents c1784868dcea
children
comparison
equal deleted inserted replaced
20:8720dfd517c3 21:c079bbd04719
31 int32 numInList; //TODO not used 31 int32 numInList; //TODO not used
32 } 32 }
33 FreeListHead; 33 FreeListHead;
34 34
35 void * 35 void *
36 VMS__malloc( size_t sizeRequested ); 36 VMS_int__malloc( size_t sizeRequested );
37 37
38 void * 38 void *
39 VMS__malloc_aligned( size_t sizeRequested ); 39 VMS_int__malloc_aligned( size_t sizeRequested );
40 40
41 void 41 void
42 VMS__free( void *ptrToFree ); 42 VMS_int__free( void *ptrToFree );
43
44 #define VMS_PI__malloc VMS_int__malloc
45 #define VMS_PI__malloc_aligned VMS_int__malloc_aligned
46 #define VMS_PI__free VMS_int__free
47 /* For now, the PI is protected by master lock, so int malloc fine
48 void *
49 VMS_PI__malloc( size_t sizeRequested );
50
51 void *
52 VMS_PI__malloc_aligned( size_t sizeRequested );
53
54 void
55 VMS_PI__free( void *ptrToFree );
56 */
57
58 //TODO: protect WL malloc from concurrency!! shared freelist can be corrupted
59 #define VMS_WL__malloc VMS_int__malloc
60 #define VMS_WL__malloc_aligned VMS_int__malloc_aligned
61 #define VMS_WL__free VMS_int__free
62 /*
63 void *
64 VMS_WL__malloc( size_t sizeRequested );
65
66 void *
67 VMS_WL__malloc_aligned( size_t sizeRequested );
68
69 void
70 VMS_WL__free( void *ptrToFree );
71 */
43 72
44 /*Allocates memory from the external system -- higher overhead 73 /*Allocates memory from the external system -- higher overhead
45 */ 74 */
46 void * 75 void *
47 VMS__malloc_in_ext( size_t sizeRequested ); 76 VMS__malloc_in_ext( size_t sizeRequested );