code cleanup and build fixes

This commit is contained in:
Joel Dice
2009-05-04 19:04:17 -06:00
parent 0cd4eb2655
commit eb3bd25aa1
12 changed files with 116 additions and 70 deletions

View File

@ -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 {