pgaio_io_was_recycled.asm

text/plain

Filename: pgaio_io_was_recycled.asm
Type: text/plain
Part: 2
Message: Re: IO in wrong state on riscv64
GNU gdb (Debian 15.2-1) 15.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "riscv64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tmp_install/usr/local/pgsql/bin/postgres...
(gdb) Dump of assembler code for function pgaio_io_was_recycled:
558		*state = ioh->state;
   0x0000000000436f98 <+0>:	lbu	a3,0(a0)
   0x0000000000436f9c <+4>:	sw	a3,0(a2)

559	
560		/*
561		 * Ensure that we don't see an earlier state of the handle than ioh->state
562		 * due to compiler or CPU reordering. This protects both ->generation as
563		 * directly used here, and other fields in the handle accessed in the
564		 * caller if the handle was not reused.
565		 */
566		pg_memory_barrier();
   0x0000000000436f9e <+6>:	fence	rw,rw

567	
568		return ioh->generation != ref_generation;
   0x0000000000436fa2 <+10>:	ld	a0,64(a0)
   0x0000000000436fa4 <+12>:	xor	a0,a0,a1
   0x0000000000436fa6 <+14>:	snez	a0,a0
   0x0000000000436faa <+18>:	ret

End of assembler dump.
(gdb)