RFR: 8263017: Read barriers are missing in nmethod printing code

Vladimir Ivanov vlivanov at openjdk.java.net
Thu Mar 11 21:08:12 UTC 2021


On Thu, 11 Mar 2021 16:50:30 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

> The load barrier on misaligned oop relocations will cause intermittent crashes. This is not safe. I can give you a fix tomorrow hopefully.

Thanks, Erik. 

As an alternative, I could add `BarrierSetNMethod::nmethod_entry_barrier()` into `nmethod::print_nmethod()` to ensure that all the oops are healed. Let me know what you prefer.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2919



More information about the hotspot-gc-dev mailing list