Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never try to limit memory on macOS #1074

Merged
merged 1 commit into from
Apr 28, 2022
Merged

Never try to limit memory on macOS #1074

merged 1 commit into from
Apr 28, 2022

Commits on Apr 22, 2022

  1. Never try to limit memory on macOS

    We can't limit memory on macOS. Before macOS 12
    limitSystemMemoryOnPOSIX() does not actually do anything on macOS.
    Anyway, it just succeed, since macOS 12 it returns error and retdec
    can't start.
    
    To be honest Apple can control memmory limit via so-called the ledger()
    system call which is private. An old verison which was opened to
    OpenSource (from 10.9-10.10?) using setrlimit() but at some point
    setrlimit() was broken and not ledger(). Probably at macOS 12 the
    setrlimit() was completley broken.
    
    Because we haven't got any other choose just return true which haven't
    change anything.
    
    See: avast#379
    Fixes: avast#1045
    catap committed Apr 22, 2022
    Configuration menu
    Copy the full SHA
    916efae View commit details
    Browse the repository at this point in the history