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