Changeset: e4939b7dffb4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e4939b7dffb4
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: default
Log Message:
don't deadlock on the mal_profileLock
diffs (17 lines):
diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -677,9 +677,12 @@ openProfilerStream(Client cntxt)
m = workingset[j].mb;
s = workingset[j].stk;
p = workingset[j].pci;
- if( c && m && s && p )
+ if( c && m && s && p ) {
/* show the event assuming the quadruple is aligned*/
+ MT_lock_unset(&mal_profileLock);
profilerEvent(c, m, s, p, 1);
+ MT_lock_set(&mal_profileLock);
+ }
}
MT_lock_unset(&mal_profileLock);
return MAL_SUCCEED;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list