Skip to content

Commit

Permalink
Remove some junk
Browse files Browse the repository at this point in the history
- target-core had a harmless typo
- traceroot had a bit of stupidity
  • Loading branch information
snuglas committed May 12, 2018
1 parent 8adab9e commit d488b4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/compiler/generic/target-core.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
(ash sb!vm:simple-fun-code-offset sb!vm:word-shift)
(- sb!vm:fun-pointer-lowtag))))
;; non-x86 backends store the function itself (what else?) in 'self'
#!-(or x86 x86-64)
(setf (%simple-fun-self fun) fun))))))
#!-(or x86 x86-64) fun)))))

;;; Map of code-component -> list of PC offsets at which allocations occur.
;;; This table is needed in order to enable allocation profiling.
Expand Down
4 changes: 1 addition & 3 deletions src/runtime/traceroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,7 @@ static struct simple_fun* simple_fun_from_pc(char* pc)
{
struct code* code = (struct code*)component_ptr_from_pc((lispobj*)pc);
if (!code) return 0;
struct simple_fun* prev_fun = (struct simple_fun*)
((char*)code + (code_header_words(code->header)<<WORD_SHIFT)
+ FIRST_SIMPLE_FUN_OFFSET(code));
struct simple_fun* prev_fun = 0;
for_each_simple_fun(i, fun, code, 1, {
if (pc < (char*)fun) break;
prev_fun = fun;
Expand Down

0 comments on commit d488b4a

Please sign in to comment.