We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 053d61d commit a8674b2Copy full SHA for a8674b2
src/vmp_stack.c
@@ -523,7 +523,7 @@ static void * libhandle = NULL;
523
524
int vmp_native_enable(void) {
525
#ifdef VMPROF_LINUX
526
- if (!unw_get_reg) {
+ if (libhandle == NULL) {
527
if ((libhandle = dlopen(LIBUNWIND, RTLD_LAZY | RTLD_LOCAL)) == NULL) {
528
goto bail_out;
529
}
@@ -570,6 +570,7 @@ void vmp_native_disable(void) {
570
vmprof_error = dlerror();
571
fprintf(stderr, "could not close libunwind at runtime. error: %s\n", vmprof_error);
572
573
+ libhandle = NULL;
574
575
576
vmp_native_traces_enabled = 0;
0 commit comments