< prev index next >

src/share/vm/code/icBuffer.cpp

Print this page
rev 7800 : [mq]: cleanupOopInlineHpp


  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_interface/collectedHeap.inline.hpp"
  32 #include "interpreter/interpreter.hpp"
  33 #include "interpreter/linkResolver.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "memory/universe.inline.hpp"
  36 #include "oops/method.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "oops/oop.inline2.hpp"
  39 #include "runtime/mutexLocker.hpp"
  40 #include "runtime/stubRoutines.hpp"
  41 
  42 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  43 
  44 DEF_STUB_INTERFACE(ICStub);
  45 
  46 StubQueue* InlineCacheBuffer::_buffer    = NULL;
  47 ICStub*    InlineCacheBuffer::_next_stub = NULL;
  48 
  49 CompiledICHolder* InlineCacheBuffer::_pending_released = NULL;
  50 int InlineCacheBuffer::_pending_count = 0;
  51 
  52 void ICStub::finalize() {
  53   if (!is_empty()) {
  54     ResourceMark rm;
  55     CompiledIC *ic = CompiledIC_at(CodeCache::find_nmethod(ic_site()), ic_site());
  56     assert(CodeCache::find_nmethod(ic->instruction_address()) != NULL, "inline cache in non-nmethod?");
  57 
  58     assert(this == ICStub_from_destination_address(ic->stub_address()), "wrong owner of ic buffer");




  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_interface/collectedHeap.inline.hpp"
  32 #include "interpreter/interpreter.hpp"
  33 #include "interpreter/linkResolver.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "memory/universe.inline.hpp"
  36 #include "oops/method.hpp"
  37 #include "oops/oop.inline.hpp"

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


< prev index next >