Invention Grant
- Patent Title: Copy-on-write optimization of immutable objects for objects oriented languages
- Patent Title (中): 面向对象语言的不可变对象的写时优化
-
Application No.: US11782148Application Date: 2007-07-24
-
Publication No.: US08281293B2Publication Date: 2012-10-02
- Inventor: Mike Stephen Fulton , Nikola Grcevski , Derek Bruce Inglis
- Applicant: Mike Stephen Fulton , Nikola Grcevski , Derek Bruce Inglis
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Yee & Associates, P.C.
- Agent David A. Mims, Jr.
- Main IPC: G06F9/45
- IPC: G06F9/45 ; G06F9/44 ; G06F13/00 ; G06F12/00

Abstract:
A computer implemented method, apparatus, and computer program product for copy-on-write optimization of immutable objects. An immutable object is marked as read-only to form a read-only object. The read-only object is formed to delay copying of the immutable object until a runtime determination is made that a write to the immutable object will be made. In response to an attempt to write to the read-only object, an internal value of the read-only object is copied to read-and-write storage using runtime information to form a writable copy of the read-only object. A set of references for the read-only object is updated to point to the writable copy of the read-only object. Delaying copying of the immutable object optimizes a copy-on-write of the immutable object.
Public/Granted literature
- US20090031292A1 COPY-ON-WRITE OPTIMIZATION OF IMMUTABLE OBJECTS FOR OBJECT ORIENTED LANGUAGES Public/Granted day:2009-01-29
Information query