Skip to content

Commit

Permalink
i#2666: Increase MAX_CONTEXT_SIZE (#4122)
Browse files Browse the repository at this point in the history
Long-term we need to dynamically size the context and move it to the heap, but for now we increase the hardcoded size to avoid failures.

Issue: #2666
  • Loading branch information
lieser authored Feb 22, 2020
1 parent 76def08 commit fb55bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/win32/os_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,11 @@ extern uint context_xstate;

#define XSTATE_HEADER_SIZE 0x40 /* 512 bits */
#define YMMH_AREA(ymmh_area, i) (((dr_xmm_t *)ymmh_area)[i])
#define MAX_CONTEXT_64_SIZE 0x6ef /* as observed on win10-x64 */
#define MAX_CONTEXT_64_SIZE 0xd2f /* as observed on win10-x64 */
#ifdef X64
# define MAX_CONTEXT_SIZE MAX_CONTEXT_64_SIZE
#else
# define MAX_CONTEXT_SIZE 0x4e3 /* as observed on win10-x64 */
# define MAX_CONTEXT_SIZE 0xd2f /* as observed on win10-x64 */
#endif
#define CONTEXT_DYNAMICALLY_LAID_OUT(flags) (TESTALL(CONTEXT_XSTATE, flags))

Expand Down

0 comments on commit fb55bf6

Please sign in to comment.