RFR: 8370568: Refer to Thread.interrupted as "interrupted status" consistently
Pavel Rappo
prappo at openjdk.org
Mon Oct 27 17:51:36 UTC 2025
Throughout documentation and source code, the `Thread.interrupted` flag is referred to as either "interrupt**ed** status" or "interrupt status". It might be good to be consistent.
Historically, it seems to have initially been "interrupted status". This is how the flag is called in `java.lang.Thread` and the "Java Concurrency in Practice" book. ("The Java Programming Language" calls it "interrupted **state**".) However, over the years "interrupt status" appeared in documentation and source code through networking and NIO classes.
-------------
Commit messages:
- Initial commit
Changes: https://git.openjdk.org/jdk/pull/27972/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27972&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8370568
Stats: 207 lines in 77 files changed: 0 ins; 0 del; 207 mod
Patch: https://git.openjdk.org/jdk/pull/27972.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27972/head:pull/27972
PR: https://git.openjdk.org/jdk/pull/27972
More information about the hotspot-gc-dev
mailing list