Skip to content

Emit stack checks for probes#2539

Merged
xclerc merged 3 commits intostack-check-disablefrom
stack-check-probes
May 7, 2024
Merged

Emit stack checks for probes#2539
xclerc merged 3 commits intostack-check-disablefrom
stack-check-probes

Conversation

@xclerc
Copy link
Copy Markdown
Contributor

@xclerc xclerc commented May 6, 2024

This pull request add the emission of
stack checks in probes. Since a probe
will save on the stack all the hardware
registers that happen to be live, it
seems possible to have to push more
data than stack_threshold_size allows.

@xclerc xclerc added bug Something isn't working backend OCaml 5 labels May 6, 2024
@xclerc xclerc changed the base branch from main to stack-check-disable May 6, 2024 14:53
@mshinwell mshinwell self-requested a review May 7, 2024 11:54
@xclerc xclerc marked this pull request as ready for review May 7, 2024 12:28
@xclerc xclerc merged commit 383923b into stack-check-disable May 7, 2024
@xclerc xclerc deleted the stack-check-probes branch May 7, 2024 13:02
xclerc added a commit that referenced this pull request May 7, 2024
xclerc added a commit that referenced this pull request May 9, 2024
* Disable stack checks by default.

* Actually disable the checks.

* Review

* Make the build fail if stack checks are disabled but POSIX signals are not available.

* Abort if trying to reallocate the stack when stack checks are disabled.

* Emit stack checks for probes (#2539)

* Force stack check to be enabled on arm64.

* Make sure mmap and others are available when stack checks are disabled.

* Correct arm64 check

* Long line

* Increase main stack size in case of getrlimit failure

* Missing Wsize_bsize

* Don't assume mmap returns a page-aligned block.

* Ensure stack check are properly disabled on the non-CFG path.

* Cosmetic changes; remove unnecessary label

* Stack computations

* Fix build.

* Fix build.

---------

Co-authored-by: Mark Shinwell <mshinwell@pm.me>
gretay-js pushed a commit to gretay-js/flambda-backend that referenced this pull request May 13, 2024
* Disable stack checks by default.

* Actually disable the checks.

* Review

* Make the build fail if stack checks are disabled but POSIX signals are not available.

* Abort if trying to reallocate the stack when stack checks are disabled.

* Emit stack checks for probes (oxcaml#2539)

* Force stack check to be enabled on arm64.

* Make sure mmap and others are available when stack checks are disabled.

* Correct arm64 check

* Long line

* Increase main stack size in case of getrlimit failure

* Missing Wsize_bsize

* Don't assume mmap returns a page-aligned block.

* Ensure stack check are properly disabled on the non-CFG path.

* Cosmetic changes; remove unnecessary label

* Stack computations

* Fix build.

* Fix build.

---------

Co-authored-by: Mark Shinwell <mshinwell@pm.me>
gretay-js pushed a commit to gretay-js/flambda-backend that referenced this pull request May 13, 2024
* Disable stack checks by default.

* Actually disable the checks.

* Review

* Make the build fail if stack checks are disabled but POSIX signals are not available.

* Abort if trying to reallocate the stack when stack checks are disabled.

* Emit stack checks for probes (oxcaml#2539)

* Force stack check to be enabled on arm64.

* Make sure mmap and others are available when stack checks are disabled.

* Correct arm64 check

* Long line

* Increase main stack size in case of getrlimit failure

* Missing Wsize_bsize

* Don't assume mmap returns a page-aligned block.

* Ensure stack check are properly disabled on the non-CFG path.

* Cosmetic changes; remove unnecessary label

* Stack computations

* Fix build.

* Fix build.

---------

Co-authored-by: Mark Shinwell <mshinwell@pm.me>
lukemaurer pushed a commit to lukemaurer/flambda-backend that referenced this pull request Oct 23, 2024
* Disable stack checks by default.

* Actually disable the checks.

* Review

* Make the build fail if stack checks are disabled but POSIX signals are not available.

* Abort if trying to reallocate the stack when stack checks are disabled.

* Emit stack checks for probes (oxcaml#2539)

* Force stack check to be enabled on arm64.

* Make sure mmap and others are available when stack checks are disabled.

* Correct arm64 check

* Long line

* Increase main stack size in case of getrlimit failure

* Missing Wsize_bsize

* Don't assume mmap returns a page-aligned block.

* Ensure stack check are properly disabled on the non-CFG path.

* Cosmetic changes; remove unnecessary label

* Stack computations

* Fix build.

* Fix build.

---------

Co-authored-by: Mark Shinwell <mshinwell@pm.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend bug Something isn't working OCaml 5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants