@@ -1516,9 +1516,14 @@ void CodeCache::print_trace(const char* event, CodeBlob* cb, uint size) {
1516
1516
void CodeCache::print_internals () {
1517
1517
int nmethodCount = 0 ;
1518
1518
int runtimeStubCount = 0 ;
1519
+ int upcallStubCount = 0 ;
1519
1520
int adapterCount = 0 ;
1521
+ int mhAdapterCount = 0 ;
1522
+ int vtableBlobCount = 0 ;
1520
1523
int deoptimizationStubCount = 0 ;
1521
1524
int uncommonTrapStubCount = 0 ;
1525
+ int exceptionStubCount = 0 ;
1526
+ int safepointStubCount = 0 ;
1522
1527
int bufferBlobCount = 0 ;
1523
1528
int total = 0 ;
1524
1529
int nmethodNotEntrant = 0 ;
@@ -1555,12 +1560,22 @@ void CodeCache::print_internals() {
1555
1560
}
1556
1561
} else if (cb->is_runtime_stub ()) {
1557
1562
runtimeStubCount++;
1563
+ } else if (cb->is_upcall_stub ()) {
1564
+ upcallStubCount++;
1558
1565
} else if (cb->is_deoptimization_stub ()) {
1559
1566
deoptimizationStubCount++;
1560
1567
} else if (cb->is_uncommon_trap_stub ()) {
1561
1568
uncommonTrapStubCount++;
1569
+ } else if (cb->is_exception_stub ()) {
1570
+ exceptionStubCount++;
1571
+ } else if (cb->is_safepoint_stub ()) {
1572
+ safepointStubCount++;
1562
1573
} else if (cb->is_adapter_blob ()) {
1563
1574
adapterCount++;
1575
+ } else if (cb->is_method_handles_adapter_blob ()) {
1576
+ mhAdapterCount++;
1577
+ } else if (cb->is_vtable_blob ()) {
1578
+ vtableBlobCount++;
1564
1579
} else if (cb->is_buffer_blob ()) {
1565
1580
bufferBlobCount++;
1566
1581
}
@@ -1587,10 +1602,15 @@ void CodeCache::print_internals() {
1587
1602
tty->print_cr (" \t java: %d" ,nmethodJava);
1588
1603
tty->print_cr (" \t native: %d" ,nmethodNative);
1589
1604
tty->print_cr (" runtime_stubs: %d" ,runtimeStubCount);
1605
+ tty->print_cr (" upcall_stubs: %d" ,upcallStubCount);
1590
1606
tty->print_cr (" adapters: %d" ,adapterCount);
1607
+ tty->print_cr (" MH adapters: %d" ,mhAdapterCount);
1608
+ tty->print_cr (" VTables: %d" ,vtableBlobCount);
1591
1609
tty->print_cr (" buffer blobs: %d" ,bufferBlobCount);
1592
1610
tty->print_cr (" deoptimization_stubs: %d" ,deoptimizationStubCount);
1593
1611
tty->print_cr (" uncommon_traps: %d" ,uncommonTrapStubCount);
1612
+ tty->print_cr (" exception_stubs: %d" ,exceptionStubCount);
1613
+ tty->print_cr (" safepoint_stubs: %d" ,safepointStubCount);
1594
1614
tty->print_cr (" \n nmethod size distribution" );
1595
1615
tty->print_cr (" -------------------------------------------------" );
1596
1616
@@ -1616,9 +1636,14 @@ void CodeCache::print() {
1616
1636
1617
1637
CodeBlob_sizes live[CompLevel_full_optimization + 1 ];
1618
1638
CodeBlob_sizes runtimeStub;
1639
+ CodeBlob_sizes upcallStub;
1619
1640
CodeBlob_sizes uncommonTrapStub;
1620
1641
CodeBlob_sizes deoptimizationStub;
1642
+ CodeBlob_sizes exceptionStub;
1643
+ CodeBlob_sizes safepointStub;
1621
1644
CodeBlob_sizes adapter;
1645
+ CodeBlob_sizes mhAdapter;
1646
+ CodeBlob_sizes vtableBlob;
1622
1647
CodeBlob_sizes bufferBlob;
1623
1648
CodeBlob_sizes other;
1624
1649
@@ -1630,12 +1655,22 @@ void CodeCache::print() {
1630
1655
live[level].add (cb);
1631
1656
} else if (cb->is_runtime_stub ()) {
1632
1657
runtimeStub.add (cb);
1658
+ } else if (cb->is_upcall_stub ()) {
1659
+ upcallStub.add (cb);
1633
1660
} else if (cb->is_deoptimization_stub ()) {
1634
1661
deoptimizationStub.add (cb);
1635
1662
} else if (cb->is_uncommon_trap_stub ()) {
1636
1663
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);
1637
1668
} else if (cb->is_adapter_blob ()) {
1638
1669
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);
1639
1674
} else if (cb->is_buffer_blob ()) {
1640
1675
bufferBlob.add (cb);
1641
1676
} else {
@@ -1666,9 +1701,14 @@ void CodeCache::print() {
1666
1701
const CodeBlob_sizes* sizes;
1667
1702
} non_nmethod_blobs[] = {
1668
1703
{ " runtime" , &runtimeStub },
1704
+ { " upcall" , &upcallStub },
1669
1705
{ " uncommon trap" , &uncommonTrapStub },
1670
1706
{ " deoptimization" , &deoptimizationStub },
1707
+ { " exception" , &exceptionStub },
1708
+ { " safepoint" , &safepointStub },
1671
1709
{ " adapter" , &adapter },
1710
+ { " mh_adapter" , &mhAdapter },
1711
+ { " vtable" , &vtableBlob },
1672
1712
{ " buffer blob" , &bufferBlob },
1673
1713
{ " other" , &other },
1674
1714
};
0 commit comments