diff options
author | Sung-jae Park <nicesj.park@samsung.com> | 2013-09-03 11:30:48 +0900 |
---|---|---|
committer | Sung-jae Park <nicesj.park@samsung.com> | 2013-09-03 11:30:48 +0900 |
commit | 47bd86cb961a3f2fff4c36dd7771cdaa2f9cc469 (patch) | |
tree | 2c6dfdc964d0aff52955967d660b62b6af6c9e5b | |
parent | 978f477fcfabfa587238ee920254fb65aab41b14 (diff) | |
download | heap-monitor-47bd86cb961a3f2fff4c36dd7771cdaa2f9cc469.tar.gz heap-monitor-47bd86cb961a3f2fff4c36dd7771cdaa2f9cc469.tar.bz2 heap-monitor-47bd86cb961a3f2fff4c36dd7771cdaa2f9cc469.zip |
Remove unnecessary critical section
Change-Id: I52eb7297103db94578e3bcde6e718a8b8dc60a41
-rw-r--r-- | src/heap-monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/heap-monitor.c b/src/heap-monitor.c index 7908c08..d4a11c0 100644 --- a/src/heap-monitor.c +++ b/src/heap-monitor.c @@ -132,19 +132,19 @@ static inline struct target *find_target_by_name(const char *name) return target; } +/* This function will be called from find_target_info */ static inline struct target *find_target_by_addr(unsigned long addr) { struct dlist *l; struct target *target = NULL; - CRITICAL_SECTION_BEGIN(&s_info.mutex); + /* Doesn't need make lock from here. already locked */ dlist_foreach(s_info.target_list, l, target) { if (target->begin <= addr && addr < target->end) { break; } target = NULL; } - CRITICAL_SECTION_END(&s_info.mutex); return target; } |