# US 2019/0317768 A1 · Guarded storage event handling during transactional execution

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0317768 A1
- Document ID: US20190317768A1
- Status: Published application
- Kind: A1
- Application number: 16/457,172
- Filed: 2019-06-28
- Published: 2019-10-17
- Earliest claimed: 2017-01-19
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Dan F. Greiner; Christian Jacobi; Volodymyr Paprotski; Anthony Saporito; Chung-Lung K. Shum; Timothy J. Slegel
- Web page: https://patentgrep.com/patent/US20190317768A1

## CPC

- G06F 9/30072: {to perform conditional operations, e.g. using predicates or guards}
- G06F 9/3004: {to perform operations on memory}
- G06F 9/34: Addressing or accessing the instruction operand or the result {; Formation of operand address; Addressing modes (address translation G06F12/00)}
- G06F 9/3802: {Instruction prefetching}
- G06F 9/3834: {Maintaining memory consistency}
- G06F 9/466: {Transaction processing}
- G06F 9/467: {Transactional memory (G06F9/528 takes precedence)}
- G06F 9/528: {by using speculative mechanisms}
- G06F 11/362: Debugging of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A guarded storage facility sets up a boundary indicating a range of addresses to be guarded or protected. When a program attempts to access an address in a guarded section defined by the boundary, a guarded storage event occurs. Use of this facility facilitates performance of certain tasks within a computing environment, including storage reclamation.

## Claims

### Claim 1

A computer program product for facilitating processing in a computing environment, said computer program product comprising:
a computer readable storage medium readable by a processing circuit and storing instructions for performing a method comprising:
detecting an abort of a transaction based on a guarded storage event; and
processing the guarded storage event, based on detecting the abort of the transaction based on the guarded storage event.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the processing the guarded storage event comprises determining a return address to return to processing the transaction.

### Claim 3 (depends on 2)

The computer program product of claim 2, wherein the determining the return address comprises determining a type of transaction and providing the return address based on the type of transaction.

### Claim 4 (depends on 3)

The computer program product of claim 3, wherein the determining the type of transaction determines that the transaction is a nonconstrained transaction, and the providing the return address provides an address of an instruction following a transaction begin instruction.

### Claim 5 (depends on 3)

The computer program product of claim 3, wherein the determining the type of transaction determines that the transaction is a constrained transaction, and the providing the return address provides an address of a transaction begin constrained instruction.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the processing the guarded storage event includes placing data relating to the guarded storage event in a parameter list.

### Claim 7 (depends on 6)

The computer program product of claim 6, wherein the data includes one or more items selected from a group consisting of: an operand address formed during transactional execution; an immediate result formed from contents of a storage location designated by said operand address subsequent to aborting the transaction; an indication of whether in transactional execution mode when the guarded storage event was recognized; an indication of whether in constrained transactional execution mode when the guarded storage event was recognized; and an indication of an instruction of the transaction causing the guarded storage event.

### Claim 8 (depends on 1)

The computer program product of claim 1, wherein the processing the guarded storage event includes:
determining whether the guarded storage event still exists; and
continuing with processing of the guarded storage event based on determining the guarded storage event still exists.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the processing the guarded storage event comprises loading a transaction abort control register in lieu of continuing with processing of the guarded storage event, based on determining the guarded storage event no longer exists.

### Claim 10

A computer system for facilitating processing in a computing environment, said computer system comprising:
a memory; and
a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising:
detecting an abort of a transaction based on a guarded storage event; and
processing the guarded storage event, based on detecting the abort of the transaction based on the guarded storage event.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the processing the guarded storage event comprises determining a return address to return to processing the transaction, wherein the determining the return address comprises determining a type of transaction and providing the return address based on the type of transaction.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein the processing the guarded storage event includes placing data relating to the guarded storage event in a parameter list.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein the data includes one or more items selected from a group consisting of: an operand address formed during transactional execution; an immediate result formed from contents of a storage location designated by the operand address subsequent to aborting the transaction; an indication of whether in transactional execution mode when the guarded storage event was recognized; an indication of whether in constrained transactional execution mode when the guarded storage event was recognized; and an indication of an instruction of the transaction causing the guarded storage event.

### Claim 14 (depends on 10)

The computer system of claim 10, wherein the processing the guarded storage event includes:
determining whether the guarded storage event still exists; and
continuing with processing of the guarded storage event based on determining the guarded storage event still exists.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein the processing the guarded storage event comprises loading a transaction abort control register in lieu of continuing with processing of the guarded storage event, based on determining the guarded storage event no longer exists.

### Claim 16

A computer-implemented method of facilitating processing in a computing environment, said computer-implemented method comprising:
detecting an abort of a transaction based on a guarded storage event; and
processing, by at least one processor, the guarded storage event, based on detecting the abort of the transaction based on the guarded storage event.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein the processing the guarded storage event comprises determining a return address to return to processing the transaction, wherein the determining the return address comprises determining a type of transaction and providing the return address based on the type of transaction.

### Claim 18 (depends on 16)

The computer-implemented method of claim 16, wherein the processing the guarded storage event includes placing data relating to the guarded storage event in a parameter list.

### Claim 19 (depends on 18)

The computer-implemented method of claim 18, wherein the data includes one or more items selected from a group consisting of: an operand address formed during transactional execution; an immediate result formed from contents of a storage location designated by the operand address subsequent to aborting the transaction; an indication of whether in transactional execution mode when the guarded storage event was recognized; an indication of whether in constrained transactional execution mode when the guarded storage event was recognized; and an indication of an instruction of the transaction causing the guarded storage event.

### Claim 20 (depends on 16)

The computer-implemented method of claim 16, wherein the processing the guarded storage event includes:
determining whether the guarded storage event still exists; and
continuing with processing of the guarded storage event based on determining the guarded storage event still exists.
