@@ -1516,9 +1516,14 @@ void CodeCache::print_trace(const char* event, CodeBlob* cb, uint size) {
15161516void CodeCache::print_internals () {
15171517 int nmethodCount = 0 ;
15181518 int runtimeStubCount = 0 ;
1519+ int upcallStubCount = 0 ;
15191520 int adapterCount = 0 ;
1521+ int mhAdapterCount = 0 ;
1522+ int vtableBlobCount = 0 ;
15201523 int deoptimizationStubCount = 0 ;
15211524 int uncommonTrapStubCount = 0 ;
1525+ int exceptionStubCount = 0 ;
1526+ int safepointStubCount = 0 ;
15221527 int bufferBlobCount = 0 ;
15231528 int total = 0 ;
15241529 int nmethodNotEntrant = 0 ;
@@ -1555,12 +1560,22 @@ void CodeCache::print_internals() {
15551560 }
15561561 } else if (cb->is_runtime_stub ()) {
15571562 runtimeStubCount++;
1563+ } else if (cb->is_upcall_stub ()) {
1564+ upcallStubCount++;
15581565 } else if (cb->is_deoptimization_stub ()) {
15591566 deoptimizationStubCount++;
15601567 } else if (cb->is_uncommon_trap_stub ()) {
15611568 uncommonTrapStubCount++;
1569+ } else if (cb->is_exception_stub ()) {
1570+ exceptionStubCount++;
1571+ } else if (cb->is_safepoint_stub ()) {
1572+ safepointStubCount++;
15621573 } else if (cb->is_adapter_blob ()) {
15631574 adapterCount++;
1575+ } else if (cb->is_method_handles_adapter_blob ()) {
1576+ mhAdapterCount++;
1577+ } else if (cb->is_vtable_blob ()) {
1578+ vtableBlobCount++;
15641579 } else if (cb->is_buffer_blob ()) {
15651580 bufferBlobCount++;
15661581 }
@@ -1587,10 +1602,15 @@ void CodeCache::print_internals() {
15871602 tty->print_cr (" \t java: %d" ,nmethodJava);
15881603 tty->print_cr (" \t native: %d" ,nmethodNative);
15891604 tty->print_cr (" runtime_stubs: %d" ,runtimeStubCount);
1605+ tty->print_cr (" upcall_stubs: %d" ,upcallStubCount);
15901606 tty->print_cr (" adapters: %d" ,adapterCount);
1607+ tty->print_cr (" MH adapters: %d" ,mhAdapterCount);
1608+ tty->print_cr (" VTables: %d" ,vtableBlobCount);
15911609 tty->print_cr (" buffer blobs: %d" ,bufferBlobCount);
15921610 tty->print_cr (" deoptimization_stubs: %d" ,deoptimizationStubCount);
15931611 tty->print_cr (" uncommon_traps: %d" ,uncommonTrapStubCount);
1612+ tty->print_cr (" exception_stubs: %d" ,exceptionStubCount);
1613+ tty->print_cr (" safepoint_stubs: %d" ,safepointStubCount);
15941614 tty->print_cr (" \n nmethod size distribution" );
15951615 tty->print_cr (" -------------------------------------------------" );
15961616
@@ -1616,9 +1636,14 @@ void CodeCache::print() {
16161636
16171637 CodeBlob_sizes live[CompLevel_full_optimization + 1 ];
16181638 CodeBlob_sizes runtimeStub;
1639+ CodeBlob_sizes upcallStub;
16191640 CodeBlob_sizes uncommonTrapStub;
16201641 CodeBlob_sizes deoptimizationStub;
1642+ CodeBlob_sizes exceptionStub;
1643+ CodeBlob_sizes safepointStub;
16211644 CodeBlob_sizes adapter;
1645+ CodeBlob_sizes mhAdapter;
1646+ CodeBlob_sizes vtableBlob;
16221647 CodeBlob_sizes bufferBlob;
16231648 CodeBlob_sizes other;
16241649
@@ -1630,12 +1655,22 @@ void CodeCache::print() {
16301655 live[level].add (cb);
16311656 } else if (cb->is_runtime_stub ()) {
16321657 runtimeStub.add (cb);
1658+ } else if (cb->is_upcall_stub ()) {
1659+ upcallStub.add (cb);
16331660 } else if (cb->is_deoptimization_stub ()) {
16341661 deoptimizationStub.add (cb);
16351662 } else if (cb->is_uncommon_trap_stub ()) {
16361663 uncommonTrapStub.add (cb);
1664+ } else if (cb->is_exception_stub ()) {
1665+ exceptionStub.add (cb);
1666+ } else if (cb->is_safepoint_stub ()) {
1667+ safepointStub.add (cb);
16371668 } else if (cb->is_adapter_blob ()) {
16381669 adapter.add (cb);
1670+ } else if (cb->is_method_handles_adapter_blob ()) {
1671+ mhAdapter.add (cb);
1672+ } else if (cb->is_vtable_blob ()) {
1673+ vtableBlob.add (cb);
16391674 } else if (cb->is_buffer_blob ()) {
16401675 bufferBlob.add (cb);
16411676 } else {
@@ -1666,9 +1701,14 @@ void CodeCache::print() {
16661701 const CodeBlob_sizes* sizes;
16671702 } non_nmethod_blobs[] = {
16681703 { " runtime" , &runtimeStub },
1704+ { " upcall" , &upcallStub },
16691705 { " uncommon trap" , &uncommonTrapStub },
16701706 { " deoptimization" , &deoptimizationStub },
1707+ { " exception" , &exceptionStub },
1708+ { " safepoint" , &safepointStub },
16711709 { " adapter" , &adapter },
1710+ { " mh_adapter" , &mhAdapter },
1711+ { " vtable" , &vtableBlob },
16721712 { " buffer blob" , &bufferBlob },
16731713 { " other" , &other },
16741714 };
0 commit comments