mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-25 11:10:49 +00:00
12 lines
675 B
C++
12 lines
675 B
C++
#pragma once
|
|
|
|
/// This code was based on code by Fedor Korotkiy (prime@yandex-team.ru) for YT product in Yandex.
|
|
|
|
/// Collects all dl_phdr_info items and caches them in a static array.
|
|
/// Also rewrites dl_iterate_phdr with a lockless version which consults the above cache
|
|
/// thus eliminating scalability bottleneck in C++ exception unwinding.
|
|
/// As a drawback, this only works if no dynamic object unloading happens after this point.
|
|
/// This function is thread-safe. You should call it to update cache after loading new shared libraries.
|
|
/// Otherwise exception handling from dlopened libraries won't work (will call std::terminate immediately).
|
|
void updatePHDRCache();
|