make cas weak use release memory order; improve free assembly

This commit is contained in:
daan 2019-08-26 08:20:26 -07:00
parent 5c7c106d62
commit 7ce9c02fd4
2 changed files with 2 additions and 2 deletions

View file

@ -226,7 +226,7 @@ void mi_free(void* p) mi_attr_noexcept
#endif
const mi_segment_t* const segment = _mi_ptr_segment(p);
if (segment == NULL) return; // checks for (p==NULL)
if (mi_unlikely(segment == NULL)) return; // checks for (p==NULL)
#if (MI_DEBUG>0)
if (mi_unlikely(!mi_is_in_heap_region(p))) {