Skip to content
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] Fix multi-thread access requested by logger initialization #16497

Merged
merged 2 commits into from Mar 7, 2024

Conversation

florian-h05
Copy link
Contributor

Regression from #16445.

Logger initialization needs access to the ScriptContext, however does GraalJS not allow multi-thread access to the ScriptContext.
Therefore logger initialization needs to be included in the existing multi-thread access synchronization.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05 florian-h05 changed the title Jsscripting [jsscripting] Fix multi-thread access requested by logger initialization Mar 7, 2024
@florian-h05 florian-h05 requested a review from jlaur March 7, 2024 14:54
@florian-h05
Copy link
Contributor Author

@jlaur Can you please have a look at this PR? It fixes a regression from my previous JS Scripting PR.

@jlaur jlaur added the bug An unexpected problem or unintended behavior of an add-on label Mar 7, 2024
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@jlaur jlaur merged commit 6139368 into openhab:main Mar 7, 2024
3 checks passed
@jlaur jlaur added this to the 4.2 milestone Mar 7, 2024
@florian-h05 florian-h05 deleted the jsscripting branch March 7, 2024 17:50
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…ion (openhab#16497)

* [jsscripting] Fix multi-threading issue with logger initialization

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants