comparison src/share/vm/runtime/mutex.cpp @ 14324:c86519f8d826

8033289: clang: clean up unused function warning Reviewed-by: coleenp, dholmes, mgerdin
author henryjen
date Wed, 05 Feb 2014 21:24:29 -0800
parents 63a4eb8bcd23
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
14322:f3959a2e0eee 14324:c86519f8d826
278 x ^= ((unsigned)x) >> 21; 278 x ^= ((unsigned)x) >> 21;
279 x ^= x << 7 ; 279 x ^= x << 7 ;
280 return x & 0x7FFFFFFF ; 280 return x & 0x7FFFFFFF ;
281 } 281 }
282 282
283 static inline jint MarsagliaXOR (jint * const a) {
284 jint x = *a ;
285 if (x == 0) x = UNS(a)|1 ;
286 x ^= x << 6;
287 x ^= ((unsigned)x) >> 21;
288 x ^= x << 7 ;
289 *a = x ;
290 return x & 0x7FFFFFFF ;
291 }
292
293 static int Stall (int its) { 283 static int Stall (int its) {
294 static volatile jint rv = 1 ; 284 static volatile jint rv = 1 ;
295 volatile int OnFrame = 0 ; 285 volatile int OnFrame = 0 ;
296 jint v = rv ^ UNS(OnFrame) ; 286 jint v = rv ^ UNS(OnFrame) ;
297 while (--its >= 0) { 287 while (--its >= 0) {