6914002: unsigned compare problem after 5057818
authornever
Tue, 05 Jan 2010 16:12:26 -0800
changeset 4570 43d30f43697e
parent 4569 f372ea9e5ed4
child 4572 c8512afbd07f
6914002: unsigned compare problem after 5057818 Reviewed-by: kvn, twisti
hotspot/src/share/vm/code/nmethod.cpp
hotspot/src/share/vm/code/nmethod.hpp
--- a/hotspot/src/share/vm/code/nmethod.cpp	Tue Jan 05 11:16:09 2010 -0800
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Tue Jan 05 16:12:26 2010 -0800
@@ -1170,7 +1170,7 @@
 }
 
 // Common functionality for both make_not_entrant and make_zombie
-bool nmethod::make_not_entrant_or_zombie(int state) {
+bool nmethod::make_not_entrant_or_zombie(unsigned int state) {
   assert(state == zombie || state == not_entrant, "must be zombie or not_entrant");
 
   // If the method is already zombie there is nothing to do
--- a/hotspot/src/share/vm/code/nmethod.hpp	Tue Jan 05 11:16:09 2010 -0800
+++ b/hotspot/src/share/vm/code/nmethod.hpp	Tue Jan 05 16:12:26 2010 -0800
@@ -255,7 +255,7 @@
   const char* reloc_string_for(u_char* begin, u_char* end);
   // Returns true if this thread changed the state of the nmethod or
   // false if another thread performed the transition.
-  bool make_not_entrant_or_zombie(int state);
+  bool make_not_entrant_or_zombie(unsigned int state);
   void inc_decompile_count();
 
   // used to check that writes to nmFlags are done consistently.