[PATCH] Cygwin: sigproc.cc: add comment

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Cygwin: sigproc.cc: add comment

cygwin-patches mailing list
---
 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

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Cygwin: sigproc.cc: add comment

Corinna Vinschen-2
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