8296477: Foreign linker implementation update following JEP 434

Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Nick Gasson <ngasson@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Reviewed-by: rehn, mcimadamore, vlivanov
This commit is contained in:
Jorn Vernee 2022-12-05 14:47:12 +00:00
parent 73baadceb6
commit 0452c39fec
72 changed files with 2584 additions and 933 deletions

View file

@ -1121,8 +1121,8 @@ class jdk_internal_foreign_abi_ABIDescriptor: AllStatic {
static int _volatileStorage_offset;
static int _stackAlignment_offset;
static int _shadowSpace_offset;
static int _targetAddrStorage_offset;
static int _retBufAddrStorage_offset;
static int _scratch1_offset;
static int _scratch2_offset;
static void compute_offsets();
@ -1135,8 +1135,8 @@ class jdk_internal_foreign_abi_ABIDescriptor: AllStatic {
static objArrayOop volatileStorage(oop entry);
static jint stackAlignment(oop entry);
static jint shadowSpace(oop entry);
static oop targetAddrStorage(oop entry);
static oop retBufAddrStorage(oop entry);
static oop scratch1(oop entry);
static oop scratch2(oop entry);
// Testers
static bool is_subclass(Klass* klass) {
@ -1151,7 +1151,8 @@ class jdk_internal_foreign_abi_VMStorage: AllStatic {
private:
static int _type_offset;
static int _index_offset;
static int _indexOrOffset_offset;
static int _segmentMaskOrSize_offset;
static int _debugName_offset;
static void compute_offsets();
@ -1160,9 +1161,10 @@ class jdk_internal_foreign_abi_VMStorage: AllStatic {
static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
// Accessors
static jint type(oop entry);
static jint index(oop entry);
static oop debugName(oop entry);
static jbyte type(oop entry);
static jint index_or_offset(oop entry);
static jshort segment_mask_or_size(oop entry);
static oop debugName(oop entry);
// Testers
static bool is_subclass(Klass* klass) {