aboutsummaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/decl.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/decl.zc b/src/compiler/decl.zc
index fed7b8d..55e23a7 100644
--- a/src/compiler/decl.zc
+++ b/src/compiler/decl.zc
@@ -264,7 +264,7 @@ int kw_hold() {
if (skind[s] == K_GVAR || skind[s] == K_GARR) {
t = stype[s]; w = 1;
if (skind[s] == K_GARR) { w = tsz(t); if (t[0] == TY_ARR) t = t[1]; }
- if (t && (isptr(t) || isagg(t) || t == tbstr || t[0] == TY_DYN || t[0] == TY_FN)) serrn(sname[s], "is shared, so it holds numbers: no pointers, strings or structs (each actor has its own heap)");
+ if (t && (isptr(t) || isagg(t) || t == tbstr || t[0] == TY_DYN || t[0] == TY_FN)) serrn(sname[s], "is shared, so it holds numbers: no pointers, strings or structs (each worker has its own heap)");
sflag[s] = sflag[s] | F_SHARED | rank * F_SHARED_RANK;
if (hold_nshared >= 64) serr("too many shared variables in one hold block (64)");
else { hold_tab[hold_nshared * 2] = sval[s]; hold_tab[hold_nshared * 2 + 1] = w; hold_nshared++; }