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.
Claims6
A method for improving initialization safety, comprising:
- inserting a declaration of a non-overwritable variable pointing to a current object in a source code;
- identifying a class to generate a shared object in the source code;
- assigning a value of zero to the shared object;
- modifying the value of the shared object;
- committing the shared object comprising the modified value to a memory hierarchy based on storing the value referencing the current object to the non-overwritable variable;
- and
- inserting a code of storing a value referencing the current object to the non-overwritable variable.
Dependencies are inferred from the claim text.