8077315: Build failure on OSX after compiler upgrade
Reviewed-by: stefank, mgerdin
--- 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 {