diff options
author | bugaevskiy <bugaevskiy@yandex-team.ru> | 2022-02-10 16:46:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:17 +0300 |
commit | a6e0145a095c7bb3770d6e07aee301de5c73f96e (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/libs/jemalloc/reg_zone.cpp | |
parent | c7f68570483e493f4ddaf946de7b3a420ee621b0 (diff) | |
download | ydb-a6e0145a095c7bb3770d6e07aee301de5c73f96e.tar.gz |
Restoring authorship annotation for <bugaevskiy@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/jemalloc/reg_zone.cpp')
-rw-r--r-- | contrib/libs/jemalloc/reg_zone.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libs/jemalloc/reg_zone.cpp b/contrib/libs/jemalloc/reg_zone.cpp index ba0fcd5345..6a7b9d69e1 100644 --- a/contrib/libs/jemalloc/reg_zone.cpp +++ b/contrib/libs/jemalloc/reg_zone.cpp @@ -1,6 +1,6 @@ #include <util/system/compiler.h> -extern "C" void je_zone_register(); +extern "C" void je_zone_register(); static volatile bool initialized = false; @@ -8,19 +8,19 @@ namespace { struct TInit { inline TInit() { if (!initialized) { - je_zone_register(); + je_zone_register(); initialized = true; } } }; - void zone_register() { + void zone_register() { static TInit init; } } extern "C" { - void je_assure_zone_register() { + void je_assure_zone_register() { if (Y_LIKELY(initialized)) { return; } @@ -28,6 +28,6 @@ extern "C" { // Even if we have read false "initialized", real init will be syncronized once by // Meyers singleton in <anonymous>::register_zone(). We could do a few // redundant "initialized" and singleton creation checks, but no more than that. - zone_register(); + zone_register(); } } |