Skip to content

Commit

Permalink
don't try to sample free'd objects, mark remaining null objects
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Feb 15, 2014
1 parent 9f7631e commit cb98712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moar-gdb.py
Expand Up @@ -446,7 +446,7 @@ def address_to_page_and_bucket(addr):

# now we can actually sample our objects
for stooge, page, idx in sample_stooges:
if pagebuckets[page][idx] is None:
if pagebuckets[page][idx] != True:
continue
try:
# XXX this really ought to get factored out
Expand All @@ -455,6 +455,7 @@ def address_to_page_and_bucket(addr):

if size == 0:
print "found a null object!"
pagebuckets[page][idx] = None
continue

is_typeobj = flags & 1
Expand Down

0 comments on commit cb98712

Please sign in to comment.