Skip to content

Conversation

jianglizhou
Copy link
Contributor

@jianglizhou jianglizhou commented Jul 18, 2025

Please review this fix that increases the x86 initial stubs size to 21000 for NOT_PRODUCT only case.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8362564: hotspot/jtreg/compiler/c2/TestLWLockingCodeGen.java fails on static JDK on x86_64 with AVX instruction extensions (Bug - P3)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26395/head:pull/26395
$ git checkout pull/26395

Update a local copy of the PR:
$ git checkout pull/26395
$ git pull https://git.openjdk.org/jdk.git pull/26395/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 26395

View PR using the GUI difftool:
$ git pr show -t 26395

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26395.diff

Using Webrev

Link to Webrev Comment

…)' for size estimate.

- In 'initialize_stubs()', move the assert to after stubs log_info print.
@bridgekeeper
Copy link

bridgekeeper bot commented Jul 18, 2025

👋 Welcome back jiangli! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jul 18, 2025

@jianglizhou This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8362564: hotspot/jtreg/compiler/c2/TestLWLockingCodeGen.java fails on static JDK on x86_64 with AVX instruction extensions

Reviewed-by: rasbold

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 104 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 18, 2025
@openjdk
Copy link

openjdk bot commented Jul 18, 2025

@jianglizhou The following label will be automatically applied to this pull request:

  • hotspot

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@mlbridge
Copy link

mlbridge bot commented Jul 18, 2025

Webrevs

@shipilev
Copy link
Member

@adinn ^


// When new stubs added we need to make sure there is some space left
// to catch situation when we should increase size again.
assert(code_size == 0 || buffer.insts_remaining() > 200, "increase %s", assert_msg);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason to move the assert?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eastig Thanks for taking a look!

The log Info, stubs output provides useful details. With the assertion failure, it wouldn't show. That's why moving the assert to after the log output.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you need information which is printed out in the log, why not to add needed information to the assert? You can copy the format string used for logging. This will make assert's output more informative without a need for enabling logging.

Copy link
Contributor Author

@jianglizhou jianglizhou Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable to me. I updated the PR to move back the assert and added code_size, buffer total size and free size info to the assert output. Thanks

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually think the change is better with the assert after the logging, as initially proposed.

I don't object to the making the assert's output more informative, but can imagine that there may be future improvements to the log message which may then leave the assert with a different message.

The risk of switching the assertion and logging seems minimal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rasbold Thanks for the thought! Right, there doesn't seem to be much risk with moving the assert to after the logging. With the additional info in the assert output as @eastig suggested, it does provide enough information without needing to enable -Xlog:stubs. In the case where we ran into the particular problem in non-local testing environment, the additional size information provided in the assert could save quite some debugging time. So the current change does seem to be a bit more advantageous.

- Reverted change for moving the assert. Added code_size, buffer size and free to the assert output.
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jul 28, 2025
@jianglizhou
Copy link
Contributor Author

@rasbold Thanks for the review!

@eastig Please let me know if there are any addition comments/thoughts on the change.

@jianglizhou
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Jul 29, 2025

Going to push as commit c239c0a.
Since your change was applied there have been 112 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jul 29, 2025
@openjdk openjdk bot closed this Jul 29, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jul 29, 2025
@openjdk
Copy link

openjdk bot commented Jul 29, 2025

@jianglizhou Pushed as commit c239c0a.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Copy link
Member

@eastig eastig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jianglizhou
Copy link
Contributor Author

Thanks. I also updated the PR description to reflect the change.

@vnkozlov
Copy link
Contributor

There was no GHA testing for this.

@jianglizhou
Copy link
Contributor Author

jianglizhou commented Jul 29, 2025

There was no GHA testing for this.

@vnkozlov Do you refer to the PR testing? It's https://github.com/openjdk/jdk/pull/26395/checks, thanks.

For the specific bug manifesting with TestLWLockingCodeGen.java failure, currently GHA doesn't run tests on debug build for static jdk jobs. It also requires the testing x86_64 machine support AVX extensions to show the issue. That's the reason why GHA has not found the issue yet.

@vnkozlov
Copy link
Contributor

@vnkozlov Do you refer to the PR testing? It's https://github.com/openjdk/jdk/pull/26395/checks, thanks.

Yes, that. I did not realize that GitHub removes it from main PR tab after integration.

Good, it was tested. I think GitHub actions use AVX512 machines. But I remember that static build testing was excluded.

First, I am fine with fix you pushed. But it is strange.

There should be no difference in stubs sizes running with regular JDK on avx512 machine and static JDK. I don't see how we don't trigger this issue in our testing - we regularly running on AVX512 machines.

Do you have additional code somewhere in macro assembler for static build? Is it possible to compare assembler code?
I see you posted sizes in bug report. Can you compare code for StubRoutines::forward_exception() which has smallest size to see what is difference.

@vnkozlov
Copy link
Contributor

Also about back porting into JDK 25. You need to rise priority - only P1 and P2 are allowed in RDP2.

@vnkozlov
Copy link
Contributor

Can you compare code for StubRoutines::forward_exception() which has smallest size to see what is difference.

Please run both, regular and static JDK, on AVX512 machine.

@jianglizhou
Copy link
Contributor Author

Thanks for clarification @vnkozlov.

First, I am fine with fix you pushed. But it is strange.

There should be no difference in stubs sizes running with regular JDK on avx512 machine and static JDK. I don't see how we don't trigger this issue in our testing - we regularly running on AVX512 machines.

I was wondering the same initially, for regular JDK vs static JDK. So I did some measurements and confirmed the difference. Here is the data from the tests that I ran on machines with AVX extensions. I haven't looked into details of the generated instructions to see which ones are related, though.

static JDK

StubRoutines::forward_exception [0x00007f2b2e000ee0, 0x00007f2b2e001031] (337 bytes)

StubRoutines::call_stub [0x00007f2b2e001031, 0x00007f2b2e00142a] (1017 bytes)

StubRoutines::catch_exception [0x00007f2b2e00142a, 0x00007f2b2e00161d] (499 bytes)

StubRoutines::updateBytesCRC32 [0x00007f2b2e0017e0, 0x00007f2b2e001c8e] (1198 bytes)

StubRoutines::updateBytesCRC32C [0x00007f2b2e001ca0, 0x00007f2b2e0023b4] (1812 bytes)

StubRoutines::dsin [0x00007f2b2e0023cc, 0x00007f2b2e002b11] (1861 bytes)

StubRoutines::dtan [0x00007f2b2e003212, 0x00007f2b2e003b1a] (2312 bytes)

StubRoutines::dtanh [0x00007f2b2e003b1a, 0x00007f2b2e003e75] (859 bytes)

StubRoutines::dcbrt [0x00007f2b2e003e75, 0x00007f2b2e0040ea] (629 bytes)

StubRoutines::dexp [0x00007f2b2e0040ea, 0x00007f2b2e004477] (909 bytes)

StubRoutines::dpow [0x00007f2b2e004477, 0x00007f2b2e005652] (4571 bytes)

StubRoutines::dlog [0x00007f2b2e005652, 0x00007f2b2e0058e6] (660 bytes)

StubRoutines::dlog10 [0x00007f2b2e0058e6, 0x00007f2b2e005bce] (744 bytes)

StubRoutines::fmod [0x00007f2b2e005be0, 0x00007f2b2e005de7] (519 bytes)

[0.009s][info][stubs] StubRoutines (initialstubs) [0x00007f2b2e000ee0, 0x00007f2b2e006228] used: 20231, free: 1089;

regular JDK

StubRoutines::forward_exception [0x00007f018e000ee0, 0x00007f018e001015] (309 bytes)

StubRoutines::call_stub [0x00007f018e001015, 0x00007f018e0013c8] (947 bytes)

StubRoutines::catch_exception [0x00007f018e0013c8, 0x00007f018e001598] (464 bytes)

StubRoutines::updateBytesCRC32 [0x00007f018e001760, 0x00007f018e001bf9] (1177 bytes)

StubRoutines::updateBytesCRC32C [0x00007f018e001c00, 0x00007f018e002304] (1796 bytes)

StubRoutines::dsin [0x00007f018e00231c, 0x00007f018e0029ab] (1679 bytes)

StubRoutines::dcos [0x00007f018e0029ab, 0x00007f018e00301c] (1649 bytes)

StubRoutines::dtan [0x00007f018e00301c, 0x00007f018e003864] (2120 bytes)

StubRoutines::dtanh [0x00007f018e003864, 0x00007f018e003b48] (740 bytes)

StubRoutines::dcbrt [0x00007f018e003b48, 0x00007f018e003d5b] (531 bytes)

StubRoutines::dexp [0x00007f018e003d5b, 0x00007f018e004078] (797 bytes)

StubRoutines::dpow [0x00007f018e004078, 0x00007f018e005161] (4329 bytes)

StubRoutines::dlog [0x00007f018e005161, 0x00007f018e0053d2] (625 bytes)

StubRoutines::dlog10 [0x00007f018e0053d2, 0x00007f018e00567b] (681 bytes)

StubRoutines::fmod [0x00007f018e005680, 0x00007f018e005867] (487 bytes)

[0.005s][info][stubs] StubRoutines (initialstubs) [0x00007f018e000ee0, 0x00007f018e006228] used: 18823, free: 2497; code_size: 21000

Do you have additional code somewhere in macro assembler for static build? Is it possible to compare assembler code? I see you posted sizes in bug report. Can you compare code for StubRoutines::forward_exception() which has smallest size to see what is difference.

Please run both, regular and static JDK, on AVX512 machine.

There was not static specific in macro assembler. Let me try running the tests again and update ...

@jianglizhou
Copy link
Contributor Author

@vnkozlov I collected some info with forward_exception_stub on both regular and static JDK fastdebug binaries. For the forward_exception_stub, the generated instructions are not really affected with or without AVX extensions and the instruction sizes are the same on machines with or without AVX extensions when running the same JDK binary.

forward_exception_stub size is different when running on regular JDK and static JDK. Looking at the generated instructions in the stub, the most differences are due to call instructions. On static JDK, the target address needs to be moved into a register first then call using register, e.g.:

9c: 48 b8 00 3b 77 6c b3    movabs rax,0x55b36c773b00
a3: 55 00 00
a6: ff d0                   call   rax

On regular JDK, the target address can be encoded within the call instruction, e.g:

95: e8 46 46 e1 1a          call   0x1ae146e0

I recall @rasbold had suspected that could be what was causing the differences between static and regular JDKs, when we briefly discussed about the issue last week.

Here are the disassembled forward_exception_stub:

static-jdk

0:  49 83 7f 08 00          cmp    QWORD PTR [r15+0x8],0x0
5:  0f 85 79 00 00 00       jne    0x84
b:  48 81 ec 80 00 00 00    sub    rsp,0x80
12: 48 89 44 24 78          mov    QWORD PTR [rsp+0x78],rax
17: 48 89 4c 24 70          mov    QWORD PTR [rsp+0x70],rcx
1c: 48 89 54 24 68          mov    QWORD PTR [rsp+0x68],rdx
21: 48 89 5c 24 60          mov    QWORD PTR [rsp+0x60],rbx
26: 48 89 6c 24 50          mov    QWORD PTR [rsp+0x50],rbp
2b: 48 89 74 24 48          mov    QWORD PTR [rsp+0x48],rsi
30: 48 89 7c 24 40          mov    QWORD PTR [rsp+0x40],rdi
35: 4c 89 44 24 38          mov    QWORD PTR [rsp+0x38],r8
3a: 4c 89 4c 24 30          mov    QWORD PTR [rsp+0x30],r9
3f: 4c 89 54 24 28          mov    QWORD PTR [rsp+0x28],r10
44: 4c 89 5c 24 20          mov    QWORD PTR [rsp+0x20],r11
49: 4c 89 64 24 18          mov    QWORD PTR [rsp+0x18],r12
4e: 4c 89 6c 24 10          mov    QWORD PTR [rsp+0x10],r13
53: 4c 89 74 24 08          mov    QWORD PTR [rsp+0x8],r14
58: 4c 89 3c 24             mov    QWORD PTR [rsp],r15
5c: 48 be eb 15 00 66 24    movabs rsi,0x7f24660015eb
63: 7f 00 00
66: 48 8b d4                mov    rdx,rsp
69: 48 bf 20 95 e3 e0 1a    movabs rdi,0x561ae0e39520
70: 56 00 00
73: 48 83 e4 f0             and    rsp,0xfffffffffffffff0
77: 48 b8 d0 cc 61 e2 1a    movabs rax,0x561ae261ccd0
7e: 56 00 00
81: ff d0                   call   rax
83: f4                      hlt
84: 48 8b 3c 24             mov    rdi,QWORD PTR [rsp]
88: 48 8b f7                mov    rsi,rdi
8b: 49 8b ff                mov    rdi,r15
8e: 40 f6 c4 0f             test   spl,0xf
92: 0f 84 19 00 00 00       je     0xb1
98: 48 83 ec 08             sub    rsp,0x8
9c: 48 b8 00 bb 84 e2 1a    movabs rax,0x561ae284bb00
a3: 56 00 00
a6: ff d0                   call   rax
a8: 48 83 c4 08             add    rsp,0x8
ac: e9 0c 00 00 00          jmp    0xbd
b1: 48 b8 00 bb 84 e2 1a    movabs rax,0x561ae284bb00
b8: 56 00 00
bb: ff d0                   call   rax
bd: 48 8b d8                mov    rbx,rax
c0: 5a                      pop    rdx
c1: 49 8b 47 08             mov    rax,QWORD PTR [r15+0x8]
c5: 49 c7 47 08 00 00 00    mov    QWORD PTR [r15+0x8],0x0
cc: 00
cd: 48 85 c0                test   rax,rax
d0: 0f 85 79 00 00 00       jne    0x14f
d6: 48 81 ec 80 00 00 00    sub    rsp,0x80
dd: 48 89 44 24 78          mov    QWORD PTR [rsp+0x78],rax
e2: 48 89 4c 24 70          mov    QWORD PTR [rsp+0x70],rcx
e7: 48 89 54 24 68          mov    QWORD PTR [rsp+0x68],rdx
ec: 48 89 5c 24 60          mov    QWORD PTR [rsp+0x60],rbx
f1: 48 89 6c 24 50          mov    QWORD PTR [rsp+0x50],rbp
f6: 48 89 74 24 48          mov    QWORD PTR [rsp+0x48],rsi
fb: 48 89 7c 24 40          mov    QWORD PTR [rsp+0x40],rdi
100:    4c 89 44 24 38          mov    QWORD PTR [rsp+0x38],r8
105:    4c 89 4c 24 30          mov    QWORD PTR [rsp+0x30],r9
10a:    4c 89 54 24 28          mov    QWORD PTR [rsp+0x28],r10
10f:    4c 89 5c 24 20          mov    QWORD PTR [rsp+0x20],r11
114:    4c 89 64 24 18          mov    QWORD PTR [rsp+0x18],r12
119:    4c 89 6c 24 10          mov    QWORD PTR [rsp+0x10],r13
11e:    4c 89 74 24 08          mov    QWORD PTR [rsp+0x8],r14
123:    4c 89 3c 24             mov    QWORD PTR [rsp],r15
127:    48 be b6 16 00 66 24    movabs rsi,0x7f24660016b6
12e:    7f 00 00
131:    48 8b d4                mov    rdx,rsp
134:    48 bf 21 81 ee e0 1a    movabs rdi,0x561ae0ee8121
13b:    56 00 00
13e:    48 83 e4 f0             and    rsp,0xfffffffffffffff0
142:    48 b8 d0 cc 61 e2 1a    movabs rax,0x561ae261ccd0
149:    56 00 00
14c:    ff d0                   call   rax
14e:    f4                      hlt
14f:    ff                      .byte 0xff

regular jdk

0:  49 83 7f 08 00          cmp    QWORD PTR [r15+0x8],0x0
5:  0f 85 72 00 00 00       jne    0x7d
b:  48 81 ec 80 00 00 00    sub    rsp,0x80
12: 48 89 44 24 78          mov    QWORD PTR [rsp+0x78],rax
17: 48 89 4c 24 70          mov    QWORD PTR [rsp+0x70],rcx
1c: 48 89 54 24 68          mov    QWORD PTR [rsp+0x68],rdx
21: 48 89 5c 24 60          mov    QWORD PTR [rsp+0x60],rbx
26: 48 89 6c 24 50          mov    QWORD PTR [rsp+0x50],rbp
2b: 48 89 74 24 48          mov    QWORD PTR [rsp+0x48],rsi
30: 48 89 7c 24 40          mov    QWORD PTR [rsp+0x40],rdi
35: 4c 89 44 24 38          mov    QWORD PTR [rsp+0x38],r8
3a: 4c 89 4c 24 30          mov    QWORD PTR [rsp+0x30],r9
3f: 4c 89 54 24 28          mov    QWORD PTR [rsp+0x28],r10
44: 4c 89 5c 24 20          mov    QWORD PTR [rsp+0x20],r11
49: 4c 89 64 24 18          mov    QWORD PTR [rsp+0x18],r12
4e: 4c 89 6c 24 10          mov    QWORD PTR [rsp+0x10],r13
53: 4c 89 74 24 08          mov    QWORD PTR [rsp+0x8],r14
58: 4c 89 3c 24             mov    QWORD PTR [rsp],r15
5c: 48 be eb 15 00 22 6c    movabs rsi,0x7f6c220015eb
63: 7f 00 00
66: 48 8b d4                mov    rdx,rsp
69: 48 bf 0e 71 3c 3c 6c    movabs rdi,0x7f6c3c3c710e
70: 7f 00 00
73: 48 83 e4 f0             and    rsp,0xfffffffffffffff0
77: e8 44 5a 90 1b          call   0x1b905ac0
7c: f4                      hlt
7d: 48 8b 3c 24             mov    rdi,QWORD PTR [rsp]
81: 48 8b f7                mov    rsi,rdi
84: 49 8b ff                mov    rdi,r15
87: 40 f6 c4 0f             test   spl,0xf
8b: 0f 84 12 00 00 00       je     0xa3
91: 48 83 ec 08             sub    rsp,0x8
95: e8 46 46 c1 1b          call   0x1bc146e0
9a: 48 83 c4 08             add    rsp,0x8
9e: e9 05 00 00 00          jmp    0xa8
a3: e8 38 46 c1 1b          call   0x1bc146e0
a8: 48 8b d8                mov    rbx,rax
ab: 5a                      pop    rdx
ac: 49 8b 47 08             mov    rax,QWORD PTR [r15+0x8]
b0: 49 c7 47 08 00 00 00    mov    QWORD PTR [r15+0x8],0x0
b7: 00
b8: 48 85 c0                test   rax,rax
bb: 0f 85 72 00 00 00       jne    0x133
c1: 48 81 ec 80 00 00 00    sub    rsp,0x80
c8: 48 89 44 24 78          mov    QWORD PTR [rsp+0x78],rax
cd: 48 89 4c 24 70          mov    QWORD PTR [rsp+0x70],rcx
d2: 48 89 54 24 68          mov    QWORD PTR [rsp+0x68],rdx
d7: 48 89 5c 24 60          mov    QWORD PTR [rsp+0x60],rbx
dc: 48 89 6c 24 50          mov    QWORD PTR [rsp+0x50],rbp
e1: 48 89 74 24 48          mov    QWORD PTR [rsp+0x48],rsi
e6: 48 89 7c 24 40          mov    QWORD PTR [rsp+0x40],rdi
eb: 4c 89 44 24 38          mov    QWORD PTR [rsp+0x38],r8
f0: 4c 89 4c 24 30          mov    QWORD PTR [rsp+0x30],r9
f5: 4c 89 54 24 28          mov    QWORD PTR [rsp+0x28],r10
fa: 4c 89 5c 24 20          mov    QWORD PTR [rsp+0x20],r11
ff: 4c 89 64 24 18          mov    QWORD PTR [rsp+0x18],r12
104:    4c 89 6c 24 10          mov    QWORD PTR [rsp+0x10],r13
109:    4c 89 74 24 08          mov    QWORD PTR [rsp+0x8],r14
10e:    4c 89 3c 24             mov    QWORD PTR [rsp],r15
112:    48 be a1 16 00 22 6c    movabs rsi,0x7f6c220016a1
119:    7f 00 00
11c:    48 8b d4                mov    rdx,rsp
11f:    48 bf 8b da 46 3c 6c    movabs rdi,0x7f6c3c46da8b
126:    7f 00 00
129:    48 83 e4 f0             and    rsp,0xfffffffffffffff0
12d:    e8 8e 59 90 1b          call   0x1b905ac0
132:    f4                      hlt
133:    ff                      .byte 0xff

@jianglizhou
Copy link
Contributor Author

Also about back porting into JDK 25. You need to rise priority - only P1 and P2 are allowed in RDP2.

Changed to P2.

@vnkozlov
Copy link
Contributor

@jianglizhou So it is similar to issue in AOT where we force ForceUnreachable flag to be true to generate far calls (full address is used instead of relative offset) into VM's runtime methods. But in static JDK VM runtime methods addressed far from CodeCache so it triggers far call.

Which means normal JDK is not affected and that is why we did not see it in our testing.

@vnkozlov
Copy link
Contributor

@jianglizhou thank you for showing code difference. I approved JDK 25 backport.

@jianglizhou
Copy link
Contributor Author

@jianglizhou thank you for showing code difference. I approved JDK 25 backport.

Thanks, @vnkozlov!

@jianglizhou
Copy link
Contributor Author

@jianglizhou So it is similar to issue in AOT where we force ForceUnreachable flag to be true to generate far calls (full address is used instead of relative offset) into VM's runtime methods. But in static JDK VM runtime methods addressed far from CodeCache so it triggers far call.

Yes.

@jianglizhou
Copy link
Contributor Author

/backport jdk25

@openjdk
Copy link

openjdk bot commented Jul 30, 2025

@jianglizhou The target repository jdk25 is not a valid target for backports.
List of valid target repositories: openjdk/jdk, openjdk/jdk11u, openjdk/jdk11u-dev, openjdk/jdk17u, openjdk/jdk17u-dev, openjdk/jdk21u, openjdk/jdk21u-dev, openjdk/jdk24u, openjdk/jdk25u, openjdk/jdk7u, openjdk/jdk8u, openjdk/jdk8u-dev, openjdk/jfx, openjdk/jfx17u, openjdk/jfx21u, openjdk/jfx25u, openjdk/lilliput-jdk17u, openjdk/lilliput-jdk21u, openjdk/lilliput-jdk25u, openjdk/shenandoah-jdk21u, openjdk/shenandoah-jdk8u.
Supplying the organization/group prefix is optional.

There is a branch jdk25 in the current repository openjdk/jdk.
To target a backport to this branch in the current repository use:
/backport :jdk25

@jianglizhou
Copy link
Contributor Author

/backport :jdk25

@openjdk
Copy link

openjdk bot commented Jul 30, 2025

@jianglizhou the backport was successfully created on the branch backport-jianglizhou-c239c0ab-jdk25 in my personal fork of openjdk/jdk. To create a pull request with this backport targeting openjdk/jdk:jdk25, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit c239c0ab from the openjdk/jdk repository.

The commit being backported was authored by Jiangli Zhou on 29 Jul 2025 and was reviewed by Chuck Rasbold.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk:

$ git fetch https://github.com/openjdk-bots/jdk.git backport-jianglizhou-c239c0ab-jdk25:backport-jianglizhou-c239c0ab-jdk25
$ git checkout backport-jianglizhou-c239c0ab-jdk25
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk.git backport-jianglizhou-c239c0ab-jdk25

⚠️ @jianglizhou You are not yet a collaborator in my fork openjdk-bots/jdk. An invite will be sent out and you need to accept it before you can proceed.

@vnkozlov
Copy link
Contributor

Which means normal JDK is not affected and that is why we did not see it in our testing.

I want to correct my statement. Normal JDK could be also affected as I pointed in JBS report in my approval comment.
We can't guarantee that CodeCache address space will be near VM's runtime code address space in all cases to use relative distance in calls and jumps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot [email protected] integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

5 participants