mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6385687: UseFastEmptyMethods/UseFastAccessorMethods considered harmful
Reviewed-by: kvn, jrose, phh
This commit is contained in:
parent
f33b8cbb7a
commit
3ad32dbe57
2 changed files with 7 additions and 4 deletions
|
@ -319,8 +319,11 @@ void JvmtiManageCapabilities::update() {
|
||||||
bool enter_all_methods =
|
bool enter_all_methods =
|
||||||
interp_events ||
|
interp_events ||
|
||||||
avail.can_generate_breakpoint_events;
|
avail.can_generate_breakpoint_events;
|
||||||
UseFastEmptyMethods = !enter_all_methods;
|
if (enter_all_methods) {
|
||||||
UseFastAccessorMethods = !enter_all_methods;
|
// Disable these when tracking the bytecodes
|
||||||
|
UseFastEmptyMethods = false;
|
||||||
|
UseFastAccessorMethods = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (avail.can_generate_breakpoint_events) {
|
if (avail.can_generate_breakpoint_events) {
|
||||||
RewriteFrequentPairs = false;
|
RewriteFrequentPairs = false;
|
||||||
|
|
|
@ -2726,10 +2726,10 @@ class CommandLineFlags {
|
||||||
product(bool, UseLoopCounter, true, \
|
product(bool, UseLoopCounter, true, \
|
||||||
"Increment invocation counter on backward branch") \
|
"Increment invocation counter on backward branch") \
|
||||||
\
|
\
|
||||||
product(bool, UseFastEmptyMethods, true, \
|
product(bool, UseFastEmptyMethods, false, \
|
||||||
"Use fast method entry code for empty methods") \
|
"Use fast method entry code for empty methods") \
|
||||||
\
|
\
|
||||||
product(bool, UseFastAccessorMethods, true, \
|
product(bool, UseFastAccessorMethods, false, \
|
||||||
"Use fast method entry code for accessor methods") \
|
"Use fast method entry code for accessor methods") \
|
||||||
\
|
\
|
||||||
product_pd(bool, UseOnStackReplacement, \
|
product_pd(bool, UseOnStackReplacement, \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue