Skip to content

Commit b380130

Browse files
committed
Assert only primitive arrays are seen by the default implementation.
1 parent 084a068 commit b380130

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public Object makeShared(Object store) {
129129
/** Do any work required to start sharing elements across threads in the range from {@code start} (inclusive) to
130130
* {@code end} (exclusive). */
131131
public void shareElements(Object store, int start, int end) {
132+
assert isPrimitive(store);
132133
}
133134

134135
/** Return a description of {@code store} for debugging output. */

0 commit comments

Comments
 (0)