diff options
Diffstat (limited to 'runtime/gc/space')
-rw-r--r-- | runtime/gc/space/bump_pointer_space.cc | 4 | ||||
-rw-r--r-- | runtime/gc/space/space.cc | 24 | ||||
-rw-r--r-- | runtime/gc/space/zygote_space.cc | 3 |
3 files changed, 16 insertions, 15 deletions
diff --git a/runtime/gc/space/bump_pointer_space.cc b/runtime/gc/space/bump_pointer_space.cc index 8f42642b17..0a55b52c08 100644 --- a/runtime/gc/space/bump_pointer_space.cc +++ b/runtime/gc/space/bump_pointer_space.cc @@ -201,8 +201,8 @@ void BumpPointerSpace::Walk(ObjectCallback* callback, void* arg) { } accounting::ContinuousSpaceBitmap::SweepCallback* BumpPointerSpace::GetSweepCallback() { - LOG(FATAL) << "Unimplemented"; - return nullptr; + UNIMPLEMENTED(FATAL); + UNREACHABLE(); } uint64_t BumpPointerSpace::GetBytesAllocated() { diff --git a/runtime/gc/space/space.cc b/runtime/gc/space/space.cc index bff28f6d19..b233805e4c 100644 --- a/runtime/gc/space/space.cc +++ b/runtime/gc/space/space.cc @@ -39,33 +39,33 @@ std::ostream& operator<<(std::ostream& os, const Space& space) { } DlMallocSpace* Space::AsDlMallocSpace() { - LOG(FATAL) << "Unreachable"; - return nullptr; + UNIMPLEMENTED(FATAL) << "Unreachable"; + UNREACHABLE(); } RosAllocSpace* Space::AsRosAllocSpace() { - LOG(FATAL) << "Unreachable"; - return nullptr; + UNIMPLEMENTED(FATAL) << "Unreachable"; + UNREACHABLE(); } ZygoteSpace* Space::AsZygoteSpace() { - LOG(FATAL) << "Unreachable"; - return nullptr; + UNIMPLEMENTED(FATAL) << "Unreachable"; + UNREACHABLE(); } BumpPointerSpace* Space::AsBumpPointerSpace() { - LOG(FATAL) << "Unreachable"; - return nullptr; + UNIMPLEMENTED(FATAL) << "Unreachable"; + UNREACHABLE(); } AllocSpace* Space::AsAllocSpace() { - LOG(FATAL) << "Unimplemented"; - return nullptr; + UNIMPLEMENTED(FATAL) << "Unreachable"; + UNREACHABLE(); } ContinuousMemMapAllocSpace* Space::AsContinuousMemMapAllocSpace() { - LOG(FATAL) << "Unimplemented"; - return nullptr; + UNIMPLEMENTED(FATAL) << "Unreachable"; + UNREACHABLE(); } DiscontinuousSpace::DiscontinuousSpace(const std::string& name, diff --git a/runtime/gc/space/zygote_space.cc b/runtime/gc/space/zygote_space.cc index 51d84f5acb..9de0548561 100644 --- a/runtime/gc/space/zygote_space.cc +++ b/runtime/gc/space/zygote_space.cc @@ -58,7 +58,8 @@ ZygoteSpace* ZygoteSpace::Create(const std::string& name, MemMap* mem_map, } void ZygoteSpace::Clear() { - LOG(FATAL) << "Unimplemented"; + UNIMPLEMENTED(FATAL); + UNREACHABLE(); } ZygoteSpace::ZygoteSpace(const std::string& name, MemMap* mem_map, size_t objects_allocated) |