hotspot/src/share/vm/code/nmethod.cpp
changeset 33813 4f376e851453
parent 33638 ef49ed90010b
parent 33807 9f8b0f8a3f29
child 34185 ee71c590a456
--- a/hotspot/src/share/vm/code/nmethod.cpp	Fri Nov 06 11:11:51 2015 -0800
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Wed Nov 11 23:47:41 2015 +0000
@@ -674,10 +674,6 @@
   return nm;
 }
 
-#ifdef _MSC_VER
-#pragma warning(push)
-#pragma warning(disable:4355) //  warning C4355: 'this' : used in base member initializer list
-#endif
 // For native wrappers
 nmethod::nmethod(
   Method* method,
@@ -767,10 +763,6 @@
   }
 }
 
-#ifdef _MSC_VER
-#pragma warning(pop)
-#endif
-
 void* nmethod::operator new(size_t size, int nmethod_size, int comp_level) throw () {
   return CodeCache::allocate(nmethod_size, CodeCache::get_code_blob_type(comp_level));
 }
@@ -2303,7 +2295,7 @@
     assert(cur != NULL, "not NULL-terminated");
     nmethod* next = cur->_oops_do_mark_link;
     cur->_oops_do_mark_link = NULL;
-    cur->verify_oop_relocations();
+    DEBUG_ONLY(cur->verify_oop_relocations());
     NOT_PRODUCT(if (TraceScavenge)  cur->print_on(tty, "oops_do, unmark"));
     cur = next;
   }