Changeset aaa3c457 in mainline for uspace/lib/c/generic/malloc.c
- Timestamp:
- 2018-11-12T10:36:10Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a43dfcb
- Parents:
- 3ce781f4 (diff), 6874bd2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Jakub Jermář <jakub@…> (2018-11-12 10:36:10)
- git-committer:
- GitHub <noreply@…> (2018-11-12 10:36:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/malloc.c
r3ce781f4 raaa3c457 195 195 196 196 /** Futex for thread-safe heap manipulation */ 197 static FIBRIL_RMUTEX_INITIALIZE(malloc_mutex);197 static fibril_rmutex_t malloc_mutex; 198 198 199 199 #define malloc_assert(expr) safe_assert(expr) … … 484 484 void __malloc_init(void) 485 485 { 486 if (fibril_rmutex_initialize(&malloc_mutex) != EOK) 487 abort(); 488 486 489 if (!area_create(PAGE_SIZE)) 487 490 abort(); 491 } 492 493 void __malloc_fini(void) 494 { 495 fibril_rmutex_destroy(&malloc_mutex); 488 496 } 489 497
Note:
See TracChangeset
for help on using the changeset viewer.