In aarch64-port, there is a divergence against upstream caused by this patch:
https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/hotspot/rev/80be8f688f7c
Inspecting code paths does not yield a firm reason to have those new ResourceMarks. Removing them does not regress hotspot_gc_shenandoah and the custom runs with/without specific method compilations disabled to trigger that path.
This should be reverted. If we find it was needed on some path, we would need to introduce that change via 8u updates process.