Skip to content

Commit 13fe054

Browse files
committed
8253588: C1: assert(false) failed: unknown register on x86_32 only with -XX:+TraceLinearScanLevel=4
Reviewed-by: thartmann, kvn
1 parent 59378a1 commit 13fe054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/c1/c1_LinearScan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5436,7 +5436,7 @@ bool LinearScanWalker::alloc_free_reg(Interval* cur) {
54365436
hint_reg = register_hint->assigned_reg();
54375437
hint_regHi = register_hint->assigned_regHi();
54385438

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

0 commit comments

Comments
 (0)