Mercurial > hg > truffle
comparison src/cpu/x86/vm/interp_masm_x86_64.cpp @ 967:6918603297f7
6858208: jvm crash when specifying TypeProfileWidth=0 on jdk 6.0
Summary: Add an explicit check for TypeProfileWidth == 0 in record_klass_in_profile_helper() functions.
Reviewed-by: never, coleenp
author | poonam |
---|---|
date | Tue, 01 Sep 2009 23:34:08 -0700 |
parents | 3f06f139ef53 |
children | 85f13cdfbc1d |
comparison
equal
deleted
inserted
replaced
966:bb287c042e99 | 967:6918603297f7 |
---|---|
1270 // See below for example code. | 1270 // See below for example code. |
1271 void InterpreterMacroAssembler::record_klass_in_profile_helper( | 1271 void InterpreterMacroAssembler::record_klass_in_profile_helper( |
1272 Register receiver, Register mdp, | 1272 Register receiver, Register mdp, |
1273 Register reg2, | 1273 Register reg2, |
1274 int start_row, Label& done) { | 1274 int start_row, Label& done) { |
1275 if (TypeProfileWidth == 0) | |
1276 return; | |
1277 | |
1275 int last_row = VirtualCallData::row_limit() - 1; | 1278 int last_row = VirtualCallData::row_limit() - 1; |
1276 assert(start_row <= last_row, "must be work left to do"); | 1279 assert(start_row <= last_row, "must be work left to do"); |
1277 // Test this row for both the receiver and for null. | 1280 // Test this row for both the receiver and for null. |
1278 // Take any of three different outcomes: | 1281 // Take any of three different outcomes: |
1279 // 1. found receiver => increment count and goto done | 1282 // 1. found receiver => increment count and goto done |