This is an archive of the discontinued LLVM Phabricator instance.

[android] Fix some tests for AOSP-master devices.
ClosedPublic

Authored by hctim on Jan 5 2021, 10:14 AM.

Details

Summary

Some tests are broken at API level 30 on AOSP-master devices. When we
change the buildbuit to API level 30, the following tests get enabled.
They're currently broken due to various issues, and so fix up those
issues.

Diff Detail

Event Timeline

hctim requested review of this revision.Jan 5 2021, 10:14 AM
hctim created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2021, 10:14 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
hctim updated this revision to Diff 314652.Jan 5 2021, 10:15 AM

(changed some comment text).

oontvoo added inline comments.Jan 5 2021, 10:27 AM
compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
4–6

Just curious, can the instrumentation be changed? (to not stash arguments?)

hctim marked an inline comment as done.Jan 5 2021, 10:37 AM
hctim added inline comments.
compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
4–6

AFAICT, not really - the instrumentation is just a conditional branch with an IR call - it's the regalloc in the backend that would need to be tinkered with (which I'd rather not change the behaviour of the regalloc at -O0 to work around an lsan-in-asan false negative).

oontvoo accepted this revision.Jan 5 2021, 10:44 AM

LGTM

compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
4–6

Got it! Thanks for the details!

This revision is now accepted and ready to land.Jan 5 2021, 10:44 AM
hctim updated this revision to Diff 314660.Jan 5 2021, 10:44 AM
hctim marked an inline comment as done.

Lost some of the patch in a comment fix, here's the rest of it.

oontvoo added inline comments.Jan 5 2021, 11:12 AM
compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
12

very nit: If this is an architecture-specific thing, then maybe Android (the OS) shouldn't have to be called out?

perhaps s/Android/aarch64 ?

hctim marked an inline comment as done.Jan 5 2021, 11:22 AM
hctim added inline comments.
compiler-rt/test/lsan/TestCases/stale_stack_leak.cpp
12

this line can actually be deleted, it's the same as above.

hctim updated this revision to Diff 314672.Jan 5 2021, 11:23 AM
hctim marked an inline comment as done.
  • Remove some dead comments.
oontvoo accepted this revision.Jan 5 2021, 11:40 AM
eugenis accepted this revision.Jan 5 2021, 12:08 PM
This revision was landed with ongoing or failed builds.Jan 5 2021, 12:54 PM
This revision was automatically updated to reflect the committed changes.