Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Add support for realloc in GC #19

Open
playXE opened this issue Jan 12, 2021 · 0 comments
Open

Add support for realloc in GC #19

playXE opened this issue Jan 12, 2021 · 0 comments

Comments

@playXE
Copy link
Member

playXE commented Jan 12, 2021

We should add realloc(&mut self,object: *mut RawGc,old_size: usize,new_size: usize) -> *mut RawGc to HeapImpl trait. By default it will just allocate new pointer and memcpy object.data() to new object data pointer. There is some problems with it as we do not know should we copy entire object state to reallocated pointer or no.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant