< prev index next >

src/hotspot/share/code/icBuffer.cpp

Print this page
rev 49211 : 8199472: Fix non-PCH build after JDK-8199319


  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 
  25 #include "precompiled.hpp"
  26 #include "code/codeCache.hpp"
  27 #include "code/compiledIC.hpp"
  28 #include "code/icBuffer.hpp"
  29 #include "code/nmethod.hpp"
  30 #include "code/scopeDesc.hpp"
  31 #include "gc/shared/collectedHeap.inline.hpp"
  32 #include "interpreter/interpreter.hpp"
  33 #include "interpreter/linkResolver.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "memory/universe.hpp"
  36 #include "oops/method.hpp"
  37 #include "oops/oop.inline.hpp"

  38 #include "runtime/mutexLocker.hpp"
  39 #include "runtime/stubRoutines.hpp"
  40 
  41 DEF_STUB_INTERFACE(ICStub);
  42 
  43 StubQueue* InlineCacheBuffer::_buffer    = NULL;
  44 ICStub*    InlineCacheBuffer::_next_stub = NULL;
  45 
  46 CompiledICHolder* InlineCacheBuffer::_pending_released = NULL;
  47 int InlineCacheBuffer::_pending_count = 0;
  48 
  49 void ICStub::finalize() {
  50   if (!is_empty()) {
  51     ResourceMark rm;
  52     CompiledIC *ic = CompiledIC_at(CodeCache::find_compiled(ic_site()), ic_site());
  53     assert(CodeCache::find_compiled(ic->instruction_address()) != NULL, "inline cache in non-compiled?");
  54 
  55     assert(this == ICStub_from_destination_address(ic->stub_address()), "wrong owner of ic buffer");
  56     ic->set_ic_destination_and_value(destination(), cached_value());
  57   }




  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 
  25 #include "precompiled.hpp"
  26 #include "code/codeCache.hpp"
  27 #include "code/compiledIC.hpp"
  28 #include "code/icBuffer.hpp"
  29 #include "code/nmethod.hpp"
  30 #include "code/scopeDesc.hpp"
  31 #include "gc/shared/collectedHeap.inline.hpp"
  32 #include "interpreter/interpreter.hpp"
  33 #include "interpreter/linkResolver.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "memory/universe.hpp"
  36 #include "oops/method.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "runtime/handles.inline.hpp"
  39 #include "runtime/mutexLocker.hpp"
  40 #include "runtime/stubRoutines.hpp"
  41 
  42 DEF_STUB_INTERFACE(ICStub);
  43 
  44 StubQueue* InlineCacheBuffer::_buffer    = NULL;
  45 ICStub*    InlineCacheBuffer::_next_stub = NULL;
  46 
  47 CompiledICHolder* InlineCacheBuffer::_pending_released = NULL;
  48 int InlineCacheBuffer::_pending_count = 0;
  49 
  50 void ICStub::finalize() {
  51   if (!is_empty()) {
  52     ResourceMark rm;
  53     CompiledIC *ic = CompiledIC_at(CodeCache::find_compiled(ic_site()), ic_site());
  54     assert(CodeCache::find_compiled(ic->instruction_address()) != NULL, "inline cache in non-compiled?");
  55 
  56     assert(this == ICStub_from_destination_address(ic->stub_address()), "wrong owner of ic buffer");
  57     ic->set_ic_destination_and_value(destination(), cached_value());
  58   }


< prev index next >