Skip to content

Instantly share code, notes, and snippets.

View kangaroo's full-sized avatar

Geoff Norton kangaroo

View GitHub Profile
linaro@linaro-alip:~/coreclr/bin/Product/Linux.arm64.Debug$ export COMPlus_JitFunctionTrace=1
linaro@linaro-alip:~/coreclr/bin/Product/Linux.arm64.Debug$ ./corerun hw.exe
{ Start Jitting System.AppDomain:SetupDomain(bool,ref,ref,ref,ref):this
} Jitted Entry 001 at 0000007f`85823990 method System.AppDomain:SetupDomain(bool,ref,ref,ref,ref):this size 000000fc
{ Start Jitting System.AppDomain:SetupFusionStore(ref,ref):this
} Jitted Entry 002 at 0000007f`85823ab8 method System.AppDomain:SetupFusionStore(ref,ref):this size 000000e4
{ Start Jitting System.AppDomainSetup:VerifyDir(ref,bool):ref:this
} Jitted Entry 003 at 0000007f`85823bb8 method System.AppDomainSetup:VerifyDir(ref,bool):ref:this size 00000048
{ Start Jitting System.AppDomainSetup:SetupDefaults(ref,bool):this
} Jitted Entry 004 at 0000007f`85824020 method System.AppDomainSetup:SetupDefaults(ref,bool):this size 0000025c
using Microsoft.Win32;
using Microsoft.Win32.SafeHandles;
using System;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;
using System.Security;
namespace System.IO
{
/// <summary>Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of <see cref="T:System.IO.FileStream" /> objects.</summary>
/// <filterpriority>1</filterpriority>
npm install
Making all in ejs-llvm
make[1]: Entering directory `/home/ubuntu/echojs/ejs-llvm'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ubuntu/echojs/ejs-llvm'
Making all in lib
make[1]: Entering directory `/home/ubuntu/echojs/lib'
[babel] compiler.js
[BABEL] Note: The code generator has deoptimised the styling of "compiler.js" as it exceeds the max of "100KB".
make[1]: Leaving directory `/home/ubuntu/echojs/lib'
diff --git a/src/jit/compiler.hpp b/src/jit/compiler.hpp
index 08d2a51..a53f0f8 100644
--- a/src/jit/compiler.hpp
+++ b/src/jit/compiler.hpp
@@ -764,11 +764,27 @@ inline
inline
float getR4LittleEndian(const BYTE * ptr)
-{ return *(UNALIGNED float*)ptr; }
+{
(lldb) r
Process 32271 launching
Segmentation fault
ubuntu@ubuntu:~/coreclr/bin/Product/Linux.arm.Debug$
Last login: Thu Jun 11 23:01:06 on ttys000
basalt:~ plasma$ source dnvm.sh
basalt:~ plasma$ dnvm install latest -r coreclr -u
Determining latest version
Latest version is 1.0.0-beta6-12005
Downloading dnx-coreclr-darwin-x64.1.0.0-beta6-12005 from https://www.myget.org/F/aspnetvnext/api/v2
Download: https://www.myget.org/F/aspnetvnext/api/v2/package/dnx-coreclr-darwin-x64/1.0.0-beta6-12005
######################################################################## 100.0%
Installing to /Users/plasma/.dnx/runtimes/dnx-coreclr-darwin-x64.1.0.0-beta6-12005
Adding /Users/plasma/.dnx/runtimes/dnx-coreclr-darwin-x64.1.0.0-beta6-12005/bin to process PATH
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMInitialize.577: Now initializing global shared memory system
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMInitialize.634: Mapped first SHM segment at 00759000
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMInitPool.1746: Initializing SHM pool for 16-byte blocks
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMLinkPool.1796: Linking 4093 blocks of 16 bytes, starting at 0x000000c0
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMLinkPool.1823: New linked pool goes from 0x000000c0 to 0x00010080
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMInitPool.1766: New SHM pool extends from SHMPTR 0x000000c0 to 0x00010080
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMInitPool.1746: Initializing SHM pool for 32-byte blocks
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMLinkPool.1796: Linking 2046 blocks of 32 bytes, starting at 0x00010090
{0x801c0a400-0x8020c0260} TRACE [SHMEM ] at SHMLinkPool.1823: New linked pool goes from 0x00010090 to 0x00020030
{0x801c0a400-0x8020
using System;
using OSX.Foundation;
class Driver {
static void Main (string[] args) {
var str = new NSString ("This is an objc string");
Console.WriteLine ("Dump: {0} {1}", str == null, str);
}
}
basalt:OSX.x64.Debug plasma$ ./corerun -c . hw.exe
frame #6: 0x0000000102249e75 libcoreclr.dylib`SimplerHashTable<ValueNumStore::VNDefFunc4Arg, ValueNumStore::VNDefFunc4ArgKeyFuncs, unsigned int, DefaultSimplerHashBehavior>::FindNode(this=0xdddddddddddddddd, k=VNDefFunc4Arg at 0x00007fff5fbfa750) const + 21 at simplerhash.inl:185
182 }
183 CONTRACT_END;
184
-> 185 if (m_tableSizeInfo.prime == 0)
186 RETURN NULL;
187
188 unsigned index = GetIndexForKey(k);
(lldb) p this
(SimplerHashTable<ValueNumStore::VNDefFunc4Arg, ValueNumStore::VNDefFunc4ArgKeyFuncs, unsigned int, DefaultSimplerHashBehavior> *) $5 = 0xdddddddddddddddd
diff --git a/src/debug/di/amd64/floatconversion.S b/src/debug/di/amd64/floatconversion.S
index ae02176..932fcf3 100644
--- a/src/debug/di/amd64/floatconversion.S
+++ b/src/debug/di/amd64/floatconversion.S
@@ -9,4 +9,4 @@
LEAF_ENTRY FPFillR8, _TEXT
movdqa xmm0, [rdi]
ret
-LEAF_END FPFillR8, _TEXT
+LEAF_END FPFillR8, _TEXT, Unwind