Initialization safety
AssigneeInternational Business Machines Corporation
InventorTakeshi Ogasawara
Life of this patent
Estimating the term…
Abstract
Embodiments of the disclosure are directed to inserting a declaration of a non-overwritable variable pointing to a current object in a source code, and inserting a code of storing a value referencing the current object to the non-overwritable variable. Embodiments of the disclosure are directed to converting a source code to generate a shared object in a lock-free mode by inserting a declaration of a non-overwritable variable pointing to a current object in the source code, and inserting a code of storing a value referencing the current object to the non-overwritable variable.
Claims20
An apparatus comprising:
- at least one processor;
- and
- memory storing instructions that, when executed by the at least one processor, cause the apparatus to:
- insert a declaration of a non-overwritable variable pointing to a current object in a source code, and
- insert a code of storing a value referencing the current object to the non-overwritable variable.
A computer program product comprising a non-transitory computer readable storage medium having computer readable program code stored thereon that, when executed by a computer, performs a method for converting a source code to generate a shared object in a lock-free mode, the method comprising:
- inserting a declaration of a non-overwritable variable pointing to a current object in the source code;
- and
- inserting a code of storing a value referencing the current object to the non-overwritable variable.
A system comprising:
- at least one processor configured to execute a plurality of threads, where each thread of the plurality of threads is configured to access an object in a lock-free mode based on an insertion of a declaration of a non-overwritable variable pointing to a current object in a source code and a storage of a value referencing the current object to the non-overwritable variable.
Dependencies are inferred from the claim text.