mirror of
https://git.tesses.org/tesses50/crosslang.git
synced 2026-09-30 16:54:14 +00:00
Replace time-based GC with allocation-count trigger, migrate all Create factories to GCList::Create(), fix VFSPath root path, reorder TObject variant
This commit is contained in:
+1
-2
@@ -8,7 +8,7 @@ GCList::GCList(std::shared_ptr<GC> gc) {
|
||||
gc->BarrierEnd();
|
||||
}
|
||||
|
||||
std::shared_ptr<GC> GCList::GetGC() { return this->gc; }
|
||||
std::shared_ptr<GC> GCList::GetGC() const { return this->gc; }
|
||||
void GCList::Remove(TObject obj) {
|
||||
if (std::holds_alternative<THeapObjectHolder>(obj)) {
|
||||
auto _item = std::get<THeapObjectHolder>(obj).obj;
|
||||
@@ -40,7 +40,6 @@ void GCList::Add(TObject obj) {
|
||||
}
|
||||
}
|
||||
void GCList::Mark() {
|
||||
this->marked = true;
|
||||
for (auto item : this->items) {
|
||||
item->Mark();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user