mirror of
https://github.com/corda/corda.git
synced 2025-06-22 00:57:21 +00:00
code cleanup and build fixes
This commit is contained in:
@ -468,6 +468,12 @@ resolveNativeMethodData(Thread* t, object method)
|
||||
if (LIKELY(p)) {
|
||||
PROTECT(t, method);
|
||||
object data = makeNativeMethodData(t, method, p);
|
||||
|
||||
// ensure other threads see updated methodVmFlags before
|
||||
// methodCode, and that the native method data is initialized
|
||||
// before it is visible to those threads:
|
||||
memoryBarrier();
|
||||
|
||||
set(t, method, MethodCode, data);
|
||||
return data;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user