Changeset: fea51b344bfe for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/fea51b344bfe
Modified Files:
        gdk/gdk_bbp.c
        gdk/gdk_private.h
Branch: Mar2025
Log Message:

Use const and attributes for BBPsync.


diffs (28 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -3785,7 +3785,7 @@ BBPcheckBBPdir(void)
  * The BBP.dir is also moved into the BAKDIR.
  */
 gdk_return
-BBPsync(int cnt, bat *restrict subcommit, BUN *restrict sizes, lng logno)
+BBPsync(int cnt, const bat *restrict subcommit, const BUN *restrict sizes, lng 
logno)
 {
        gdk_return ret = GDK_SUCCEED;
        lng t0 = 0, t1 = 0;
diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h
--- a/gdk/gdk_private.h
+++ b/gdk/gdk_private.h
@@ -100,8 +100,10 @@ void BBPprintinfo(void)
        __attribute__((__visibility__("hidden")));
 int BBPselectfarm(role_t role, int type, enum heaptype hptype)
        __attribute__((__visibility__("hidden")));
-gdk_return BBPsync(int cnt, bat *restrict subcommit, BUN *restrict sizes, lng 
logno)
-       __attribute__((__visibility__("hidden")));
+gdk_return BBPsync(int cnt, const bat *restrict subcommit, const BUN *restrict 
sizes, lng logno)
+       __attribute__((__visibility__("hidden")))
+       __attribute__((__access__(read_only, 2, 1)))
+       __attribute__((__access__(read_only, 3, 1)));
 BUN binsearch(const oid *restrict indir, oid offset, int type, const void 
*restrict vals, const char * restrict vars, int width, BUN lo, BUN hi, const 
void *restrict v, int ordering, int last)
        __attribute__((__visibility__("hidden")));
 BUN binsearch_bte(const oid *restrict indir, oid offset, const bte *restrict 
vals, BUN lo, BUN hi, bte v, int ordering, int last)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to