More debugging
This commit is contained in:
parent
42c22bc1eb
commit
a375388591
5 changed files with 48 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
20
src/GC/tests/h_test.out.dSYM/Contents/Info.plist
Normal file
20
src/GC/tests/h_test.out.dSYM/Contents/Info.plist
Normal 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>
|
||||
BIN
src/GC/tests/h_test.out.dSYM/Contents/Resources/DWARF/h_test.out
Normal file
BIN
src/GC/tests/h_test.out.dSYM/Contents/Resources/DWARF/h_test.out
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue