Skip to content

Commit

Permalink
Resolve EOSIO#227
Browse files Browse the repository at this point in the history
`SIGSTKSZ` is no longer `constexpr`. See issue EOSIO#227 for discussion.
  • Loading branch information
nathanielhourt authored Jun 4, 2022
1 parent 37bfac4 commit 6fd3866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/eosio/vm/execution_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ namespace eosio { namespace vm {
std::reverse(args_raw + 0, args_raw + sizeof...(Args));
result = call_host_function(args_raw, func_index);
} else {
constexpr std::size_t stack_cutoff = std::max(252144, SIGSTKSZ);
std::size_t stack_cutoff = std::max<long>(252144, SIGSTKSZ);
std::size_t maximum_stack_usage =
(_mod.maximum_stack + 2 /*frame ptr + return ptr*/) * (constants::max_call_depth + 1) +
sizeof...(Args) + 4 /* scratch space */;
Expand Down

0 comments on commit 6fd3866

Please sign in to comment.