-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realloc #3072
Conversation
Add code to cache task stacks (reducing them to 3 times INITSTAKSIZE if too large) to save on next task's creation (which is done for every note played in group tool). Replace kmalloc/copy/kfree sequences with new krealloc.
Replace kmalloc/copy/kfree of expanding stack with krealloc; if lucky krealloc didn't move the stack and don't need to update the stack/frame pointers.
Grrr, while looking at some other bits, this branch crashes in execerror with "Uknown data type (8) in getnumval!" (at ../lib/maps.k:295). Trying to figure out why... |
Closing pull request; there's something really weird going on I need to get to the bottom of. Even backing out last commit (that uses realloc in expandstackatleast) that worked yesterday - now fails. 'make regress_stdio" worked yesterday and now fails miserably. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most if/else/for statements use braces on the same line, that should be used more consistently. I've been tempted occasionally to add braces to all of the one-line if/else statements (ala Go), but there are a lot of them. Also, use olds==NULL rather than !olds.
Probably worthwhile running some tests automatically when compiling from
the top-level makefile.
…On Wed, Apr 19, 2023 at 7:46 AM pbarada ***@***.***> wrote:
Closing pull request; there's something *really* weird going on I need to
get to the bottom of. Even backing out last commit (that uses realloc in
expandstackatleast) that worked yesterday - now fails. 'make regress_stdio"
worked yesterday and now fails miserably.
Back to the drawing board...
—
Reply to this email directly, view it on GitHub
<#3072 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABESNSAHKHQZOBEBGDXJ7TXB73EFANCNFSM6AAAAAAXC33BC4>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
besides "regress_stdio", what other tests are available to run?
On 4/19/23 11:25, Tim Thompson wrote:
Probably worthwhile running some tests automatically when compiling from
the top-level makefile.
On Wed, Apr 19, 2023 at 7:46 AM pbarada ***@***.***> wrote:
> Closing pull request; there's something *really* weird going on I
need to
> get to the bottom of. Even backing out last commit (that uses realloc in
> expandstackatleast) that worked yesterday - now fails. 'make
regress_stdio"
> worked yesterday and now fails miserably.
> Back to the drawing board...
>
> —
> Reply to this email directly, view it on GitHub
> <#3072 (comment)>,
> or unsubscribe
>
<https://github.com/notifications/unsubscribe-auth/AABESNSAHKHQZOBEBGDXJ7TXB73EFANCNFSM6AAAAAAXC33BC4>
> .
> You are receiving this because your review was requested.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#3072 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMXGS7S7F3UVGR5FRILZVLXB77YJANCNFSM6AAAAAAXC33BC4>.
You are receiving this because you modified the open/close
state.Message ID: ***@***.***>
--
Peter Barada
***@***.***
|
There are no other automated tests.
…On Wed, Apr 19, 2023 at 9:04 AM pbarada ***@***.***> wrote:
besides "regress_stdio", what other tests are available to run?
On 4/19/23 11:25, Tim Thompson wrote:
> Probably worthwhile running some tests automatically when compiling from
> the top-level makefile.
>
> On Wed, Apr 19, 2023 at 7:46 AM pbarada ***@***.***> wrote:
>
> > Closing pull request; there's something *really* weird going on I
> need to
> > get to the bottom of. Even backing out last commit (that uses realloc
in
> > expandstackatleast) that worked yesterday - now fails. 'make
> regress_stdio"
> > worked yesterday and now fails miserably.
> > Back to the drawing board...
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <#3072 (comment)
>,
> > or unsubscribe
> >
> <
https://github.com/notifications/unsubscribe-auth/AABESNSAHKHQZOBEBGDXJ7TXB73EFANCNFSM6AAAAAAXC33BC4
>
> > .
> > You are receiving this because your review was requested.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#3072 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABMXGS7S7F3UVGR5FRILZVLXB77YJANCNFSM6AAAAAAXC33BC4
>.
> You are receiving this because you modified the open/close
> state.Message ID: ***@***.***>
>
--
Peter Barada
***@***.***
—
Reply to this email directly, view it on GitHub
<#3072 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABESNQEXOIUF4CIQFPW753XCAEJJANCNFSM6AAAAAAXC33BC4>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Replace kmalloc/copy/kfree sequences with added krealloc.
Cache task stacks for reuse (saves stack allocation/free for every note played in group tool), reallocating them if too large when cached.