changeset 4032:b5f6465019f6

8006548: version wrong in new constantPool code Summary: fix increment problem with saved_version Reviewed-by: dholmes
author coleenp
date Thu, 17 Jan 2013 22:11:57 -0500
parents b14da2e6f2dc
children c07c102cbad7
files src/share/vm/oops/constantPool.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/constantPool.hpp	Thu Jan 17 13:40:31 2013 -0500
+++ b/src/share/vm/oops/constantPool.hpp	Thu Jan 17 22:11:57 2013 -0500
@@ -787,7 +787,7 @@
   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; }