From ca2362c05e2fc05f9211e39ecb74857195b27780 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 10 Mar 2025 06:39:58 -0800 Subject: Remove memfd_create_compat(). Multiple places were already unconditionally calling memfd_create(), and ART no longer runs tests on fugu (whose ancient kernel didn't have memfd_create()). Change-Id: I8ca96d75a9e6f4fe5395b210f60d9920808bb26c --- compiler/common_compiler_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/common_compiler_test.cc') diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index e54c85f747..ef915e4152 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -63,7 +63,7 @@ class CommonCompilerTestImpl::CodeAndMetadata { const uint32_t capacity = RoundUp(code_offset + code_size, page_size); // Create a memfd handle with sufficient capacity. - android::base::unique_fd mem_fd(art::memfd_create_compat("test code", /*flags=*/ 0)); + android::base::unique_fd mem_fd(art::memfd_create("test code", /*flags=*/ 0)); CHECK_GE(mem_fd.get(), 0); int err = ftruncate(mem_fd, capacity); CHECK_EQ(err, 0); -- cgit v1.2.3-59-g8ed1b