Skip to content

Non reentrant iterator warning #371

Answered by czyzby
Divelix asked this question in Q&A
Jun 12, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

This is because LibGDX reuses iterators internally and might return the same instance on subsequent calls. It's basically an anti-pattern, which I'm guessing they implemented to limit the garbage collection on mobiles. See this StackOverflow thread.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Divelix
Comment options

@czyzby
Comment options

Answer selected by czyzby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants