57e84c3039
There is no need to create a full copy just to fetch the already available stacksize. It still respects the maximum stacksize of Integer.MAX_VALUE as they copy is doing. Fixes #982