summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-09-15 13:41:53 +0400
committerIvan Maidanski <ivmai@mail.ru>2013-09-15 13:41:53 +0400
commitfa0449e380c5ed7ed298a254a5564049c469207c (patch)
treee33dcf73ea2699388c3e3298c521de45cb7466b4
parent97f113395e228567eec1f9105bccdd7d3db6c66e (diff)
downloadbdwgc-fa0449e380c5ed7ed298a254a5564049c469207c.tar.gz
Revert "All interior pointers must be enabled for finalized allocation."
(Ensuring all-interior-pointers mode is no longer needed.) This reverts commit 97f113395e228567eec1f9105bccdd7d3db6c66e.
-rw-r--r--fnlz_mlc.c4
-rw-r--r--include/gc_disclaim.h3
-rw-r--r--tests/disclaim_bench.c1
-rw-r--r--tests/disclaim_test.c1
4 files changed, 1 insertions, 8 deletions
diff --git a/fnlz_mlc.c b/fnlz_mlc.c
index 005c08b6..f7fd0db7 100644
--- a/fnlz_mlc.c
+++ b/fnlz_mlc.c
@@ -49,10 +49,6 @@ static GC_bool done_init = FALSE;
GC_API void GC_CALL GC_init_finalized_malloc(void)
{
- if (!GC_get_all_interior_pointers())
- ABORT("GC_set_all_interior_pointers(1) is required for finalized "
- "object allocation.");
-
DCL_LOCK_STATE;
GC_init(); /* In case it's not already done. */
diff --git a/include/gc_disclaim.h b/include/gc_disclaim.h
index c35a451b..2e8013d2 100644
--- a/include/gc_disclaim.h
+++ b/include/gc_disclaim.h
@@ -22,8 +22,7 @@
/* Prepare the object kind used by GC_finalized_malloc. Call it from */
/* your initialization code or, at least, at some point before using */
-/* finalized allocations. The function is thread-safe. All interior */
-/* pointers must be enabled (GC_set_all_interior_pointers(1)). */
+/* finalized allocations. The function is thread-safe. */
GC_API void GC_CALL GC_init_finalized_malloc(void);
/* Type of a disclaim call-back, always stored along with closure data */
diff --git a/tests/disclaim_bench.c b/tests/disclaim_bench.c
index 2dc3fb55..dfd71be3 100644
--- a/tests/disclaim_bench.c
+++ b/tests/disclaim_bench.c
@@ -80,7 +80,6 @@ int main(int argc, char **argv)
int model, model_min, model_max;
testobj_t *keep_arr;
- GC_set_all_interior_pointers(1);
GC_INIT();
GC_init_finalized_malloc();
diff --git a/tests/disclaim_test.c b/tests/disclaim_test.c
index 4eeeaa68..8e71828c 100644
--- a/tests/disclaim_test.c
+++ b/tests/disclaim_test.c
@@ -140,7 +140,6 @@ int main(void)
int i;
#endif
- GC_set_all_interior_pointers(1);
GC_INIT();
GC_init_finalized_malloc();