Robert Jordan [Tue, 26 Aug 2008 19:40:56 +0000 (19:40 -0000)]
2008-08-26 Robert Jordan <robertj@gmx.net>
* AppDomain.cs (get_Evidence): Fix endless recursion exposed
by the test case of bug #420197.
svn path=/trunk/mcs/; revision=111650
Veerapuram Varadhan [Tue, 26 Aug 2008 19:39:27 +0000 (19:39 -0000)]
Don't call GetSchemaTable() from the constructor, just fetch the column
information.
Patch provided by Ernesto.
svn path=/trunk/mcs/; revision=111649
Veerapuram Varadhan [Tue, 26 Aug 2008 19:26:36 +0000 (19:26 -0000)]
Test for binary type handling
svn path=/trunk/mcs/; revision=111648
Zoltan Varga [Tue, 26 Aug 2008 19:12:52 +0000 (19:12 -0000)]
Remove a FIXME.
svn path=/trunk/mono/; revision=111643
Zoltan Varga [Tue, 26 Aug 2008 19:10:26 +0000 (19:10 -0000)]
2008-08-26 Zoltan Varga <vargaz@gmail.com>
* aot-runtime.c (mono_aot_get_method): Add a cache for wrapper names to
avoid repeated linear searches.
svn path=/trunk/mono/; revision=111641
Veerapuram Varadhan [Tue, 26 Aug 2008 19:07:02 +0000 (19:07 -0000)]
Handle Binary type as well. Patch provided by Ernesto
<equistango@gmail.com>
svn path=/trunk/mcs/; revision=111640
Zoltan Varga [Tue, 26 Aug 2008 18:43:49 +0000 (18:43 -0000)]
2008-08-26 Zoltan Varga <vargaz@gmail.com>
* Descriptors/mscorlib.xml: Add EntryPointNotFoundException.
svn path=/trunk/mcs/; revision=111637
Jonathan Pobst [Tue, 26 Aug 2008 16:34:04 +0000 (16:34 -0000)]
2008-08-26 Jonathan Pobst <monkey@jpobst.com>
* ErrorProvider.cs: Fix a regression NRE when setting properties
for a control before it has a parent.
[Fixes bug #420305]
2008-08-26 Jonathan Pobst <monkey@jpobst.com>
* ErrorProviderTest.cs: Add test for bug #420305.
svn path=/trunk/mcs/; revision=111626
Marek Safar [Tue, 26 Aug 2008 13:12:35 +0000 (13:12 -0000)]
New tests.
svn path=/trunk/mcs/; revision=111607
Marek Safar [Tue, 26 Aug 2008 13:12:11 +0000 (13:12 -0000)]
2008-08-26 Marek Safar <marek.safar@gmail.com>
* generic.cs, ecore.cs, delegate.cs, cs-parser.jay, expression.cs: A type
parameter cannot be always used as a type.
svn path=/trunk/mcs/; revision=111605
Daniel Morgan [Tue, 26 Aug 2008 06:33:55 +0000 (06:33 -0000)]
2008-08-26 Daniel Morgan <monodanmorg@yahoo.com>
* System.Data.OracleClient/OracleParameter.cs
* System.Data.OracleClient.Oci/OciStatementHandle.cs
* System.Data.OracleClient.Oci/OciDefineHandle.cs: fix bug
for GetOracleLob in OracleDataReader that was created
via a REF CURSOR. Bug occurred because the cursor when created
did not have a ServiceContext - this was solved by passing
the connection in which did. Fixes bug#350408. In OracleParameter, also
show the data type that is not implemented.
* Test/testblob.cs
* Test/TestOracleClient.cs: updated tests
* Test/refcursortest.cs: added ref cursor test with blob
svn path=/trunk/mcs/; revision=111595
Scott Thomas [Tue, 26 Aug 2008 01:51:50 +0000 (01:51 -0000)]
Fixed bug 417833 which allowed for the creation of illegal
BitVector32.Sections. Also added a unit test for the bug.
svn path=/trunk/mcs/; revision=111591
Marek Habersack [Tue, 26 Aug 2008 00:58:27 +0000 (00:58 -0000)]
2008-08-26 Marek Habersack <mhabersack@novell.com>
* TemplateControlParser.cs: added support for the VirtualPath
attribute of the Reference directive.
In the 2.0 profile, all the references are compiled using
BuildManager.GetCompiledType now.
svn path=/trunk/mcs/; revision=111589
Marek Habersack [Tue, 26 Aug 2008 00:14:14 +0000 (00:14 -0000)]
2008-08-26 Marek Habersack <mhabersack@novell.com>
* BuildManager.cs: use VirtualPathUtility.Combine in
GetAbsoluteVirtualPath for non-rooted paths.
svn path=/trunk/mcs/; revision=111587
Zoltan Varga [Mon, 25 Aug 2008 21:31:50 +0000 (21:31 -0000)]
2008-08-25 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Applied patch from tom hindle (tom_hindle@sil.org) to fix
crashes in bstr marshalling on linux.
svn path=/trunk/mono/; revision=111576
Marek Habersack [Mon, 25 Aug 2008 20:39:29 +0000 (20:39 -0000)]
2008-08-25 Marek Habersack <mhabersack@novell.com>
* DataBoundControl.cs:
Do not reconnect to the data source if we already have a valid one
svn path=/trunk/mcs/; revision=111572
Carlos Alberto Cortez [Mon, 25 Aug 2008 20:12:54 +0000 (20:12 -0000)]
2008-08-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Binding.cs: Use the BindingManagerBase.Current value to obtain
connect the property "Changed" event, instead of using the data
sources - this is useful when the property specifies actually a
multiple objects path.
Fixes part of #417973.
svn path=/trunk/mcs/; revision=111565
Miguel de Icaza [Mon, 25 Aug 2008 19:45:39 +0000 (19:45 -0000)]
Apply patch from Atsushi Enomoto to fix #397627
svn path=/trunk/mcs/; revision=111562
Zoltan Varga [Mon, 25 Aug 2008 17:48:42 +0000 (17:48 -0000)]
2008-08-25 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (add_wrappers): Avoid calling get_runtime_invoke with
methods it can't handle.
svn path=/trunk/mono/; revision=111542
Zoltan Varga [Mon, 25 Aug 2008 17:28:24 +0000 (17:28 -0000)]
2008-08-25 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (add_method): Avoid adding a method twice.
(add_wrappers): Add runtime invoke wrappers for all methods.
svn path=/trunk/mono/; revision=111539
Miguel de Icaza [Mon, 25 Aug 2008 15:59:34 +0000 (15:59 -0000)]
Compared against .NET
svn path=/trunk/mcs/; revision=111538
Atsushi Eno [Mon, 25 Aug 2008 14:55:21 +0000 (14:55 -0000)]
2008-08-25 Atsushi Enomoto <atsushi@ximian.com>
* RelaxngPattern.cs : unlike "include" element, "external" element
was always resolved as XML syntax, and hence blocked use of
external element in compact syntax.
svn path=/trunk/mcs/; revision=111535
Marek Habersack [Mon, 25 Aug 2008 10:48:28 +0000 (10:48 -0000)]
2008-08-25 Marek Habersack <mhabersack@novell.com>
* DataBoundControl.cs: set RequiresDataBinding to true in
Initialize only if not in a postback, if not data bound and if the
view state is enabled. Fixes bug #398318
UpdateViewData removes the OnDataSourceViewChanged handler before
connecting to the datasource and restores it before returning to
the caller.
OnLoad gets the data source before initialization, to avoid
premature OnDataSourceViewChanged triggers. Fixes bug #398318
svn path=/trunk/mcs/; revision=111526
Daniel Morgan [Mon, 25 Aug 2008 04:56:38 +0000 (04:56 -0000)]
2008-08-25 Daniel Morgan <monodanmorg@yahoo.com>
* System.Data.OracleClient/OracleCommand.cs
* System.Data.OracleClient.Oci/OciHandle.cs
* System.Data.OracleClient.Oci/OciRowIdDescriptor.cs: fix
bug 378470 by fixing method ExecuteOracleNonQuery
by getting the Universal ROWID and
returning it as an output parameter OracleString.
This will only work for Oracle 9i clients and above.
svn path=/trunk/mcs/; revision=111525
Miguel de Icaza [Mon, 25 Aug 2008 03:48:12 +0000 (03:48 -0000)]
Another missing feature, handle Alt-Backspace
svn path=/trunk/mcs/; revision=111524
Miguel de Icaza [Mon, 25 Aug 2008 03:30:06 +0000 (03:30 -0000)]
2008-08-24 Miguel de Icaza <miguel@novell.com>
* TermInfoDriver.cs (GetKeyFromBuffer): Add support for reporting
Alt-LETTER sequences. They were ignored previously.
svn path=/trunk/mcs/; revision=111523
Zoltan Varga [Mon, 25 Aug 2008 00:34:26 +0000 (00:34 -0000)]
2008-08-25 Zoltan Varga <vargaz@gmail.com>
* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): New
function to create an aot-compatible version of this trampoline.
* aot-compiler.c aot-runtime.c: Add support for AOT rgctx fetch trampolines.
svn path=/trunk/mono/; revision=111518
Carlos Alberto Cortez [Sun, 24 Aug 2008 23:14:26 +0000 (23:14 -0000)]
2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ListControlTest.cs: Add a container for a mock item, to test
multiple nested properties.
* BindingContextTest.cs: New test for the overload of the indexer
taking a data source with a data member (including nested properties,
or multiple objects, as msdnstates).
svn path=/trunk/mcs/; revision=111517
Carlos Alberto Cortez [Sun, 24 Aug 2008 23:10:43 +0000 (23:10 -0000)]
2008-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* RelatedPropertyManager.cs: PropertyManager instances associated to a
nested properties should return not the properties of the data source
itself, but the properties of the type of a specific property in the
data source - match .net.
svn path=/trunk/mcs/; revision=111516
Zoltan Varga [Sun, 24 Aug 2008 20:07:42 +0000 (20:07 -0000)]
2008-08-24 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (compile_method): Skip wrappers of generic icalls.
* method-to-ir.c (mono_method_to_ir2): Replace an assert in UNBOX_ANY
with a generic sharing failure.
svn path=/trunk/mono/; revision=111513
Zoltan Varga [Sun, 24 Aug 2008 19:49:00 +0000 (19:49 -0000)]
2008-08-24 Zoltan Varga <vargaz@gmail.com>
* debug-helpers.c (mono_type_get_desc): Fix priting of generic instances
with more than one parameter.
svn path=/trunk/mono/; revision=111512
Miguel de Icaza [Sun, 24 Aug 2008 18:07:22 +0000 (18:07 -0000)]
Fix my last commit; I was testing C-q char, and got the wrong result
svn path=/trunk/mono/; revision=111511
Gert Driesen [Sun, 24 Aug 2008 17:15:35 +0000 (17:15 -0000)]
* ListBoxTest.cs: Added tests for SetItemsCore. Added and improved tests
for ObjectCollection. Added tests for IntegerCollection.
* ListBox.cs (IntegerCollection): To avoid duplication, moved code for
AddRange overloads into AddItems method, and added missing NULL check.
Added extra argument check to RemoveAt for compatibility with MS.
Modified IList implementation of Add, Contains, IndexOf and Remove to
throw an ArgumentException if item is not an int. Modified IList.Insert
to throw a NotSupportException instead of an Exception. Implemented
ICollection.
(ObjectCollection): To avoid duplication, use AddItems method from
AddRange overloads. On 1.0 profile, first perform NULL check on items
in AddItems.
svn path=/trunk/mcs/; revision=111509
Miguel de Icaza [Sun, 24 Aug 2008 17:14:21 +0000 (17:14 -0000)]
2008-08-24 Miguel de Icaza <miguel@novell.com>
* console-io.c (ves_icall_System_ConsoleDriver_TtySetup): Disable
start/stop flow control as well when turning off ICANON (allows
C-s and C-q to be read by Console.ReadKey).
svn path=/trunk/mono/; revision=111508
Gert Driesen [Sun, 24 Aug 2008 16:29:30 +0000 (16:29 -0000)]
* ResXFileRefTest.cs: Fixed/added attributes on SetUp and TearDown
methods.
svn path=/trunk/mcs/; revision=111507
Zoltan Varga [Sun, 24 Aug 2008 14:38:22 +0000 (14:38 -0000)]
2008-08-24 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (emit_klass_info): Call mono_class_get_nested_types ().
svn path=/trunk/mono/; revision=111500
Zoltan Varga [Sun, 24 Aug 2008 14:37:51 +0000 (14:37 -0000)]
2008-08-24 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_init): Move the initialization of nested classes
into mono_class_get_nested_types (). Fixes #418433.
* class-internals.h (struct _MonoClass): Add a new 'nested_classes_inited'
flag.
* class.c reflection.c icall.c: Use mono_class_get_nested_types () for
iterating tough the nested classes of a class.
svn path=/trunk/mono/; revision=111499
Zoltan Varga [Sun, 24 Aug 2008 12:32:42 +0000 (12:32 -0000)]
2008-08-24 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_method_to_ir2): Rethrow the correct exception in
CEE_RETHROW. Fixes #419634.
* mini.c (mono_method_to_ir): Ditto.
* exceptions.cs: Add a new test.
svn path=/trunk/mono/; revision=111497
Zoltan Varga [Sun, 24 Aug 2008 12:05:27 +0000 (12:05 -0000)]
2008-08-24 Zoltan Varga <vargaz@gmail.com>
* generic-sharing.c (mini_type_stack_size): Always pass TRUE as allow_open
to mono_type_stack_size_internal () since some callers might not pass in
an rgctx.
* mini-x86.c (mono_arch_emit_prolog): Store the rgctx before calling
instrument_prolog. Fixes #419878.
svn path=/trunk/mono/; revision=111495
Zoltan Varga [Sun, 24 Aug 2008 11:16:44 +0000 (11:16 -0000)]
2008-08-24 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_compile_create_var_for_vreg): Make the lvars representing
doubles in soft float mode volatile.
svn path=/trunk/mono/; revision=111494
Daniel Morgan [Sat, 23 Aug 2008 19:32:07 +0000 (19:32 -0000)]
2008-08-23 Daniel Morgan <monodanmorg@yahoo.com>
* System.Data.OracleClient.dll.sources: added
files to build:
OracleClientFactory.cs
OracleConnectionStringBuilder.cs
* System.Data.OracleClient/OracleClientFactory.cs: added
method to file: DbConnectionStringBuilder and modified
CreateDataSourceEnumerator to return a null
* System.Data.OracleClient/OracleConnectionStringBuilder.cs: add
new file
svn path=/trunk/mcs/; revision=111478
Zoltan Varga [Sat, 23 Aug 2008 18:39:55 +0000 (18:39 -0000)]
2008-08-23 Zoltan Varga <vargaz@gmail.com>
* ir-emit.h (NEW_ARGSTORE): Use cfg->args and cfg->arg_types to fix the build.
svn path=/trunk/mono/; revision=111475
Zoltan Varga [Sat, 23 Aug 2008 14:43:51 +0000 (14:43 -0000)]
2008-08-23 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_generic_sharing_enabled): Enable generic sharing
on arm.
svn path=/trunk/mono/; revision=111468
Zoltan Varga [Sat, 23 Aug 2008 14:22:36 +0000 (14:22 -0000)]
2008-08-23 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_save_args): Use ARGSTORE instead of TEMPSTORE
to handle soft float correctly.
svn path=/trunk/mono/; revision=111467
Gert Driesen [Sat, 23 Aug 2008 13:27:39 +0000 (13:27 -0000)]
* Control.cs: Do not modify bounds directly in .ctor's. Fixes bug
#419087.
* ControlTest.cs: Added .ctor tests.
svn path=/trunk/mcs/; revision=111461
Zoltan Varga [Sat, 23 Aug 2008 13:20:17 +0000 (13:20 -0000)]
2008-08-23 Zoltan Varga <vargaz@gmail.com>
* tramp-arm.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Implement
the fast path.
svn path=/trunk/mono/; revision=111460
Zoltan Varga [Sat, 23 Aug 2008 01:43:05 +0000 (01:43 -0000)]
2008-08-23 Zoltan Varga <vargaz@gmail.com>
* WebConnectionStream.cs (WriteRequest): Fix the copying in the
previous patch, when bytes.Length != length.
svn path=/trunk/mcs/; revision=111456
Miguel de Icaza [Sat, 23 Aug 2008 00:42:18 +0000 (00:42 -0000)]
2008-08-22 Miguel de Icaza <miguel@novell.com>
* console-io.c (sigcont_handler): Support signal chaining for
SIGCONT.
(console_set_signal_handlers): Use best practices with sigaction,
clear the structure before using it.
svn path=/trunk/mono/; revision=111454
Zoltan Varga [Fri, 22 Aug 2008 23:31:09 +0000 (23:31 -0000)]
2008-08-23 Zoltan Varga <vargaz@gmail.com>
* mini.h (struct MonoCallInst): Add dynamic_imt_arg boolean field.
* exceptions-arm.c (mono_arch_find_jit_info): Set ctx->regs [ARMREG_R11]
to sp, since the generics catch code requires it.
* mini-arm.h (MONO_ARCH_VTABLE_REG): Use R0 for this to avoid needless
copying.
* method-to-ir.c (emit_imt_argument): Pass imt_arg to
mono_arch_emit_imt_argument ().
* mini-<ARCH>.c (mono_arch_emit_imt_argument): Add an 'imt_arg' argument.
* mini-arm.c tramp-arm.c: Generic sharing updates.
svn path=/trunk/mono/; revision=111443
Zoltan Varga [Fri, 22 Aug 2008 23:27:56 +0000 (23:27 -0000)]
2008-08-23 Zoltan Varga <vargaz@gmail.com>
* mini.h (struct MonoCallInst): Add dynamic_imt_arg boolean field.
* exceptions-arm.c (mono_arch_find_jit_info): Set ctx->regs [ARMREG_R11]
to sp, since the generics catch code requires it.
* mini-arm.h (MONO_ARCH_VTABLE_REG): Use R0 for this to avoid needless
copying.
* method-to-ir.c (emit_imt_argument): Pass imt_arg to
mono_arch_emit_imt_argument ().
* mini-<ARCH>.c (mono_arch_emit_imt_argument): Add an 'imt_arg' argument.
* mini-arm.c tramp-arm.c: Generic sharing updates.
svn path=/trunk/mono/; revision=111442
Miguel de Icaza [Fri, 22 Aug 2008 21:30:31 +0000 (21:30 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* WebConnectionStream.cs (WriteRequest): For small requests,
cluster together the header + body in a single write call, avoids
the latency problems observed in an TLS application that makes
many web service calls.
2008-08-22 Geoff Norton <gnorton@novell.com>
* WebConnection.cs: Set NoDelay
svn path=/trunk/mcs/; revision=111430
Marek Habersack [Fri, 22 Aug 2008 20:51:45 +0000 (20:51 -0000)]
2008-08-22 Marek Habersack <mhabersack@novell.com>
* JsonSerializer.cs: do not perform deep object serialization - it
results in all kinds of problems (including too big size of the
resulting string, recursion errors when two or more objects in the
hierarchy hold a reference to some object) and is not what .NET
code does.
Property name is written only after it is determined if we're
serializing the property or not.
Entire object is serialized only if it's the object requested for
serialization by calling code.
2008-08-22 Marek Habersack <mhabersack@novell.com>
* Test/System.Web.Script.Serialization/JavaScriptSerializerTest.cs:
marked several of the JavaScriptSerializer tests as not
working. Experiments show that the tests are invalid as they relay
on behavior which is different to .NET's.
* System.Web.Script.Serialization/JavaScriptSerializer.cs:
GetConverter now checks whether the requested type is descendant
from the type supported by teh converter.
svn path=/trunk/mcs/; revision=111421
Miguel de Icaza [Fri, 22 Aug 2008 20:44:05 +0000 (20:44 -0000)]
2008-08-20 Mike Voorhees <vernish13@gmail.com>
* strenc.h : Adding declaration for mono_utf8_validate_and_len.
* strenc.c : Adding implementation for mono_utf8_validate_and_len.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=111418
Miguel de Icaza [Fri, 22 Aug 2008 20:42:45 +0000 (20:42 -0000)]
Update
svn path=/trunk/mono/; revision=111417
Zoltan Varga [Fri, 22 Aug 2008 20:30:14 +0000 (20:30 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c: Fix the arm build.
svn path=/trunk/mono/; revision=111416
Zoltan Varga [Fri, 22 Aug 2008 20:06:39 +0000 (20:06 -0000)]
Fix a warning.
svn path=/trunk/mono/; revision=111413
Zoltan Varga [Fri, 22 Aug 2008 20:03:33 +0000 (20:03 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* generic-sharing.c (mini_type_get_underlying_type): New helper function
handling enums, generic instances and generic sharing.
(mini_type_stack_size_full): Ditto.
* mini-amd64.c mini-x86.c mini-arm.c: Use the new functions.
svn path=/trunk/mono/; revision=111412
Sebastien Pouliot [Fri, 22 Aug 2008 18:54:38 +0000 (18:54 -0000)]
2008-08-22 Sebastien Pouliot <sebastien@ximian.com>
* corlib_test.dll.sources: Add unit tests for ObsoleteAttribute
svn path=/trunk/mcs/; revision=111400
Sebastien Pouliot [Fri, 22 Aug 2008 18:53:48 +0000 (18:53 -0000)]
2008-08-22 Sebastien Pouliot <sebastien@ximian.com>
* ObsoleteAttributeTest.cs: New. Old tests I forgot to commit when
doing a gendarme rule.
svn path=/trunk/mcs/; revision=111398
Sebastien Pouliot [Fri, 22 Aug 2008 18:42:38 +0000 (18:42 -0000)]
2008-08-22 Sebastien Pouliot <sebastien@ximian.com>
* AppDomainSetup.cs: Remove IAppDomainSetup for SL2. This helps
the tuner since the methods are then defined correctly (wrt to the
implicit implementation of the interfaces)/
svn path=/trunk/mcs/; revision=111397
Sebastien Pouliot [Fri, 22 Aug 2008 18:29:10 +0000 (18:29 -0000)]
2008-08-22 Sebastien Pouliot <sebastien@ximian.com>
* MoonIsolatedStorageFile.cs: Implement Remove. Add a bunch of FIXME
mostly related to quota.
* MoonIsolatedStorageFileStream.cs: Add a call to the container's
PreCheck method in most methods. Add FIXME for quota.
svn path=/trunk/mcs/; revision=111394
Sebastien Pouliot [Fri, 22 Aug 2008 17:40:17 +0000 (17:40 -0000)]
2008-08-22 Sebastien Pouliot <sebastien@ximian.com>
* FileStream.cs, MonoIO.cs: For Silverlight 2.0 (NET_2_1) we always
throw IsolatedStorageException instead of FileNotFoundException and
DirectoryNotFoundException.
svn path=/trunk/mcs/; revision=111391
Robert Jordan [Fri, 22 Aug 2008 17:24:57 +0000 (17:24 -0000)]
2008-08-22 Robert Jordan <robertj@gmx.net>
* console-io.c (ves_icall_System_ConsoleDriver_TtySetup):
Fix the Windows build.
svn path=/trunk/mono/; revision=111390
Jb Evain [Fri, 22 Aug 2008 15:51:56 +0000 (15:51 -0000)]
2008-08-22 Jb Evain <jbevain@novell.com>
* data/wcf.pc.in
* data/Makefile.am
* configure.in: add a new wcf.pc for assemblies recently moved
from olive to mcs.
svn path=/trunk/mono/; revision=111382
Zoltan Varga [Fri, 22 Aug 2008 14:35:48 +0000 (14:35 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* mini.h (struct): Add 'uses_rgctx_reg' and 'uses_vtable_reg' fields.
* method-to-ir.c: Set the new fields when using RGCTX_REG/VTABLE_REG.
* tramp-arm.c: Implement the rgctx fetch and the generic class init
trampolines.
* mini-arm.c: Various small generic sharing changes.
svn path=/trunk/mono/; revision=111377
Zoltan Varga [Fri, 22 Aug 2008 13:34:51 +0000 (13:34 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* tramp-x86.c (mono_arch_create_generic_class_init_trampoline): Implement
this for x86.
(mono_arch_create_trampoline_code): Remove most of the GENERIC_CLASS_INIT
custom code.
svn path=/trunk/mono/; revision=111373
Zoltan Varga [Fri, 22 Aug 2008 13:27:57 +0000 (13:27 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_create_generic_class_init_trampoline): New
helper function to return a generic class init trampoline.
* method-to-ir.c mini.c: Use it.
* tramp-amd64.c (mono_arch_create_generic_class_init_trampoline): New
arch-specfic function to return a generic class init trampoline.
* tramp-amd64.c (mono_arch_create_trampoline_code_full): Remove most of
the GENERIC_CLASS_INIT custom code.
svn path=/trunk/mono/; revision=111372
Zoltan Varga [Fri, 22 Aug 2008 12:20:52 +0000 (12:20 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_method_to_ir2): If RGCTX_REG is not defined, that is
a fatal error, not a sharing failure.
svn path=/trunk/mono/; revision=111367
Zoltan Varga [Fri, 22 Aug 2008 12:19:04 +0000 (12:19 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* tramp-<ARCH>.c (mono_arch_get_rgctx_lazy_fetch_offset): Removed, no longer
needed.
* mini-trampolines.c (mono_rgctx_lazy_fetch_trampoline): Get the additional
trampoline argument from MONO_ARCH_VTABLE_REG.
* tramp-x86.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
order of the arguments to the C trampoline: pass 'slot' as the trampoline
argument, and pass the vtable in VTABLE_REG.
svn path=/trunk/mono/; revision=111366
Zoltan Varga [Fri, 22 Aug 2008 12:17:09 +0000 (12:17 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
order of the arguments to the C trampoline: pass 'slot' as the trampoline
argument, and pass the vtable in VTABLE_REG.
(mono_arch_create_trampoline_code_full): Remove some special casing for
the rgctx fetch trampoline.
svn path=/trunk/mono/; revision=111365
Zoltan Varga [Fri, 22 Aug 2008 12:05:39 +0000 (12:05 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
order of the arguments to the C trampoline: pass 'slot' as the trampoline
argument, and pass the vtable in VTABLE_REG.
(mono_arch_create_trampoline_code_full): Remove some special casing for
the rgctx fetch trampoline.
svn path=/trunk/mono/; revision=111363
Zoltan Varga [Fri, 22 Aug 2008 11:53:33 +0000 (11:53 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_method_to_ir): Fix the STELEM_ANY+null value optimization.
Fixes #419273.
* iltests.il: Add a test for it.
svn path=/trunk/mono/; revision=111361
Atsushi Eno [Fri, 22 Aug 2008 08:43:26 +0000 (08:43 -0000)]
comment out some Console.WriteLine().
svn path=/trunk/mcs/; revision=111350
Atsushi Eno [Fri, 22 Aug 2008 08:39:48 +0000 (08:39 -0000)]
2008-08-22 Atsushi Enomoto <atsushi@ximian.com>
* X11Keyboard.cs : fixed wrong call to XOpenIM() which happened
even if premises are not filled. Also XLookupString() was not
receiving correct input, which blocked precise input handling
on non-XIM mode.
svn path=/trunk/mcs/; revision=111349
Massimiliano Mantione [Fri, 22 Aug 2008 06:46:50 +0000 (06:46 -0000)]
Restore nonvisible formatting changed by mistake in r109428.
svn path=/trunk/mono/; revision=111343
Zoltan Varga [Fri, 22 Aug 2008 01:09:47 +0000 (01:09 -0000)]
2008-08-22 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_generic_sharing_enabled): Make the default
sharing mode 'corlib'.
svn path=/trunk/mono/; revision=111326
Sebastien Pouliot [Thu, 21 Aug 2008 21:42:05 +0000 (21:42 -0000)]
2008-08-21 Sebastien Pouliot <sebastien@ximian.com>
* Nullable.cs: Add two ComVisible(false) for SL2 profile.
* PlatformID.cs: Add Xbox and MacOX for SL2 profile.
* WeakReference.cs: Add default, protected, ctor for SL2.
svn path=/trunk/mcs/; revision=111309
Sebastien Pouliot [Thu, 21 Aug 2008 21:40:20 +0000 (21:40 -0000)]
2008-08-21 Sebastien Pouliot <sebastien@ximian.com>
* MoonIsolatedStorageFile.cs: Split Application and Site storage.
Start looking at quota.
* MoonIsolatedStorageFileStream.cs: Added more validation to
ctors. Removed IsAsync (not in beta2). (SetLength) Start using some
quota checks
svn path=/trunk/mcs/; revision=111308
Zoltan Varga [Thu, 21 Aug 2008 17:22:57 +0000 (17:22 -0000)]
2008-08-21 Zoltan Varga <vargaz@gmail.com>
* Makefile.am: Add AOT+gshared tests.
svn path=/trunk/mono/; revision=111283
Zoltan Varga [Thu, 21 Aug 2008 17:22:30 +0000 (17:22 -0000)]
2008-08-21 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (compile_method): Enable AOT support for generics sharing.
* method-to-ir.c (mono_method_to_ir2): Remove an aot restriction which is
no longer needed.
svn path=/trunk/mono/; revision=111282
Jb Evain [Thu, 21 Aug 2008 16:09:29 +0000 (16:09 -0000)]
add new masterinfos
svn path=/trunk/mcs/; revision=111274
Sebastien Pouliot [Thu, 21 Aug 2008 15:40:33 +0000 (15:40 -0000)]
2008-08-21 Sebastien Pouliot <sebastien@ximian.com>
* FileStream.cs: Adjust exception being thrown for Silverlight 2.0.
* FileSystemInfo.cs: In Silverlight 2 this type does not inherit from
MarshalByRefObject nor does it implement ISerializable.
* Stream.cs: In Silverlight 2 this type does not inherit from
MarshalByRefObject.
* TextReader.cs: In Silverlight 2 this type does not inherit from
MarshalByRefObject.
* TextWriter.cs: In Silverlight 2 this type does not inherit from
MarshalByRefObject.
* UnmanagedMemoryStream.cs: For Silverlight 2 add CLSCompliant(false)
to the PositionPointer property.
svn path=/trunk/mcs/; revision=111271
Stephane Delcroix [Thu, 21 Aug 2008 15:29:16 +0000 (15:29 -0000)]
embed DtdProcessing in a #if NET_2_1
svn path=/trunk/mcs/; revision=111270
Stephane Delcroix [Thu, 21 Aug 2008 15:25:09 +0000 (15:25 -0000)]
re-enable ResolveEntity in XmlReader and derived classes
svn path=/trunk/mcs/; revision=111269
Stephane Delcroix [Thu, 21 Aug 2008 15:25:02 +0000 (15:25 -0000)]
adding DtdProcessing and MaxCharactersFromEntities properties for 2.1
svn path=/trunk/mcs/; revision=111268
Zoltan Varga [Thu, 21 Aug 2008 14:14:46 +0000 (14:14 -0000)]
2008-08-21 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_magic_trampoline): Add a sync wrapper here,
use mono_jit_info_table_find () to avoid recursion.
(mono_delegate_trampoline): Add a sync wrapper here.
* method-to-ir.c (mono_method_to_ir2): Don't call mono_ldftn_nosyc
here.
* mini.c (mono_method_to_ir): Ditto.
* mini-trampolines.c (mono_create_jit_trampoline_in_domain): Remove
add_sync_wrapper argument. Don't add a sync wrapper here.
(mono_create_jump_trampoline): Don't add a sync wrapper here.
* jit-icalls.c (mono_ldftn_nosync): Removed, no longer needed.
svn path=/trunk/mono/; revision=111261
Zoltan Varga [Thu, 21 Aug 2008 14:06:05 +0000 (14:06 -0000)]
2008-08-21 Zoltan Varga <vargaz@gmail.com>
* console-io.c (console_set_signal_handlers): Fix a warning.
svn path=/trunk/mono/; revision=111260
Zoltan Varga [Thu, 21 Aug 2008 14:04:48 +0000 (14:04 -0000)]
2008-08-21 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_get_synchronized_wrapper): Call the wrapper
method normally, the JIT will take care of avoiding recursion.
svn path=/trunk/mono/; revision=111259
Zoltan Varga [Thu, 21 Aug 2008 14:01:20 +0000 (14:01 -0000)]
2008-08-21 Zoltan Varga <vargaz@gmail.com>
* synchronized.cs: Test synchronized state using Monitor.Pulse since
Monitor.Exit no longer throws an exception.
svn path=/trunk/mono/; revision=111258
Massimiliano Mantione [Thu, 21 Aug 2008 13:30:51 +0000 (13:30 -0000)]
Updated known issues of the logging profiler.
svn path=/trunk/mono/; revision=111257
Massimiliano Mantione [Thu, 21 Aug 2008 13:30:49 +0000 (13:30 -0000)]
Updated description of the logging profiler.
svn path=/trunk/mono/; revision=111256
Stephane Delcroix [Thu, 21 Aug 2008 11:45:15 +0000 (11:45 -0000)]
2.1 profile uses an Address property in OpenReadCompletedEventArgs
svn path=/trunk/mcs/; revision=111252
Massimiliano Mantione [Thu, 21 Aug 2008 10:27:37 +0000 (10:27 -0000)]
Added support for correct accounting of allocations which happened at JIT time.
svn path=/trunk/mono/; revision=111250
Marek Safar [Thu, 21 Aug 2008 09:54:55 +0000 (09:54 -0000)]
New tests.
svn path=/trunk/mcs/; revision=111245
Marek Safar [Thu, 21 Aug 2008 09:54:38 +0000 (09:54 -0000)]
2008-08-21 Marek Safar <marek.safar@gmail.com>
* convert.cs, expression.cs: Use single ExplicitReferenceConversion routine.
svn path=/trunk/mcs/; revision=111244
Stephane Delcroix [Thu, 21 Aug 2008 09:38:10 +0000 (09:38 -0000)]
new DtdProcessing enum for the 2.1 profile
svn path=/trunk/mcs/; revision=111243
Stephane Delcroix [Thu, 21 Aug 2008 09:21:16 +0000 (09:21 -0000)]
enable the DownloadStringAsync code
svn path=/trunk/mcs/; revision=111242
Marek Safar [Thu, 21 Aug 2008 08:15:04 +0000 (08:15 -0000)]
2008-08-21 Marek Safar <marek.safar@gmail.com>
* convert.cs: Implement explicit array to IList<T> conversion.
svn path=/trunk/mcs/; revision=111236
Miguel de Icaza [Thu, 21 Aug 2008 06:24:53 +0000 (06:24 -0000)]
Indent
svn path=/trunk/mcs/; revision=111232
Geoff Norton [Thu, 21 Aug 2008 01:14:37 +0000 (01:14 -0000)]
Drop the inssels from primates, as they're broken.
svn path=/trunk/mono/; revision=111225