RFR: 8265754: Move suspend/resume API from HandshakeState

Anton Artemov duke at openjdk.org
Mon May 26 07:35:30 UTC 2025


Hi,

in this PR the suspend/resume methods are moved away from the HandshakeState class into a new separate class HandshakeSuspender. The idea is that the state class should be a state keeper and should not be responsible for actions which change the state. Such actions should be done by a separate class. 

Tested in tiers 1-4.

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

Commit messages:
 - Merge remote-tracking branch 'origin/master' into JDK-8265754
 - 8265754: Refactoring to static methods.
 - 8265754: Fixed indentation.
 - 8265754: Fixed indentation
 - 8265754: Fixed indentation and lost newline.
 - 8265754: Fixed whitespaces errors.
 - 8265754: More work.
 - Merge remote-tracking branch 'origin/master' into JDK-8265754
 - 8265754: Refactoring suspend/resume in the HandshakeState away

Changes: https://git.openjdk.org/jdk/pull/25407/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25407&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8265754
  Stats: 206 lines in 3 files changed: 119 ins; 82 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/25407.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25407/head:pull/25407

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


More information about the hotspot-runtime-dev mailing list