Integrated: 8299089: Instrument global jni handles with tag to make them distinguishable
Axel Boldt-Christmas
aboldtch at openjdk.org
Wed Jan 18 09:24:37 UTC 2023
On Tue, 20 Dec 2022 11:44:33 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
> Weak global jni handles are tagged so the GC can distinguish them when resolving the object. Today there is no cheap way of distinguishing global jni handles from local jni handles. For generational ZGC the OopStorage handles and the thread local handles semantical difference requires the handles to be distinguishable.
>
> This enhancements instruments the jni handles with a global tag similarly to the jweak tag.
>
> Note:
> * the s390 implementation has minimal changes and requires improvement.
> * There is room for enchantment here to create the same abstraction that ppc uses for all platforms, i.e. move the resolve_jobject from the MacroAssembler to the BarrierSetAssembler which allows for more optimised code for GCs that can treat local and global handles the same.
>
> Testing: GHA. Oracle supported platforms tier1-3. Will run higher tiers. Has also been tested on the generational branch of ZGC for over three months. Requires testing on non Oracle platforms.
This pull request has now been integrated.
Changeset: c7056737
Author: Axel Boldt-Christmas <aboldtch at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c7056737e33d3d5a6ec24639d46b9e3e7a8da01a
Stats: 528 lines in 36 files changed: 306 ins; 63 del; 159 mod
8299089: Instrument global jni handles with tag to make them distinguishable
Co-authored-by: Stefan Karlsson <stefank at openjdk.org>
Co-authored-by: Martin Doerr <mdoerr at openjdk.org>
Co-authored-by: Leslie Zhai <lzhai at openjdk.org>
Reviewed-by: eosterlund, stefank, ayang
-------------
PR: https://git.openjdk.org/jdk/pull/11740
More information about the hotspot-dev
mailing list