RFR: 8263375: Support stack watermarks in Zero VM
Aleksey Shipilev
shade at openjdk.java.net
Thu Jul 8 16:57:08 UTC 2021
Zero VM supports most of GCs. Since JDK 16, Shenandoah uses stack watermarks, so Zero has to support those if Shenandoah+Zero support is to remain. This PR adds the stack watermark support in Zero VM. This should also be useful as other projects, notably Loom, mature and depend on stack watermarks.
Zero already calls into Hotspot safepoint machinery to do things, and it seems only the hooks for `on_iteration` and `on_unwind` are missing. AFAICS, Zero only has on-return safepoints, renamed it to be more precise.
@fisk, do you see any obvious problems with this patch?
Additional testing:
- [x] Linux x86_64 Zero `hotspot_gc_shenandoah` now passes
- [ ] Linux x86_64 Zero `tier1`
-------------
Commit messages:
- Revert debugging
- 8263375: Support stack watermarks in Zero VM
Changes: https://git.openjdk.java.net/jdk/pull/4728/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4728&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8263375
Stats: 50 lines in 5 files changed: 29 ins; 14 del; 7 mod
Patch: https://git.openjdk.java.net/jdk/pull/4728.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4728/head:pull/4728
PR: https://git.openjdk.java.net/jdk/pull/4728
More information about the hotspot-dev
mailing list