Page MenuHomePhabricator

[profile] Skip mmap() if there are no counters

Authored by vsk on May 18 2021, 4:37 PM.



If there are no counters, an mmap() of the counters section would fail
due to the size argument being too small (EINVAL).


Diff Detail

Unit TestsFailed

140 msx64 windows > LLVM.Other::new-pm-lto-defaults.ll
Script: -- : 'RUN: at line 5'; c:\ws\w16c2-3\llvm-project\premerge-checks\build\bin\opt.exe -disable-verify -verify-cfg-preserved=0 -debug-pass-manager -passes='lto<O1>' -S C:\ws\w16c2-3\llvm-project\premerge-checks\llvm\test\Other\new-pm-lto-defaults.ll 2>&1 | c:\ws\w16c2-3\llvm-project\premerge-checks\build\bin\filecheck.exe C:\ws\w16c2-3\llvm-project\premerge-checks\llvm\test\Other\new-pm-lto-defaults.ll --check-prefix=CHECK-O --check-prefix=CHECK-O1

Event Timeline

vsk requested review of this revision.May 18 2021, 4:37 PM
vsk created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2021, 4:37 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
phosek accepted this revision.May 18 2021, 5:02 PM


This revision is now accepted and ready to land.May 18 2021, 5:02 PM
This revision was landed with ongoing or failed builds.May 19 2021, 9:32 AM
This revision was automatically updated to reflect the committed changes.