Skip to content

Commit

Permalink
Allow stack-allocated buffers for E2K procedure stacks up to 1MB
Browse files Browse the repository at this point in the history
(fix of commits 73b67ba, 68619d5)

Issue #411 (bdwgc).

* include/private/gc_priv.h [E2K && !CPPCHECK] (ALLOCA_SAFE_LIMIT):
Change value from HBLKSIZE*3 to HBLKSIZE*256.
  • Loading branch information
ivmai committed Jul 15, 2022
1 parent 51fcc9a commit 6383392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/private/gc_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,7 @@ GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *),
# else
# define PS_ALLOCA_BUF(sz) alloca(sz) /* cannot return NULL */
# ifndef ALLOCA_SAFE_LIMIT
# define ALLOCA_SAFE_LIMIT (HBLKSIZE*3)
# define ALLOCA_SAFE_LIMIT (HBLKSIZE*256)
# endif
# endif /* !CPPCHECK */

Expand Down

0 comments on commit 6383392

Please sign in to comment.