Refactor assertions in ConcurrentCopying::ProcessMarkStackRef.

Test: mmma art
Bug: 116087961
Change-Id: I420929bbb820582f09e45bfb9d4b09a054e8879d
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc
index a31cbe7..a77b3fb 100644
--- a/runtime/gc/heap.cc
+++ b/runtime/gc/heap.cc
@@ -1270,6 +1270,10 @@
   return nullptr;
 }
 
+std::string Heap::DumpSpaceNameFromAddress(const void* addr) const {
+  space::Space* space = FindSpaceFromAddress(addr);
+  return (space != nullptr) ? space->GetName() : "no space";
+}
 
 void Heap::ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type) {
   // If we're in a stack overflow, do not create a new exception. It would require running the