refactor: retire GCObject.shallow_copy()
Collector gets this info from gc-owned object header
This commit is contained in:
parent
30dee1b97f
commit
e6c789b4e6
19 changed files with 26 additions and 183 deletions
|
|
@ -351,15 +351,6 @@ namespace xo {
|
|||
/** @defgroup scm-parserstatemachine-gcobject-facet gc support **/
|
||||
///@{
|
||||
|
||||
#ifdef OBSOLETE
|
||||
std::size_t shallow_size() const noexcept;
|
||||
/** NOTE:
|
||||
* ParserStateMachine only eligible to be a GC root.
|
||||
* It's not eligible to reside in gc-owned space
|
||||
**/
|
||||
ParserStateMachine * shallow_copy(obj<AAllocator> mm) const noexcept;
|
||||
std::size_t forward_children(obj<ACollector> gc) noexcept;
|
||||
#endif
|
||||
/** update gc-aware exit pointers from this ParserStateMachine **/
|
||||
void forward_children(obj<ACollector> gc) noexcept;
|
||||
|
||||
|
|
|
|||
|
|
@ -897,19 +897,12 @@ namespace xo {
|
|||
// ----- gc support -----
|
||||
|
||||
#ifdef OBSOLETE
|
||||
std::size_t
|
||||
ParserStateMachine::shallow_size() const noexcept
|
||||
void
|
||||
ParserStateMachine::shallow_copy(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return sizeof(ParserStateMachine);
|
||||
}
|
||||
|
||||
ParserStateMachine *
|
||||
ParserStateMachine::shallow_copy(obj<AAllocator> mm) const noexcept
|
||||
{
|
||||
(void)mm;
|
||||
(void)gc;
|
||||
|
||||
assert(false);
|
||||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue