Replies: 2 comments 3 replies
-
|
Do you see the issue if you don't set The locking is needed even when |
Beta Was this translation helpful? Give feedback.
-
|
I observe In my case, the root cause is extracting large files from within bundle's JARs in a background thread and using DialogSettingsProvider in parallel from UI thread, blocking UI. The solution may be either to use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While looking at the code for CloseableBundleFile, I see that this class manages access to bundle files, ensuring they are properly opened and closed. It uses a lock to control access and a reference count to track open input streams.
If
osgi.bundlefile.limit=0is used, preventing the bundle file from being closed after being opened until the JVM is up, is the locking mechanism still necessary, considering that the access to the bundle contents is 'read-only'?"If the primary function of the CloseableBundleFile class is to manage the number of open bundle files by using the MRUBundleFileList, would removing the locking still guarantee correct functioning?
One reason for this is we are seeing stuck threads in the JVM waiting to acquire the lock, see below:
I see there was a commit to make sure the lockOpen is released on unexpected errors and likely we are also running into something similar.
We are already on 3.22.0
Looking for suggestions to debug the issue and/or inputs on removing the locking mechanism.
Beta Was this translation helpful? Give feedback.
All reactions