RFR: 8353500: [s390x] Intrinsify Unsafe::setMemory [v5]

Amit Kumar amitkumar at openjdk.org
Mon Jun 2 03:37:57 UTC 2025


On Fri, 30 May 2025 08:32:30 GMT, Andrew Haley <aph at openjdk.org> wrote:

> What are all those `nopr`s for?

Sorry that is old code; nops were inserted for the loop alignment; this is the newer stub code: 

- - - [BEGIN] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
StubRoutines::unsafe_setmemory [0x000003ffa84b63c0, 0x000003ffa84b644c] (140 bytes)
--------------------------------------------------------------------------------
BFD: unknown S/390 disassembler option: s390
.long	0x00000000
  0x000003ffa84b63c0:   vlvgb	%v0,%r4,0
  0x000003ffa84b63c6:   vrepb	%v0,%v0,0
  0x000003ffa84b63cc:   aghi	%r3,-32
  0x000003ffa84b63d0:   jl	0x000003ffa84b63ec
  0x000003ffa84b63d4:   vst	%v0,0(%r2)
  0x000003ffa84b63da:   vst	%v0,16(%r2)
  0x000003ffa84b63e0:   aghi	%r2,32
  0x000003ffa84b63e4:   aghi	%r3,-32
  0x000003ffa84b63e8:   jhe	0x000003ffa84b63d4
  0x000003ffa84b63ec:   tmll	%r3,16
  0x000003ffa84b63f0:   je	0x000003ffa84b63fe
  0x000003ffa84b63f4:   vst	%v0,0(%r2)
  0x000003ffa84b63fa:   aghi	%r2,16
  0x000003ffa84b63fe:   tmll	%r3,8
  0x000003ffa84b6402:   je	0x000003ffa84b6410
  0x000003ffa84b6406:   vsteg	%v0,0(%r2),0
  0x000003ffa84b640c:   aghi	%r2,8
  0x000003ffa84b6410:   tmll	%r3,7
  0x000003ffa84b6414:   je	0x000003ffa84b644a
  0x000003ffa84b6418:   tmll	%r3,4
  0x000003ffa84b641c:   je	0x000003ffa84b642a
  0x000003ffa84b6420:   vstef	%v0,0(%r2),0
  0x000003ffa84b6426:   aghi	%r2,4
  0x000003ffa84b642a:   tmll	%r3,2
  0x000003ffa84b642e:   je	0x000003ffa84b643c
  0x000003ffa84b6432:   vsteh	%v0,0(%r2),0
  0x000003ffa84b6438:   aghi	%r2,2
  0x000003ffa84b643c:   tmll	%r3,1
  0x000003ffa84b6440:   je	0x000003ffa84b644a
  0x000003ffa84b6444:   vsteb	%v0,0(%r2),0
  0x000003ffa84b644a:   br	%r14
--------------------------------------------------------------------------------
- - - [END] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24480#issuecomment-2928591294


More information about the hotspot-compiler-dev mailing list