Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157418
b: refs/heads/master
c: 43ed5d6
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas committed Sep 4, 2009
1 parent e22541b commit 226206b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e019366ba749a536131cde1947af6dcaccf8e8f
refs/heads/master: 43ed5d6ee0f9bfd655d6bc3cb2d964b80c4422c0
14 changes: 7 additions & 7 deletions trunk/mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,6 @@ static void kmemleak_scan(void)
{
unsigned long flags;
struct kmemleak_object *object, *tmp;
struct task_struct *task;
int i;
int new_leaks = 0;
int gray_list_pass = 0;
Expand Down Expand Up @@ -1141,15 +1140,16 @@ static void kmemleak_scan(void)
}

/*
* Scanning the task stacks may introduce false negatives and it is
* not enabled by default.
* Scanning the task stacks (may introduce false negatives).
*/
if (kmemleak_stack_scan) {
struct task_struct *p, *g;

read_lock(&tasklist_lock);
for_each_process(task)
scan_block(task_stack_page(task),
task_stack_page(task) + THREAD_SIZE,
NULL, 0);
do_each_thread(g, p) {
scan_block(task_stack_page(p), task_stack_page(p) +
THREAD_SIZE, NULL, 0);
} while_each_thread(g, p);
read_unlock(&tasklist_lock);
}

Expand Down

0 comments on commit 226206b

Please sign in to comment.