From: @zhangruifang2020 
Reviewed-by: @openeuler-basic 
Signed-off-by: @openeuler-basic
This commit is contained in:
openeuler-ci-bot 2022-10-19 07:59:21 +00:00 committed by Gitee
commit 928b646a85
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From 19521231db2c1ade07f5b2edcd5854d5641a7e8d Mon Sep 17 00:00:00 2001
From: Ivan Maidanski <ivmai@mail.ru>
Date: Tue, 7 Jun 2022 19:02:06 +0300
Subject: [PATCH] Fix typo in GC_malloc_explicitly_typed comment (fix of commit
59372942a)
* typd_mlc.c (GC_malloc_explicitly_typed): Fix typo (remove duplicate
"the") in comment.
---
typd_mlc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/typd_mlc.c b/typd_mlc.c
index 000056e1..cea7fb4e 100644
--- a/typd_mlc.c
+++ b/typd_mlc.c
@@ -603,7 +603,7 @@ GC_API GC_ATTR_MALLOC void * GC_CALL GC_malloc_explicitly_typed(size_t lb,
op = (word *)GC_malloc_kind(lb, GC_explicit_kind);
if (EXPECT(NULL == op, FALSE))
return NULL;
- /* It is not safe to use GC_size_map[lb] to compute lg here as the */
+ /* It is not safe to use GC_size_map[lb] to compute lg here as */
/* the former might be updated asynchronously. */
lg = BYTES_TO_GRANULES(GC_size(op));
op[GRANULES_TO_WORDS(lg) - 1] = d;
--
2.27.0

10
gc.spec
View File

@ -1,11 +1,13 @@
Name: gc
Version: 8.0.6
Release: 1
Release: 2
Summary: A garbage collector for C and C++
License: BSD and GPLv1+
Url: http://www.hboehm.info/gc/
Source0: http://www.hboehm.info/gc/gc_source/gc-%{version}.tar.gz
Patch0: Fix-typo-in-GC_malloc_explicitly_typed-comment.patch
BuildRequires: gcc gcc-c++ libtool libatomic_ops-devel
%description
@ -72,6 +74,12 @@ make check
%changelog
* Wed Oct 19 2022 zhangruifang <zhangruifang1@h-partners.com> - 8.0.6-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix typo
* Thu Dec 2 2021 wangjie <wangjie375@huawei.com> - 8.0.6-1
- Type:enhancement
- ID:NA