mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix dependency bug with monitorenter/monitorexit
This commit is contained in:
parent
b4c3bc47f0
commit
9300c07daf
|
@ -495,16 +495,20 @@ class DependencyGraphBuilder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void monitorEnter(VariableReader objectRef) {
|
public void monitorEnter(VariableReader objectRef) {
|
||||||
dependencyChecker.linkMethod(
|
MethodDependency methodDep = dependencyChecker.linkMethod(
|
||||||
new MethodReference(Object.class, "monitorEnter", Object.class, void.class),
|
new MethodReference(Object.class, "monitorEnter", Object.class, void.class),
|
||||||
new CallLocation(caller.getMethod(), currentLocation)).use();
|
new CallLocation(caller.getMethod(), currentLocation));
|
||||||
|
nodes[objectRef.getIndex()].connect(methodDep.getVariable(1));
|
||||||
|
methodDep.use();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void monitorExit(VariableReader objectRef) {
|
public void monitorExit(VariableReader objectRef) {
|
||||||
dependencyChecker.linkMethod(
|
MethodDependency methodDep = dependencyChecker.linkMethod(
|
||||||
new MethodReference(Object.class, "monitorExit", Object.class, void.class),
|
new MethodReference(Object.class, "monitorExit", Object.class, void.class),
|
||||||
new CallLocation(caller.getMethod(), currentLocation)).use();
|
new CallLocation(caller.getMethod(), currentLocation));
|
||||||
|
nodes[objectRef.getIndex()].connect(methodDep.getVariable(1));
|
||||||
|
methodDep.use();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user