A method for sharing dynamically compiled code between different class
loaders is provided. In this method, loader-reentrant compiled code is
produced from bytecodes by generating native code implementing a class
initialization barrier when compiling bytecodes that require a class to
be initialized, by generating native code implementing a link resolution
barrier when compiling bytecodes that require a symbolic link to be
resolved, and by generating code to retrieve loader-dependent data from a
loader-dependent table when compiling bytecodes that use data computed
from a resolved symbolic link.