Skip to content
Permalink
Browse files
8255216: Change _directive->BreakAtCompileOption to env()->break_at_c…
…ompile()

Reviewed-by: kvn, phh
  • Loading branch information
danlemmond authored and Paul Hohensee committed Jan 22, 2021
1 parent 5aca934 commit 7be9113b1c47d6c24a72819a27a4f856cd642e80
@@ -446,7 +446,7 @@ void Compilation::compile_method() {
dependency_recorder()->assert_evol_method(method());
}

if (directive()->BreakAtCompileOption) {
if (env()->break_at_compile()) {
BREAKPOINT;
}

@@ -2224,7 +2224,7 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
DTRACE_METHOD_COMPILE_BEGIN_PROBE(method, compiler_name(task_level));
}

should_break = directive->BreakAtExecuteOption || task->check_break_at_flags();
should_break = directive->BreakAtCompileOption || task->check_break_at_flags();
if (should_log && !directive->LogOption) {
should_log = false;
}
@@ -503,7 +503,7 @@ void Compile::print_compile_messages() {
tty->print_cr("** Bailout: Recompile without boxing elimination **");
tty->print_cr("*********************************************************");
}
if (C->directive()->BreakAtCompileOption) {
if (env()->break_at_compile()) {
// Open the debugger when compiling this method.
tty->print("### Breaking when compiling: ");
method()->print_short_name();
@@ -2099,7 +2099,7 @@ void Compile::Optimize() {
TracePhase tp("optimizer", &timers[_t_optimizer]);

#ifndef PRODUCT
if (_directive->BreakAtCompileOption) {
if (env()->break_at_compile()) {
BREAKPOINT;
}

1 comment on commit 7be9113

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 7be9113 Jan 22, 2021

Please sign in to comment.