pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

coreclr-git: Include patch for getrusage(2) fix



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Feb 21 05:33:03 2016 +0100
Changeset:	23f3e08f0cfe73aefc6572d3ecaf1891acc5948f

Added Files:
	coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetProcessTimes_test2_test2.c

Log Message:
coreclr-git: Include patch for getrusage(2) fix

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=23f3e08f0cfe73aefc6572d3ecaf1891acc5948f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ...alsuite_threading_GetProcessTimes_test2_test2.c | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diffs:
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetProcessTimes_test2_test2.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetProcessTimes_test2_test2.c
new file mode 100644
index 0000000..dc4b099
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_threading_GetProcessTimes_test2_test2.c
@@ -0,0 +1,32 @@
+$NetBSD$
+
+--- src/pal/tests/palsuite/threading/GetProcessTimes/test2/test2.c.orig	2016-01-28 19:04:13.000000000 +0000
++++ src/pal/tests/palsuite/threading/GetProcessTimes/test2/test2.c
+@@ -25,7 +25,7 @@ int __cdecl main( int argc, char **argv 
+ 
+ {
+     int i, j, k;
+-    int total = 0;
++    int *total;
+     
+     HANDLE hProcess;    
+     FILETIME createTime;
+@@ -76,11 +76,16 @@ int __cdecl main( int argc, char **argv 
+     {
+         for( j=0; j<1000; j++ )
+         {
+-            total = j * i;
++            /* do kernel work to increase system usage counters */
++            total = malloc(1024 * 1024);
++
++            *total = j * i;
+             for( k=0; k<1000; k++ )
+             {
+-                total += k + i;
++                *total += k + i;
+             }
++
++            free(total);
+         }
+     }
+ 


Home | Main Index | Thread Index | Old Index