8006548: version wrong in new constantPool code
Fix increment problem with saved_version Reviewed-by: dholmes
This commit is contained in:
parent
e508ba9b0b
commit
833b7fcfff
@ -787,7 +787,7 @@ class ConstantPool : public Metadata {
|
||||
int version() const { return _saved._version; }
|
||||
void set_version(int version) { _saved._version = version; }
|
||||
void increment_and_save_version(int version) {
|
||||
_saved._version = version >= 0 ? version++ : version; // keep overflow
|
||||
_saved._version = version >= 0 ? (version + 1) : version; // keep overflow
|
||||
}
|
||||
|
||||
void set_resolved_reference_length(int length) { _saved._resolved_reference_length = length; }
|
||||
|
Loading…
Reference in New Issue
Block a user