From cbe61966284d81d00e474c81958502be474a3b1c Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Thu, 2 May 2024 19:18:22 +0300 Subject: [PATCH] Report megamorphic on LookupMethodNode node --- .../java/org/truffleruby/language/methods/LookupMethodNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/truffleruby/language/methods/LookupMethodNode.java b/src/main/java/org/truffleruby/language/methods/LookupMethodNode.java index fa44c83efaba..515ae99a9a08 100644 --- a/src/main/java/org/truffleruby/language/methods/LookupMethodNode.java +++ b/src/main/java/org/truffleruby/language/methods/LookupMethodNode.java @@ -32,7 +32,6 @@ import com.oracle.truffle.api.frame.Frame; /** Caches {@link ModuleOperations#lookupMethodCached(RubyModule, String, DeclarationContext)} on an actual instance. */ -@ReportPolymorphism // inline cache @GenerateUncached public abstract class LookupMethodNode extends RubyBaseNode { @@ -61,6 +60,7 @@ InternalMethod lookupMethodCached(Frame frame, RubyClass metaClass, String name, return methodLookupResult.getMethod(); } + @ReportPolymorphism.Megamorphic @InliningCutoff @Specialization(replaces = "lookupMethodCached") InternalMethod lookupMethodUncached(Frame frame, RubyClass metaClass, String name, DispatchConfiguration config,