The first part happens of the magic happens in CEEInfo::getNewHelper in vm\jitinterface.cpp. This function returns CORINFO_HELP_NEW_CROSSCONTEXT for the remoting case. The JIT emits call to JIT_NewCrossContext to allocate the object.
The second part happens of the magic happens in JIT_NewCrossContext (or better in JIT_NewCrossContextHelper or CRemotingServices::CreateProxyOrObject). It is where the actual decision about going through the remoting path is made. -Jan This posting is provided "AS IS" with no warranties, and confers no rights. -----Original Message----- From: Discussion of the Rotor Shared Source CLI implementation [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Vasquez Lopez Sent: Thursday, January 22, 2004 6:17 PM To: [EMAIL PROTECTED] Subject: [DOTNET-ROTOR] newobj Question Importance: Low Hi guys!! Just for learning, I'd like to know the methods that are involved (source files), when the magic happens and the JITer decides whether or not to instance an object (newobj) locally or as a transparent proxy (injecting sinks, .net remoting stuffs, etc...). Thanks for any clue. Daniel Vasquez Lopez =================================== This list is hosted by DevelopMentor(r) http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com