--- 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; }