Mercurial > hg > truffle
comparison src/cpu/sparc/vm/interp_masm_sparc.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 | 6b2273dd6fa9 |
children | 87684f1a88b5 |
comparison
equal
deleted
inserted
replaced
966:bb287c042e99 | 967:6918603297f7 |
---|---|
1694 } | 1694 } |
1695 | 1695 |
1696 void InterpreterMacroAssembler::record_klass_in_profile_helper( | 1696 void InterpreterMacroAssembler::record_klass_in_profile_helper( |
1697 Register receiver, Register scratch, | 1697 Register receiver, Register scratch, |
1698 int start_row, Label& done) { | 1698 int start_row, Label& done) { |
1699 if (TypeProfileWidth == 0) | |
1700 return; | |
1701 | |
1699 int last_row = VirtualCallData::row_limit() - 1; | 1702 int last_row = VirtualCallData::row_limit() - 1; |
1700 assert(start_row <= last_row, "must be work left to do"); | 1703 assert(start_row <= last_row, "must be work left to do"); |
1701 // Test this row for both the receiver and for null. | 1704 // Test this row for both the receiver and for null. |
1702 // Take any of three different outcomes: | 1705 // Take any of three different outcomes: |
1703 // 1. found receiver => increment count and goto done | 1706 // 1. found receiver => increment count and goto done |