You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we are adding uz to a recursible block, with transfer of ownership. The new owner protects the block. If uz is abandoned it is safe to zap even if it is x. Sets new uz
1215
1215
// Fold Multiple. Add the new value to the result array
1216
1216
UInewslot=AN(zz); // where the new value will go
1217
+
#if1// test version to try to eliminate crash
1218
+
if(withprob(newslot==zzalloc,0.03)){ // current alloc full?
1219
+
// current alloc is full. Double the allocation, swap it with zz (transferring ownership), and copy the data
1220
+
zzalloc=2*zzalloc+(AKXR(1)>>LGSZI); // new allocation, cacheline multiple
1221
+
// obsolete A zznew; GATV0E(zznew,INT,zzalloc,1,goto exitpop;) A *zznewzap=AZAPLOC(zznew); A *zzzap=AZAPLOC(zz); // allocate, & get pointers to tstack slots old & new
1222
+
Azznew; GATV0E(zznew,INT,zzalloc,1,gotoexitpop;) ACINITUNPUSH(zznew) // allocate & zap new block
0 commit comments