发明名称 Enhanced java array
摘要 A method for creating an enhanced array is provided. An enhanced compiler generates an instrumented class file for an enhanced array class. The enhanced array class comprises at least one element class. The enhanced runtime loads the instrumented class file of the enhanced array class. The enhanced runtime loads a class file corresponding to the element class of the enhanced array class, and builds an internal data structure corresponding to the enhanced array class. An amount of memory storage is calculated for storing the enhanced array instance, and the amount of memory storage is allocated.
申请公布号 US9244708(B2) 申请公布日期 2016.01.26
申请号 US201414472427 申请日期 2014.08.29
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Lin Angela;Sciampacone Ryan A.;Sundaresan Vijay;Taylor Karl M.
分类号 G06F9/44;G06F9/45;G06F9/455;G06F9/445 主分类号 G06F9/44
代理机构 代理人 Johnson Erik;Josephs Damion
主权项 1. A method for creating an enhanced array comprising: generating, by an enhanced compiler, an instrumented class file for an enhanced array class, wherein the enhanced array class comprises at least one element class; loading, by an enhanced runtime, the instrumented class file, wherein the instrumented class file corresponds to the enhanced array class; loading, by the enhanced runtime, a class file corresponding to the at least one element class of the enhanced array class; building, by the enhanced runtime, an internal data structure corresponding to the enhanced array class, wherein each element of the internal data structure corresponds to an instance of the element class of the enhanced array class; calculating, by the enhanced runtime, an amount of memory storage required to store an instance of the enhanced array class, wherein calculating the amount of memory storage required to store the enhanced array comprises: multiplying a size of the data element of the enhanced array by a number of data elements to be stored in the enhanced array;adding a total size of metadata; andadding an amount of additional storage as required by the runtime; and allocating, by the enhanced runtime, the calculated amount of memory storage required to store the instance of the enhanced array class.
地址 Armonk NY US