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

Reallocation is completley broken when you have multiple references #3

Closed
Frityet opened this issue May 1, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@Frityet
Copy link
Owner

Frityet commented May 1, 2022

When trying to reallocate a managed pointer which has references elsewhere, the existing references are broken, as realloc frees the existing allocation. This is a BIG issue, that makes it impoossible to realloc safely!

@Frityet Frityet added the bug Something isn't working label May 1, 2022
@Frityet Frityet self-assigned this May 1, 2022
@Frityet
Copy link
Owner Author

Frityet commented May 3, 2022

The only real fix to this is by having a pointer to a reference, and changing the pointer. The problem is that it will result in having to dereference when you want to access the reference, which is not streamlined or fun to do

@Frityet Frityet closed this as completed Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant