Project

General

Profile

« Previous | Next » 

Revision 094f336a

Added by jhawthorn (John Hawthorn) about 2 years ago

GC: Only force alloc slowpath for NEWOBJ hook

Previously, configuring any GC event hook would cause all allocations to
go through the newobj slowpath. We should only need to do that when the
newobj specifically is subscribed to.

This renames flags.has_hook to flags.has_newobj_hook, to make this new
usage clear. newobj_of0 was the only place which previously checked this
flag.