< prev index next >

src/hotspot/share/code/icBuffer.cpp


*** 40,50 **** #include "runtime/stubRoutines.hpp" DEF_STUB_INTERFACE(ICStub); StubQueue* InlineCacheBuffer::_buffer = NULL; - ICStub* InlineCacheBuffer::_next_stub = NULL; CompiledICHolder* InlineCacheBuffer::_pending_released = NULL; int InlineCacheBuffer::_pending_count = 0; void ICStub::finalize() { --- 40,49 ---- ***************
*** 101,116 **** #endif //----------------------------------------------------------------------------------------------- // Implementation of InlineCacheBuffer - void InlineCacheBuffer::init_next_stub() { - ICStub* ic_stub = (ICStub*)buffer()->request_committed (ic_stub_code_size()); - assert (ic_stub != NULL, "no room for a single stub"); - set_next_stub(ic_stub); - } - void InlineCacheBuffer::initialize() { if (_buffer != NULL) return; // already initialized _buffer = new StubQueue(new ICStubInterface, 10*K, InlineCacheBuffer_lock, "InlineCacheBuffer"); assert (_buffer != NULL, "cannot allocate InlineCacheBuffer"); --- 100,109 ---- ***************
*** 154,164 **** return buffer()->contains(instruction_address); } bool InlineCacheBuffer::is_empty() { ! return buffer()->number_of_stubs() == 0; // always has sentinel } void InlineCacheBuffer_init() { InlineCacheBuffer::initialize(); --- 147,157 ---- return buffer()->contains(instruction_address); } bool InlineCacheBuffer::is_empty() { ! return buffer()->number_of_stubs() == 0; } void InlineCacheBuffer_init() { InlineCacheBuffer::initialize();
< prev index next >