FreeBSD Bugzilla – Attachment 203251 Details for
Bug 236891
lang/lua53: move assertion to correct place
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch extra-patch-assert to move an incorrectly placed assertion
luaport.patch (text/plain), 1012 bytes, created by
Andrew "RhodiumToad" Gierth
on 2019-03-30 08:44:57 UTC
(
hide
)
Description:
patch extra-patch-assert to move an incorrectly placed assertion
Filename:
MIME Type:
Creator:
Andrew "RhodiumToad" Gierth
Created:
2019-03-30 08:44:57 UTC
Size:
1012 bytes
patch
obsolete
>diff --git a/lang/lua53/files/extra-patch-assert b/lang/lua53/files/extra-patch-assert >index 49f120a5ef48..8bafa99bb541 100644 >--- a/lang/lua53/files/extra-patch-assert >+++ b/lang/lua53/files/extra-patch-assert >@@ -9,3 +9,21 @@ > > /* > ** Allows POSIX/XSI stuff >+--- src/lgc.c.orig 2017-08-31 16:15:27 UTC >++++ src/lgc.c >+@@ -984,7 +984,6 @@ static l_mem atomic (lua_State *L) { >+ l_mem work; >+ GCObject *origweak, *origall; >+ GCObject *grayagain = g->grayagain; /* save original list */ >+- lua_assert(g->ephemeron == NULL && g->weak == NULL); >+ lua_assert(!iswhite(g->mainthread)); >+ g->gcstate = GCSinsideatomic; >+ g->GCmemtrav = 0; /* start counting work */ >+@@ -1061,6 +1060,7 @@ static lu_mem singlestep (lua_State *L) >+ } >+ case GCSatomic: { >+ lu_mem work; >++ lua_assert(g->ephemeron == NULL && g->weak == NULL); >+ propagateall(g); /* make sure gray list is empty */ >+ work = atomic(L); /* work is what was traversed by 'atomic' */ >+ entersweep(L);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236891
: 203251