[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 21/28] plugins/cache: Fixed a bug with destroying FIFO metadata
From: |
Alex Bennée |
Subject: |
[PULL 21/28] plugins/cache: Fixed a bug with destroying FIFO metadata |
Date: |
Fri, 23 Jul 2021 18:03:47 +0100 |
From: Mahmoud Mandour <ma.mandourr@gmail.com>
This manifests itself when associativity degree is greater than the
number of sets and FIFO is used, otherwise it's also a memory leak
whenever FIFO was used.
Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210714172151.8494-2-ma.mandourr@gmail.com>
Message-Id: <20210720232703.10650-22-alex.bennee@linaro.org>
diff --git a/contrib/plugins/cache.c b/contrib/plugins/cache.c
index bf0d2f6097..4a71602639 100644
--- a/contrib/plugins/cache.c
+++ b/contrib/plugins/cache.c
@@ -200,7 +200,7 @@ static void fifo_destroy(Cache *cache)
{
int i;
- for (i = 0; i < cache->assoc; i++) {
+ for (i = 0; i < cache->num_sets; i++) {
g_queue_free(cache->sets[i].fifo_queue);
}
}
--
2.20.1
- [PULL 07/28] contrib/gitdm: add domain-map for MontaVista, (continued)
- [PULL 07/28] contrib/gitdm: add domain-map for MontaVista, Alex Bennée, 2021/07/23
- [PULL 06/28] .mailmap: fix up some broken commit authors, Alex Bennée, 2021/07/23
- [PULL 09/28] gitdm.config: sort the corporate GroupMap entries, Alex Bennée, 2021/07/23
- [PULL 08/28] contrib/gitdm: add a group mapping for robot scanners, Alex Bennée, 2021/07/23
- [PULL 10/28] contrib/gitdm: add domain-map/group-map mappings for Samsung, Alex Bennée, 2021/07/23
- [PULL 05/28] contrib/gitdm: add some new aliases to fix up commits, Alex Bennée, 2021/07/23
- [PULL 11/28] contrib/gitdm: add domain-map for Eldorado, Alex Bennée, 2021/07/23
- [PULL 19/28] contrib/gitdm: add more individual contributor entries., Alex Bennée, 2021/07/23
- [PULL 20/28] tcg/plugins: implement a qemu_plugin_user_exit helper, Alex Bennée, 2021/07/23
- [PULL 26/28] gitlab: enable a very minimal build with the tricore container, Alex Bennée, 2021/07/23
- [PULL 21/28] plugins/cache: Fixed a bug with destroying FIFO metadata,
Alex Bennée <=
- [PULL 23/28] plugins/cache: Fixed "function decl. is not a prototype" warnings, Alex Bennée, 2021/07/23
- [PULL 15/28] contrib/gitdm: add domain-map for NVIDIA, Alex Bennée, 2021/07/23
- [PULL 13/28] contrib/gitdm: un-ironically add a mapping for LWN, Alex Bennée, 2021/07/23
- [PULL 12/28] contrib/gitdm: add domain-map/group-map for Wind River, Alex Bennée, 2021/07/23
- [PULL 22/28] plugins/cache: limited the scope of a mutex lock, Alex Bennée, 2021/07/23
- [PULL 24/28] plugins: Fix physical address calculation for IO regions, Alex Bennée, 2021/07/23
- [PULL 17/28] contrib/gitdm: add an explicit academic entry for BU, Alex Bennée, 2021/07/23
- [PULL 16/28] contrib/gitdm: add group-map for Netflix, Alex Bennée, 2021/07/23
- [PULL 27/28] gitlab-ci: Remove the second superfluous macos task, Alex Bennée, 2021/07/23
- [PULL 18/28] contrib/gitdm: add a new interns group-map for GSoC/Outreachy work, Alex Bennée, 2021/07/23