Mercurial > hg > graal-compiler
diff src/share/vm/code/vtableStubs.cpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 9341a9963d36 |
children | 52b4284cb496 |
line wrap: on
line diff
--- a/src/share/vm/code/vtableStubs.cpp Tue Apr 01 14:09:03 2014 +0200 +++ b/src/share/vm/code/vtableStubs.cpp Tue Apr 01 13:57:07 2014 +0200 @@ -55,9 +55,6 @@ const int chunk_factor = 32; if (_chunk == NULL || _chunk + real_size > _chunk_end) { const int bytes = chunk_factor * real_size + pd_code_alignment(); - - // There is a dependency on the name of the blob in src/share/vm/prims/jvmtiCodeBlobEvents.cpp - // If changing the name, update the other file accordingly. BufferBlob* blob = BufferBlob::create("vtable chunks", bytes); if (blob == NULL) { return NULL; @@ -65,6 +62,12 @@ _chunk = blob->content_begin(); _chunk_end = _chunk + bytes; Forte::register_stub("vtable stub", _chunk, _chunk_end); + // Notify JVMTI about this stub. The event will be recorded by the enclosing + // JvmtiDynamicCodeEventCollector and posted when this thread has released + // all locks. + if (JvmtiExport::should_post_dynamic_code_generated()) { + JvmtiExport::post_dynamic_code_generated_while_holding_locks("vtable stub", _chunk, _chunk_end); + } align_chunk(); } assert(_chunk + real_size <= _chunk_end, "bad allocation"); @@ -127,13 +130,6 @@ is_vtable_stub? "vtbl": "itbl", vtable_index, VtableStub::receiver_location()); Disassembler::decode(s->code_begin(), s->code_end()); } - // Notify JVMTI about this stub. The event will be recorded by the enclosing - // JvmtiDynamicCodeEventCollector and posted when this thread has released - // all locks. - if (JvmtiExport::should_post_dynamic_code_generated()) { - JvmtiExport::post_dynamic_code_generated_while_holding_locks(is_vtable_stub? "vtable stub": "itable stub", - s->code_begin(), s->code_end()); - } } return s->entry_point(); } @@ -199,14 +195,6 @@ VtableStubs::initialize(); } -void VtableStubs::vtable_stub_do(void f(VtableStub*)) { - for (int i = 0; i < N; i++) { - for (VtableStub* s = _table[i]; s != NULL; s = s->next()) { - f(s); - } - } -} - //----------------------------------------------------------------------------------------------------- // Non-product code