-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: fix tons of undefined behavior vol 2 (#723)
Looks like I made some kind of rebase snafu on #720. Today I learned that if you force push something to a PR that results in 0 commits to the base branch github will just close the PR and disallow any further pushes to the branch! Ok let's try this one then.
- Loading branch information
Showing
13 changed files
with
97 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/// @file | ||
|
||
#include "v4/manage.h" | ||
#include "stdio.h" | ||
#include "manage.h" | ||
#include "allocate.h" | ||
#include "vortex.h" | ||
#include "options.h" | ||
|
||
/* u3m_v4_migrate: perform loom migration if necessary. | ||
*/ | ||
void | ||
u3m_v4_migrate(void) | ||
{ | ||
fprintf(stderr, "loom: bytecode alignment migration running...\r\n"); | ||
|
||
c3_w* mem_w = u3_Loom + u3a_walign; | ||
c3_w siz_w = c3_wiseof(u3v_home); | ||
c3_w len_w = u3C.wor_i - u3a_walign; | ||
c3_w* mat_w = c3_align(mem_w + len_w - siz_w, u3a_balign, C3_ALGLO); | ||
|
||
u3H = (void *)mat_w; | ||
u3R = &u3H->rod_u; | ||
|
||
u3m_reclaim(); | ||
|
||
u3H->ver_w = U3V_VER4; | ||
|
||
fprintf(stderr, "loom: bytecode alignment migration done\r\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// @file | ||
|
||
#ifndef U3_MANAGE_V4_H | ||
#define U3_MANAGE_V4_H | ||
|
||
/** System management. | ||
**/ | ||
/* u3m_v3_migrate: perform memoization loom migration if necessary. | ||
*/ | ||
void | ||
u3m_v4_migrate(void); | ||
|
||
#endif /* ifndef U3_MANAGE_V3_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.