1.1 --- a/src/share/vm/oops/methodData.cpp Wed Mar 20 17:04:45 2013 -0700 1.2 +++ b/src/share/vm/oops/methodData.cpp Thu Mar 21 09:27:54 2013 +0100 1.3 @@ -392,6 +392,9 @@ 1.4 } 1.5 1.6 int MethodData::bytecode_cell_count(Bytecodes::Code code) { 1.7 +#if defined(COMPILER1) && !defined(COMPILER2) 1.8 + return no_profile_data; 1.9 +#else 1.10 switch (code) { 1.11 case Bytecodes::_checkcast: 1.12 case Bytecodes::_instanceof: 1.13 @@ -438,6 +441,7 @@ 1.14 return variable_cell_count; 1.15 } 1.16 return no_profile_data; 1.17 +#endif 1.18 } 1.19 1.20 // Compute the size of the profiling information corresponding to 1.21 @@ -509,6 +513,9 @@ 1.22 // the segment in bytes. 1.23 int MethodData::initialize_data(BytecodeStream* stream, 1.24 int data_index) { 1.25 +#if defined(COMPILER1) && !defined(COMPILER2) 1.26 + return 0; 1.27 +#else 1.28 int cell_count = -1; 1.29 int tag = DataLayout::no_tag; 1.30 DataLayout* data_layout = data_layout_at(data_index); 1.31 @@ -587,6 +594,7 @@ 1.32 assert(!bytecode_has_profile(c), "agree w/ !BHP"); 1.33 return 0; 1.34 } 1.35 +#endif 1.36 } 1.37 1.38 // Get the data at an arbitrary (sort of) data index.