Patent ID: 7316010
Filing Date: 2008-01-01
Classification: G06F

Abstract:
1. A method for conditionally sharing dynamically compiled code between different class loaders, comprising: compiling bytecodes of a first class type into a compiled code if the bytecodes have not been compiled, the first class type being defined by a first class loader; recording locations of sequence of instructions in the compiled code that are loader dependent, the locations that are loader dependent defining loader dependencies; comparing the loader dependencies in the compiled code to determine whether the compiled code can be used by a method of a second class type, the second class type being defined by a second class loader; if the loader dependencies of the second class type are different from the loader dependencies of the first class type, cloning the compiled code for the method of the first class type; and modifying portions of the cloned code that are loader dependent to enable the method of the second class type to use the cloned code.