Marek Safar
323f0816f4
Add missing types and methods
2014-03-11 23:22:16 +01:00
Marek Safar
9c4c295524
[corlib] Method signature fixes
2014-02-28 13:30:16 +01:00
Zoltan Varga
91ae2ef9aa
Implement net 4.5.1 generic wrapper methods in Marshal.
2013-09-25 13:04:02 +02:00
Miguel de Icaza
ad1327fad5
[corlib] Marshal: fine-tune the pointer Read/Write operations.
...
This patch reworks the Marshal's Read and Write pointer operations
to avoid performing a modulo operation to choose the fast path, as
in some platforms the modulo operation is implemented as a C subroutine.
Instead we use bit operations which always run in constant time.
It also avoids the IntPtr.XXX method calls, factors out "unsafe", only
ever performs one IntPtr->pointer conversion, and makes the source
code uniform.
2013-03-26 15:05:02 -04:00
Zoltan Varga
0681cc0f83
Fix the build.
2013-03-24 09:39:46 +01:00
Zoltan Varga
adc5d247ef
Use (uint) casts in the Marshal.Read/WriteXXX () methods to speed up the alignment checks.
2013-03-24 03:33:24 +01:00
Zoltan Varga
6dbaf9b671
Put back a cattr removed by mistake by 70141dc9f5.
2013-03-24 02:46:16 +01:00
Zoltan Varga
70141dc9f5
Implement the Marshal.Read/WriteXXX methods using unsafe code instead of icalls.
2013-03-24 02:43:27 +01:00
Martin Baulig
9ec4d6984f
Implement new .NET 4.5 Reflection APIs.
2013-03-12 18:07:53 -04:00
Marek Safar
788e0e94af
Use faster running on windows check
2013-02-28 09:19:46 +01:00
Rodrigo Kumpera
1b92a4148c
Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:42:18 -05:00
Rodrigo Kumpera
b96d05dac3
Kill the MOONLIGHT define in corlib.
2013-02-11 16:03:28 -05:00
Rodrigo Kumpera
41fe9f361c
RegistrationServices from the Mobile profile. This is only required for COM.
2012-11-30 14:55:05 -05:00
Alistair Leslie-Hughes
149a39937f
Implement RegistrationServices.GetProgIdForType
2012-11-21 10:07:52 +11:00
Rodrigo Kumpera
5d117b0d62
Remove more from COM in corlib.
...
* EXCEPINFO.cs: These types are only usable with the COM machinery
enabled. It's better to just take them out.
* Marshal.cs: The COM icalls are not available under DISABLE_COM
so let's make sure they are not present.
2012-11-09 13:09:14 -05:00
Rodrigo Kumpera
4bfb844ab5
Remove some COM types under Full AOT.
2012-11-06 18:18:14 -05:00
Rodrigo Kumpera
c9c806ea21
Expose MarshalAsAttribute to the runtime.
2012-11-05 14:16:12 -05:00
Alistair Leslie-Hughes
09280981cc
Implement Marshal.GenerateProgIdForType
2012-10-31 13:48:32 +11:00
Alistair Leslie-Hughes
f38e166592
Implement RegistrationServices.GetManagedCategoryGuid
2012-10-31 13:48:24 +11:00
Marek Safar
7883a2dafd
Clean up some static initializers
2012-10-03 12:19:55 +01:00
Marek Safar
241c64c12c
Fix attribute arguments
2012-07-27 12:25:42 +01:00
Marek Safar
b0c1e99f75
Fix attribute arguments
2012-07-26 12:48:27 +01:00
Miguel de Icaza
ae0feab435
Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported
2012-06-01 18:04:24 -04:00
Rodrigo Kumpera
83dccf8fe7
Add all missing sequential layout directives to corlib and system.
2011-12-13 11:57:23 -02:00
Miguel de Icaza
ee8ad64dc5
Include System.IO.MemoryMappedFiles in the MOBILE profile
2011-12-02 13:15:37 -05:00
Sebastien Pouliot
a8d733436c
Internalize [ComImport] in MONOTOUCH profile since it can make the (unlinked) application code crash (and we better spot this at compile time). Fix assistly #2357
2011-10-05 17:30:26 -04:00
Alan McGovern
ff29791d96
[GCHandle] Refactor so == and != do not box unnecessarily.
2011-04-29 14:37:12 +01:00
Marek Safar
eda489c823
Few 4.0 profile corcompare changes
2011-03-30 18:25:03 +01:00
Gonzalo Paniagua Javier
a9d2a48766
Fix Dispose()
2011-01-22 13:29:49 -05:00
Marek Safar
d84d7c7eb9
Remove no longer used BOOTSTRAP conditionals
2010-12-29 12:41:12 +00:00
Marek Safar
bd05c6c836
Some .net 4.0 api compatibility fixes
2010-12-15 11:12:07 +00:00
Jérémie Laval
599332d0e9
[SafeHandle] Fixing docs
2010-12-02 10:40:09 +00:00
Jérémie Laval
2c5ff41b8b
[SafeHandle] Add bits of documentation
2010-12-01 20:00:53 +00:00
Jérémie Laval
4f56dfeaa3
[SafeHandle] Make success parameter setting atomic wrt async exception in DangerousAddRef
2010-12-01 20:00:52 +00:00
Jérémie Laval
0597ee873f
[SafeHandle] Protect Close against asynchronous exceptions
2010-12-01 20:00:52 +00:00
Rodrigo Kumpera
1e7dff992a
Type is sealed, forgot to make it so.
2010-08-23 16:37:25 -03:00
Rodrigo Kumpera
16747ada5b
Implement System.Runtime.InteropServices.TypeIdentifierAttribute.
2010-08-23 16:03:25 -03:00
Geoff Norton
e3f98d2cbe
Fix GetDelegateForFunctionPointer for generic types
...
MSFT .NET throws an ArgumentException if you attempt to call
GetDelegateForFunctionPointer for a generic type.
2010-08-18 22:10:13 -04:00
Miguel de Icaza
2b35d60a5a
2010-04-02 Miguel de Icaza <[email protected] >
...
* SafeHandle.cs: Use refcount == -1 to indicate that the handle
had been closed.
The problem here is that we have no records of why the code that
threw a ObjectDisposedException inside the do { } while block on
DangerousAddRef was added. It seems it was added in response to
Close() methods being called and the need to throw that exception
on further calls to ObjectDisposedException.
Sadly, we have no test suites for that.
svn path=/trunk/mcs/; revision=154741
2010-04-02 21:49:40 +00:00
Jb Evain
05a5b21fa0
use MOONLIGHT symbol
...
svn path=/trunk/mcs/; revision=153656
2010-03-16 12:10:19 +00:00
Miguel de Icaza
65899ab05b
2009-12-13 Miguel de Icaza <[email protected] >
...
* SafeBuffer.cs: When comparing the end, we only need to compare
source+size being bigger than last_byte, not bigger or equal,
otherwise we can not access the last element.
svn path=/trunk/mcs/; revision=148365
2009-12-14 04:07:47 +00:00
Miguel de Icaza
341e962c14
Implement the class methods, currently disabled until 553650 is fixed in mcs
...
svn path=/trunk/mcs/; revision=145675
2009-11-08 19:16:42 +00:00
Miguel de Icaza
bddf1b1dba
2009-11-08 Miguel de Icaza <[email protected] >
...
* Marshal.cs: Expose copy_*_unamnaged to SafeBuffer.
* SafeBuffer.cs: Update SafeBufer implementation
svn path=/trunk/mcs/; revision=145670
2009-11-08 18:04:58 +00:00
Miguel de Icaza
3c39ac4586
Jumbo patch for NET_2_0, mscorlib is now clean
...
svn path=/trunk/mcs/; revision=145621
2009-11-06 22:23:59 +00:00
Miguel de Icaza
ddac7401a7
System.Reflection's turn to be de-ifdefified
...
svn path=/trunk/mcs/; revision=145241
2009-11-03 01:22:00 +00:00
Miguel de Icaza
141bcfb930
Jumbo NET_2_0 removal
...
svn path=/trunk/mcs/; revision=145235
2009-11-03 01:07:23 +00:00
Sebastien Pouliot
c2b792aa48
In System.Runtime.InteropServices:
...
2009-10-15 Sebastien Pouliot <[email protected] >
* GCHandle.cs: Add missing validations
In Test/System.Runtime.InteropServices:
2009-10-15 Sebastien Pouliot <[email protected] >
* GCHandleTest.cs: Add more test cases for validations
svn path=/trunk/mcs/; revision=144204
2009-10-15 14:20:03 +00:00
Geoff Norton
88026a47b4
fix MONOTOUCH on trunk
...
svn path=/trunk/mcs/; revision=144133
2009-10-14 18:49:14 +00:00
Sebastien Pouliot
e2572fab1e
2009-09-22 Sebastien Pouliot <[email protected] >
...
* _Assembly.cs: Remove Evidence and GlobalAssemblyCache
properties for NET_2_1
* Marshal.cs: Avoid depending on SecureString for NET_2_1
svn path=/trunk/mcs/; revision=142398
2009-09-22 13:35:47 +00:00
Sebastien Pouliot
9ced5e4815
2009-09-20 Sebastien Pouliot <[email protected] >
...
* MarshalAsAttribute.cs: Remove VarEnum field for NET_2_1
svn path=/trunk/mcs/; revision=142276
2009-09-20 15:58:24 +00:00