Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/method.cpp @ 20528:f0bedf980c65
Merge
author | asaha |
---|---|
date | Tue, 16 Sep 2014 13:55:38 -0700 |
parents | bc4ce33c0985 |
children | 966205f0e717 |
comparison
equal
deleted
inserted
replaced
20527:8cb56c8cb30d | 20528:f0bedf980c65 |
---|---|
729 } | 729 } |
730 tty->cr(); | 730 tty->cr(); |
731 } | 731 } |
732 if ((TraceDeoptimization || LogCompilation) && (xtty != NULL)) { | 732 if ((TraceDeoptimization || LogCompilation) && (xtty != NULL)) { |
733 ttyLocker ttyl; | 733 ttyLocker ttyl; |
734 xtty->begin_elem("make_not_%scompilable thread='" UINTX_FORMAT "'", | 734 xtty->begin_elem("make_not_compilable thread='" UINTX_FORMAT "' osr='%d' level='%d'", |
735 is_osr ? "osr_" : "", os::current_thread_id()); | 735 os::current_thread_id(), is_osr, comp_level); |
736 if (reason != NULL) { | 736 if (reason != NULL) { |
737 xtty->print(" reason=\'%s\'", reason); | 737 xtty->print(" reason=\'%s\'", reason); |
738 } | 738 } |
739 xtty->method(this); | 739 xtty->method(this); |
740 xtty->stamp(); | 740 xtty->stamp(); |
1634 return (mcs == NULL) ? 0 : mcs->backedge_counter()->count(); | 1634 return (mcs == NULL) ? 0 : mcs->backedge_counter()->count(); |
1635 } | 1635 } |
1636 } | 1636 } |
1637 | 1637 |
1638 int Method::highest_comp_level() const { | 1638 int Method::highest_comp_level() const { |
1639 const MethodData* mdo = method_data(); | 1639 const MethodCounters* mcs = method_counters(); |
1640 if (mdo != NULL) { | 1640 if (mcs != NULL) { |
1641 return mdo->highest_comp_level(); | 1641 return mcs->highest_comp_level(); |
1642 } else { | 1642 } else { |
1643 return CompLevel_none; | 1643 return CompLevel_none; |
1644 } | 1644 } |
1645 } | 1645 } |
1646 | 1646 |
1647 int Method::highest_osr_comp_level() const { | 1647 int Method::highest_osr_comp_level() const { |
1648 const MethodData* mdo = method_data(); | 1648 const MethodCounters* mcs = method_counters(); |
1649 if (mdo != NULL) { | 1649 if (mcs != NULL) { |
1650 return mdo->highest_osr_comp_level(); | 1650 return mcs->highest_osr_comp_level(); |
1651 } else { | 1651 } else { |
1652 return CompLevel_none; | 1652 return CompLevel_none; |
1653 } | 1653 } |
1654 } | 1654 } |
1655 | 1655 |
1656 void Method::set_highest_comp_level(int level) { | 1656 void Method::set_highest_comp_level(int level) { |
1657 MethodData* mdo = method_data(); | 1657 MethodCounters* mcs = method_counters(); |
1658 if (mdo != NULL) { | 1658 if (mcs != NULL) { |
1659 mdo->set_highest_comp_level(level); | 1659 mcs->set_highest_comp_level(level); |
1660 } | 1660 } |
1661 } | 1661 } |
1662 | 1662 |
1663 void Method::set_highest_osr_comp_level(int level) { | 1663 void Method::set_highest_osr_comp_level(int level) { |
1664 MethodData* mdo = method_data(); | 1664 MethodCounters* mcs = method_counters(); |
1665 if (mdo != NULL) { | 1665 if (mcs != NULL) { |
1666 mdo->set_highest_osr_comp_level(level); | 1666 mcs->set_highest_osr_comp_level(level); |
1667 } | 1667 } |
1668 } | 1668 } |
1669 | 1669 |
1670 BreakpointInfo::BreakpointInfo(Method* m, int bci) { | 1670 BreakpointInfo::BreakpointInfo(Method* m, int bci) { |
1671 _bci = bci; | 1671 _bci = bci; |