Mercurial > hg > truffle
diff src/share/vm/opto/runtime.cpp @ 10274:e76dd894b984
8012292: optimized build with GCC broken
Summary: Some #ifndef PRODUCT should be #ifdef ASSERT
Reviewed-by: kvn, twisti
Contributed-by: gdub <duboscq@ssw.jku.at>
author | roland |
---|---|
date | Wed, 24 Apr 2013 14:26:09 +0200 |
parents | 2d6c433b1f38 |
children | 836a62f43af9 b800986664f4 d2907f74462e |
line wrap: on
line diff
--- a/src/share/vm/opto/runtime.cpp Fri May 03 09:32:50 2013 +0200 +++ b/src/share/vm/opto/runtime.cpp Wed Apr 24 14:26:09 2013 +0200 @@ -126,17 +126,15 @@ // This should be called in an assertion at the start of OptoRuntime routines // which are entered from compiled code (all of them) -#ifndef PRODUCT +#ifdef ASSERT static bool check_compiled_frame(JavaThread* thread) { assert(thread->last_frame().is_runtime_frame(), "cannot call runtime directly from compiled code"); -#ifdef ASSERT RegisterMap map(thread, false); frame caller = thread->last_frame().sender(&map); assert(caller.is_compiled_frame(), "not being called from compiled like code"); -#endif /* ASSERT */ return true; } -#endif +#endif // ASSERT #define gen(env, var, type_func_gen, c_func, fancy_jump, pass_tls, save_arg_regs, return_pc) \