发明名称 Memory management for closures
摘要 Methods, software media, compilers and programming techniques are described for creating copyable stack-based closures, such as a block, for languages which allocate automatic or local variables on a stack memory structure. In one exemplary method, a data structure of the block is first written to the stack memory structure, and this may be the automatic default operation, at run-time, for the block; then, a block copy instruction, added explicitly (in one embodiment) by a programmer during creation of the block, is executed to copy the block to a heap memory structure. The block includes a function pointer that references a function which uses data in the block.
申请公布号 US8341614(B2) 申请公布日期 2012.12.25
申请号 US20080242519 申请日期 2008.09.30
申请人 GARST, JR. GERALD BLAINE;BUMGARNER WILLIAM;JAHANIAN FARIBORZ;LATTNER CHRISTOPHER ARTHUR;APPLE INC. 发明人 GARST, JR. GERALD BLAINE;BUMGARNER WILLIAM;JAHANIAN FARIBORZ;LATTNER CHRISTOPHER ARTHUR
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址