~VMObjectArray() {
#ifdef GC_STOPGAP
if (deferring) {
for (int i = 0; i < _size; i++) {
defer.push(_array[i]);
}
delete[] _array;
} else {
deferring = true;
for (int i = 0; i < _size; i++) {
defer.push(_array[i]);
}
delete[] _array;
while (!defer.empty()) {
defer.pop();
}
deferring = false;
}
#else
delete[] _array;
#endif
}
Saturday, July 27, 2024
Thread local Stopgap
I made the stopgap solution thread local. It's still expensive.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment