mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-21 11:10:21 +02:00
Merge remote-tracking branch 'origin/stable-2.0'
Conflicts: configure.ac
This commit is contained in:
commit
bfe35b90ff
10 changed files with 199 additions and 107 deletions
|
@ -95,7 +95,11 @@ scm_realloc (void *mem, size_t size)
|
|||
return ptr;
|
||||
|
||||
/* Time is hard: trigger a full, ``stop-the-world'' GC, and try again. */
|
||||
#ifdef HAVE_GC_GCOLLECT_AND_UNMAP
|
||||
GC_gcollect_and_unmap ();
|
||||
#else
|
||||
GC_gcollect ();
|
||||
#endif
|
||||
|
||||
SCM_SYSCALL (ptr = realloc (mem, size));
|
||||
if (ptr)
|
||||
|
|
|
@ -200,7 +200,11 @@ GC_get_heap_usage_safe (GC_word *pheap_size, GC_word *pfree_bytes,
|
|||
{
|
||||
*pheap_size = GC_get_heap_size ();
|
||||
*pfree_bytes = GC_get_free_bytes ();
|
||||
#ifdef HAVE_GC_GET_UNMAPPED_BYTES
|
||||
*punmapped_bytes = GC_get_unmapped_bytes ();
|
||||
#else
|
||||
*punmapped_bytes = 0;
|
||||
#endif
|
||||
*pbytes_since_gc = GC_get_bytes_since_gc ();
|
||||
*ptotal_bytes = GC_get_total_bytes ();
|
||||
}
|
||||
|
|
|
@ -2847,6 +2847,11 @@ scm_init_ports ()
|
|||
(scm_from_int ((int) SCM_FAILED_CONVERSION_QUESTION_MARK)));
|
||||
scm_conversion_strategy_init = 1;
|
||||
|
||||
/* These bindings are used when boot-9 turns `current-input-port' et
|
||||
al into parameters. They are then removed from the guile module. */
|
||||
scm_c_define ("%current-input-port-fluid", cur_inport_fluid);
|
||||
scm_c_define ("%current-output-port-fluid", cur_outport_fluid);
|
||||
scm_c_define ("%current-error-port-fluid", cur_errport_fluid);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue