… | … | ||
---|---|---|---|
1681 | 1681 | ||
1682 | #if _POSIX_MEMLOCK | 1682 | #if _POSIX_MEMLOCK |
1683 | 1683 | ||
1684 | int mlockall (int flags = MCL_CURRENT | MCL_FUTURE) | 1684 | int mlockall (int flags = MCL_CURRENT | MCL_FUTURE) |
1685 | INIT: | 1685 | INIT: |
1686 | #ifdef __linux | ||
1686 | mallopt (M_PERTURB, 0xaa); // bug-workaround for linux glibc+mlockall+calloc | 1687 | mallopt (M_PERTURB, 0xaa); // bug-workaround for linux glibc+mlockall+calloc |
1688 | #endif | ||
1687 | 1689 | ||
1688 | int munlockall () | 1690 | int munlockall () |
1689 | 1691 | ||
1690 | #endif | 1692 | #endif |
1691 | 1693 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |