Changeset 843
- Timestamp:
- Oct 27, 2003, 9:16:47 AM (22 years ago)
- Location:
- trunk/src/emx/src/lib/malloc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/malloc/calloc.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r842 r843 14 14 { 15 15 _UM_MT_DECL 16 Heap_t heap_reg = _UM_DEFAULT_REGULAR_HEAP; 16 17 17 if ( _UM_DEFAULT_REGULAR_HEAP== NULL)18 _um_init_default_regular_heap ();19 return _ucalloc ( _UM_DEFAULT_REGULAR_HEAP, count, size);18 if (heap_reg == NULL) 19 heap_reg = _um_init_default_regular_heap (); 20 return _ucalloc (heap_reg, count, size); 20 21 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/heapchk.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r842 r843 35 35 heap, return the regular heap's status. */ 36 36 37 if (_UM_DEFAULT_REGULAR_HEAP == _UM_DEFAULT_TILED_HEAP 38 || _UM_DEFAULT_TILED_HEAP == NULL) 37 if (heap_reg == heap_tiled || heap_tiled == NULL) 39 38 return rc1; 40 39 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/heapset.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r842 r843 15 15 _UM_MT_DECL 16 16 int rc1, rc2; 17 Heap_t heap_reg = _UM_DEFAULT_REGULAR_HEAP; 18 Heap_t heap_tiled = _UM_DEFAULT_TILED_HEAP; 17 19 18 20 /* Initialize the heap pointers, in case _heapset() is called by a … … 20 22 21 23 if (_UM_DEFAULT_REGULAR_HEAP == NULL) 22 _um_init_default_regular_heap ();24 heap_reg = _um_init_default_regular_heap (); 23 25 if (_UM_DEFAULT_TILED_HEAP == NULL) 24 _um_init_default_tiled_heap ();26 heap_tiled = _um_init_default_tiled_heap (); 25 27 26 28 /* First fill the regular heap. */ 27 29 28 rc1 = _uheapset ( _UM_DEFAULT_REGULAR_HEAP, fill);30 rc1 = _uheapset (heap_reg, fill); 29 31 if (rc1 != _HEAPOK && rc1 != _HEAPEMPTY) 30 32 return rc1; … … 33 35 heap, return the regular heap's status. */ 34 36 35 if (_UM_DEFAULT_REGULAR_HEAP == _UM_DEFAULT_TILED_HEAP 36 || _UM_DEFAULT_TILED_HEAP == NULL) 37 if (heap_reg == heap_tiled || heap_tiled == NULL) 37 38 return rc1; 38 39 … … 40 41 heaps is non-empty. */ 41 42 42 rc2 = _uheapset ( _UM_DEFAULT_TILED_HEAP, fill);43 rc2 = _uheapset (heap_tiled, fill); 43 44 if (rc2 == _HEAPEMPTY) 44 45 return rc1; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.