8077315: Build failure on OSX after compiler upgrade
authorjwilhelm
Thu, 09 Apr 2015 11:30:37 +0200
changeset 30161 73469ec877cd
parent 30160 513fbe5e7474
child 30163 edbb51658d9b
8077315: Build failure on OSX after compiler upgrade Reviewed-by: stefank, mgerdin
hotspot/src/share/vm/oops/instanceRefKlass.inline.hpp
--- a/hotspot/src/share/vm/oops/instanceRefKlass.inline.hpp	Thu Apr 09 11:29:32 2015 +0200
+++ b/hotspot/src/share/vm/oops/instanceRefKlass.inline.hpp	Thu Apr 09 11:30:37 2015 +0200
@@ -90,10 +90,10 @@
  public:
   template <typename T> bool operator()(T* p) const { return true; }
 };
-static AlwaysContains always_contains;
 
 template <bool nv, class OopClosureType>
 void InstanceRefKlass::oop_oop_iterate_ref_processing(oop obj, OopClosureType* closure) {
+  AlwaysContains always_contains;
   if (UseCompressedOops) {
     oop_oop_iterate_ref_processing_specialized<nv, narrowOop>(obj, closure, always_contains);
   } else {