Skip to content

Commit 3c4b5c9

Browse files
committed
Small tidy up.
1 parent 2cf5ffe commit 3c4b5c9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/main/java/org/truffleruby/core/array/ArrayCopyCompatibleRangeNode.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@
99
*/
1010
package org.truffleruby.core.array;
1111

12-
import com.oracle.truffle.api.profiles.LoopConditionProfile;
1312
import org.truffleruby.core.array.library.ArrayStoreLibrary;
1413
import org.truffleruby.language.RubyBaseNode;
15-
import org.truffleruby.language.objects.shared.WriteBarrierNode;
1614

17-
import com.oracle.truffle.api.dsl.Cached;
1815
import com.oracle.truffle.api.dsl.ImportStatic;
1916
import com.oracle.truffle.api.dsl.ReportPolymorphism;
2017
import com.oracle.truffle.api.dsl.Specialization;
2118
import com.oracle.truffle.api.library.CachedLibrary;
22-
import com.oracle.truffle.api.profiles.ConditionProfile;
2319

2420

2521
/** Copies a portion of an array to another array, whose store is known to have sufficient capacity, and to be

src/main/java/org/truffleruby/core/array/ArrayNodes.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,8 +1939,7 @@ protected RubyArray replace(RubyArray array, RubyArray other,
19391939
if (sharedProfile.profile(isSharedNode.executeIsShared(array))) {
19401940
store = stores.makeShared(store);
19411941
}
1942-
array.store = store;
1943-
array.size = size;
1942+
setStoreAndSize(array, store, size);
19441943
return array;
19451944
}
19461945

0 commit comments

Comments
 (0)