8233793: ZGC: Incorrect type used in ZBarrierSetC2 clone_type()
Reviewed-by: eosterlund
--- a/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp Thu Nov 07 09:41:22 2019 -0500
+++ b/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp Thu Nov 07 15:48:43 2019 +0100
@@ -231,7 +231,7 @@
const Type** domain_fields = TypeTuple::fields(3);
domain_fields[TypeFunc::Parms + 0] = TypeInstPtr::NOTNULL; // src
domain_fields[TypeFunc::Parms + 1] = TypeInstPtr::NOTNULL; // dst
- domain_fields[TypeFunc::Parms + 2] = TypeLong::LONG; // size
+ domain_fields[TypeFunc::Parms + 2] = TypeInt::INT; // size
const TypeTuple* domain = TypeTuple::make(TypeFunc::Parms + 3, domain_fields);
// Create result type (range)