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

Purge stack-allocated Chuck_VM_Object #283

Open
nshaheed opened this issue Apr 28, 2023 · 4 comments
Open

Purge stack-allocated Chuck_VM_Object #283

nshaheed opened this issue Apr 28, 2023 · 4 comments

Comments

@nshaheed
Copy link
Contributor

#282 and 4bd643f revealed that there's inconsistencies with how Chuck_VM_Objects are used in the codebase and how the garbage collector handles these objects. Namely, nothing can be allocated on the stack.

We need to discover where this is happening and then address it.

Here's a few more Chuck_Strings where this is happening:

@nshaheed
Copy link
Contributor Author

Also need to update chugin headers

@gewang
Copy link
Member

gewang commented Apr 28, 2023

omg 2005 strikes back

@nshaheed
Copy link
Contributor Author

Here's a list of all the derived types of Chuck_VM_Object, for all your grepping needs

Chuck_VM_Object
Chuck_Context
Chuck_DLL
Chuck_Emitter
Chuck_Env
Chuck_Func
Chuck_Namespace
Chuck_Object
Chuck_Array
Chuck_Array4
Chuck_Array8
Chuck_Array16
Chuck_Array24
Chuck_Array32
Chuck_Event
Chuck_IO
Chuck_IO_Cherr
Chuck_IO_Chout
Chuck_IO_File
Chuck_IO_Serial
HidIn
KBHit
LineEvent
MidiIn
OSC_Address_Space
Chuck_String
Chuck_Type
Chuck_UGen
Chuck_UAna
Chuck_VM
Chuck_VM_Code
Chuck_VM_Shred
Chuck_VM_Shred_Status
Chuck_VM_Schreduler
Chuck_VM_Status
Chuck_UGen_Info
Chuck_Value

@gewang
Copy link
Member

gewang commented Apr 28, 2023

this issue is eliciting emotions beyond what github emojis can capture

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

No branches or pull requests

2 participants