mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8263017: Read barriers are missing in nmethod printing code
Reviewed-by: eosterlund, kvn
This commit is contained in:
parent
a6e056fd51
commit
0b10c6b415
1 changed files with 2 additions and 0 deletions
|
@ -936,6 +936,8 @@ void nmethod::maybe_print_nmethod(DirectiveSet* directive) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void nmethod::print_nmethod(bool printmethod) {
|
void nmethod::print_nmethod(bool printmethod) {
|
||||||
|
run_nmethod_entry_barrier(); // ensure all embedded OOPs are valid before printing
|
||||||
|
|
||||||
ttyLocker ttyl; // keep the following output all in one block
|
ttyLocker ttyl; // keep the following output all in one block
|
||||||
if (xtty != NULL) {
|
if (xtty != NULL) {
|
||||||
xtty->begin_head("print_nmethod");
|
xtty->begin_head("print_nmethod");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue