unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* reallocating data not covered by gc
@ 2007-09-24 12:31 Klaus Schilling
  2007-09-26 18:47 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Klaus Schilling @ 2007-09-24 12:31 UTC (permalink / raw)
  To: guile-user

Is it dangerous to reallocate from scheme wrapper code
 pointers that have been allocated or 
declared NULL in code that was executed before boot_guile was called?
does declaring critical sections arround those reallocation calls
smoothen the situation?

Klaus Schilling


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: reallocating data not covered by gc
  2007-09-24 12:31 reallocating data not covered by gc Klaus Schilling
@ 2007-09-26 18:47 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2007-09-26 18:47 UTC (permalink / raw)
  To: guile-user

Hi,

Klaus Schilling <schilling.klaus@web.de> writes:

> Is it dangerous to reallocate from scheme wrapper code
>  pointers that have been allocated or 
> declared NULL in code that was executed before boot_guile was called?

Guile doesn't care about what you do with libc's malloc/realloc/etc. so
you can essentially use them to do whatever pleases you.  :-)

> does declaring critical sections arround those reallocation calls
> smoothen the situation?

Critical sections are unrelated: they are supposedly a way to block
execution of asyncs (although it's not all that clear from looking at
the code, especially since `scm_i_critical_section_mutex' doesn't seem
to be really used...).

Thanks,
Ludovic.



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-26 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-24 12:31 reallocating data not covered by gc Klaus Schilling
2007-09-26 18:47 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).