发明名称 USING AN OBJECT RETAIN BLOCK IN A VIRTUAL MACHINE
摘要 A method for using a retain block in application code executing on a virtual machine includes identifying an instruction in application code, the instruction pertaining to an object, determining the instruction is part of a retain block, prior to executing the instruction, determining whether the instruction is to cause the object to be modified, and when the instruction is to cause the object to be modified, storing data indicating a first state of the object in a retain block store and causing the first state of the object to be modified using a second state. Also, the method includes in response to an error occurring during an execution of the instruction, returning the object from the second state to the first state using the stored data.
申请公布号 US2015347240(A1) 申请公布日期 2015.12.03
申请号 US201414293996 申请日期 2014.06.02
申请人 Red Hat, Inc. 发明人 Eliás Filip;Nguyen Filip
分类号 G06F11/14;G06F9/30 主分类号 G06F11/14
代理机构 代理人
主权项 1. A method comprising: identifying, by a virtual machine, an instruction in application code, the instruction pertaining to an object; determining the instruction is part of a retain block; prior to executing the instruction, determining whether the instruction is to cause the object to be modified, and when the instruction is to cause the object to be modified, storing data indicating a first state of the object in a retain block store and causing the first state of the object to be modified using a second state; and in response to an error occurring during an execution of the instruction, returning the object from the second state to the first state using the stored data.
地址 Raleigh NC US