comparison src/share/vm/opto/c2compiler.cpp @ 1397:b4776199210f

6943485: JVMTI always on capabilities change code generation too much Reviewed-by: twisti, dcubed
author never
date Mon, 26 Apr 2010 23:59:45 -0700
parents bd02caa94611
children c18cbe5936b8
comparison
equal deleted inserted replaced
1396:d7f654633cfe 1397:b4776199210f
1 /* 1 /*
2 * Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1999-2010 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
103 if (!is_initialized()) { 103 if (!is_initialized()) {
104 initialize(); 104 initialize();
105 } 105 }
106 bool subsume_loads = true; 106 bool subsume_loads = true;
107 bool do_escape_analysis = DoEscapeAnalysis && 107 bool do_escape_analysis = DoEscapeAnalysis &&
108 !(env->jvmti_can_hotswap_or_post_breakpoint() || 108 !env->jvmti_can_access_local_variables();
109 env->jvmti_can_examine_or_deopt_anywhere());
110 while (!env->failing()) { 109 while (!env->failing()) {
111 // Attempt to compile while subsuming loads into machine instructions. 110 // Attempt to compile while subsuming loads into machine instructions.
112 Compile C(env, this, target, entry_bci, subsume_loads, do_escape_analysis); 111 Compile C(env, this, target, entry_bci, subsume_loads, do_escape_analysis);
113 112
114 // Check result and retry if appropriate. 113 // Check result and retry if appropriate.