More debugging

This commit is contained in:
valtermiari 2023-02-16 18:37:02 +01:00
parent 5157e6b41d
commit 72a044cd59
5 changed files with 48 additions and 10 deletions

View file

@ -12,11 +12,16 @@ void init() {
auto temp1 = gc->alloc(sizeof(a_ptr));
auto temp2 = gc->alloc(sizeof(live_int_vec));
auto temp3 = gc->alloc(sizeof(dead_int_vec));
a_ptr = nullptr;
// *arr, *temp1, *temp2 and *temp3 should all be on the stack
//a_ptr = nullptr;
}
int main() {
init();
//init();
for (int i = 1; i < 10; i++) {
gc->alloc(sizeof(i));
}
gc->collect(MARK | SWEEP);
gc->print_contents();
//delete gc;

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.h_test.out</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>