6943485: JVMTI always on capabilities change code generation too much

Reviewed-by: twisti, dcubed
This commit is contained in:
Tom Rodriguez 2010-04-26 23:59:45 -07:00
parent cd48f31efe
commit eb534d777a
15 changed files with 20 additions and 54 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 1999-2010 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -105,8 +105,7 @@ void C2Compiler::compile_method(ciEnv* env,
}
bool subsume_loads = true;
bool do_escape_analysis = DoEscapeAnalysis &&
!(env->jvmti_can_hotswap_or_post_breakpoint() ||
env->jvmti_can_examine_or_deopt_anywhere());
!env->jvmti_can_access_local_variables();
while (!env->failing()) {
// Attempt to compile while subsuming loads into machine instructions.
Compile C(env, this, target, entry_bci, subsume_loads, do_escape_analysis);