Skip to content

Commit

Permalink
Remove unnecessary interrupt
Browse files Browse the repository at this point in the history
The current implementation contains some code from the j9 threading
implementation. With openjdk threading we dont need a deadinterrupt
(which the old code is attempting to simulate) field as the interrupt
state is tracked in the JCL rather than the JVM.

Also, the old code actually clears the interrupt state which is
incorrect.

Signed-off-by: tajila <[email protected]>
  • Loading branch information
tajila committed Nov 26, 2023
1 parent ee132cd commit 1d4c2eb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/java.base/share/classes/java/lang/Thread.java
Original file line number Diff line number Diff line change
Expand Up @@ -1615,9 +1615,6 @@ void clearReferences() {
*/
void exit() {
try {
/* Refresh interrupted value so it is accurate when thread reference is removed. */
interrupted = interrupted();

try {
// pop any remaining scopes from the stack, this may block
if (headStackableScopes != null) {
Expand Down

0 comments on commit 1d4c2eb

Please sign in to comment.