id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	lang	patch	platform
1990	GC bug with new embedding API	nwellnhof	whiteknight	"I recently discovered a GC bug caused by the embedding API rewrite. It can be easily triggered by manually setting a low GC threshold like 64K. The problem is the following code sequence:

{{{
Parrot_api_load_bytecode_file (or Parrot_api_wrap_imcc_hack)
some other code that triggers a GC
Parrot_api_run_bytecode
}}}

The bytecode PMC returned by Parrot_api_load_bytecode_file and Parrot_api_wrap_imcc_hack is an UnmanagedStruct, so constant PMCs from the packfile (and maybe other things) don't get marked. These functions should return a real PMC that properly marks referenced objects.
"	bug	closed	normal		embed/extend	master	medium	fixed	api gc packfile				all
