Skip to content

Commit

Permalink
Merge pull request #954 from jimwang118/fix-linux
Browse files Browse the repository at this point in the history
Fix build error on x64-android
  • Loading branch information
daanx authored Oct 28, 2024
2 parents f126b50 + 17802e6 commit afba031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arena-abandon.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void mi_arena_segment_os_mark_abandoned(mi_segment_t* segment) {
void _mi_arena_segment_mark_abandoned(mi_segment_t* segment)
{
mi_assert_internal(segment->used == segment->abandoned);
mi_atomic_store_release(&segment->thread_id, 0); // mark as abandoned for multi-thread free's
mi_atomic_store_release(&segment->thread_id, (uintptr_t)0); // mark as abandoned for multi-thread free's
if mi_unlikely(segment->memid.memkind != MI_MEM_ARENA) {
mi_arena_segment_os_mark_abandoned(segment);
return;
Expand Down

0 comments on commit afba031

Please sign in to comment.