8033289: clang: clean up unused function warning
authorhenryjen
Wed, 05 Feb 2014 21:24:29 -0800
changeset 22741 13fdeb7d7aad
parent 22739 74105c330330
child 22742 441a4617a9f4
child 22743 e043208c9d93
child 22745 4acf6ad4c462
8033289: clang: clean up unused function warning Reviewed-by: coleenp, dholmes, mgerdin
hotspot/src/cpu/x86/vm/templateTable_x86_64.cpp
hotspot/src/share/vm/prims/jvmtiTagMap.cpp
hotspot/src/share/vm/runtime/mutex.cpp
--- a/hotspot/src/cpu/x86/vm/templateTable_x86_64.cpp	Wed Feb 05 15:14:47 2014 -0800
+++ b/hotspot/src/cpu/x86/vm/templateTable_x86_64.cpp	Wed Feb 05 21:24:29 2014 -0800
@@ -107,10 +107,6 @@
   return Address(rsp,  Interpreter::expr_offset_in_bytes(2));
 }
 
-static inline Address at_tos_p3() {
-  return Address(rsp,  Interpreter::expr_offset_in_bytes(3));
-}
-
 // Condition conversion
 static Assembler::Condition j_not(TemplateTable::Condition cc) {
   switch (cc) {
--- a/hotspot/src/share/vm/prims/jvmtiTagMap.cpp	Wed Feb 05 15:14:47 2014 -0800
+++ b/hotspot/src/share/vm/prims/jvmtiTagMap.cpp	Wed Feb 05 21:24:29 2014 -0800
@@ -2790,6 +2790,7 @@
   return true;
 }
 
+#ifdef ASSERT
 // verify that a static oop field is in range
 static inline bool verify_static_oop(InstanceKlass* ik,
                                      oop mirror, int offset) {
@@ -2804,6 +2805,7 @@
     return false;
   }
 }
+#endif // #ifdef ASSERT
 
 // a class references its super class, interfaces, class loader, ...
 // and finally its static fields
--- a/hotspot/src/share/vm/runtime/mutex.cpp	Wed Feb 05 15:14:47 2014 -0800
+++ b/hotspot/src/share/vm/runtime/mutex.cpp	Wed Feb 05 21:24:29 2014 -0800
@@ -280,16 +280,6 @@
   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 ;