From 4579c0b6f9af7b7145eebfcfdd55b06f90d9a54d Mon Sep 17 00:00:00 2001 From: Katelyn Gadd Date: Wed, 15 Mar 2023 23:09:13 -0700 Subject: [PATCH] Raise inlining length limit in the interpreter from 20 to 30. This is enough to allow List.get_Item to be inlined, among other things --- src/mono/mono/mini/interp/transform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mono/mono/mini/interp/transform.c b/src/mono/mono/mini/interp/transform.c index db02d71bf01712..e0e77d5f650518 100644 --- a/src/mono/mono/mini/interp/transform.c +++ b/src/mono/mono/mini/interp/transform.c @@ -2772,8 +2772,8 @@ interp_icall_op_for_sig (MonoMethodSignature *sig) return op; } -/* Same as mono jit */ -#define INLINE_LENGTH_LIMIT 20 +/* larger than mono jit; chosen to ensure that List.get_Item can be inlined */ +#define INLINE_LENGTH_LIMIT 30 #define INLINE_DEPTH_LIMIT 10 static gboolean