Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

threadId keeps increasing reaching hardcoded limit of 64. #80

Open
enricogior opened this issue Nov 30, 2016 · 1 comment
Open

threadId keeps increasing reaching hardcoded limit of 64. #80

enricogior opened this issue Nov 30, 2016 · 1 comment
Assignees

Comments

@enricogior
Copy link
Member

enricogior commented Nov 30, 2016

When a new thread is created, a threadId from 1 to 63 is assigned to that thread.
When a thread exits, its threadId is not released, therefore the next thread created will have an increased threadId value. When the threadId reaches the value 64 the JXcore engine initialization for that thread will fail.

@enricogior enricogior self-assigned this Nov 30, 2016
@yaronyg yaronyg added the bug label Nov 30, 2016
@enricogior
Copy link
Member Author

The issue is now fixed. There is still the 64 threads limit, but now we recycle the thread id of the thread when it exits. More testing will be needed to make sure the fix hasn't unwanted side effects.

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

No branches or pull requests

2 participants