Skip to content

Commit

Permalink
try with local 16, args 4 8 or 16
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Nov 11, 2024
1 parent 362acfa commit 1df6b6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/lucee/runtime/type/UDFImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private Object _call(PageContext pc, Collection.Key calledName, Object[] args, S
boolean existingNewArgs = newArgs != null;

if (!existingNewArgs){
if (args == null) newArgs = pci.getScopeFactory().getArgumentInstance();
if (args == null || args.length < 4) newArgs = pci.getScopeFactory().getArgumentInstance();
else newArgs = pci.getScopeFactory().getArgumentInstance(args.length);
}
newArgs.setFunctionArgumentNames(properties.getArgumentsSet());
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/lucee/runtime/type/scope/LocalImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public final class LocalImpl extends ScopeSupport implements Scope, Local {

public LocalImpl() {
// super("local", Scope.SCOPE_LOCAL, Struct.TYPE_SYNC, 4);
super("local", Scope.SCOPE_LOCAL, Struct.TYPE_REGULAR, 8);
super("local", Scope.SCOPE_LOCAL, Struct.TYPE_REGULAR, 16);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Argument getArgumentInstance(int size) {
return arg;
}
//aprint.o("arguments new! " + arguments.size());
return size > 3 ? new ArgumentImpl(8) : new ArgumentImpl();
return size < 7 ? new ArgumentImpl(8) : new ArgumentImpl(16);
}

/**
Expand Down

0 comments on commit 1df6b6c

Please sign in to comment.