Changeset: d20354952807 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d20354952807
Modified Files:
gdk/gdk_bbp.c
Branch: multi-cachelock
Log Message:
always mark record's original allocator
diffs (22 lines):
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -2474,8 +2474,7 @@ maybeextend(int idx) {
/* extend the thread list */
BBP_free(idx) = size;
- if (idx != threadmask((lng) size))
- BBP_pidx(size) = idx;
+ BBP_pidx(size) = idx;
ATOMIC_SET(&BBPsize, size + 1);
@@ -2657,7 +2656,7 @@ BBPclear(bat i)
{
if (BBPcheck(i)) {
bool lock = locked_by == 0 || locked_by != MT_getpid();
- int idx = BBP_pidx(i)?BBP_pidx(i):threadmask((lng) i);
+ int idx = BBP_pidx(i);
bbpclear(i, idx, lock);
}
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]