Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmmnbuild-dep-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scripting-tools
cmmnbuild-dep-manager
Merge requests
!90
Ensure that starting the JVM in a threaded environment results in the thread being attached as daemon
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Ensure that starting the JVM in a threaded environment results in the thread being attached as daemon
pelson/cmmnbuild-dep-manager:fix/clean-exit-threaded
into
master
Overview
2
Commits
3
Pipelines
4
Changes
5
1 unresolved thread
Hide all comments
Merged
Philip Elson
requested to merge
pelson/cmmnbuild-dep-manager:fix/clean-exit-threaded
into
master
1 year ago
Overview
2
Commits
3
Pipelines
4
Changes
5
1 unresolved thread
Hide all comments
Expand
0
0
Merge request reports
Compare
master
version 3
79ade20f
1 year ago
version 2
be493b36
1 year ago
version 1
25f31216
1 year ago
master (base)
and
latest version
latest version
46c00b9d
3 commits,
1 year ago
version 3
79ade20f
2 commits,
1 year ago
version 2
be493b36
1 commit,
1 year ago
version 1
25f31216
1 commit,
1 year ago
5 files
+
202
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
cmmnbuild_dep_manager/jvm/_manager.py
+
7
−
0
Options
import
logging
import
os
import
threading
import
jpype
as
jp
@@ -53,3 +54,9 @@ class JVMManager:
# Prevent further startup argument changes.
if
not
self
.
startup_arguments
.
frozen
:
self
.
startup_arguments
.
frozen
=
True
# Attach the thread as daemon if not the main thread.
# See https://github.com/jpype-project/jpype/issues/1169.
if
threading
.
current_thread
()
is
not
threading
.
main_thread
():
jp
.
java
.
lang
.
Thread
.
detach
()
jp
.
java
.
lang
.
Thread
.
attachAsDaemon
()
Loading