-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jsscripting] Synchronize context access in logger initialization #17496
[jsscripting] Synchronize context access in logger initialization #17496
Conversation
…avoid illegal multi-thread access Fixes openhab#17494. Signed-off-by: Florian Hotze <[email protected]>
...ng/src/main/java/org/openhab/automation/jsscripting/internal/DebuggingGraalScriptEngine.java
Outdated
Show resolved
Hide resolved
...ng/src/main/java/org/openhab/automation/jsscripting/internal/DebuggingGraalScriptEngine.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Florian Hotze <[email protected]>
The user who reported this issue said he can't reproduce it reliably, so he is not really able to verify the fix in time. I have analysed the issue in the debugger and according to debugging what gets called when and if locking is active or not, this should fix the issue. I therefore mark this as ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
…7496) * [jsscripting] Synchronize context access in logger initialisation to avoid illegal multi-thread access Fixes #17494. Signed-off-by: Florian Hotze <[email protected]>
Done. |
…enhab#17496) * [jsscripting] Synchronize context access in logger initialisation to avoid illegal multi-thread access Fixes openhab#17494. Signed-off-by: Florian Hotze <[email protected]>
…enhab#17496) * [jsscripting] Synchronize context access in logger initialisation to avoid illegal multi-thread access Fixes openhab#17494. Signed-off-by: Florian Hotze <[email protected]>
…enhab#17496) * [jsscripting] Synchronize context access in logger initialisation to avoid illegal multi-thread access Fixes openhab#17494. Signed-off-by: Florian Hotze <[email protected]> Signed-off-by: Ciprian Pascu <[email protected]>
… to avoid illegal multi-thread access
Fixes #17494.