From 23438370f768802fefd732529177fcea074c493b Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 2 Jun 2020 11:55:42 +0200 Subject: [PATCH] openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined. 2020-06-02 Jakub Jelinek * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not defined. --- libgomp/allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgomp/allocator.c b/libgomp/allocator.c index 66308ab6669..4e293992d22 100644 --- a/libgomp/allocator.c +++ b/libgomp/allocator.c @@ -348,7 +348,7 @@ omp_free (void *ptr, omp_allocator_handle_t allocator) MEMMODEL_RELAXED); #else gomp_mutex_lock (&allocator_data->lock); - allocator_data->used_pool_size -= data->new_size; + allocator_data->used_pool_size -= data->size; gomp_mutex_unlock (&allocator_data->lock); #endif } -- 2.30.2