# HG changeset patch # User Josef Eisl # Date 1437578294 -7200 # Node ID ac762c1bc9a4f51c310fd4415ead96168ff3e0a2 # Parent 399b05144895fc3e3b1f282331cb49589870dedd LSStackSlotAllocator: only run if there are virtual stack slots. diff -r 399b05144895 -r ac762c1bc9a4 graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/LSStackSlotAllocator.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/LSStackSlotAllocator.java Wed Jul 22 17:10:21 2015 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/stackslotalloc/LSStackSlotAllocator.java Wed Jul 22 17:18:14 2015 +0200 @@ -77,8 +77,10 @@ } public void allocateStackSlots(FrameMapBuilderTool builder, LIRGenerationResult res) { - try (DebugCloseable t = MainTimer.start()) { - new Allocator(res.getLIR(), builder).allocate(); + if (builder.getNumberOfStackSlots() > 0) { + try (DebugCloseable t = MainTimer.start()) { + new Allocator(res.getLIR(), builder).allocate(); + } } }