Mercurial > hg > truffle
comparison src/share/vm/ci/ciField.cpp @ 1682:e5dfb3ccb88b
6969569: assert(is_static() && is_constant()) failed: illegal call to constant_value()
Summary: Add missing is_static guard.
Reviewed-by: twisti
author | kvn |
---|---|
date | Fri, 23 Jul 2010 10:07:46 -0700 |
parents | c18cbe5936b8 |
children | 2d26b0046e0d f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1663:7139e81efd2d | 1682:e5dfb3ccb88b |
---|---|
337 _name->print_symbol(); | 337 _name->print_symbol(); |
338 tty->print(" offset=%d type=", _offset); | 338 tty->print(" offset=%d type=", _offset); |
339 if (_type != NULL) _type->print_name(); | 339 if (_type != NULL) _type->print_name(); |
340 else tty->print("(reference)"); | 340 else tty->print("(reference)"); |
341 tty->print(" is_constant=%s", bool_to_str(_is_constant)); | 341 tty->print(" is_constant=%s", bool_to_str(_is_constant)); |
342 if (_is_constant) { | 342 if (_is_constant && is_static()) { |
343 tty->print(" constant_value="); | 343 tty->print(" constant_value="); |
344 _constant_value.print(); | 344 _constant_value.print(); |
345 } | 345 } |
346 tty->print(">"); | 346 tty->print(">"); |
347 } | 347 } |