Skip to content

Commit

Permalink
Temporarily reduce usage of newBlankArray as packed arrays are not do…
Browse files Browse the repository at this point in the history
…ing something (perhaps unpacking)
  • Loading branch information
enebo committed Nov 22, 2024
1 parent f4bd3e2 commit c10467b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/org/jruby/api/Create.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public static RubyArray newArray(ThreadContext context) {
// mri: rb_ary_new2
public static RubyArray<?> newArray(ThreadContext context, long length) {
checkLength(context, length);
return RubyArray.newBlankArray(context.runtime, (int)length);
// FIXME: This should be newBlankArray but things go very wrong in a tough to figure out where sort of way.
return RubyArray.newArray(context.runtime, (int)length);
}

/**
Expand Down

0 comments on commit c10467b

Please sign in to comment.