-
Bug
-
Resolution: Fixed
-
P4
-
1.2.2, 5.0, 6, 7, 8, 9
-
b39
-
generic, x86
-
generic, linux, windows_nt
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084182 | emb-9 | Stuart Marks | P4 | Resolved | Fixed | team |
JDK-8188626 | 8u172 | David Buck | P4 | Resolved | Fixed | b01 |
JDK-8190628 | 8u171 | David Buck | P4 | Resolved | Fixed | b01 |
JDK-8186682 | 8u162 | David Buck | P4 | Resolved | Fixed | b01 |
JDK-8198121 | emb-8u171 | David Buck | P4 | Resolved | Fixed | b01 |
JDK-8224588 | 7-pool | Robert Mckenna | P4 | Open | Unresolved |
java version "1.2.2"
Classic VM (build JDK-1.2.2-004, native threads, symcjit)
If the thread which is already interrupted by another thread, calls
Runtime.getRuntime().runFinalization(), the interrupted status of the thread is
cleared (and API documentation doesn't say anything about it).
Sample code (my thread is already interrupted by another thread, before getting
here):
Runtime rt = Runtime.getRuntime();
System.out.println("Status: "+ Thread.currentThread().isInterrupted());
rt.runFinalization();
System.out.println("Status: "+ Thread.currentThread().isInterrupted());
will print to console:
Status: true
Status: false
(Review ID: 107365)
======================================================================
- backported by
-
JDK-8224588 Runtime.runFinalization() silently clears interrupted flag in the calling thread
-
- Open
-
-
JDK-8084182 Runtime.runFinalization() silently clears interrupted flag in the calling thread
-
- Resolved
-
-
JDK-8186682 Runtime.runFinalization() silently clears interrupted flag in the calling thread
-
- Resolved
-
-
JDK-8188626 Runtime.runFinalization() silently clears interrupted flag in the calling thread
-
- Resolved
-
-
JDK-8190628 Runtime.runFinalization() silently clears interrupted flag in the calling thread
-
- Resolved
-
-
JDK-8198121 Runtime.runFinalization() silently clears interrupted flag in the calling thread
-
- Resolved
-