annotate vmalloc.h @ 65:13b22ffb8a2f

Nov 14 vers -- Added measurement of Plugin, malloc, & master lock, + vutilities
author Me
date Sun, 14 Nov 2010 11:17:52 -0800
parents 42dd44df1bb0
children bf08108405cc 9ddbb071142d a49f02980151
rev   line source
Me@50 1 /*
Me@50 2 * Copyright 2009 OpenSourceCodeStewardshipFoundation.org
Me@50 3 * Licensed under GNU General Public License version 2
Me@50 4 *
Me@50 5 * Author: seanhalle@yahoo.com
Me@50 6 *
Me@50 7 * Created on November 14, 2009, 9:07 PM
Me@50 8 */
Me@50 9
Me@65 10 #ifndef _VMALLOC_H
Me@65 11 #define _VMALLOC_H
Me@65 12
Me@50 13 #include <malloc.h>
Me@50 14 #include "VMS_primitive_data_types.h"
Me@50 15
Me@50 16 typedef struct _MallocProlog MallocProlog;
Me@50 17
Me@50 18 struct _MallocProlog
Me@50 19 {
Me@50 20 MallocProlog *nextChunkInFreeList;
Me@50 21 MallocProlog *prevChunkInFreeList;
Me@50 22 MallocProlog *nextHigherInMem;
Me@50 23 MallocProlog *nextLowerInMem;
Me@50 24 };
Me@50 25 //MallocProlog
Me@50 26
Me@50 27 typedef struct
Me@50 28 {
Me@50 29 MallocProlog *firstChunkInFreeList;
Me@50 30 int32 numInList;
Me@50 31 }
Me@50 32 FreeListHead;
Me@50 33
Me@50 34 void *
Me@50 35 VMS__malloc( int32 sizeRequested );
Me@50 36
Me@50 37 void
Me@50 38 VMS__free( void *ptrToFree );
Me@50 39
Me@53 40 /*Allocates memory from the external system -- higher overhead
Me@53 41 */
Me@53 42 void *
Me@53 43 VMS__malloc_in_ext( int32 sizeRequested );
Me@53 44
Me@53 45 /*Frees memory that was allocated in the external system -- higher overhead
Me@53 46 */
Me@53 47 void
Me@53 48 VMS__free_in_ext( void *ptrToFree );
Me@53 49
Me@53 50
Me@50 51 MallocProlog *
Me@53 52 VMS_ext__create_free_list();
Me@50 53
Me@50 54 void
Me@50 55 VMS_ext__free_free_list( MallocProlog *freeListHead );
Me@65 56
Me@65 57 #endif