RFR: 8288752: Split thread implementation files

Coleen Phillimore coleenp at openjdk.org
Mon Jun 20 15:59:16 UTC 2022


This changes splits thread.hpp/cpp into javaThread, and threads files.

I left the commits intact to see better the progression of changes, but most files are include file changes.  The only tricky parts are that some files were included in thread.hpp, like mutexLocker.cpp, which has to be included in the files that need it.

I didn't update the copyrights to save diffs but will before integration.
Also I won't integrate until after Dan's JDK 19 changes are merged into JDK 20.

Tested with tier1-4 on Oracle supported platforms and built on other platforms.

-------------

Commit messages:
 - Remove more includes, alphatize forward declarations.
 - Make compile on all platforms (including ppc, s390 and zero)
 - rename os_cpu/thread_os_cpu.{hpp,cpp} to os_cpu/javaThread_os_cpu.{hpp,cpp}
 - Separate thread.hpp into thread.hpp, javaThread.hpp and threads.hpp.
 - include thread.hpp not thread.inline.hpp unless inline is needed
 - Builds with javaThread.inline.hpp
 - Split thread.cpp into thread.cpp,javaThread.cpp and threads.cpp files.

Changes: https://git.openjdk.org/jdk/pull/9218/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9218&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8288752
  Stats: 10819 lines in 369 files changed: 5470 ins; 5159 del; 190 mod
  Patch: https://git.openjdk.org/jdk/pull/9218.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9218/head:pull/9218

PR: https://git.openjdk.org/jdk/pull/9218


More information about the serviceability-dev mailing list