summaryrefslogtreecommitdiff
path: root/runtime/monitor_pool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/monitor_pool.cc')
-rw-r--r--runtime/monitor_pool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/monitor_pool.cc b/runtime/monitor_pool.cc
index 4964aa06c5..4a364cab62 100644
--- a/runtime/monitor_pool.cc
+++ b/runtime/monitor_pool.cc
@@ -57,7 +57,7 @@ void MonitorPool::AllocateChunk() {
}
// Allocate the chunk.
- void* chunk = malloc(kChunkSize);
+ void* chunk = allocator_.allocate(kChunkSize);
// Check we allocated memory.
CHECK_NE(reinterpret_cast<uintptr_t>(nullptr), reinterpret_cast<uintptr_t>(chunk));
// Check it is aligned as we need it.
@@ -131,7 +131,7 @@ void MonitorPool::ReleaseMonitorToPool(Thread* self, Monitor* monitor) {
monitor->monitor_id_ = id;
}
-void MonitorPool::ReleaseMonitorsToPool(Thread* self, std::list<Monitor*>* monitors) {
+void MonitorPool::ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors) {
for (Monitor* mon : *monitors) {
ReleaseMonitorToPool(self, mon);
}