|Issue||Fix Version||Assignee||Priority||Status||Resolution||Resolved In Build|
The entries of the PcDesc cache in nmethods are not declared as volatile, but they are accessed and modified by several threads concurrently.
Some compilers (namely xlC 12 on AIX) duplicate some memory accesses to non-volatile fields.
In this case, this has led to the situation that a thread had successfully matched a pc in the cache,
but returned the reloaded value which was already overwritten by another thread.
We consider this fix critical as it leads to severe errors in VMs built on AIX with xlC12.
For example jvm2008/sunflow does a wrong resolve and then throws an incompatible
class change error. This happens about every second try to run this benchmark.