Add htmlparser, conditional variables, make alloc_threshold overridable in prefs.json
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-riscv64:latest, riscv64-linux-gnu, riscv64, asrock) (push) Successful in 54s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm:latest, arm-linux-gnueabihf, arm7, fw13-ubuntu-latest) (push) Successful in 55s
Build and Deploy on Tag / 🔨 Build for PowerPC (push) Successful in 1m20s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x86:latest, i386-linux-gnu, 386, asrock) (push) Successful in 1m22s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm64:latest, aarch64-linux-gnu, arm64, msi-walmart) (push) Successful in 1m26s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x64:latest, x86_64-linux-gnu, amd64, msi-walmart) (push) Successful in 1m20s
Build and Deploy on Tag / update-tap (push) Successful in 4m46s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-riscv64:latest, riscv64-linux-gnu, riscv64, asrock) (push) Successful in 54s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm:latest, arm-linux-gnueabihf, arm7, fw13-ubuntu-latest) (push) Successful in 55s
Build and Deploy on Tag / 🔨 Build for PowerPC (push) Successful in 1m20s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x86:latest, i386-linux-gnu, 386, asrock) (push) Successful in 1m22s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-arm64:latest, aarch64-linux-gnu, arm64, msi-walmart) (push) Successful in 1m26s
Build and Deploy on Tag / 🔨 Build for everything else (git.tesses.org/tesses50/linux-x64:latest, x86_64-linux-gnu, amd64, msi-walmart) (push) Successful in 1m20s
Build and Deploy on Tag / update-tap (push) Successful in 4m46s
This commit is contained in:
Vendored
+5
-3
@@ -8,8 +8,11 @@
|
|||||||
"name": "(gdb) Launch",
|
"name": "(gdb) Launch",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/builds/l/crossint",
|
"program": "${workspaceFolder}/build/crosslang",
|
||||||
"args": ["queryable.tcross"],
|
"args": [
|
||||||
|
"webapp",
|
||||||
|
"tytd2025"
|
||||||
|
],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}/builds/l",
|
"cwd": "${workspaceFolder}/builds/l",
|
||||||
"environment": [],
|
"environment": [],
|
||||||
@@ -28,6 +31,5 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
CrossLang is a dynamically-typed scripting language built on
|
||||||
|
TessesFramework, named in honor of Jesus's sacrifice.
|
||||||
|
|
||||||
|
Copyright (C) 2026 Mike Nolan
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later WITH TessesFramework-Exception-1.0
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
#include "CrossLang.hpp"
|
#include "CrossLang.hpp"
|
||||||
|
|
||||||
namespace Tesses::CrossLang {
|
namespace Tesses::CrossLang {
|
||||||
|
|||||||
@@ -179,6 +179,8 @@ void GC::BarrierEnd() { this->mtx.Unlock(); }
|
|||||||
void GC::Watch(TObject obj) {
|
void GC::Watch(TObject obj) {
|
||||||
if (std::holds_alternative<THeapObject *>(obj)) {
|
if (std::holds_alternative<THeapObject *>(obj)) {
|
||||||
auto _item = std::get<THeapObject *>(obj);
|
auto _item = std::get<THeapObject *>(obj);
|
||||||
|
if (_item == nullptr)
|
||||||
|
return;
|
||||||
this->BarrierBegin();
|
this->BarrierBegin();
|
||||||
this->objects.insert(_item);
|
this->objects.insert(_item);
|
||||||
auto nowAllocs = ++this->allocs;
|
auto nowAllocs = ++this->allocs;
|
||||||
@@ -190,12 +192,15 @@ void GC::Watch(TObject obj) {
|
|||||||
void GC::Mark(TObject obj) {
|
void GC::Mark(TObject obj) {
|
||||||
if (std::holds_alternative<THeapObject *>(obj)) {
|
if (std::holds_alternative<THeapObject *>(obj)) {
|
||||||
auto _item = std::get<THeapObject *>(obj);
|
auto _item = std::get<THeapObject *>(obj);
|
||||||
|
if (_item)
|
||||||
_item->Mark();
|
_item->Mark();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void GC::Unwatch(TObject obj) {
|
void GC::Unwatch(TObject obj) {
|
||||||
if (std::holds_alternative<THeapObject *>(obj)) {
|
if (std::holds_alternative<THeapObject *>(obj)) {
|
||||||
auto _item = std::get<THeapObject *>(obj);
|
auto _item = std::get<THeapObject *>(obj);
|
||||||
|
if (_item == nullptr)
|
||||||
|
return;
|
||||||
this->BarrierBegin();
|
this->BarrierBegin();
|
||||||
this->objects.erase(_item);
|
this->objects.erase(_item);
|
||||||
this->BarrierEnd();
|
this->BarrierEnd();
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ std::shared_ptr<GC> GCList::GetGC() const { return this->gc; }
|
|||||||
void GCList::Remove(TObject obj) {
|
void GCList::Remove(TObject obj) {
|
||||||
if (std::holds_alternative<THeapObject *>(obj)) {
|
if (std::holds_alternative<THeapObject *>(obj)) {
|
||||||
auto _item = std::get<THeapObject *>(obj);
|
auto _item = std::get<THeapObject *>(obj);
|
||||||
|
if (_item == nullptr)
|
||||||
|
return;
|
||||||
this->gc->BarrierBegin();
|
this->gc->BarrierBegin();
|
||||||
for (auto index = this->items.begin(); index != this->items.end();
|
for (auto index = this->items.begin(); index != this->items.end();
|
||||||
index++) {
|
index++) {
|
||||||
@@ -47,6 +49,8 @@ void GCList::Add(TObject obj) {
|
|||||||
|
|
||||||
if (std::holds_alternative<THeapObject *>(obj)) {
|
if (std::holds_alternative<THeapObject *>(obj)) {
|
||||||
auto _item = std::get<THeapObject *>(obj);
|
auto _item = std::get<THeapObject *>(obj);
|
||||||
|
if (_item == nullptr)
|
||||||
|
return;
|
||||||
this->gc->BarrierBegin();
|
this->gc->BarrierBegin();
|
||||||
|
|
||||||
for (auto item : this->items) {
|
for (auto item : this->items) {
|
||||||
|
|||||||
Reference in New Issue
Block a user