mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
resolve #201 with a platform-selective REP MOVSB implementation
This commit is contained in:
parent
66048cb6cc
commit
429025634e
8 changed files with 26 additions and 10 deletions
|
@ -188,7 +188,7 @@ static bool _mi_heap_init(void) {
|
|||
// OS allocated so already zero initialized
|
||||
mi_tld_t* tld = &td->tld;
|
||||
mi_heap_t* heap = &td->heap;
|
||||
memcpy(heap, &_mi_heap_empty, sizeof(*heap));
|
||||
_mi_memcpy(heap, &_mi_heap_empty, sizeof(*heap));
|
||||
heap->thread_id = _mi_thread_id();
|
||||
_mi_random_init(&heap->random);
|
||||
heap->cookie = _mi_heap_random_next(heap) | 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue