diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-08-04 10:00:50 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-08-05 08:28:53 +0300 |
commit | f3a2a1bb9285f4aabf5f4564649db0fef609c3b3 (patch) | |
tree | a407c54a1bca3025d445560caeaf5ae84dc24be8 /blacklst.c | |
parent | 2a6cee2a42c5a2fa69dc52b18b92420ee9bf61da (diff) | |
download | bdwgc-f3a2a1bb9285f4aabf5f4564649db0fef609c3b3.tar.gz |
Export GC_is_black_listed() as public API
Issue #460 (bdwgc).
* blacklst.c: Remove explicit comment that GC_is_black_listed is
externally callable.
* blacklst.c (GC_is_black_listed): Add GC_API and GC_CALL modifiers;
change h argument type from struct hblk* to struct GC_hblk_s*.
* include/gc/gc_mark.h (GC_is_black_listed): Move declaration from
include/private/gc_priv.h; reformat comment; add GC_API and GC_CALL
modifiers; use GC_hblk_s instead of hblk.
Diffstat (limited to 'blacklst.c')
-rw-r--r-- | blacklst.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,8 +27,7 @@ /* Externally callable routines are: */ /* - GC_add_to_black_list_normal, */ /* - GC_add_to_black_list_stack, */ -/* - GC_promote_black_lists, */ -/* - GC_is_black_listed. */ +/* - GC_promote_black_lists. */ /* Pointers to individual tables. We replace one table by another by */ /* switching these pointers. */ @@ -242,7 +241,8 @@ GC_INNER void GC_unpromote_black_lists(void) * Knows about the structure of the black list hash tables. * Assumes the allocation lock is held but no assertion about it by design. */ -struct hblk * GC_is_black_listed(struct hblk *h, word len) +GC_API struct GC_hblk_s *GC_CALL GC_is_black_listed(struct GC_hblk_s *h, + GC_word len) { word index = PHT_HASH((word)h); word i; |