Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
6073-erts-Fix-lcnt-macro-error.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 6073-erts-Fix-lcnt-macro-error.patch of Package erlang
From 1437195414c4e723ba27f49d984a6e261423b6a0 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Tue, 4 Oct 2022 11:57:43 +0200 Subject: [PATCH 3/4] erts: Fix lcnt macro error --- erts/emulator/beam/erl_lock_count.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/erts/emulator/beam/erl_lock_count.h b/erts/emulator/beam/erl_lock_count.h index 02ab64ec95..12cf76c66a 100644 --- a/erts/emulator/beam/erl_lock_count.h +++ b/erts/emulator/beam/erl_lock_count.h @@ -261,12 +261,14 @@ int erts_lcnt_check_ref_installed(erts_lcnt_ref_t *ref); /** @brief Convenience macro to re/enable counting on an already initialized * reference. Don't forget to specify the lock type in \c flags! */ -#define erts_lcnt_install_new_lock_info(ref, name, id, flags) \ - if(!erts_lcnt_check_ref_installed(ref)) { \ - erts_lcnt_lock_info_carrier_t *__carrier; \ - __carrier = erts_lcnt_create_lock_info_carrier(1);\ - erts_lcnt_init_lock_info_idx(__carrier, 0, name, id, flags); \ - erts_lcnt_install(ref, __carrier);\ +#define erts_lcnt_install_new_lock_info(ref, name, id, flags) \ + do { \ + if(!erts_lcnt_check_ref_installed(ref)) { \ + erts_lcnt_lock_info_carrier_t *__carrier; \ + __carrier = erts_lcnt_create_lock_info_carrier(1); \ + erts_lcnt_init_lock_info_idx(__carrier, 0, name, id, flags); \ + erts_lcnt_install(ref, __carrier); \ + } \ } while(0) erts_lcnt_lock_info_carrier_t *erts_lcnt_create_lock_info_carrier(int count); -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor