File: workaround-cacheflush-on-arm.patch

package info (click to toggle)
android-platform-art 14.0.0%2Br15-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 96,796 kB
  • sloc: cpp: 522,217; java: 194,312; asm: 28,950; python: 14,910; xml: 5,087; sh: 4,528; ansic: 4,035; makefile: 110; perl: 77
file content (16 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Workaround cacheflush on arm
Forwarded: not-needed
--- a/libartbase/base/utils.cc
+++ b/libartbase/base/utils.cc
@@ -78,7 +78,10 @@ static constexpr size_t kMaxFlushAttempts = 4;
 int CacheFlush(uintptr_t start, uintptr_t limit) {
   // The signature of cacheflush(2) seems to vary by source. On ARM the system call wrapper
   //    (bionic/SYSCALLS.TXT) has the form: int cacheflush(long start, long end, long flags);
-  int r = cacheflush(start, limit, kCacheFlushFlags);
+//  int r = cacheflush(start, limit, kCacheFlushFlags);
+//This is only for ARM
+//Workaround/skip cacheflush until we find the real replacement
+  int r = 0;
   if (r == -1) {
     CHECK_NE(errno, EINVAL);
   }