Skip to content

Commit 809912a

Browse files
committed
Fix another sharing assertion problem.
1 parent 1340621 commit 809912a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/org/truffleruby/core/array/library/DoubleArrayStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ protected static Object allocate(double[] store, Object[] newStore, int length)
318318
limit = "storageStrategyLimit()")
319319
protected static Object allocate(double[] store, Object newStore, int length,
320320
@CachedLibrary("newStore") ArrayStoreLibrary newStores) {
321-
return newStores.allocateForNewStore(newStore, store, length);
321+
return newStores.unsharedAllocateForNewStore(newStore, store, length);
322322
}
323323
}
324324

src/main/java/org/truffleruby/core/array/library/IntegerArrayStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ protected static Object allocate(int[] store, Object[] newStore, int length) {
338338
limit = "storageStrategyLimit()")
339339
protected static Object allocate(int[] store, Object newStore, int length,
340340
@CachedLibrary("newStore") ArrayStoreLibrary newStores) {
341-
return newStores.allocateForNewStore(newStore, store, length);
341+
return newStores.unsharedAllocateForNewStore(newStore, store, length);
342342
}
343343
}
344344

src/main/java/org/truffleruby/core/array/library/LongArrayStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ protected static Object allocate(long[] store, Object[] newStore, int length) {
358358
limit = "storageStrategyLimit()")
359359
protected static Object allocate(long[] store, Object newStore, int length,
360360
@CachedLibrary("newStore") ArrayStoreLibrary newStores) {
361-
return newStores.allocateForNewValue(newStore, store, length);
361+
return newStores.unsharedAllocateForNewStore(newStore, store, length);
362362
}
363363
}
364364

0 commit comments

Comments
 (0)