ART: Fix noreturn for Mac
Change-Id: I59b60340a90672a4de4d3bdf092fa504394d5892
diff --git a/runtime/entrypoints/quick/quick_alloc_entrypoints.cc b/runtime/entrypoints/quick/quick_alloc_entrypoints.cc
index c049e3d..49350ca 100644
--- a/runtime/entrypoints/quick/quick_alloc_entrypoints.cc
+++ b/runtime/entrypoints/quick/quick_alloc_entrypoints.cc
@@ -230,8 +230,13 @@
entry_points_instrumented = instrumented;
}
+#if defined(__APPLE__) && defined(__LP64__)
+void ResetQuickAllocEntryPoints(QuickEntryPoints* qpoints ATTRIBUTE_UNUSED) {
+ UNIMPLEMENTED(FATAL);
+ UNREACHABLE();
+}
+#else
void ResetQuickAllocEntryPoints(QuickEntryPoints* qpoints) {
-#if !defined(__APPLE__) || !defined(__LP64__)
switch (entry_points_allocator) {
case gc::kAllocatorTypeDlMalloc: {
SetQuickAllocEntryPoints_dlmalloc(qpoints, entry_points_instrumented);
@@ -261,14 +266,15 @@
SetQuickAllocEntryPoints_region_tlab(qpoints, entry_points_instrumented);
return;
}
- default:
- break;
+
+ case gc::kAllocatorTypeLOS:
+ case gc::kAllocatorTypeNonMoving:
+ UNIMPLEMENTED(FATAL) << "Unexpected allocator type " << entry_points_allocator;
+ UNREACHABLE();
}
-#else
- UNUSED(qpoints);
-#endif
- UNIMPLEMENTED(FATAL);
+ LOG(FATAL);
UNREACHABLE();
}
+#endif
} // namespace art