< prev index next >

src/share/vm/oops/symbol.cpp

Print this page
rev 13486 : [mq]: add_fix_calls

@@ -217,11 +217,11 @@
   }
 }
 
 void Symbol::decrement_refcount() {
   if (_refcount >= 0) { // not a permanent symbol
-    jshort new_value = Atomic::add(-1, &_refcount);
+    short new_value = Atomic::add(short(-1), &_refcount);
 #ifdef ASSERT
     if (new_value == -1) { // we have transitioned from 0 -> -1
       print();
       assert(false, "reference count underflow for symbol");
     }
< prev index next >