Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/deoptimization.cpp @ 22699:ea58bbafd5b9
Move SpeculationLog implementation to HotSpotSpeculationLog, because it is not useful for other VMs
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Wed, 21 Oct 2015 09:06:12 -0700 |
parents | a7114a5e69e1 |
children | 6832e10a0b97 |
comparison
equal
deleted
inserted
replaced
22698:37505a836aaf | 22699:ea58bbafd5b9 |
---|---|
1477 if (nm->is_compiled_by_jvmci()) { | 1477 if (nm->is_compiled_by_jvmci()) { |
1478 if (speculation != NULL) { | 1478 if (speculation != NULL) { |
1479 oop speculation_log = nm->speculation_log(); | 1479 oop speculation_log = nm->speculation_log(); |
1480 if (speculation_log != NULL) { | 1480 if (speculation_log != NULL) { |
1481 if (TraceDeoptimization || TraceUncollectedSpeculations) { | 1481 if (TraceDeoptimization || TraceUncollectedSpeculations) { |
1482 if (SpeculationLog::lastFailed(speculation_log) != NULL) { | 1482 if (HotSpotSpeculationLog::lastFailed(speculation_log) != NULL) { |
1483 tty->print_cr("A speculation that was not collected by the compiler is being overwritten"); | 1483 tty->print_cr("A speculation that was not collected by the compiler is being overwritten"); |
1484 } | 1484 } |
1485 } | 1485 } |
1486 if (TraceDeoptimization) { | 1486 if (TraceDeoptimization) { |
1487 tty->print_cr("Saving speculation to speculation log"); | 1487 tty->print_cr("Saving speculation to speculation log"); |
1488 } | 1488 } |
1489 SpeculationLog::set_lastFailed(speculation_log, speculation); | 1489 HotSpotSpeculationLog::set_lastFailed(speculation_log, speculation); |
1490 } else { | 1490 } else { |
1491 if (TraceDeoptimization) { | 1491 if (TraceDeoptimization) { |
1492 tty->print_cr("Speculation present but no speculation log"); | 1492 tty->print_cr("Speculation present but no speculation log"); |
1493 } | 1493 } |
1494 } | 1494 } |