< prev index next >

src/hotspot/share/code/compiledIC.cpp

Print this page




  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "code/codeCache.hpp"
  28 #include "code/compiledIC.hpp"
  29 #include "code/icBuffer.hpp"
  30 #include "code/nmethod.hpp"
  31 #include "code/vtableStubs.hpp"
  32 #include "interpreter/interpreter.hpp"
  33 #include "interpreter/linkResolver.hpp"
  34 #include "memory/metadataFactory.hpp"
  35 #include "memory/oopFactory.hpp"
  36 #include "memory/resourceArea.hpp"
  37 #include "oops/method.inline.hpp"
  38 #include "oops/oop.inline.hpp"
  39 #include "oops/symbol.hpp"

  40 #include "runtime/icache.hpp"
  41 #include "runtime/sharedRuntime.hpp"
  42 #include "runtime/stubRoutines.hpp"
  43 #include "utilities/events.hpp"
  44 
  45 
  46 // Every time a compiled IC is changed or its type is being accessed,
  47 // either the CompiledIC_lock must be set or we must be at a safe point.
  48 
  49 //-----------------------------------------------------------------------------
  50 // Low-level access to an inline cache. Private, since they might not be
  51 // MT-safe to use.
  52 
  53 void* CompiledIC::cached_value() const {
  54   assert (CompiledIC_lock->is_locked() || SafepointSynchronize::is_at_safepoint(), "");
  55   assert (!is_optimized(), "an optimized virtual call does not have a cached metadata");
  56 
  57   if (!is_in_transition_state()) {
  58     void* data = get_data();
  59     // If we let the metadata value here be initialized to zero...




  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "code/codeCache.hpp"
  28 #include "code/compiledIC.hpp"
  29 #include "code/icBuffer.hpp"
  30 #include "code/nmethod.hpp"
  31 #include "code/vtableStubs.hpp"
  32 #include "interpreter/interpreter.hpp"
  33 #include "interpreter/linkResolver.hpp"
  34 #include "memory/metadataFactory.hpp"
  35 #include "memory/oopFactory.hpp"
  36 #include "memory/resourceArea.hpp"
  37 #include "oops/method.inline.hpp"
  38 #include "oops/oop.inline.hpp"
  39 #include "oops/symbol.hpp"
  40 #include "runtime/handles.inline.hpp"
  41 #include "runtime/icache.hpp"
  42 #include "runtime/sharedRuntime.hpp"
  43 #include "runtime/stubRoutines.hpp"
  44 #include "utilities/events.hpp"
  45 
  46 
  47 // Every time a compiled IC is changed or its type is being accessed,
  48 // either the CompiledIC_lock must be set or we must be at a safe point.
  49 
  50 //-----------------------------------------------------------------------------
  51 // Low-level access to an inline cache. Private, since they might not be
  52 // MT-safe to use.
  53 
  54 void* CompiledIC::cached_value() const {
  55   assert (CompiledIC_lock->is_locked() || SafepointSynchronize::is_at_safepoint(), "");
  56   assert (!is_optimized(), "an optimized virtual call does not have a cached metadata");
  57 
  58   if (!is_in_transition_state()) {
  59     void* data = get_data();
  60     // If we let the metadata value here be initialized to zero...


< prev index next >