提交 92cad0d0 编写于 作者: C coleenp

8006548: version wrong in new constantPool code

Summary: fix increment problem with saved_version
Reviewed-by: dholmes
上级 140c62f9
......@@ -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; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册