Skip to content

Commit 1547011

Browse files
committed
Fix handout code.
1 parent 250ac48 commit 1547011

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

fundamentals5x/GNUmakefile

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
PROGRAMS = nogcbench gcbench
22
all: $(PROGRAMS)
33

4+
# More garbage gets cleaned up more reliably when optimization is off.
5+
O ?= 0
6+
47
include ../common/rules.mk
58

69
%.o: %.c $(BUILDSTAMP)

fundamentals5x/m61gc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void m61_gc(void) {
112112
__asm__ __volatile__("" : : : "rbx", "r12", "r13", "r14", "r15", "memory");
113113
#endif
114114

115-
char* stack_top = (char*) __builtin_frame_address(0);
115+
char* stack_top = (char*) &stack_top;
116116

117117
// unmark all active allocations
118118
// YOUR CODE HERE

0 commit comments

Comments
 (0)