Skip to content

Commit 084a068

Browse files
committed
Change cache library annotations to avoid PE recursion.
1 parent dc05717 commit 084a068

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
@@ -65,7 +65,7 @@ protected static boolean acceptsDelegateValues(double[] store, DelegatedArraySto
6565

6666
@Specialization
6767
protected static boolean acceptsSharedValues(double[] store, SharedArrayStorage otherStore,
68-
@CachedLibrary("store") ArrayStoreLibrary stores) {
68+
@CachedLibrary(limit = "1") ArrayStoreLibrary stores) {
6969
return stores.acceptsAllValues(store, otherStore.storage);
7070
}
7171

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected static boolean acceptsDelegateValues(int[] store, DelegatedArrayStorag
6565

6666
@Specialization
6767
protected static boolean acceptsSharedValues(int[] store, SharedArrayStorage otherStore,
68-
@CachedLibrary("store") ArrayStoreLibrary stores) {
68+
@CachedLibrary(limit = "1") ArrayStoreLibrary stores) {
6969
return stores.acceptsAllValues(store, otherStore.storage);
7070
}
7171

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected static boolean acceptsDelegateValues(long[] store, DelegatedArrayStora
7070

7171
@Specialization
7272
protected static boolean acceptsSharedValues(long[] store, SharedArrayStorage otherStore,
73-
@CachedLibrary("store") ArrayStoreLibrary stores) {
73+
@CachedLibrary(limit = "1") ArrayStoreLibrary stores) {
7474
return stores.acceptsAllValues(store, otherStore.storage);
7575
}
7676

0 commit comments

Comments
 (0)