Skip to content

Commit

Permalink
Fixed a bug where the Windows build was estimating the wrong size for…
Browse files Browse the repository at this point in the history
… the unwind table
  • Loading branch information
ergo720 committed Jul 29, 2024
1 parent 808a1e4 commit c73412f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib86cpu/core/emitter/x64/jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ lc86_jit::gen_code_block()
}

#if defined(_WIN64)
// Increase estimated_code_size by 12 + 12, to accommodate the .pdata and .xdata sections required to unwind the function
// Increase estimated_code_size by 16 + 12, to accommodate the .pdata and .xdata sections required to unwind the function
// when an exception is thrown. Note that the sections need to be DWORD aligned
estimated_code_size += 24;
estimated_code_size += 28;
estimated_code_size = (estimated_code_size + 3) & ~3;
#elif defined (__linux__)
// Increase estimated_code_size by 24 + 40 + 4, to accommodate the .eh_frame section required to unwind the function
Expand Down

0 comments on commit c73412f

Please sign in to comment.