mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-07 21:50:54 +00:00
preload: setup per-thread caching
We also need to invalidate caches at some point on dlopen()/dlclose().
This commit is contained in:
@ -62,6 +62,9 @@ G_DEFINE_CONSTRUCTOR(collector_init_ctor)
|
|||||||
static void
|
static void
|
||||||
collector_init_ctor (void)
|
collector_init_ctor (void)
|
||||||
{
|
{
|
||||||
|
#if ENABLE_LIBUNWIND
|
||||||
|
unw_set_caching_policy (unw_local_addr_space, UNW_CACHE_PER_THREAD);
|
||||||
|
#endif
|
||||||
sysprof_collector_init ();
|
sysprof_collector_init ();
|
||||||
collector_ready = TRUE;
|
collector_ready = TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user