RFR: 8360707: Globally enumerate all blobs, stubs and entries
Amit Kumar
amitkumar at openjdk.org
Mon Jul 7 04:26:43 UTC 2025
On Sun, 6 Jul 2025 16:54:01 GMT, Andrew Dinn <adinn at openjdk.org> wrote:
>>> @vnkozlov Could you please rereview this?
>>
>> This looks fine. Please merge latest jdk so I can do additional testing with `AOTStubCaching` enabled.
>
> @vnkozlov
>> This looks fine. Please merge latest jdk so I can do additional testing with AOTStubCaching enabled.
>
> Done.
Hi @adinn,
could you add these changes fixing test failure on s390:
diff --git a/src/hotspot/cpu/s390/stubGenerator_s390.cpp b/src/hotspot/cpu/s390/stubGenerator_s390.cpp
index 10e5abe9ce8..687fb764bd8 100644
--- a/src/hotspot/cpu/s390/stubGenerator_s390.cpp
+++ b/src/hotspot/cpu/s390/stubGenerator_s390.cpp
@@ -164,15 +164,16 @@ class StubGenerator: public StubCodeGenerator {
// Save non-volatile registers to ABI of caller frame.
BLOCK_COMMENT("save registers, push frame {");
- __ z_stmg(Z_R6, Z_R14, 16, Z_SP);
- __ z_std(Z_F8, 96, Z_SP);
- __ z_std(Z_F9, 104, Z_SP);
- __ z_std(Z_F10, 112, Z_SP);
- __ z_std(Z_F11, 120, Z_SP);
- __ z_std(Z_F12, 128, Z_SP);
- __ z_std(Z_F13, 136, Z_SP);
- __ z_std(Z_F14, 144, Z_SP);
- __ z_std(Z_F15, 152, Z_SP);
+ __ save_return_pc();
+ __ z_stmg(Z_R6, Z_R13, 16, Z_SP);
+ __ z_std(Z_F8, 88, Z_SP);
+ __ z_std(Z_F9, 96, Z_SP);
+ __ z_std(Z_F10, 104, Z_SP);
+ __ z_std(Z_F11, 112, Z_SP);
+ __ z_std(Z_F12, 120, Z_SP);
+ __ z_std(Z_F13, 128, Z_SP);
+ __ z_std(Z_F14, 136, Z_SP);
+ __ z_std(Z_F15, 144, Z_SP);
//
// Push ENTRY_FRAME including arguments:
@@ -337,15 +338,16 @@ class StubGenerator: public StubCodeGenerator {
__ z_lg(r_arg_result_type, result_type_offset, r_entryframe_fp);
// Restore non-volatiles.
- __ z_lmg(Z_R6, Z_R14, 16, Z_SP);
- __ z_ld(Z_F8, 96, Z_SP);
- __ z_ld(Z_F9, 104, Z_SP);
- __ z_ld(Z_F10, 112, Z_SP);
- __ z_ld(Z_F11, 120, Z_SP);
- __ z_ld(Z_F12, 128, Z_SP);
- __ z_ld(Z_F13, 136, Z_SP);
- __ z_ld(Z_F14, 144, Z_SP);
- __ z_ld(Z_F15, 152, Z_SP);
+ __ restore_return_pc();
+ __ z_lmg(Z_R6, Z_R13, 16, Z_SP);
+ __ z_ld(Z_F8, 88, Z_SP);
+ __ z_ld(Z_F9, 96, Z_SP);
+ __ z_ld(Z_F10, 104, Z_SP);
+ __ z_ld(Z_F11, 112, Z_SP);
+ __ z_ld(Z_F12, 120, Z_SP);
+ __ z_ld(Z_F13, 128, Z_SP);
+ __ z_ld(Z_F14, 136, Z_SP);
+ __ z_ld(Z_F15, 144, Z_SP);
BLOCK_COMMENT("} restore");
//
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26004#issuecomment-3043435063
More information about the shenandoah-dev
mailing list