Skip to content

Commit

Permalink
[GR-44037] Avoiding the potential IllegalFormatConversionException.
Browse files Browse the repository at this point in the history
PullRequest: graal/13714
  • Loading branch information
iamstolis committed Feb 6, 2023
2 parents 31a2970 + 13a1c16 commit cf00101
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -190,7 +190,8 @@ private void identifyBlocks(boolean makeEditable) {
identifyBlock(block);
numBlocks++;
if (numBlocks > AbstractControlFlowGraph.LAST_VALID_BLOCK_INDEX) {
throw new RetryableBailoutException("Graph too large to safely compile in reasonable time. Graph contains more than %d basic blocks", AbstractControlFlowGraph.LAST_VALID_BLOCK_INDEX);
throw new RetryableBailoutException("Graph too large to safely compile in reasonable time. Graph contains more than %d basic blocks",
(int) AbstractControlFlowGraph.LAST_VALID_BLOCK_INDEX);
}
}
reversePostOrder = ReversePostOrder.identifyBlocks(this, numBlocks);
Expand Down

0 comments on commit cf00101

Please sign in to comment.