Mercurial > hg > graal-jvmci-8
diff src/share/vm/c1/c1_Compilation.hpp @ 1899:42a10fc37986
6991577: add IfOp optimization to C1
Summary: Ifop optimization for c1
Reviewed-by: never, phh, iveresov
author | roland |
---|---|
date | Fri, 15 Oct 2010 09:38:20 +0200 |
parents | f02a8bbe6ed4 |
children | f95d63e2154a |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_Compilation.hpp Wed Oct 13 15:38:14 2010 -0700 +++ b/src/share/vm/c1/c1_Compilation.hpp Fri Oct 15 09:38:20 2010 +0200 @@ -178,15 +178,11 @@ return (int) NMethodSizeLimit; // default 256K or 512K #else // conditional branches on PPC are restricted to 16 bit signed - return MAX2((unsigned int)NMethodSizeLimit,32*K); + return MIN2((unsigned int)NMethodSizeLimit,32*K); #endif } static int desired_max_constant_size() { -#ifndef PPC - return (int) NMethodSizeLimit / 10; // about 25K -#else - return (MAX2((unsigned int)NMethodSizeLimit, 32*K)) / 10; -#endif + return desired_max_code_buffer_size() / 10; } static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate);