summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2025-03-10 06:39:58 -0800
committer Elliott Hughes <enh@google.com> 2025-03-11 08:00:06 -0700
commitca2362c05e2fc05f9211e39ecb74857195b27780 (patch)
tree36152bc873f94721ceadb803a329cd64dfb41910 /compiler
parent4370b86853f0fdf16f0e957365c6b600e5b32fe2 (diff)
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
Diffstat (limited to 'compiler')
-rw-r--r--compiler/common_compiler_test.cc2
1 files changed, 1 insertions, 1 deletions
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);