File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
src/main/java/org/truffleruby/core/module Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -798,19 +798,14 @@ public InternalMethod getMethod(String name) {
798
798
799
799
@ TruffleBoundary
800
800
public InternalMethod getMethodAndAssumption (String name , List <Assumption > assumptions ) {
801
- MethodEntry methodEntry = ConcurrentOperations .getOrCompute (
802
- methods ,
803
- name ,
804
- n -> new MethodEntry ());
801
+ MethodEntry methodEntry = ConcurrentOperations .getOrCompute (methods , name , n -> new MethodEntry ());
805
802
assumptions .add (methodEntry .getAssumption ());
806
803
return methodEntry .getMethod ();
807
804
}
808
805
806
+ @ TruffleBoundary
809
807
public Assumption getOrCreateMethodAssumption (String name ) {
810
- return ConcurrentOperations .getOrCompute (
811
- methods ,
812
- name ,
813
- n -> new MethodEntry ()).getAssumption ();
808
+ return ConcurrentOperations .getOrCompute (methods , name , n -> new MethodEntry ()).getAssumption ();
814
809
}
815
810
816
811
/** All write accesses to this object should use {@code synchronized (getClassVariables()) { ... }}, or check that
You can’t perform that action at this time.
0 commit comments