# US 2010/0138820 A1 · Framework for Control Flow-Aware Processes

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

- Number: US 2010/0138820 A1
- Document ID: US20100138820A1
- Status: Published application
- Kind: A1
- Application number: 12/325,685
- Filed: 2008-12-01
- Published: 2010-06-03
- Earliest claimed: 2008-12-01
- Inventors: Shrinivas B. Joshi
- Web page: https://patentgrep.com/patent/US20100138820A1

## CPC

- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F 11/3636: {by tracing the execution of the program}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An improved system and method are disclosed for processing Java program code. Java source code is annotated with a Module or a ControlFlow annotation. The Java source code is then compiled to produce Java bytecode, which in turn is compiled by a just-in-time compiler to produce native code, which retains the annotations. The native code with annotations is then executed. If a bug is identified during the execution of the native code, an associated Module is selected for debugging, followed by determining associated Java source code segments within the responsible control flow path. Debugging operations are then performed on the associated Java source code segments.

## Claims

### Claim 1

A method for debugging Java program code, comprising:
annotating Java source code with a control flow annotation module, wherein said annotations are retained in compiled code compiled from said Java source code; and
debugging said compiled code, wherein at least one of said annotations are provided by said control annotation module in response to the performance of a debugging operation.

### Claim 2 (depends on 1)

The method of claim 1, wherein said annotations are applied to a predetermined segment of said Java source code.

### Claim 3 (depends on 2)

The method of claim 2, wherein said annotations comprise a Module annotation.

### Claim 4 (depends on 3)

The method of claim 3, wherein an individual said predetermined segment of Java source code is associated with a plurality of said Module annotations.

### Claim 5 (depends on 2)

The method of claim 2, wherein said annotations comprise a ControlFlow annotation.

### Claim 6 (depends on 5)

The method of claim 5, wherein said ControlFlow annotation comprises a Callers element defining a first said predetermined Java source code segment that can pass control to a second said predetermined Java source code segment.

### Claim 7 (depends on 5)

The method of claim 5, wherein said ControlFlow annotation comprises an Objects element defining instances of classes that can affect the behavior of a said predetermined Java source code segment.

### Claim 8 (depends on 5)

The method of claim 5, wherein said ControlFlow annotation comprises a Static Variables element defining static variables that can affect the behavior of a said predetermined Java source code segment.

### Claim 9 (depends on 4)

The method of claim 4, wherein said compiled code comprises compiled Java bytecode.

### Claim 10 (depends on 4)

The method of claim 4, wherein said compiled code comprises compiled native code.

### Claim 11

A system for debugging Java program code, comprising:
a control flow annotation module operable to:
annotate Java source code, wherein said annotations are retained in compiled code compiled from said Java source code; and
provide at least one of said retained annotations in response to the performance of a debugging operation.

### Claim 12 (depends on 1)

The system of claim 1, wherein said annotations are applied to a predetermined segment of said Java source code.

### Claim 13 (depends on 12)

The system of claim 12, wherein said annotations comprise a Module annotation.

### Claim 14 (depends on 13)

The system of claim 13, wherein an individual said predetermined segment of Java source code is associated with a plurality of said Module annotations.

### Claim 15 (depends on 12)

The system of claim 12, wherein said annotations comprise a ControlFlow annotation.

### Claim 16 (depends on 15)

The system of claim 15, wherein said ControlFlow annotation comprises an Objects element defining instances of classes that can affect the behavior of a said predetermined Java source code segment.

### Claim 17 (depends on 15)

The system of claim 15, wherein said ControlFlow annotation comprises an Objects element defining instances of classes that can affect the behavior of a said predetermined Java source code segment.

### Claim 18 (depends on 15)

The system of claim 15, wherein said ControlFlow annotation comprises a Static Variables element defining static variables that can affect the behavior of a said predetermined Java source code segment.

### Claim 19 (depends on 1)

The system of claim 1, wherein said compiled code comprises compiled Java bytecode.

### Claim 20 (depends on 1)

The system of claim 1, wherein said compiled code comprises compiled native code.
