src/hotspot/share/gc/shared/c2/barrierSetC2.hpp
changeset 58273 08a5148e7c4e
parent 58217 b1a394e15ae9
child 58516 d376d86b0a01
--- a/src/hotspot/share/gc/shared/c2/barrierSetC2.hpp	Mon Sep 23 14:39:11 2019 -0400
+++ b/src/hotspot/share/gc/shared/c2/barrierSetC2.hpp	Mon Sep 23 14:49:04 2019 -0400
@@ -120,7 +120,7 @@
   Node* base() const              { return _base; }
   C2AccessValuePtr& addr() const  { return _addr; }
   BasicType type() const          { return _type; }
-  bool is_oop() const             { return _type == T_OBJECT || _type == T_ARRAY; }
+  bool is_oop() const             { return is_reference_type(_type); }
   bool is_raw() const             { return (_decorators & AS_RAW) != 0; }
   Node* raw_access() const        { return _raw_access; }