Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Fix StackOverflowError in InsertNecessaryConversionsTransform #13

Open
wants to merge 1 commit into
base: hg_master
Choose a base branch
from

Conversation

Runemoro
Copy link
Contributor

Fixes #8. Based on @thiakil's fix in thiakil/procyon@fe7c7c5.

@Runemoro Runemoro changed the title Fix StackOverflowException in InsertNecessaryConversionsTransform Fix StackOverflowError in InsertNecessaryConversionsTransform Apr 18, 2020
@@ -48,6 +51,7 @@
}

private final JavaResolver _resolver;
private final Deque<AstNode> replacements = new ArrayDeque<>();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a linked list, don't think array deque offers a benefit here, and it uses more memory for smaller stacks (default size 16)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StackOverflowError in some cases
2 participants