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 2b89340 commit 8b53f56Copy full SHA for 8b53f56
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 * 8);
+ Pointer pointer = Pointer.malloc(size * Pointer.SIZE);
92
pointer.enableAutorelease(getContext().getFinalizationService());
93
return new NativeArrayStorage(pointer, size);
94
}
0 commit comments