Skip to content
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

struct! construction invalidates memory pools #49

Closed
Oldes opened this issue Jul 28, 2021 · 2 comments
Closed

struct! construction invalidates memory pools #49

Oldes opened this issue Jul 28, 2021 · 2 comments

Comments

@Oldes
Copy link

Oldes commented Jul 28, 2021

Can be reproduced using:

make struct! [a [int32]]
evoke 2
@Oldes
Copy link
Author

Oldes commented Jul 28, 2021

Can be reproduced even without using any struct field, like:

make struct! []
evoke 2

@Oldes
Copy link
Author

Oldes commented Jul 29, 2021

It appears, that it is just a false alarm as the memory check expects, that pool's wide is same like series' total, but in case of struct construction, the total size is less than the wide, which is also ok (I suppose).

if (pool_num < SERIES_POOL && Mem_Pools[pool_num].wide != SERIES_TOTAL(series))

@Oldes Oldes closed this as completed Jul 29, 2021
Oldes added a commit to Oldes/Rebol3 that referenced this issue Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant