# HG changeset patch # User Stefan Anzinger # Date 1429196513 -7200 # Node ID ec36daea3cf0fdcbcc886ecf469acae139dc86bf # Parent 0a4bbeae6e3148663013e20256c87ee60e600989 When OutOfRegisters, give a hint in the exceptions description, which kind of register is running out diff -r 0a4bbeae6e31 -r ec36daea3cf0 graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScanWalker.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScanWalker.java Thu Apr 16 17:00:53 2015 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/alloc/lsra/LinearScanWalker.java Thu Apr 16 17:01:53 2015 +0200 @@ -714,7 +714,7 @@ if (firstUsage <= interval.from() + 1) { String description = "cannot spill interval that is used in first instruction (possible reason: no register found) firstUsage=" + firstUsage + ", interval.from()=" + - interval.from(); + interval.from() + "; already used candidates: " + Arrays.toString(availableRegs); // assign a reasonable register and do a bailout in product mode to avoid errors allocator.assignSpillSlot(interval); allocator.printIntervals(description);