Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/deoptimization.cpp @ 13642:10f943c778f6
Add code to trace uncollected speculations
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 12 Dec 2013 15:31:24 +0100 |
parents | 5a9afbf72714 |
children | f82eb515d58d |
comparison
equal
deleted
inserted
replaced
13641:5a9afbf72714 | 13642:10f943c778f6 |
---|---|
1371 #ifdef GRAAL | 1371 #ifdef GRAAL |
1372 oop speculation = thread->pending_failed_speculation(); | 1372 oop speculation = thread->pending_failed_speculation(); |
1373 if (speculation != NULL) { | 1373 if (speculation != NULL) { |
1374 oop speculation_log = nm->speculation_log(); | 1374 oop speculation_log = nm->speculation_log(); |
1375 if (speculation_log != NULL) { | 1375 if (speculation_log != NULL) { |
1376 if (TraceUncollectedSpeculations) { | |
1377 if (SpeculationLog::lastFailed(speculation_log) != NULL) { | |
1378 tty->print_cr("A speculation that was not collected by the compiler is being overwritten"); | |
1379 } | |
1380 } | |
1376 SpeculationLog::set_lastFailed(speculation_log, speculation); | 1381 SpeculationLog::set_lastFailed(speculation_log, speculation); |
1377 } | 1382 } |
1378 thread->set_pending_failed_speculation(NULL); | 1383 thread->set_pending_failed_speculation(NULL); |
1379 } | 1384 } |
1380 | 1385 |