projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
976fdc8
)
Add initial testing of GC_enable/disable, MALLOC[_ATOMIC]_IGNORE_OFF_PAGE
author
Ivan Maidanski
<ivmai@mail.ru>
Fri, 23 Nov 2018 11:42:57 +0000
(14:42 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Fri, 23 Nov 2018 11:42:57 +0000
(14:42 +0300)
* tests/test.c (run_one_test): Call GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE(),
GC_disable(), GC_MALLOC_IGNORE_OFF_PAGE(), GC_enable().
tests/test.c
patch
|
blob
|
history
diff --git
a/tests/test.c
b/tests/test.c
index
bc70399
..
17ba8a8
100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-1463,6
+1463,10
@@
void run_one_test(void)
GC_FREE(GC_MALLOC_ATOMIC(0));
test_generic_malloc_or_special(GC_malloc_atomic(1));
AO_fetch_and_add1(&atomic_count);
+ GC_FREE(GC_MALLOC_ATOMIC_IGNORE_OFF_PAGE(1));
+ GC_disable();
+ GC_FREE(GC_MALLOC_IGNORE_OFF_PAGE(2));
+ GC_enable();
}
}
# ifdef GC_GCJ_SUPPORT