Local buffers for event handlers

US9575819B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9575819-B2
Application numberUS-201314020633-A
CountryUS
Kind codeB2
Filing dateSep 6, 2013
Priority dateSep 6, 2013
Publication dateFeb 21, 2017
Grant dateFeb 21, 2017

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A technique is described for generating error buffer that includes errors from both a program and event handlers called by the program. A program in an event-driven environment triggers an event. In response to the triggered event, the program calls event handlers related to the event. The event handlers are executed and error messages generated during the execution are stored in a local error buffer. Upon completion of the event handlers, the local error buffers are returned to the program and the program merges the local error buffers with an error buffer associated with the program.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method, comprising: determining, by a processor, that an event has been triggered during execution of a program, wherein the program includes: an error context generating an error message in a formatting when a first error is detected during execution of the program and an error buffer storing the generated error message; executing, by the processor, a first registered event handler associated with the event in response to the determination, wherein the first registered event handler includes: a first local error context generating a first local error message when a second error is detected during execution of the first registered event handler and a first local error buffer storing the first local error message, and wherein the first registered event handler copies the error context to the first local error context during initialization of the first registered event handler so that the formatting is applied to error messages generated during execution of the first registered event handler and error messages generated during execution of the program; and merging, by the processor, the first local error buffer into the error buffer. 2. The computer-implemented method of claim 1 , wherein merging includes copying the second error message from the first local error buffer to the error buffer. 3. The computer-implemented method of claim 1 , further comprising: executing, by the processor, a second registered event handler associated with the event in response to the determination, wherein the second registered event handler includes: a second local error context generating a second local error message when a third error is detected during execution of the second registered event handler and a second local error buffer storing the second local error message, wherein the second registered event handler copies the error context to the second local error context during initialization of the second registered event handler so that the formatting is applied to error messages generated during execution of the second registered event handler; and merging, by the processor, the second local error buffer into the error buffer. 4. The computer-implemented method of claim 3 , wherein the first registered event handler and the second registered event handler are executed on individual threads. 5. The computer-implemented method of claim 4 , wherein the first registered event handler and the second registered event handler are executed in parallel. 6. The computer-implemented method of claim 4 , wherein the individual threads are synchronized before merging the first local error buffer and the second local error buffer into the error buffer. 7. The computer-implemented method of claim 1 , wherein executing the first registered event handler comprises: initializing, by the processor, the first local error buffer by copying the contents of the error buffer including the first error message to the first local error buffer. 8. A non-transitory computer readable storage medium storing one or more programs, the one or more programs comprising instructions for: determining that an event has been triggered during execution of a program, wherein the program includes: an error context generating an error message in a formatting when a first error is detected during execution of the program and an error buffer storing output generated during execution of the program, the error buffer containing a first error message generated during execution of the program; executing a first registered event handler associated with the event in response to the determination, wherein the first registered event handler includes: a first local error context generating a first local error message when a second error is detected during execution of the first registered event handler and a first local error buffer storing the first local error message, and wherein the first registered event handler copies the error context to the first local error context during initialization of the first registered event handler so that the formatting is applied to error messages generated during execution of the first registered event handler and error messages generated during execution of the program; and merging the first local error buffer into the error buffer. 9. The non-transitory computer readable storage medium of claim 8 , wherein merging includes copying the second error message from the first local error buffer to the error buffer. 10. The non-transitory computer readable storage medium of claim 9 , further comprising: executing a second registered event handler associated with the event in response to the determination, wherein the second registered event handler includes: a second local error context generating a second local error message when a third error is detected during execution of the second registered event handler and a second local error buffer storing the second local error message, wherein the second registered event handler copies the error context to the second local error context during initialization of the second registered event handler so that the formatting is applied to error messages generated during execution of the second registered event handler; and merging the second local error buffer into the error buffer. 11. The non-transitory computer readable storage medium of claim 10 , wherein the first registered event handler and the second registered event handler are executed on individual threads. 12. The non-transitory computer readable storage medium of claim 11 , wherein the first registered event handler and the second registered event handler are executed in parallel. 13. The non-transitory computer readable storage medium of claim 11 , wherein the individual threads are synchronized before merging the first local error buffer and the second local error buffer into the error buffer. 14. The non-transitory computer readable storage medium of claim 8 , wherein executing the first registered event handler comprises: initializing the first local error buffer by copying the first error message of the error buffer to the first local error buffer. 15. A computer implemented system, comprising: a processor; and a non-transitory computer readable medium having stored thereon one or more programs, which when executed by the processor, causes the processor to: determine that an event has been triggered during execution of a program, wherein the program includes: an error context generating an error message in a formatting when a first error is detected during execution of the program and an error buffer storing output generated during execution of the program, the error buffer containing a first error message generated during execution of the program; execute a first registered event handler associated with the event in response to the determination, wherein the first registered event handler includes: a first local error context generating a first local error message when a second error is detected during execution of the first registered event handler and a first local error buffer storing the first local error message, and wherein the first registered event handler copies the error context to the first local error context during initialization of the first registered event handler so that the formatting is applied to error messages generated during execution of the first registered event handler and error messages generated during execution of the program; and merge the first local error buffer into the error buffer. 16. The compute

Assignees

Inventors

Classifications

  • Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40) · CPC title

  • G06F9/542Primary

    Event management; Broadcasting; Multicasting; Notifications · CPC title

  • the processing taking place on a specific hardware platform or in a specific software environment · CPC title

  • Dumping, i.e. gathering error/state information after a fault for later diagnosis · CPC title

  • the resource being the memory · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9575819B2 cover?
A technique is described for generating error buffer that includes errors from both a program and event handlers called by the program. A program in an event-driven environment triggers an event. In response to the triggered event, the program calls event handlers related to the event. The event handlers are executed and error messages generated during the execution are stored in a local error …
Who is the assignee on this patent?
Baeuerle Stefan, Falter Timm, Hutzel Daniel, and 1 more
What technology area does this patent fall under?
Primary CPC classification G06F9/542. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Feb 21 2017 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).