lkml.org 
[lkml]   [2015]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/27] perf tools: Add reference counting for cpu_map object
Em Tue, Jun 23, 2015 at 12:36:04AM +0200, Jiri Olsa escreveu:
> -void cpu_map__delete(struct cpu_map *map)
> +static void cpu_map__delete(struct cpu_map *map)
> {
> - free(map);
> + if (map) {
> + WARN_ONCE(atomic_read(&map->refcnt) != 0,
> + "cpu map refcnt disbalanced\n");

Have you used this to catch some bug or is this just some attempt at a
proactive check? s/disbalanced/unbalanced/g

- Arnaldo


\
 
 \ /
  Last update: 2015-06-23 23:21    [W:0.798 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site