Request for reviews (XS): 6969569: assert(is_static() && is_constant()) failed: illegal call to constant_value()
tom.rodriguez at oracle.com
Fri Jul 23 10:19:37 PDT 2010
On Jul 23, 2010, at 9:51 AM, Vladimir Kozlov wrote:
> The evaluation and suggested fix were done by John.
> Fixed 6969569: assert(is_static() && is_constant()) failed: illegal call to constant_value()
> All callers of ciField::constant_value must be guarded by
> both is_constant and is_static. For non-static fields,
> the correct accessor is ciField::constant_value_of.
> PhaseMacroExpand::scalar_replacement() and ciField::print()
> have a missing is_static guard.
> Add missing is_static guard.
> Tested with failed case and JPRT.
More information about the hotspot-compiler-dev