-
Notifications
You must be signed in to change notification settings - Fork 0
const objects unable to allocate #1
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
If an object is constant (Every version of the object is always exactly the same everytime its instantiated)
it will fail to allocate correctly in gc. This is due to an optimisation within the compiler which still simply copy the correct bytes into memory.
Because the _size variable within gc::object is being allocated prior to its actual initialisation, the compiler does not realise that this is not an accurate action to perform.
If at all possible, any changes to an object should be done after the object is initialised.
This needs to have an associated test
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working