Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff 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 |
line diff
1.1 --- a/vmalloc.h Sat Feb 11 21:43:43 2012 -0800 1.2 +++ b/vmalloc.h Sun Feb 12 01:49:33 2012 -0800 1.3 @@ -33,13 +33,42 @@ 1.4 FreeListHead; 1.5 1.6 void * 1.7 -VMS__malloc( size_t sizeRequested ); 1.8 +VMS_int__malloc( size_t sizeRequested ); 1.9 1.10 void * 1.11 -VMS__malloc_aligned( size_t sizeRequested ); 1.12 +VMS_int__malloc_aligned( size_t sizeRequested ); 1.13 1.14 void 1.15 -VMS__free( void *ptrToFree ); 1.16 +VMS_int__free( void *ptrToFree ); 1.17 + 1.18 +#define VMS_PI__malloc VMS_int__malloc 1.19 +#define VMS_PI__malloc_aligned VMS_int__malloc_aligned 1.20 +#define VMS_PI__free VMS_int__free 1.21 +/* For now, the PI is protected by master lock, so int malloc fine 1.22 +void * 1.23 +VMS_PI__malloc( size_t sizeRequested ); 1.24 + 1.25 +void * 1.26 +VMS_PI__malloc_aligned( size_t sizeRequested ); 1.27 + 1.28 +void 1.29 +VMS_PI__free( void *ptrToFree ); 1.30 +*/ 1.31 + 1.32 +//TODO: protect WL malloc from concurrency!! shared freelist can be corrupted 1.33 +#define VMS_WL__malloc VMS_int__malloc 1.34 +#define VMS_WL__malloc_aligned VMS_int__malloc_aligned 1.35 +#define VMS_WL__free VMS_int__free 1.36 +/* 1.37 +void * 1.38 +VMS_WL__malloc( size_t sizeRequested ); 1.39 + 1.40 +void * 1.41 +VMS_WL__malloc_aligned( size_t sizeRequested ); 1.42 + 1.43 +void 1.44 +VMS_WL__free( void *ptrToFree ); 1.45 +*/ 1.46 1.47 /*Allocates memory from the external system -- higher overhead 1.48 */
