PatentRef

Data version 20261117.2, as of 2026-11-17. Free beta.

US 10649749

Cross-environment application of tracing information for improved code execution

Granted 2020-05-12 · Filed 2018-06-26 · Application 16/019,384 · Utility · Kind B1

Assignee as printed
  • Amazon Technologies, Inc., Seattle, WA (US)
Inventors
Marc John Brooker, Seattle, WA (US); Mikhail Danilov, Sammamish, WA (US); Tobias L. Holgers, Seattle, WA (US)
CPC, current
G06F8/443; G06F9/4552; G06F11/301; G06F11/302; G06F11/3409; G06F11/3466; G06F11/3624; G06F11/3628; G06F11/3636; G06F11/3698; G06F2201/815; G06F2201/865

Abstract

Systems and methods are described for enabling cross-environment application of tracing information for code, such as code executed within an on-demand (or “serverless”) code execution system. Various optimizations exist that allow execution of code to proceed faster or more efficiently over time, by collecting tracing information regarding the execution and using that tracing information to guide compilation of the code. These optimizations are typically designed for long-lived environments. However, executions within an on-demand code execution system often occur in short-lived environments, reducing or eliminating any gains from these optimizations. To address this issue, tracing information can be maintained across multiple environments on the system, allowing subsequent executions to be optimized based on tracing information of prior executions in other environments.

Claims

21 claims · independent 1, 6 and 15

The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.

Claim 1

Independent claim.

1. A system to implement cross-environment application of tracing information for a task on an on-demand code execution system, wherein the task corresponds to code executable to implement the task, the system comprising:

  1. Claim 1, element e1a physical data store storing the code for the task; 222–273
  2. Claim 1, element e2one or more computing devices implementing a first execution environment on the on-demand code execution system, the one or more computing devices implementing the first execution environment configured to: 275–480
  3. Claim 1, element e3initiate a first execution of the code within the first execution environment; 482–559
  4. Claim 1, element e4trace the first execution of the code to generate tracing information for the first execution, the tracing information reflecting at least an execution path for the first execution; and 561–741
  5. Claim 1, element e5store the tracing information for the first execution; and 747–800
  6. Claim 1, element e6one or more computing devices implementing a second execution environment on the on-demand code execution system that is different from the first execution environment, the one or more computing devices implementing the second execution environment configured to: 806–1068
  7. Claim 1, element e7provision the second execution environment with the tracing information for the first execution within the first execution environment; and 1070–1204
  8. Claim 1, element e8initiate a second execution of the code within the second execution environment, 1210–1289
  9. Claim 1, element e9wherein the second execution utilizes a tracing just-in-time (HT) compiler, operating to compile portions of the code selected based at least partly on the tracing information for the first execution within the first execution environment, to reference the tracing information of the first execution environment for the second execution.1291–1627
4 dependent claims: 2 to 5 (2, 3, 4, 5 on claim 1)

Claim 2

Depends on claim 1.

2. The system of claim 1 , wherein

  1. Claim 2, element e1the one or more computing devices implementing the second execution environment are further configured to trace the second execution of the code to generate tracing information for the second execution, and wherein the system further comprises: 35–278
  2. Claim 2, element e2one or more computing devices implementing a third execution environment on the on-demand code execution system, the one or more computing devices implementing the third execution environment configured to: 280–485
  3. Claim 2, element e3provision the third execution environment with the tracing information for the second execution within the second execution environment; and 487–622
  4. Claim 2, element e4initiate a third execution of the code within the third execution environment, 628–705
  5. Claim 2, element e5wherein the third execution utilizes a tracing just-in-time (JIT) compiler of the third environment operating to compile portions of the code selected based at least partly on the tracing information for the second execution within the second execution environment.707–971

Claim 3

Depends on claim 1.

3. The system of claim 1 , wherein

  1. Claim 3, element e1the one or more computing devices implementing the first execution environment are further configured to compile the code based at least partly on the tracing information for the first execution to result in machine code, and wherein the second execution of the code relies at least in part on execution of the machine code.35–358

Claim 4

Depends on claim 1.

4. The system of claim 1 further comprising

  1. Claim 4, element e1one or more computing devices implementing an ahead-of-time (AOT) compiler, 44–118
  2. Claim 4, element e2wherein the one or more computing devices implementing the AOT compiler are configured to generate machine code for the code based at least partly on the tracing information, and wherein the second execution of the code relies at least in part on execution of the machine code.120–396

Claim 5

Depends on claim 1.

5. The system of claim 1 , wherein

  1. Claim 5, element e1the one or more computing devices implementing the first execution environment and the one or more computing devices implementing the second execution environment are the same one or more computing devices.35–240

Claim 6

Independent claim.

6. A computer-implemented method comprising:

  1. Claim 6, element e1within a first execution environment on an on-demand code execution system: 45–119
  2. Claim 6, element e2initiating a first execution of code within the first execution environment; 121–196
  3. Claim 6, element e3tracing the first execution of the code to generate tracing information for the first execution, the tracing information reflecting at least an execution path for the first execution; and 198–380
  4. Claim 6, element e4storing the tracing information for the first execution; 386–441
  5. Claim 6, element e5provisioning a second execution environment on the on-demand code execution system with the tracing information for the first execution within the first execution environment, the second execution environment being different from the first execution environment; and 443–704
  6. Claim 6, element e6initiating a second execution of the code within the second execution environment on the on-demand code execution system, 710–830
  7. Claim 6, element e7wherein the second execution utilizes a tracing just-in-time (JIT) compiler, operating to compile portions of the code selected based at least partly on the tracing information for the first execution within the first execution environment, to reference the tracing information of the first execution environment for the second execution.832–1169
8 dependent claims: 7 to 14 (7, 8, 9, 10, 13, 14 on claim 6; 11, 12 on 10)

Claim 7

Depends on claim 6.

7. The computer-implemented method of claim 6 , wherein

  1. Claim 7, element e1the first execution environment corresponds to at least one of a software container or a virtual machine instance.56–169

Claim 8

Depends on claim 6.

8. The computer-implemented method of claim 6 , wherein

  1. Claim 8, element e1the on-demand code execution system is configured to generate the first execution environment in response to a request to execute the code and to deconstruct the first execution environment after the first execution completes.56–281

Claim 9

Depends on claim 6.

9. The computer-implemented method of claim 6 , wherein

  1. Claim 9, element e1tracing the first execution of the code comprises implementing the tracing JIT compiler within the first execution environment.56–182

Claim 10

Depends on claim 6.

10. The computer-implemented method of claim 6 further comprising:

  1. Claim 10, element e1generating, based at least partly on the tracing information, machine code; and 67–141
  2. Claim 10, element e2provisioning the second execution environment with the machine code; 147–214
  3. Claim 10, element e3wherein the second execution is implemented at least partly based on the machine code.216–301

Claim 11

Depends on claim 10.

11. The computer-implemented method of claim 10 , wherein

  1. Claim 11, element e1the machine code is generated via the tracing JIT compiler operating within the first execution environment.58–165

Claim 12

Depends on claim 10.

12. The computer-implemented method of claim 10 , wherein

  1. Claim 12, element e1the machine code is generated via an AOT compiler operating outside the first execution environment.58–157

Claim 13

Depends on claim 6.

13. The computer-implemented method of claim 6 further comprising

  1. Claim 13, element e1provisioning the first execution environment with tracing information reflecting an execution path during at least one prior execution of the code.66–212

Claim 14

Depends on claim 6.

14. The computer-implemented method of claim 6 further comprising

  1. Claim 14, element e1provisioning the second execution environment with tracing information for an additional execution of the code that occurred at least partially concurrently with the first execution.66–247

Claim 15

Independent claim.

15. Non-transitory computer-readable media comprising

  1. Claim 15, element e1instructions executable by a computing system to: 54–102
  2. Claim 15, element e2initiate a first execution of code within a first execution environment on an on-demand code execution system; 104–213
  3. Claim 15, element e3trace the first execution of the code to generate tracing information for the first execution within the first execution environment, the tracing information reflecting at least an execution path for the first execution; and 215–434
  4. Claim 15, element e4store optimization information for the code generated based at least partly on the tracing information for first execution, 440–562
  5. Claim 15, element e5wherein the optimization information includes at least one of the tracing information or machine code generated by compiling the code based at least partly on the tracing information; 564–746
  6. Claim 15, element e6provision a second execution environment on the on-demand code execution system with the optimization information generated based at least partly on the tracing information for the first execution within the first execution environment, the second execution environment being different from the first execution environment; and 748–1070
  7. Claim 15, element e7execute the code within the second execution environment based at least partly on the optimization information, 1076–1186
  8. Claim 15, element e8wherein the second execution utilizes a tracing just-in-time (JIT) compiler, operating to compile portions of the code selected based at least partly on the tracing information for the first execution within the first execution environment, to reference the tracing information of the first execution environment for the second execution.1188–1525
6 dependent claims: 16 to 20 (16, 17, 19, 20, 20 on claim 15; 18 on 17)

Claim 16

Depends on claim 15.

16. The non-transitory computer-readable media of claim 15 , wherein

  1. Claim 16, element e1the instructions are further executable by the computing system, prior to provisioning the second execution environment with the optimization information, to determine the optimization information is sufficient to be utilized in the second execution environment, and wherein sufficiency of the optimization information is based at least partly on at least one of a data size of the optimization information, a length of execution reflected in the optimization information, or a number of execution loops reflected in the optimization information.69–614

Claim 17

Depends on claim 15.

17. The non-transitory computer-readable media of claim 15 , wherein

  1. Claim 17, element e1optimization information includes the tracing information, and where the computing system executes the code within the second execution environment at least partly by applying an optimization to a JIT compilation occurring during the execution of the code within the second execution environment.69–364

Claim 18

Depends on claim 17.

18. The non-transitory computer-readable media of claim 17 , wherein

  1. Claim 18, element e1the optimization is at least one of sub-expression elimination, dead-code elimination, register allocation, or loop-invariant code motion.69–206

Claim 19

Depends on claim 15.

19. The non-transitory computer-readable media of claim 15 , wherein

  1. Claim 19, element e1the instructions are further executable by the computing system, prior to provisioning the second execution environment with the optimization information, to determine that the optimization information for the code is applicable to the second execution environment.69–333

Claim 20

Depends on claim 15.

20. The non-transitory computer-readable media of claim 15 , wherein

  1. Claim 20, element e1to determine that the optimization information for the code is applicable to the second execution environment the instructions are executable by the computing system to conduct at least one of: 69–261
  2. Claim 20, element e2a comparison of parameters passed to the first execution environment and parameters passed to the second execution environment; or 263–389
  3. Claim 20, element e3a comparison of an architecture of the first execution environment and an architecture of the second execution environment.394–516

20. The non-transitory computer-readable media of claim 15 , wherein

  1. Claim 20, element e1to determine that the optimization information for the code is applicable to the second execution environment the instructions are executable by the computing system to conduct at least one of: 69–261
  2. Claim 20, element e2a comparison of parameters passed to the first execution environment and parameters passed to the second execution environment; or 263–389
  3. Claim 20, element e3a comparison of an architecture of the first execution environment and an architecture of the second execution environment.394–516

Status

active

As of 2026-11-17, the USPTO record for US 10649749 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2038-11-02 (20 years from filing, plus 129 days of patent term adjustment), a date not yet passed (data version 20261117.2).

Basis
term_20y · pta_days:129 (20 years from filing, plus 129 days of patent term adjustment)
Term end
2038-11-02 Computed from the dates in the USPTO record
Fee lapse
none on record
Reinstatement
none on record; reinstatement_possible: false, not lapsed
As of
2026-11-17
Data version
20261117.2

A fact about the record with its basis and its as-of date, not legal advice.

Citations

References cited on the grant: 3 US patent documents · Cited by: 52 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10649749/ (needs a free key, as the links under Get this as data)

Family outside the US

Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).

This patent's family on USPTO Global Dossier

Family data from Google Patents Public Datasets, used under CC BY 4.0.

Record JSON
{
 "patent_id": "10649749",
 "status": "active",
 "basis": [
  "term_20y",
  "pta_days:129"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2038-11-02",
 "lapse_date": null,
 "reinstated_date": null,
 "as_of": "2026-11-17",
 "data_version": "20261117.2",
 "catalog_data_version": "20261117.2",
 "permalink": "https://patentref.io/p/10649749?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/10649749?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/10649749/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=10649749",
   "audience": "agent"
  }
 ]
}

Get this as data

These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.

Elsewhere

Cite this record

https://patentref.io/p/10649749?v=20261117.2

Data 20261117.2 · as of 2026-11-17