mirror of
https://github.com/corda/corda.git
synced 2025-02-10 12:51:37 +00:00
fix race condition in compile function (part 2)
This commit is contained in:
parent
dc52bae1cf
commit
b1f24079ec
@ -5094,11 +5094,6 @@ compile(MyThread* t, object method)
|
|||||||
|
|
||||||
set(t, method, MethodCompiled, compiled);
|
set(t, method, MethodCompiled, compiled);
|
||||||
|
|
||||||
if (methodVirtual(t, method)) {
|
|
||||||
classVtable(t, methodClass(t, method), methodOffset(t, method))
|
|
||||||
= &singletonValue(t, compiled, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((methodFlags(t, method) & ACC_NATIVE) == 0) {
|
if ((methodFlags(t, method) & ACC_NATIVE) == 0) {
|
||||||
if (DebugMethodTree) {
|
if (DebugMethodTree) {
|
||||||
fprintf(stderr, "insert method at %p\n",
|
fprintf(stderr, "insert method at %p\n",
|
||||||
@ -5109,6 +5104,11 @@ compile(MyThread* t, object method)
|
|||||||
(t, methodTree(t), method, methodTreeSentinal(t),
|
(t, methodTree(t), method, methodTreeSentinal(t),
|
||||||
compareMethodBounds);
|
compareMethodBounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (methodVirtual(t, method)) {
|
||||||
|
classVtable(t, methodClass(t, method), methodOffset(t, method))
|
||||||
|
= &singletonValue(t, compiled, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user