Add htmlparser, conditional variables, make alloc_threshold overridable in prefs.json

This commit is contained in:
2026-09-25 22:04:55 -05:00
parent adc0bc2985
commit bf445ef68b
4 changed files with 35 additions and 4 deletions
+4
View File
@@ -32,6 +32,8 @@ std::shared_ptr<GC> GCList::GetGC() const { return this->gc; }
void GCList::Remove(TObject obj) {
if (std::holds_alternative<THeapObject *>(obj)) {
auto _item = std::get<THeapObject *>(obj);
if (_item == nullptr)
return;
this->gc->BarrierBegin();
for (auto index = this->items.begin(); index != this->items.end();
index++) {
@@ -47,6 +49,8 @@ void GCList::Add(TObject obj) {
if (std::holds_alternative<THeapObject *>(obj)) {
auto _item = std::get<THeapObject *>(obj);
if (_item == nullptr)
return;
this->gc->BarrierBegin();
for (auto item : this->items) {