Patent ID: 8713546
Filing Date: 2014-04-29
Classification: G06F

Abstract:
1. A system for redundant array copy removal in a virtual machine environment, comprising: a computer including a microprocessor; a virtual machine running on the computer, that executes one or more software applications; a bytecode compiler that compiles application bytecode into compiled bytecode for execution by the virtual machine; a memory space for storage of the application bytecode and the compiled bytecode; an escape analyzer logic within the bytecode compiler that determines whether array equivalence guards can be added to the compiled bytecode, to allow for redundant array copy removal, including wherein, upon the requirements being satisfied, the bytecode compiler then replaces, within the compiled bytecode, one or more of those array copy operations that have been determined can be modified, with a guarded array copy operation that indicates criteria whereby its source array is to be used as its destination array, which guarded array copy is implemented as code that compares the length of the source array indicated by the array copy operation, with the length of the destination array indicated by the array copy operation, and compares the starting position within the source array as indicated by the array copy operation with the starting position of the destination array as indicated by the array copy operation, to determine that the source array can be used as its destination array.