17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 #include "precompiled.hpp"
25
26 #include "aot/aotCodeHeap.hpp"
27 #include "aot/aotLoader.hpp"
28 #include "ci/ciUtilities.hpp"
29 #include "classfile/javaAssertions.hpp"
30 #include "gc/shared/cardTable.hpp"
31 #include "gc/shared/cardTableModRefBS.hpp"
32 #include "gc/g1/heapRegion.hpp"
33 #include "gc/shared/gcLocker.hpp"
34 #include "interpreter/abstractInterpreter.hpp"
35 #include "jvmci/compilerRuntime.hpp"
36 #include "jvmci/jvmciRuntime.hpp"
37 #include "oops/method.inline.hpp"
38 #include "runtime/os.hpp"
39 #include "runtime/sharedRuntime.hpp"
40 #include "runtime/vm_operations.hpp"
41
42 bool AOTLib::_narrow_oop_shift_initialized = false;
43 int AOTLib::_narrow_oop_shift = 0;
44 int AOTLib::_narrow_klass_shift = 0;
45
46 address AOTLib::load_symbol(const char *name) {
47 address symbol = (address) os::dll_lookup(_dl_handle, name);
48 if (symbol == NULL) {
49 tty->print_cr("Shared file %s error: missing %s", _name, name);
50 vm_exit(1);
51 }
52 return symbol;
53 }
54
55 Klass* AOTCodeHeap::get_klass_from_got(const char* klass_name, int klass_len, const Method* method) {
56 AOTKlassData* klass_data = (AOTKlassData*)_lib->load_symbol(klass_name);
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 #include "precompiled.hpp"
25
26 #include "aot/aotCodeHeap.hpp"
27 #include "aot/aotLoader.hpp"
28 #include "ci/ciUtilities.hpp"
29 #include "classfile/javaAssertions.hpp"
30 #include "gc/shared/cardTable.hpp"
31 #include "gc/shared/cardTableModRefBS.hpp"
32 #include "gc/g1/heapRegion.hpp"
33 #include "gc/shared/gcLocker.hpp"
34 #include "interpreter/abstractInterpreter.hpp"
35 #include "jvmci/compilerRuntime.hpp"
36 #include "jvmci/jvmciRuntime.hpp"
37 #include "memory/allocation.inline.hpp"
38 #include "oops/method.inline.hpp"
39 #include "runtime/os.hpp"
40 #include "runtime/sharedRuntime.hpp"
41 #include "runtime/vm_operations.hpp"
42
43 bool AOTLib::_narrow_oop_shift_initialized = false;
44 int AOTLib::_narrow_oop_shift = 0;
45 int AOTLib::_narrow_klass_shift = 0;
46
47 address AOTLib::load_symbol(const char *name) {
48 address symbol = (address) os::dll_lookup(_dl_handle, name);
49 if (symbol == NULL) {
50 tty->print_cr("Shared file %s error: missing %s", _name, name);
51 vm_exit(1);
52 }
53 return symbol;
54 }
55
56 Klass* AOTCodeHeap::get_klass_from_got(const char* klass_name, int klass_len, const Method* method) {
57 AOTKlassData* klass_data = (AOTKlassData*)_lib->load_symbol(klass_name);
|