Index: runtime/vm/class_finalizer.cc |
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc |
index fc7dd589bb226aae8adb6eeae1052522fa021ea5..80e73ad28f82991ddfc9c07aa494771a3c3d909f 100644 |
--- a/runtime/vm/class_finalizer.cc |
+++ b/runtime/vm/class_finalizer.cc |
@@ -655,7 +655,7 @@ void ClassFinalizer::FinalizeTypeArguments( |
intptr_t num_uninitialized_arguments, |
Error* bound_error, |
GrowableObjectArray* pending_types, |
- GrowableObjectArray* trail) { |
+ TrailPtr trail) { |
ASSERT(arguments.Length() >= cls.NumTypeArguments()); |
if (!cls.is_type_finalized()) { |
FinalizeTypeParameters(cls, pending_types); |
@@ -1092,10 +1092,9 @@ RawAbstractType* ClassFinalizer::FinalizeType( |
owner_class = type_class.raw(); |
} |
if (offset > 0) { |
- GrowableObjectArray& trail = |
- GrowableObjectArray::Handle(isolate, GrowableObjectArray::New()); |
+ TrailPtr trail = new Trail(4); |
FinalizeTypeArguments(owner_class, full_arguments, offset, |
- &bound_error, pending_types, &trail); |
+ &bound_error, pending_types, trail); |
} |
if (full_arguments.IsRaw(0, num_type_arguments)) { |
// The parameterized_type is raw. Set its argument vector to null, which |