|
50 | 50 | import org.truffleruby.language.library.RubyStringLibrary;
|
51 | 51 | import org.truffleruby.language.loader.ReentrantLockFreeingMap;
|
52 | 52 | import org.truffleruby.language.methods.InternalMethod;
|
53 |
| -import org.truffleruby.language.methods.SharedMethodInfo; |
54 | 53 | import org.truffleruby.language.objects.ObjectGraph;
|
55 | 54 | import org.truffleruby.language.objects.ObjectGraphNode;
|
56 | 55 | import org.truffleruby.language.objects.classvariables.ClassVariableStorage;
|
@@ -462,7 +461,7 @@ public void addMethod(RubyContext context, Node currentNode, InternalMethod meth
|
462 | 461 |
|
463 | 462 | if (!context.getCoreLibrary().isInitializing()) {
|
464 | 463 | if (previousMethodEntry != null) {
|
465 |
| - previousMethodEntry.invalidate(SharedMethodInfo.moduleAndMethodName(rubyModule, method.getName())); |
| 464 | + previousMethodEntry.invalidate(rubyModule, method.getName()); |
466 | 465 | }
|
467 | 466 | // invalidate assumptions to not use an AST-inlined methods
|
468 | 467 | changedMethod(method.getName());
|
@@ -491,7 +490,7 @@ public boolean removeMethod(String methodName) {
|
491 | 490 |
|
492 | 491 | MethodEntry removedEntry = methods.remove(methodName);
|
493 | 492 | if (removedEntry != null) {
|
494 |
| - removedEntry.invalidate(SharedMethodInfo.moduleAndMethodName(rubyModule, methodName)); |
| 493 | + removedEntry.invalidate(rubyModule, methodName); |
495 | 494 | }
|
496 | 495 |
|
497 | 496 | changedMethod(methodName);
|
@@ -741,7 +740,7 @@ public void newMethodsVersion(List<String> methodsToInvalidate) {
|
741 | 740 | if (methodEntry == null) {
|
742 | 741 | break;
|
743 | 742 | } else {
|
744 |
| - methodEntry.invalidate(SharedMethodInfo.moduleAndMethodName(rubyModule, entryToInvalidate)); |
| 743 | + methodEntry.invalidate(rubyModule, entryToInvalidate); |
745 | 744 | if (methods.replace(entryToInvalidate, methodEntry, methodEntry.withNewAssumption())) {
|
746 | 745 | break;
|
747 | 746 | }
|
|
0 commit comments