File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -529,12 +529,14 @@ bool bucket_can_pool(bucket_t *bucket, bool *to_pool) {
529529 break ;
530530 }
531531
532- // TODO!!!
533- //if (utils_compare_exchange(&bucket->shared_limits->total_size,
534- // pool_size, new_pool_size)) {
532+ // TODO!!!
533+ #ifdef _WIN32
535534 if (bucket -> shared_limits -> total_size != new_pool_size ) {
536535 bucket -> shared_limits -> total_size = new_pool_size ;
537-
536+ #else
537+ if (utils_compare_exchange (& bucket -> shared_limits -> total_size ,
538+ & pool_size , & new_pool_size )) {
539+ #endif
538540 if (chunkedBucket ) {
539541 ++ bucket -> chunkedSlabsInPool ;
540542 }
@@ -693,7 +695,7 @@ utils_mutex_t *AllocImpl_getKnownSlabsMapLock(AllocImpl *ai) {
693695
694696critnib * AllocImpl_getKnownSlabs (AllocImpl * ai ) { return ai -> known_slabs ; }
695697
696- size_t AllocImpl_SlabMinSize (AllocImpl * ai ) { return ai -> params .SlabMinSize ; };
698+ size_t AllocImpl_SlabMinSize (AllocImpl * ai ) { return ai -> params .SlabMinSize ; }
697699
698700umf_disjoint_pool_params_t * AllocImpl_getParams (AllocImpl * ai ) {
699701 return & ai -> params ;
You can’t perform that action at this time.
0 commit comments