xo-interpreter/xo-alloc: GlobalEnv + mm -> shallow_copy()

This commit is contained in:
Roland Conybeare 2025-11-23 22:57:52 -05:00
commit 4d2cd54365
18 changed files with 52 additions and 37 deletions

View file

@ -126,11 +126,11 @@ namespace xo {
}
Object *
String::_shallow_copy() const
String::_shallow_copy(gc::IAlloc * mm) const
{
// Reminder: String must come before secondary allocation,
Cpof cpof(Object::mm, this);
Cpof cpof(mm, this);
// might expect to write:
// gp<String> copy = new (gcm) String(Object::mm, owner_, z_chars_, chars_);