RFR: 8284017: Improve handshake filtering mechanism

Anton Artemov duke at openjdk.org
Mon Jun 2 09:43:08 UTC 2025


Hi, please consider the following enhancement:

In this PR a new way of supplying multiple arguments to filter out / skip operations in handshake/safepoint poll is given. Multiple boolean arguments are combined in a hash table, where keys are taken from a new enum `HandshakeOperationProperty`, which is to be modified when there is a need for a new argument. 

Tested in GHA and tiers 1 - 3.

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

Commit messages:
 - 8284017: Changed variable name to operation_filter.
 - 8284017: Added typedef.
 - Merge remote-tracking branch 'origin/master' into JDK-8284017-handshake-filtering
 - 8284017: Added missed include statement.
 - 8284017: Changed to enum class for filter operation value.
 - 8284017: Added resource mark.s
 - 8284017: Combined bool params into resourceHashTable for filtering

Changes: https://git.openjdk.org/jdk/pull/25497/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25497&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8284017
  Stats: 66 lines in 9 files changed: 38 ins; 2 del; 26 mod
  Patch: https://git.openjdk.org/jdk/pull/25497.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25497/head:pull/25497

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


More information about the hotspot-dev mailing list