Skip to content

Commit

Permalink
Fix OSCompatEmscripten stack bounds (#1581)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1581

There's no parameter.

Reviewed By: neildhar, fbmal7

Differential Revision: D66993115

fbshipit-source-id: 2fc1154c25808e062ef1a36199bd20716bdfb31d
  • Loading branch information
avp authored and facebook-github-bot committed Dec 11, 2024
1 parent 9eb1f3d commit 20939e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Support/OSCompatEmscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ uint64_t global_thread_id() {

namespace detail {

std::pair<const void *, size_t> thread_stack_bounds_impl(unsigned gap) {
std::pair<const void *, size_t> thread_stack_bounds_impl() {
uintptr_t high = emscripten_stack_get_base();
uintptr_t low = emscripten_stack_get_end();
size_t sz = high - low - gap;
size_t sz = high - low;
return {(void *)high, sz};
}

Expand Down

0 comments on commit 20939e2

Please sign in to comment.