public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] Cygwin: sigproc.cc: add comment
@ 2020-08-29 10:01 Ken Brown
  2020-08-30 12:41 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Brown @ 2020-08-29 10:01 UTC (permalink / raw)
  To: cygwin-patches

---
 winsup/cygwin/sigproc.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 2a9734f00..47352c213 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -44,7 +44,11 @@ char NO_COPY myself_nowait_dummy[1] = {'0'};
 
 #define Static static NO_COPY
 
-/* All my children info.  Avoid expensive constructor ops at DLL startup */
+/* All my children info.  Avoid expensive constructor ops at DLL
+   startup.
+
+   This class can allocate memory.  But there's no need to free it
+   because only one instance of the class is created per process. */
 class child_procs {
 #ifdef __i386__
     static const int _NPROCS = 256;
-- 
2.28.0


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

* Re: [PATCH] Cygwin: sigproc.cc: add comment
  2020-08-29 10:01 [PATCH] Cygwin: sigproc.cc: add comment Ken Brown
@ 2020-08-30 12:41 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2020-08-30 12:41 UTC (permalink / raw)
  To: cygwin-patches

On Aug 29 06:01, Ken Brown via Cygwin-patches wrote:
> ---
>  winsup/cygwin/sigproc.cc | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
> index 2a9734f00..47352c213 100644
> --- a/winsup/cygwin/sigproc.cc
> +++ b/winsup/cygwin/sigproc.cc
> @@ -44,7 +44,11 @@ char NO_COPY myself_nowait_dummy[1] = {'0'};
>  
>  #define Static static NO_COPY
>  
> -/* All my children info.  Avoid expensive constructor ops at DLL startup */
> +/* All my children info.  Avoid expensive constructor ops at DLL
> +   startup.
> +
> +   This class can allocate memory.  But there's no need to free it
> +   because only one instance of the class is created per process. */
>  class child_procs {
>  #ifdef __i386__
>      static const int _NPROCS = 256;
> -- 
> 2.28.0

Sure, why not.


Thanks,
Corinna

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

end of thread, other threads:[~2020-08-30 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-29 10:01 [PATCH] Cygwin: sigproc.cc: add comment Ken Brown
2020-08-30 12:41 ` Corinna Vinschen

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).