Skip to content

Instantly share code, notes, and snippets.

View luhenry's full-sized avatar

Ludovic Henry luhenry

View GitHub Profile
diff --git a/run-pinot.sh b/run-pinot.sh
index 7db609b..6a94d43 100755
--- a/run-pinot.sh
+++ b/run-pinot.sh
@@ -52,11 +52,11 @@ fi
mkdir -p $resultdir
-docker -H tcp://$SERVER1:5000 kill benchmarks-runner || true
-docker -H tcp://$SERVER2:5000 kill benchmarks-runner || true
@luhenry
luhenry / -
Last active March 25, 2020 01:44
============================= C1-compiled nmethod ==============================
----------------------------------- Assembly -----------------------------------
Compiled method (c1) 65 1 3 java.lang.Object::<init> (1 bytes)
total in heap [0x00007efd449c2010,0x00007efd449c2368] = 856
relocation [0x00007efd449c2188,0x00007efd449c21b0] = 40
main code [0x00007efd449c21c0,0x00007efd449c22a0] = 224
stub code [0x00007efd449c22a0,0x00007efd449c22f8] = 88
metadata [0x00007efd449c22f8,0x00007efd449c2308] = 16
[0.001s][info][os] Use of CLOCK_MONOTONIC is supported
[0.001s][info][os] Use of pthread_condattr_setclock is supported
[0.001s][info][os] Relative timed-wait using pthread_cond_timedwait is associated with CLOCK_MONOTONIC
[0.001s][info][os] HotSpot is running with glibc 2.27, NPTL 2.27
[0.001s][info][os] SafePoint Polling address, bad (protected) page:0x00007efef081a000, good (unprotected) page:0x00007efef081b000
[0.014s][info][os] attempting shared library load of /home/luhenry/git/jdk~master/build/linux-x86_64-server-fastdebug/images/jdk/lib/libjava.so
[0.014s][info][os] shared library load of /home/luhenry/git/jdk~master/build/linux-x86_64-server-fastdebug/images/jdk/lib/libjava.so was successful
[0.014s][info][os] attempting shared library load of /home/luhenry/git/jdk~master/build/linux-x86_64-server-fastdebug/images/jdk/lib/libzip.so
[0.014s][info][os] shared library load of /home/luhenry/git/jdk~master/build/linux-x86_64-server-fastdebug/images/jdk/lib/libzip.so was successful
This file has been truncated, but you can view the full file.
<?xml version='1.0' encoding='UTF-8'?>
<hotspot_log version='160 1' process='14855' time_ms='1583255934416'>
<vm_version>
<name>
OpenJDK 64-Bit Server VM
</name>
<release>
15-internal+0-adhoc.luhenry.jdk
</release>
<info>
This file has been truncated, but you can view the full file.
<?xml version='1.0' encoding='UTF-8'?>
<hotspot_log version='160 1' process='9140' time_ms='1583252680013'>
<vm_version>
<name>
OpenJDK 64-Bit Server VM
</name>
<release>
15-internal+0-adhoc.luhenry.jdk
</release>
<info>
import java.util.*;
import java.lang.reflect.*;
class FinalStaticReflection {
final static boolean keepGoing = true;
public static void main(String[] args) {
try {
Timer timer = new Timer();
diff --git a/src/System.Runtime/ref/System.Runtime.cs b/src/System.Runtime/ref/System.Runtime.cs
index b075c15182..d8cf1b78fc 100644
--- a/src/System.Runtime/ref/System.Runtime.cs
+++ b/src/System.Runtime/ref/System.Runtime.cs
@@ -1257,6 +1257,14 @@ namespace System
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8);
+ public readonly struct GCMemoryInfo
+ {
diff --git a/src/System.Private.CoreLib/src/System/Environment.CoreCLR.cs b/src/System.Private.CoreLib/src/System/Environment.CoreCLR.cs
index d5fea8a..086c3e1 100644
--- a/src/System.Private.CoreLib/src/System/Environment.CoreCLR.cs
+++ b/src/System.Private.CoreLib/src/System/Environment.CoreCLR.cs
@@ -83,10 +83,12 @@ namespace System
get;
}
- public static int ProcessorCount => GetProcessorCount();
+ public static int ProcessorCount => GetProcessorCount(withCpuLimit: false);
class Cache<TKey, TValue> { }
FROM microsoft/dotnet-buildtools-prereqs:rhel7_prereqs_2
RUN rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm \
&& yum update -y --skip-broken \
&& yum install -y dotnet-sdk-2.2
RUN mkdir -p /tmp/dotnet \
&& cd /tmp/dotnet \
&& dotnet new console \
&& curl https://gist.githubusercontent.com/luhenry/22b021f36d5f4559776095e73cbe483e/raw/b426f8393b789b657bdd25ac2837026af43f590c/Program.cs > Program.cs \