Fix fallout from enabling profiling
authorJan Kotas <jkotas@microsoft.com>
Tue, 2 Feb 2016 02:13:41 +0000 (18:13 -0800)
committerJan Kotas <jkotas@microsoft.com>
Tue, 2 Feb 2016 03:21:37 +0000 (19:21 -0800)
- Compiler optimization assumption invalid: EE expects method to exist: System.StubHelpers.StubHelpers:ProfilerBeginTransitionCallback
- Add stubs for ARM

clr.coreclr.props
src/mscorlib/model.xml
src/vm/arm/unixstubs.cpp

index 2373b7b..77b5791 100644 (file)
 
     <FeatureStubsAsIL>true</FeatureStubsAsIL>
 
-    <ProfilingSupportedBuild>false</ProfilingSupportedBuild>
-
     <!-- Windows specific features -->
     <FeatureWin32Registry>false</FeatureWin32Registry>
     <FeatureAppX>false</FeatureAppX>
index 49295b5..7d51ae8 100644 (file)
       <Member Name="MarshalToManagedVaListInternal(System.IntPtr,System.IntPtr)" />
       <Member Name="MarshalToUnmanagedVaListInternal(System.IntPtr,System.UInt32,System.IntPtr)" />
       <Member Name="CalcVaListSize(System.IntPtr)" />
-      <Member Name="ProfilerBeginTransitionCallback(System.IntPtr,System.IntPtr,System.Object)" Platform="Win" /> <!-- EE -->
-      <Member Name="ProfilerEndTransitionCallback(System.IntPtr,System.IntPtr)" Platform="Win" /> <!-- EE -->
+      <Member Name="ProfilerBeginTransitionCallback(System.IntPtr,System.IntPtr,System.Object)" /> <!-- EE -->
+      <Member Name="ProfilerEndTransitionCallback(System.IntPtr,System.IntPtr)" /> <!-- EE -->
       <Member Name="SafeHandleAddRef(System.Runtime.InteropServices.SafeHandle,System.Boolean@)" />
       <Member Name="SafeHandleRelease(System.Runtime.InteropServices.SafeHandle)" />
       <Member Name="ValidateObject(System.Object,System.IntPtr,System.Object)" />
index 0cfb7c6..9fd4cbf 100644 (file)
@@ -35,4 +35,19 @@ extern "C"
     {
         PORTABILITY_ASSERT("Implement for PAL");
     }
+
+    void ProfileEnterNaked(FunctionIDOrClientID functionIDOrClientID)
+    {
+        PORTABILITY_ASSERT("Implement for PAL");
+    }
+
+    void ProfileLeaveNaked(FunctionIDOrClientID functionIDOrClientID)
+    {
+        PORTABILITY_ASSERT("Implement for PAL");
+    }
+
+    void ProfileTailcallNaked(FunctionIDOrClientID functionIDOrClientID)
+    {
+        PORTABILITY_ASSERT("Implement for PAL");
+    }
 };