Assert allocator-type is known on OOME
We should always be using a known allocator-type. So instead of being
conditional about this, assert it.
This change also simplifies updation of alloc entrypoints for CC
collector. Earlier we used to choose TLAB allocator on x86_64 targets
to avoid a read-barrier in allocation path. Now that it's not there, we
can simplify to always use RegionTLAB allocator for CC.
Test: art/test/testrunner/testrunner.py -t 004-ThreadStress
Bug: 154100060
Change-Id: Ic692794c3dab80a67c2c4b3274adf00f879ad21b
diff --git a/runtime/gc/heap.h b/runtime/gc/heap.h
index 515dcb3..7dcd5e3 100644
--- a/runtime/gc/heap.h
+++ b/runtime/gc/heap.h
@@ -1051,6 +1051,7 @@
REQUIRES_SHARED(Locks::mutator_lock_);
mirror::Object* AllocWithNewTLAB(Thread* self,
+ AllocatorType allocator_type,
size_t alloc_size,
bool grow,
size_t* bytes_allocated,