Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison vmalloc.h @ 200:6db9e4898978
VMS name chgs -- added "WL" "PI" and "int" and split vms.h up
| author | Me@portablequad |
|---|---|
| date | Sun, 12 Feb 2012 01:49:33 -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 ); |
