< prev index next >

src/hotspot/share/aot/aotCodeHeap.cpp

Print this page
rev 52821 : [mq]: 8214850-rename-vm_operations


  23 
  24 #include "precompiled.hpp"
  25 
  26 #include "aot/aotCodeHeap.hpp"
  27 #include "aot/aotLoader.hpp"
  28 #include "ci/ciUtilities.inline.hpp"
  29 #include "classfile/javaAssertions.hpp"
  30 #include "gc/shared/cardTable.hpp"
  31 #include "gc/shared/cardTableBarrierSet.hpp"
  32 #include "gc/shared/gcConfig.hpp"
  33 #include "gc/g1/heapRegion.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/handles.inline.hpp"
  40 #include "runtime/os.hpp"
  41 #include "runtime/safepointVerifiers.hpp"
  42 #include "runtime/sharedRuntime.hpp"
  43 #include "runtime/vm_operations.hpp"
  44 
  45 bool AOTLib::_narrow_oop_shift_initialized = false;
  46 int  AOTLib::_narrow_oop_shift = 0;
  47 int  AOTLib::_narrow_klass_shift = 0;
  48 
  49 address AOTLib::load_symbol(const char *name) {
  50   address symbol = (address) os::dll_lookup(_dl_handle, name);
  51   if (symbol == NULL) {
  52     tty->print_cr("Shared file %s error: missing %s", _name, name);
  53     vm_exit(1);
  54   }
  55   return symbol;
  56 }
  57 
  58 Klass* AOTCodeHeap::get_klass_from_got(const char* klass_name, int klass_len, const Method* method) {
  59   AOTKlassData* klass_data = (AOTKlassData*)_lib->load_symbol(klass_name);
  60   Klass* k = (Klass*)_klasses_got[klass_data->_got_index];
  61   if (k == NULL) {
  62     Thread* thread = Thread::current();
  63     k = lookup_klass(klass_name, klass_len, method, thread);




  23 
  24 #include "precompiled.hpp"
  25 
  26 #include "aot/aotCodeHeap.hpp"
  27 #include "aot/aotLoader.hpp"
  28 #include "ci/ciUtilities.inline.hpp"
  29 #include "classfile/javaAssertions.hpp"
  30 #include "gc/shared/cardTable.hpp"
  31 #include "gc/shared/cardTableBarrierSet.hpp"
  32 #include "gc/shared/gcConfig.hpp"
  33 #include "gc/g1/heapRegion.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/handles.inline.hpp"
  40 #include "runtime/os.hpp"
  41 #include "runtime/safepointVerifiers.hpp"
  42 #include "runtime/sharedRuntime.hpp"
  43 #include "runtime/vmOperations.hpp"
  44 
  45 bool AOTLib::_narrow_oop_shift_initialized = false;
  46 int  AOTLib::_narrow_oop_shift = 0;
  47 int  AOTLib::_narrow_klass_shift = 0;
  48 
  49 address AOTLib::load_symbol(const char *name) {
  50   address symbol = (address) os::dll_lookup(_dl_handle, name);
  51   if (symbol == NULL) {
  52     tty->print_cr("Shared file %s error: missing %s", _name, name);
  53     vm_exit(1);
  54   }
  55   return symbol;
  56 }
  57 
  58 Klass* AOTCodeHeap::get_klass_from_got(const char* klass_name, int klass_len, const Method* method) {
  59   AOTKlassData* klass_data = (AOTKlassData*)_lib->load_symbol(klass_name);
  60   Klass* k = (Klass*)_klasses_got[klass_data->_got_index];
  61   if (k == NULL) {
  62     Thread* thread = Thread::current();
  63     k = lookup_klass(klass_name, klass_len, method, thread);


< prev index next >