src/share/vm/runtime/mutex.cpp

Print this page
rev 5824 : 8033289: clang: clean up unused function warning
Reviewed-by:

@@ -278,20 +278,10 @@
   x ^= ((unsigned)x) >> 21;
   x ^= x << 7 ;
   return x & 0x7FFFFFFF ;
 }
 
-static inline jint MarsagliaXOR (jint * const a) {
-  jint x = *a ;
-  if (x == 0) x = UNS(a)|1 ;
-  x ^= x << 6;
-  x ^= ((unsigned)x) >> 21;
-  x ^= x << 7 ;
-  *a = x ;
-  return x & 0x7FFFFFFF ;
-}
-
 static int Stall (int its) {
   static volatile jint rv = 1 ;
   volatile int OnFrame = 0 ;
   jint v = rv ^ UNS(OnFrame) ;
   while (--its >= 0) {