Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Moderate
Description
There are several problems with non demon(those which vm should wait before destroing itself) threads counting in drlvm:
1. Non daemon threads count being increased by the thread being run
This leads to the problem that main thread may finish w/o waiting for the child non-daemon thread;
2. Main thread waiting while number of non daemon threads will be equal to zero, while the main thread itself also non daemon thread
(waiting method checks at enter that thread count should be <= 1, but waits on condition while count ==0)
Basically this causes vm to hang at shutdown if child thread works longer than main method.
Attachments
Attachments
Issue Links
- is depended upon by
-
HARMONY-1592 Thread interrupt and Thread.stop may not work properly if thread is waiting
- Closed
- is duplicated by
-
HARMONY-1824 [DRLVM] non-daemon thread dies when main thread finish
- Closed