Skip to content

Commit abd7b10

Browse files
committed
Fix limit for GetHandleBlockHolderNode
1 parent 38737ff commit abd7b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/cext/ValueWrapperManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static protected Thread currentJavaThread(ValueWrapper wrapper) {
294294
}
295295

296296
public int getCacheLimit() {
297-
return 3;
297+
return RubyLanguage.getCurrentLanguage().options.THREAD_CACHE;
298298
}
299299

300300
public static GetHandleBlockHolderNode create() {

0 commit comments

Comments
 (0)