We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c4783f commit 9f41464Copy full SHA for 9f41464
src/main/java/org/truffleruby/core/array/NativeArrayNodes.java
@@ -88,7 +88,7 @@ public static abstract class NativeArrayNewStoreNode extends ArrayOperationNodes
88
89
@Specialization
90
protected NativeArrayStorage newStore(int size) {
91
- Pointer pointer = Pointer.malloc(size);
+ Pointer pointer = Pointer.malloc(size * 8);
92
pointer.enableAutorelease(getContext().getFinalizationService());
93
return new NativeArrayStorage(pointer, size);
94
}
0 commit comments