Skip to content

Commit

Permalink
8253588: C1: assert(false) failed: unknown register on x86_32 only wi…
Browse files Browse the repository at this point in the history
…th -XX:+TraceLinearScanLevel=4

Reviewed-by: thartmann, kvn
  • Loading branch information
chhagedorn committed Oct 12, 2020
1 parent 59378a1 commit 13fe054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/c1/c1_LinearScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5436,7 +5436,7 @@ bool LinearScanWalker::alloc_free_reg(Interval* cur) {
hint_reg = register_hint->assigned_reg();
hint_regHi = register_hint->assigned_regHi();

if (allocator()->is_precolored_cpu_interval(register_hint)) {
if (_num_phys_regs == 2 && allocator()->is_precolored_cpu_interval(register_hint)) {
assert(hint_reg != any_reg && hint_regHi == any_reg, "must be for fixed intervals");
hint_regHi = hint_reg + 1; // connect e.g. eax-edx
}
Expand Down

0 comments on commit 13fe054

Please sign in to comment.