* class.c (mono_class_get_vtable_entry): Move the addition of
static rgctx invoke wrappers for vtable methods here, this simplifies
a lot of code and causes fewer rgctx wrappers to be created.
* marshal.c (mono_marshal_get_static_rgctx_invoke): Change the
name of the statistics to begin with an uppercase.
svn path=/trunk/mono/; revision=127216
non-null before trying to use it when importing slashdoc sources.
Fixes#475852.
* Test/DocTest-v1.cs: Add an <exception/> doc comment with an invalid
attribute value for testing.
svn path=/trunk/mcs/; revision=127195
2008-02-17 Sebastien Pouliot <[email protected]>
* here goes the manual overrides files
In .:
2008-02-17 Sebastien Pouliot <[email protected]>
* detect-sc.cs: Tool to detect methods that *likely* needs a
[SecurityCritical] attribute to execute under the CoreCLR
* detect-ssc.cs: Tool to detect methods that *likely* needs a
[SecuritySafeCritical] attribute to execute under the CoreCLR
* find-sc.cs: Tool to extract types and methods decorated with
[SecurityCritical] in Silverlight platform code.
* merge.cs: Tool to merge the different data files into files (one
per assembly) usable by the tuner.
* PlatformCode.cs: Helpers for tools.
* CecilRocks.cs: Extension methods helpers for tools.
* Makefile: Build file. Normally only the merging should be done.
Other options needs "supervision" ;-) and store their data into
SVN to allow tracking/auditing all changes. Note: this is not (yet)
part of the main build.
* README: Documentation about the files.
svn path=/trunk/mcs/; revision=127164
* XsdDatatypeProvider.cs : workaround .NET/Mono Regex bug that
does not handle \p{Latin-1Supplement} to work with OOXML grammar.
svn path=/trunk/mcs/; revision=127130
* image-writer.c: Don't align subsections to 8 in the binary writer.
* dwarfwriter.c (emit_line_number_info_begin): This now works with the
binary writer too.
svn path=/trunk/mono/; revision=127101
* dwarfwriter.c (mono_dwarf_writer_emit_base_info): Use 2 as the DWARF
version instead of 3 as valgrind doesn't like version 3.
svn path=/trunk/mono/; revision=127100
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
* aot-compiler.c (mono_aot_method_hash): New function to return a hash
usable for hashing methods.
(emit_extra_methods): Use the new hash to avoid putting every method in the
same hash bucket.
* aot-runtime.c (find_extra_method_in_amodule): Use the new hash.
* aot-runtime.c (can_method_ref_match_method): New function to quickly check
whenever a method ref could match a method.
svn path=/trunk/mono/; revision=127099
2009-02-16 Rodrigo Kumpera <[email protected]>
* valid_rethrow_doesnt_fallthrough: New regression test for
#476257.
svn path=/trunk/mono/; revision=127089
* TextBox.cs: When handling WndProc with autocomplete activated,
event if the new text is not causing any change in the look up
algorithm, save it as we normally do when numbers and letters.
Fixes#469967.
svn path=/trunk/mcs/; revision=127086
* TreeNode.cs: When Text/StateImageIndex/StateImageKey/NodeFont change
Invalidate the proper bounds in the TreeView, not only resetting the
width.
Fixes#475542.
svn path=/trunk/mcs/; revision=127085
`delegate TRet Func<in TArg, out TRet>(TArg a)'. Alas, this
required making MemberFormatter explicitly stateful, so any thoughts
of using instances w/o locking are now out the window... (Not that
threads are currently used, but they're planned to be used...)
TODO: Add a test to Test/DocTest-v1.cs. This wasn't done as the
current gmcs support doesn't like intermixing variance with generic
parameter attributes, and I don't want to introduce a new delegate
type (and the ~6 new files that would imply) just for this feature.
svn path=/trunk/mcs/; revision=127065
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c, mini-ppc.h: Implement TLS for PPC64.
2009-02-16 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mono-compiler.h: MONO_THREAD_VAR_OFFSET for PPC(64).
svn path=/trunk/mono/; revision=127060
* mini.c method-to-ir.c mini-trampolines.c aot-runtime.c: Remove locking
around the mono_domain_alloc calls, it is now done by the functions
themselves.
svn path=/trunk/mono/; revision=127038
* libmono.vcproj : Adding metadata/cominterop and
mini/dwarfwriter to the project.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=127033
* loader.c (method_from_memberref): Don't abort if the array
method is not found. A regular loader failure is more informative
and correct.
Fixes#474271.
2009-02-16 Rodrigo Kumpera <[email protected]>
svn path=/trunk/mono/; revision=127032
* aot-compiler.c (compile_method): Only add wrappers referenced by
the method if compiling with full AOT.
(mono_compile_assembly): Error out if --aot=full is specified on
a platform where it is not supported.
svn path=/trunk/mono/; revision=127031
2009-02-16 Rodrigo Kumpera <[email protected]>
*loader.c: Guard MonoImage::method_cache/methodref_cache
using the image lock instead of the loader lock.
* metadata.h: Add comments about which fields are protected by
the image lock.
svn path=/trunk/mono/; revision=127020
* generic-sharing.c (mono_method_construct_object_context): Remove the
wrapper_type == NONE assert, it is not needed.
svn path=/trunk/mono/; revision=126986
* aot-compiler.c (mono_compile_assembly): Use the ASM writer for full aot
on ARM.
(mono_compile_assembly): Handle the assembler failing.
* image-writer.c (asm_writer_emit_section_change): Handle ARM gas not
accepting subsections of .bss.
svn path=/trunk/mono/; revision=126984
* image-writer.c (struct _MonoImageWriter): Remove the unused 'image'
field.
* aot-compiler.c (MonoAotCompile): Remove fields which are now in
MonoDwarfWriter.
svn path=/trunk/mono/; revision=126962
* dwarfwriter.h dwarfwriter.c: New files.
* aot-compiler.c: Extract the DWARF info writing functionality into a
separate module.
svn path=/trunk/mono/; revision=126960
* dwarfwriter.h dwarfwriter.c: New files.
* aot-compiler.c: Extract the DWARF info writing functionality into a
separate module.
svn path=/trunk/mono/; revision=126959
* reflection.c (clear_cached_object): New helper function.
(mono_method_clear_object): New function to clear the cached reflection
objects for a dynamic method.
* object.c (mono_runtime_free_method): Call mono_method_clear_object ().
Partly fixes # 463323.
svn path=/trunk/mono/; revision=126958
* mini.h: Add constants for the magic numbers used in encode_method_ref ()
for AOT.
* aot-compiler.c (encode_method_ref): Use the new constants.
* aot-runtime.c (decode_method_ref): Ditto.
svn path=/trunk/mono/; revision=126950
2009-02-14 Rodrigo Kumpera <[email protected]>
* image.c: Add mono_image_property_(lookup,insert,remove) functions that
take the image lock instead of the loader lock.
* metadata-internals.h: Export new functions.
svn path=/trunk/mono/; revision=126925
NotImplementedExceptions. Revert the 2009-02-12 UniqueId.IsGuid
"fix", as .NET says that new UniqueId(new Guid()).IsGuid==false
(which makes no sense, as .ToString() on the same instance includes
the "urn:uuid:" prefix, which is used by Guids...).
* Test/System.Xml/UniqueIdTest.cs: Add tests for all members.
svn path=/trunk/mcs/; revision=126911
* modifiers.cs, decl.cs, ecore.cs, class.cs, flowanalysis.cs:
Simplified event field definition using backing field and not
field builder directly.
* expression.cs (EmitLdArg): Optimize fast paths.
svn path=/trunk/mcs/; revision=126901
* method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
convert it to an in32. Fixes#475859.
* arrays.cs: Add a test.
svn path=/trunk/mono/; revision=126897
* UrlPattern.cs: use the defaults collection when matching a path
and segments are missing.
* RouteCollection.cs: GetRouteData must use VirtualPathProvider
to check for virtual path existence.
svn path=/trunk/mcs/; revision=126891
* domain.c (app_config_parse): Remove another use of stat that is
not necessary as g_file_get_contents already does the presence
check.
svn path=/trunk/mono/; revision=126879
* SolutionParser.cs: Make Guid Regex case insensitive.
Handle project dependencies. The solution has explicit
dependencies, but we have to open projects for implicit
dependencies (via ProjectReferences).
svn path=/trunk/mcs/; revision=126863
* AspParser.cs: added an event raised when parsing is complete.
* AspGenerator.cs: added support for PageParserFilter which, if
found, is used to control certain aspects of code parsing
(accepting/rejecting control types, accepting/rejecting code
snippets, parsing completion)
Added the AddControl method, used by PageParserFilter when a
custom filter wants to inject a control in the current control
builder tree.
2009-02-13 Marek Habersack <[email protected]>
* TemplateParser.cs: PageParserFilter handling moved to here.
PagesConfig must use the current virtual path when retrieving the
section, or otherwise we'll miss the lower level web.configs.
Added the AddControl method, used by PageParserFilter.
Implementing filtering of: parsed directives and the base type, if
a page parser filter is present.
* PageParserFilter.cs: added missing 3.5 members and implemented
everything.
* PageParser.cs: moved PageParserFilter processing to
TemplateParser.
VirtualPath must be set before anything else.
Call page parser filter's directive preprocessing code from
AddDirective if a filter is present and a mastertype or
previouspagetype directive is parsed.
* MasterPageParser.cs: when PageParserFilter is present use it to
preprocess the MasterType directive.
svn path=/trunk/mcs/; revision=126855
WriteTextNode(XmlDictionaryReader,bool). This requires changes to
WriteNode(), as testing had determined that WriteTextNode() is used
instead of WriteString() for Text nodes and attribute values when
called via WriteNode().
* Test/System.Xml/XmlDictionaryWriterTest.cs: Test
WriteNode(XmlDictionaryReader), WriteNode(XmlReader), and
WriteTextNode().
svn path=/trunk/mcs/; revision=126853
* Main.cs: Add support for .sln files.
* SolutionParser.cs: Class for generating project file
from solution file.
* xbuild.exe.sources: Added SolutionParser.cs.
svn path=/trunk/mcs/; revision=126845
* ChannelFactory.cs : for default constructor, first try to
retrieve configuration from its contract name.
Diagnose errorneous configuration.
* SilverlightClientConfigLoader.cs : basicHttpBinding/binding
element could be defined two or more times.
svn path=/trunk/mcs/; revision=126830
A fix for bug #475342
* cs-parser.jay: Using 'super' instead of 'base' to call base
constructor crashes compiler.
svn path=/trunk/mcs/; revision=126822
* SerializationMap.cs, KnownTypeCollection.cs : couple of refactoring
to simplify code base and handle CollectionDataContract namespace.
* XmlObjectSerializerTest.cs : fixed collection contract test and
added some notes.
svn path=/trunk/mcs/; revision=126807
* DataContractSerializer.cs : remove extra writexmlns.
* SerializationMap.cs : allow DataMember of collection contract type
as read-only.
* KnownTypeCollection.cs : it was not iterating interfaces to find
IEnumerable<T> correctly.
* XmlObjectSerializerTest.cs : added couple of test fixes in
collection serialization tests.
svn path=/trunk/mcs/; revision=126802
* BuildProperty.cs: Value corresponds to XmlElement.InnerXml
no XmlElement.InnerText. This allows properties to be additional
xml elements.
svn path=/trunk/mcs/; revision=126791
More Paolo patches from the Wii port:
* security.c: Remove ves_icall_System_Environment_get_UserName
from here.
* icall.c: And put ves_icall_System_Environment_get_UserName
here.
* appdomain.c (mono_set_private_bin_path_from_config): Remove
redundant call to stat that was only used to test for the file
existence. Patch from Paolo.
* gc.c (run_finalize): If COM is disabled, do not link in
mono_marshal_free_ccw.
* generic-sharing.c: Use alloca.h here as well.
svn path=/trunk/mono/; revision=126789
* cominterop.c cominterop.h: New files.
* marshal.c: Move the COM interop related code to cominterop.c. Make a few
function/typedefs which are needed by cominterop.c global.
svn path=/trunk/mono/; revision=126782
* cominterop.c cominterop.h: New files.
* marshal.c: Move the COM interop related code to cominterop.c. Make a few
function/typedefs which are needed by cominterop.c global.
svn path=/trunk/mono/; revision=126775
WriteValue(TimeSpan), WriteValue(UniqueId).
* System.Xml/UniqueId.cs: Fix UniqueId.IsGuid, as
`new UniqueId(new Guid())` was previously being detected as a string
value, not a Guid value.
* Test/System.Xml/XmlDictionaryWriterTest.cs: Test WriteValue(Guid),
WriteValue(TimeSpan), WriteValue(UniqueId).
svn path=/trunk/mcs/; revision=126760
* reflection.c (mono_reflection_lookup_dynamic_token): This function might be called without
the loader lock which is required to guard MonoImage:tokens.
2009-02-12 Rodrigo Kumpera <[email protected]>
svn path=/trunk/mono/; revision=126758
System.Xml/XmlDictionaryWriterTest.cs to the test build.
* System.Xml/XmlDictionaryWriter.cs (WriteStartElement): Add parameter
checking and default arguments to avoid NullReferenceExceptions.
* Test/System.Xml/XmlDictionaryWriterTest.cs: Added; test
XmlDictionaryWriter.WriteElementString().
svn path=/trunk/mcs/; revision=126751
2009-02-12 Rodrigo Kumpera <[email protected]>
* metadata.c: Remove mono_image_alloc_lock and mono_image_alloc0_lock.
Rework the code to use regular mono_image_alloc/0.
* loader.c: Rework the code to use regular mono_image_alloc/0.
* metadata-internals.h: Remove mono_image_alloc_lock and mono_image_alloc0_lock.
svn path=/trunk/mono/; revision=126748
* memory-management.txt thread-safety.txt aot-compiler.txt jit-regalloc
exception-handling.txt: Remove documents which are now on the wiki.
svn path=/trunk/mono/; revision=126745
* object-internals.h : Fixing a typo in the
MonoReflectionComVisibleAttribute struct.
* marshal.c (cominterop_com_visible): Check the implemented
interfaces for ComImport.
* marshal.c (cominterop_get_native_wrapper_adjusted): For COM calls
assume that bools should be treated as VARIANTBOOLs.
* marshal.c (emit_marshal_boolean): Adding cases for
MARSHAL_ACTION_MANAGED_CONV_IN and MARSHAL_ACTION_MANAGED_CONV_OUT.
* marshal.c (mono_marshal_emit_managed_wrapper): Adding calls to
emit_marshal MARSHAL_ACTION_MANAGED_CONV_IN and OUT for bools.
* marshal.c (cominterop_get_ccw): For COM calls assume that bools
should be treated as VARIANTBOOLs.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=126738
This patch is the last of a series to remove explicit reference of MonoImage::mempool
and use mono_image_alloc set of functions instead. This time we finish with reflection.c
* object.c: Add mono_string_to_utf8_image.
* object-internals.h: Export mono_string_to_utf8_image.
* reflection.c: Rework all explicit references to the the image mempool to go thought
the mono_image_alloc set of functions.
svn path=/trunk/mono/; revision=126732
* mini-x86.c, mini-x86.h: Very simple frame pointer removal. We
remove the frame pointer in leaf methods which don't receive any
arguments, don't throw exceptions and don't do dynamic stack
allocations.
svn path=/trunk/mono/; revision=126720
This patch is the third of a series to remove explicit reference of MonoImage::mempool
and use mono_image_alloc set of functions instead. This time we finish with marshal.c
and generics-sharing.c.
* generics-sharing.c (set_other_info_templates): Take a MonoImage instead of a MonoMemPool
as first argument. Note that this function remains broken as it doesn't perform locking around the
mempool allocation.
* generics-sharing.c (rgctx_template_set_other_slot): Pass the image and not the mempool.
* image.c: Add g_slist_append_image.
* metadata.c (mono_metadata_field_info_with_mempool): Remove the mempool argument and use
the supplied image for allocation. Move code into mono_metadata_field_info_full.
* metadata.c (mono_metadata_parse_marshal_spec_full): Take a MonoImage instead of a MonoMemPool.
Fix all related code to do the same.
* marshal.c (mono_marshal_load_type_info): Pass the image instead of the mempool.
* metadata-internals.h: Fix the signatures.
svn path=/trunk/mono/; revision=126716
2009-02-12 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_emit_method_call_full): Use mono_metadata_signature_dup_mempool
instead of mono_metadata_signature_dup_full.
In metadata:
and use mono_image_alloc set of functions instead. This time we rework mono_metadata_type_dup
and similar to work using MonoImage.
* class.c (mono_mempool_dup): Rename to mono_image_memdup and take a MonoImage instead of a
MonoMemPool.
* class.c (mono_dup_array_type): Take a MonoImage instead of a MonoMemPool as first argument.
* class.c (mono_metadata_signature_deep_dup): Same.
* class.c (inflate_generic_type): Same.
* class.c (mono_class_inflate_generic_type_with_mempool): Same.
* metadata.c (mono_metadata_signature_dup_full): Same.
* metadata.c: Add mono_metadata_signature_dup_mempool and extract common functionality from
mono_metadata_signature_dup_full.
* metadata.c (mono_metadata_type_dup): Same.
* marshal.c: Pass the image to calls to mono_metadata_type_dup.
* reflection.c: Same.
* generic-sharing.c: Pass the image to calls to mono_class_inflate_generic_type_with_mempool.
* metadata-internals.h: Fix the signatures.
* class-internals.h: Same.
2009-02-11 Rodrigo Kumpera <[email protected]>
This patch is the first of a series to remove explicit reference of MonoImage::mempool
svn path=/trunk/mono/; revision=126710
* ClientProxyGenerator.cs : so, the proxy generator was buggy to
generate end invoke.
* ClientBase.cs : make it simpler and just work.
svn path=/trunk/mcs/; revision=126693
System.Xml/XmlDictionaryStringTest.cs to the test build.
* System.Xml/XmlDictionaryString.cs: Add constructor argument checking.
* Test/System.Xml/XmlDictionaryStringTest.cs: Added; tests for
XmlDictionaryString.
svn path=/trunk/mcs/; revision=126680
This patch is the first of a series to remove explicit reference of MonoImage::mempool
and use mono_image_alloc set of functions instead.
* class.c (mono_class_inflate_generic_type_with_mempool_no_copy):
Rename to mono_class_inflate_generic_type_no_copy and take a MonoImage instead
of a MonoMemPool.
* class.c (mono_class_setup_fields): Adapt to mono_class_inflate_generic_type_no_copy.
* class.c (g_list_prepend_mempool): Removed.
* class.c (mono_class_get_nested_types): Use g_list_prepend_image instead of g_list_prepend_mempool.
* image.c: Add g_list_prepend_image.
* metadata-internals.h (struct MonoImage): Fix comment. Export g_list_prepend_image as internal.
* reflection.c (mono_reflection_create_runtime_class): Use g_list_prepend_image instead of g_list_prepend_mempool.
svn path=/trunk/mono/; revision=126672
* Socket.cs: instead of clearing the sockets form the output and then
adding them back, we just remove the ones that have not been
signaled.
Fixes bug #354090.
svn path=/trunk/mcs/; revision=126637
* class.c, class-internals.h: mono_method_get_context_general()
combines the functionality of mono_method_get_context() and
mini_method_get_context().
* generic-sharing.c, domain-internals.h:
mono_method_construct_object_context() and
mono_domain_lookup_shared_generic() moved from mini.
* icall.c (ves_icall_InternalInvoke): Handle the case where the
method doesn't have the correct instantiation because it's shared
generic code. Fixes#473999.
2009-02-11 Mark Probst <[email protected]>
* mini-generic-sharing.c: mini_method_get_context() just calls
mono_method_get_context_general() now.
* mini.c, mini.h: Moved get_object_generic_inst(),
construct_object_context_for_method() and
mono_domain_lookup_shared_generic() to metadata/generic-sharing.c.
2009-02-11 Mark Probst <[email protected]>
* bug-473999.2.cs: New test.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=126631
* branch-opts.c (mono_if_conversion): Handle the case where the merged
basic block fell through to its successor bblock without a branch. Fixes
#474718.
* iltests.il.in: Add a test.
svn path=/trunk/mono/; revision=126604
2009-02-11 Rodrigo Kumpera <[email protected]>
* metadata.c: Make mono_image_alloc_lock and mono_image_alloc0_lock non static.
* metadata-internals.h: Export mono_image_alloc_lock and mono_image_alloc0_lock.
* loader.c (mono_get_method_full): Drop the loader lock while constructing the method
and recheck the cache for dups after it.
* loader.c (mono_get_method_from_token): Use _lock version of mono_image_alloc0.
Fixes one of the deadlocks found in #473150.
svn path=/trunk/mono/; revision=126599
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal):
For Win32, add additional break conditions for accept.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=126596
* aot-compiler.c (encode_method_ref): Encode methods of array types.
(can_encode_patch): We can now handle arrays of generic parameters and
array methods.
* aot-runtime.c (decode_method_ref_2): Handle methods of array types.
* aot-compiler.c aot-runtime.c: Emit the size of specific trampolines into
the AOT file to avoid some #ifdefs in aot-runtime.c
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=126528
- The PropertyValueCollection class doesn't mark its data as dirty/changed in
- this[int index] setter
- Insert()
- Remove()
- Value setter
The DirectoryEntry class doesn't handle the clearing of an attribute (see
CommitEntry())
Patch from Juraj Skripsky that fixes bug #416985.
svn path=/trunk/mcs/; revision=126522
* marshal.c (mono_marshal_get_native_func_wrapper): Use get_cache to
lazily initialize the native wrapper cache.
(mono_marshal_get_native_wrapper): Put aot-ed native wrappers into a separate
cache, since they are different from the normal wrappers.
* image.c (mono_image_init): Initialize native_wrapper_cache lazily as well.
* metadata-internals.h (struct _MonoImage): Add a new wrapper for
AOT compiled native wrappers.
svn path=/trunk/mono/; revision=126498
instance data (for future Threading changes, as only static data
will be tracked for thread-safety); use MDocCommand.Message() and
MDocCommand.Error() for message reporting; remove warnings.
svn path=/trunk/mcs/; revision=126485
* ImageButton.cs: AddAttributesToRender renders the onclick
attribute only if any of the following is true:
- OnClientClick is not empty
- Validation is enabled for the control
- PostBackUrl is used
PostBackOptions now indicate that control requires the javascript
protocol for the handler.
RaisePostBackEvent passes String.Empty as the argument.
Fixes bug #463939
2009-02-10 Marek Habersack <[email protected]>
* ImageButtonTest.cs: added test for bug #46393
svn path=/trunk/mcs/; revision=126482
* old-map.c: Added prototypes to silence compile warnings. Looks
like this file is supposed to be autogenerated, so probably not
the right fix but I can't find the autogen script.
* map.h (helper_Mono_Posix_getpwnamuid): Added a prototype for
this - it doesn't seem to be used anywhere in mono, so
maybe it can be removed but I'm not positive.
(map_Mono_Posix_PollEvents): Added prototype.
(map_Mono_Posix_Signals): Added prototype.
* macros.c: #include "map.h" to silence compile warnings about no
previous prototypes.
svn path=/trunk/mono/; revision=126460
BackColor property. This is what .net does in both 1.1 and 2.0.
* TreeView.cs: When selected_node is not the same as highlighted_node,
we need to handle the back color in a different way, trying to use the
node's BackColor if it's not Color.Empty.
Fixes#464200.
2009-02-09 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=126440
* TreeView.cs: When canceling selection in our MouseUp handler,
invalidate also the previous selected node bounds.
Fixes#464191.
svn path=/trunk/mcs/; revision=126433
* AppDomain.cs: this fixes the remoting tests.
Zoltan found out that there was a domain improperly using shadow
copy.
svn path=/trunk/mcs/; revision=126430
* XmlTextWriter2.cs : similar fix in WriteStartElement() to
previous change. Fixed bug #474091.
* XmlTextWriterTests.cs : added test for bug #474091.
svn path=/trunk/mcs/; revision=126417
* unwind.c (mono_unwind_get_dwarf_data_align): New helper function.
(mono_unwind_get_dwarf_pc_reg): Ditto.
* aot-compiler.c (emit_dwarf_abbrev): Another large reorganization.
Move almost all platform specific code to a set of arch_ functions,
and document them to ease porting.
svn path=/trunk/mono/; revision=126398
* expression.cs: Initializer of reference argument use temporary
variable to be verifiable.
* parameter.cs: Share EmitLdArg.
svn path=/trunk/mcs/; revision=126389
* image-writer.h image-writer.c: New files, extracted from aot-compiler.c.
* aot-compiler.c: Extract the image writing functionality into a separate
module to reduce the size of this file.
svn path=/trunk/mono/; revision=126388
changes to UnixGroupInfo.GetMembers().
* Mono.Unix/UnixGroupInfo.cs (GetMembers): Skip group members which
aren't valid users on the system (thus removing a possible exception).
Patch thanks to Daniel Peñalba.
svn path=/trunk/mcs/; revision=126381
* aot-compiler.c (is_shared_got_patch): Add MONO_PATCH_INFO_IMAGE.
* aot-runtime.c (is_shared_got_patch): Ditto.
* aot-runtime.c (load_named_code): Cope with the fact that
decode_got_entry () won't decode the patch fully if its corresponding got
entry is already filled.
svn path=/trunk/mono/; revision=126377
* ObjectDataSourceViewTest.cs: added test for bug #471767
2009-02-09 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: ExecuteSelect returns a single-item
array of objects containing the result, if the result isn't one of
DataSet, DataTable or IEnumerable. Fixes bug #471767
svn path=/trunk/mcs/; revision=126371
* Monodoc/ecma-provider.cs: Insert helper.js, not mono-ecma-css.js.
* Monodoc/provider.cs: Surround the contents of `helper.js' with a
<script/> block so that valid HTMl is generated.
* Resources/helper.js: Remove <script/> block, so that `helper.js' is an
actual JavaScript file, not an SGML file w/ JavaScript content.
* Resources/mono-ecma-css.js: Remove; use Resources/helper.js instead.
svn path=/trunk/mcs/; revision=126359
* UriParser.cs: Make visible as internal class in the NET_1_1 build.
* UriComponents.cs, UriFormats.cs, DefaultUriParser.cs: Likewise.
* GenericUriParser.cs, GenericUriParserOptions.cs: Likewise.
svn path=/trunk/mcs/; revision=126357
* tramp-amd64.c (mono_arch_create_monitor_enter_trampoline_full): Use 'code'
as the moving pointer instead of 'buf' for consistency with the rest of the
codebase.
(mono_arch_create_monitor_exit_trampoline): Ditto.
svn path=/trunk/mono/; revision=126338
* aot-compiler.c (emit_trampolines): Add throw_pending_exception/
generic_class_init trampolines.
(add_generic_class): Extract some code from add_generic_instances () into a
separate function so it can be called from other places too.
(compile_method): Call add_generic_class () for the classes of inflated methods
referenced by the method.
(can_encode_patch): Allow references to generic parameters.
* aot-runtime.c: Add support the patches required by the new trampolines.
* exceptions-amd64.c (mono_arch_get_throw_pending_exception_full): Add full-aot
support.
* tramp-amd64.c (mono_arch_create_generic_class_init_trampoline_full): Add
full-aot support.
* exceptions-amd64.c (mono_arch_get_throw_pending_exception_full): Rename
this from get_throw_pending_exception, make the signature full aot compatible.
svn path=/trunk/mono/; revision=126337
* XmlElementTest.cs: SetAttribute(name,value) should identify value
change for existing node, from new node insertion.
Fixed bug #464394.
* XmlElementTests.cs : added test for bug #464394.
svn path=/trunk/mcs/; revision=126323
* exceptions-amd64.c (mono_arch_get_throw_pending_exception_full): Rename
this from get_throw_pending_exception, make the signature full aot compatible.
svn path=/trunk/mono/; revision=126301
for argument checks.
* Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
reject "any" IP addresses. BeginGetHostEntry - renamed argument
to match MS, reject "any" IP addresses. GetHostEntry - reject
"any" IP addresses. GetHostAddresses - reject "any" IP addresses.
GetHostByName - use "hostName" as paramname in ANE.
svn path=/trunk/mcs/; revision=126281
and check accessibility of this .ctor from internal to private.
* UriTest3.cs: Added and improved tests for TryCreate. Added few
asserts for IsWellFormedUriString. Added .ctor tests.
svn path=/trunk/mcs/; revision=126272
* socket-io.c: when requesting all the local ips, if there are no
interfaces up and running, MS returns 127.0.0.1.
svn path=/trunk/mono/; revision=126203
* unwind.c (mono_unwind_frame): Eliminate the data_align_factor argument,
use the DWARF_DATA_ALIGN constant instead.
svn path=/trunk/mono/; revision=126199
* unwind.c (mono_unwind_frame): Eliminate the data_align_factor argument,
use the DWARF_DATA_ALIGN constant instead.
* exception-<ARCH>.c: Update after the above change.
svn path=/trunk/mono/; revision=126195
* exceptions-arm.c (mono_arch_find_jit_info): Transition this to use the
dwarf unwinder.
* mini-arm.c: Enable the dwarf unwinder.
svn path=/trunk/mono/; revision=126193
* Dns.cs: empty string for host (also 0.0.0.0) is just passed to the
runtime, which will then retrieve the local IP addresses. Fixes bug
#386637 part 2/2.
svn path=/trunk/mcs/; revision=126162
* exceptions-x86.c (mono_arch_find_jit_info): Transition this to use the
dwarf unwinder.
* mini-x86.h: Enable the dwarf unwinder.
svn path=/trunk/mono/; revision=126151
* TreeView.cs: When handling the MouseMove event, check if
focused_node and selected_node fields are null - usually they are non
null, since we have always a selected node, but canceling selection by
handling BeforeSelect event leaves the two of them as null.
Fixes#470451.
svn path=/trunk/mcs/; revision=126139
* StreamReader.cs: when a LF ends a decoded buffer and is not followed
by a CR in the next decoded buffer, we didn't flush the string.
Fixes bug #445326.
svn path=/trunk/mcs/; revision=126131
* icall-defs.h: Include also the Encrypt/Decrypt string methods as
they live in security.c
* debug-mono-symfile.c (mono_debug_open_mono_symbols): Integrated
another bit from Paolo's code.
svn path=/trunk/mono/; revision=126110
generic variance code and fixes the variance rules. The spec,
SURPRISE SURPRISE, is totally wrong about variance rules. Luckily,
we figured out how it really ought to be. Also added some new
error tests and three new regular tests which are on the ignore
list for now until VM support lands.
svn path=/trunk/mcs/; revision=126062
* object.c (build_imt_slots): Add a small optimization to avoid inflating
methods which will be discarded by add_imt_builder_entry ().
svn path=/trunk/mono/; revision=126057
* Style.cs: if CssClass is null, return String.Empty. Fixes bug
#473303
Added a range check to the BorderStyle property.
2009-02-06 Marek Habersack <[email protected]>
* StyleTest.cs: added tests for CssClass and BorderStyle.
Renamed the Style_CssClass method to Style_RegisteredCssClass.
svn path=/trunk/mcs/; revision=126051
* XmlTextWriter2.cs : in WriteStartAttribute(), fill namespace in
case it is null and the prefix has matching ns. Fixed bug #472634.
* XmlTextWriterTests.cs : added test for bug #472634.
svn path=/trunk/mcs/; revision=126047
* Control.cs: partially restore the ViewStateShouldBeSaved method
in order to introduce a small optimization - when the control's
EnableViewState is false, there is no point in checking all the
child controls.
svn path=/trunk/mcs/; revision=126037
and use it to determine if viewstate needs to be saved instead of
the newly introduced ViewStateShouldBeSaved. Remove
ViewStateShouldBeSaved.
svn path=/trunk/mcs/; revision=126025
* ClientRuntimeChannel.cs, ClientBase.cs :
implement remaining ChannelBase members and made some required
changes in ClientRuntimeChannel.
svn path=/trunk/mcs/; revision=126017
* WebClient_2_1.cs: Use g_timeout_add instead of g_idle_add here until
SyncContext is ready, as its less prone to starvation.
svn path=/trunk/mcs/; revision=126003
* Disable parallel marking on OSX as it hangs during collections
in the bootstrap stage of Mono.
As we find more platforms that hang, we should disable it there as
well.
svn path=/trunk/mono/; revision=126002
* loader.c (find_cached_memberref_sig): New helper function.
(cache_memberref_sig): Ditto.
* loader.c: Cache the result of parsing memberref signatures, since otherwise
they will be parsed again for every generic instantiation, leading to unbounded
memory growth.
svn path=/trunk/mono/; revision=125953
* AppResourcesCompiler.cs: implemented a type resolver for
ResXResourceReader so that it can correctly resolve
System.Resources types which are normally found in
System.Windows.Forms but are included by System.Web
directly. Without the type resolver, code comparing types inside
ResXResourceReader when file references are used in side the .resx
file will not work correctly. The reason for that is that .resx
files will name "System.Resources.ResXFileRef,
System.Windows.Forms" as the file reference handler, while inside
System.Web ResXFileRef will be of type
"System.Resources.ResXFileRef, System.Web". Fixes bug #466059
svn path=/trunk/mcs/; revision=125945
* class.c (mono_class_inflate_generic_method_full): Set is_mb_open again
after the original method is copied to the inflated method.
(mono_class_get_vtable_entry): Handle rgctx invoke wrappers more efficiently.
svn path=/trunk/mono/; revision=125918
* class-internals.h (struct _MonoMethodInflated): Move the is_mb_open
field to MonoMethod since it only consumes 1 bit there, and 4/8 bytes here.
* class.c metadata.c: Update after the changes above.
svn path=/trunk/mono/; revision=125911
* gen-md-tests.c: Add section-table var.
Add support for function calls. Added read.uint.
Added support for complex arithmetic expressions.
svn path=/trunk/mono/; revision=125907
* class-internals.h (MonoClassExt): New structure containing rarely used
fields of MonoClass.
(struct _MonoClass): Move rarely used fields to MonoClassExt, accessed
through a new 'ext' field.
* class.c (mono_class_alloc_ext): New helper function to allocate
class->ext.
* class.c metadata.c reflection.c: Update after MonoClass structure changes.
svn path=/trunk/mono/; revision=125902
* DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
- Use ArrayList.Insert instead of the Item property so that the item
is actually inserted and not an existing item replaced.
- Call DataGridView.OnRowsAddedInternal and drop internal from
OnRowsAdded for binary compitability. This also fixes several
redrawing issues.
[Fixes bug #472968]
svn path=/trunk/mcs/; revision=125900
* object.c (mono_object_get_virtual_method): Properly inflate
generic methods. Fixes#472692.
2009-02-05 Mark Probst <[email protected]>
* jit-icalls.c (mono_helper_compile_generic_method): Don't inflate
the method we get from mono_object_get_virtual_method() because
that function does it properly, now.
2009-02-05 Mark Probst <[email protected]>
* bug-472692.2.cs: New test.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=125887
* GenericBuildProvider.cs: added a new virtual method, MapPath,
which can be overriden by builders which need special handling of
virtual path mapping.
* PageBuildProvider.cs: provide implementation of
GenericBuildProvider.MapPath which takes into account fake virtual
paths. Fixes bug #463950
svn path=/trunk/mcs/; revision=125857
* class.c (mono_class_create_from_typedef): The CLR supports SystemF
recursive types such as List<T>:Cons<T,List<T>> so when doing the lookup
for the parent type, the created type must be ready to be used on a generic
instantiation.
We fill this_arg/byval_arg if the parent is a generic instance to make sure
we won't have duplicated entries in generic_inst_cache.
Fixes#469553.
svn path=/trunk/mono/; revision=125849
* mini-exceptions.c (ves_icall_get_frame_info): Account for the
fact that mono_find_jit_info() sometimes returns the context
corresponding to the jit info in new_ctx. Fixes#472600.
2009-02-05 Mark Probst <[email protected]>
* bug-472600.2.cs: New test.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=125839
* threadpool.c (socket_io_add_poll): Remove the BSD6 define and
replace with plain BSD per the comments on the bug MONO77637.
2009-02-05 Miguel De Icaza <[email protected]>
* sockets.c (_wapi_setsockopt): SO_REUSEPORT is needed also on
MacOS X. Fixes bug #471292
svn path=/trunk/mono/; revision=125821
* class-internals.h (struct _MonoClass): Add 'is_generic' and 'is_inflated'
fields, similar to the ones in MonoMethod.
* class.c (mono_generic_class_get_class): Set klass->is_inflated.
(mono_class_create_from_typedef): Set klass->is_generic if needed.
* reflection.c (mono_reflection_create_generic_class): Set klass->is_generic.
svn path=/trunk/mono/; revision=125816
* class-internals.h (struct _MonoClass): Remove enum_basetype, it contains
the same information as element_class->byval_arg.
* class.c reflection.c: Remove references to class->byval_arg.
svn path=/trunk/mono/; revision=125813
* Control.cs: if a control has been added to the controls
collection, removed and added again do not call OnInit (). At the
same time OnInit() should be called more than once if a control is
added to a container which, in turn, is then added to another
control. To achieve that a new state mask flag has been added -
REMOVED. Fixes bug #471305
svn path=/trunk/mcs/; revision=125798
* FlowLayout.cs: When laying out ToolStripItems, they should be
the height of the ToolStrip, not their preferred height.
[Fixes bug #469196]
svn path=/trunk/mcs/; revision=125770
More patches from Paolo's work, refactored to be integrated into
trunk:
* icall-def.h: Remove internal calls for sockets when
DISABLE_SOCKET is defined, file system writing features when the
OS only support reading and not writing data and Policy support if
the Policy is disabled.
* image.c (do_mono_image_open): Apply Paolo's patches for using
mono_file_map_ APIs here.
* assembly.c: Add support for platforms to avoid prefix
auto-detection.
svn path=/trunk/mono/; revision=125757
* Dictionary.cs: Declare the Link struct outside the main class to avoid
creating a separate inflated instances for each instantiation of Dictionary.
svn path=/trunk/mcs/; revision=125739
* class.c (mono_class_inflate_generic_class): New helper function.
* class.c: Use mono_class_inflate_generic_class in a few places. Add
statistics for inflated methods/classes.
* loader.c (inflate_generic_header): Use mono_class_inflate_generic_class.
svn path=/trunk/mono/; revision=125730
* icall.c (ves_icall_Type_GetMethodsByName): Optimize the case when
the call is made from Delegate.CreateDelegate () for the invoke method of
a delegate.
* loader.c: Add a statistics for the memory occupied by inflated signatures.
* metadata.c (mono_metadata_signature_size): New helper function.
* class.c (mono_class_get_method_from_name_flags): Add an optimization for
generic instances.
svn path=/trunk/mono/; revision=125727
* icall.c (ves_icall_Type_GetMethodsByName): Optimize the case when
the call is made from Delegate.CreateDelegate () for the invoke method of
a delegate.
* loader.c: Add a statistics for the memory occupied by inflated signatures.
* metadata.c (mono_metadata_signature_size): New helper function.
* class.c (mono_class_get_method_from_name_flags): Add an optimization for
generic instances.
svn path=/trunk/mono/; revision=125726
* metadata.c (inflated_method_in_image): Avoid calling
mono_method_signature () if the method does not already have a signature.
svn path=/trunk/mono/; revision=125724
* mini-exceptions.c (mono_setup_altstack): Use a more reasonable altstack
size on systems with 64k pages. Fixes#471389.
svn path=/trunk/mono/; revision=125697
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c (mono_arch_output_basic_block): Generate better code
for LOADI4_MEMBASE. Use addi instead of addic if it's not
necessary.
svn path=/trunk/mono/; revision=125679
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* exceptions-ppc.c (mono_arch_get_restore_context): Code size
comparison fix.
* tramp-ppc.c (mono_arch_create_generic_class_init_trampoline):
The trampoline can be longer on PPC64.
svn path=/trunk/mono/; revision=125676
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c: Compiler warning fixes and trivial code
simplifications.
svn path=/trunk/mono/; revision=125672
* Control.cs: update of the fix for bug #470993 - view state of
the child controls isn't saved when any of their parents has it
disabled.
svn path=/trunk/mcs/; revision=125663
"future" langversion. Variance is allowed in interface
and delegate types. Covariant type parameters are denoted
with the "out" keyword like so:
interface IFoo<out T> {
T Bar { get; }
}
And contravariant type parameters are dentoed with the
"in" keyword, like so:
delegate void Bar<in T> (T input);
Covariant type parameters can only be used as method
return types and type arguments for inherited
interfaces. Contravariant type parameters can only be
used as by-value method parameter types.
Only reference type are variant.
!!!IT SHOULD BE NOTED!!!
That the Mono VM does not yet fully support generic
type variance, so variant code compiled with this
feature will not run on Mono until variance support
is complete. Code compiled with this feature will run
on the .NET 2.0 virtual machine.
This patch is contributed under the MIT/X11 license.
svn path=/trunk/mcs/; revision=125647
* mini-amd64.c (mono_arch_output_basic_block): Avoid reading cfg->varinfo[..]
->dreg, that is not the vreg we are looking for.
svn path=/trunk/mono/; revision=125628
* method-to-ir.c (mono_spill_global_vars): Fix problems caused by reading
ins->dreg which could be a hardware register, not a vreg.
* aot-compiler.c (emit_method_dwarf_info): Ditto.
* mini.h (MonoCompile): Remove vreg_to_var_num array, it is no longer used.
(struct MonoMethodVar): Add a vreg field, holding the vreg of variable.
* mini.c (mono_compile_create_var_for_vreg): Set var->vreg.
* mini-amd64.c (mono_arch_output_basic_block): Avoid reading cfg->varinfo[..]
->dreg, that is not the vreg we are looking for.
* mini-amd64.h mini-x86.h: Enable MONO_ARCH_LIVENESS_OPS again.
svn path=/trunk/mono/; revision=125627
* mono-dl.c: Add support for registering in-proc addresses as
libraries that can be P/Invoked. Used in operating systems that
lack a dynamic linker.
svn path=/trunk/mono/; revision=125622
* mini-x86.c (mono_arch_emit_prolog): Emit unwind info.
* aot-compiler.c (emit_line_number_info): Fix line number emission when
the line diff is 0.
* aot-compiler.c: Add xdebug support on x86.
* unwind.c: Add x86 support.
svn path=/trunk/mono/; revision=125609
* verify.c (is_compatible_boxed_valuetype): When checking if the boxed
valuetype is compatible with target type, check by inheritance as a
VT is not really compatible with System.ValueType, for example.
* verify.c (do_invoke_method): Improve error message.
* verify.c (do_box_value): If boxing a nullable, use the type argument
on stack instead.
* verify.c (do_newobj): Improve error message.
Fixes#469549.
svn path=/trunk/mono/; revision=125603
* aot-compiler.c (emit_exception_debug_info): Control the emission of
unwind info using a new MONO_ARCH_HAVE_XP_UNWIND define.
* mini.c (mini_method_compile): Ditto.
svn path=/trunk/mono/; revision=125599
* mono-gdb.py (stringify_class_name): Helper function to print base types
using their short name. Also add a prototype implementation of registering
the hooks from python code instead of needing the mono-gdbinit file.
svn path=/trunk/mono/; revision=125594
* gdb-python.diff: Changes against the gdb archer branch at
http://sourceware.org/gdb/wiki/PythonGdb to fix some problems/add functionality.
svn path=/trunk/mono/; revision=125593
* mono-gdbinit: Hook into backtrace as hook-stop seems to crash gdb
* mono-gdb.py: Find the gdbinit name from the executable name instead of
hardcoding mono
svn path=/trunk/mono/; revision=125591
* DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
code in the row collection code, so that the completion happens before
the CollectionChanged event, also better encapsulation.
[Fixes bug #471987]
svn path=/trunk/mcs/; revision=125585
* verify.c (mono_delegate_signature_equal): Make it possible to check
first-arg-bound delegates to static method.
* verify.c (verify_delegate_compatibility): Correctly verify delegates to
static methods with the first arg bound.
Fixes#469529.
svn path=/trunk/mono/; revision=125581
* mono-filemap.c: Integrate Paolo's mono-filemap code here, split
some code from mono-mmap. into this file to ease porting.
svn path=/trunk/mono/; revision=125578
* mini-amd64.c (mono_arch_output_basic_block): Add OP_LIVERANGE_START/END.
* method-to-ir.c (mono_spill_global_vars): Compute the instructions marking
the live ranges of variables, and emit OP_LIVERANGE_START/END opcodes for
them.
* mini-ops.h: Add OP_LIVERANGE_START/END opcodes to mark
the live ranges of variables.
* mini.h (struct MonoMethodVar): Add two fields containing the live range
of the variable in terms of native offsets.
svn path=/trunk/mono/; revision=125543
* verify.c: Added stack_slot_full_name to provide decent and more meanfull
errors.
* verify.c (is_compatible_boxed_valuetype): Be less restrictive when not
under strict mode. Any type, when boxed can be seen as a reference type.
Fixes#469528.
svn path=/trunk/mono/; revision=125539
* object.h: The lower bound of an array is a signed integer value.
Introduce mono_array_lower_bound_t typedef. It should be used instead of
gint32 as under MONO_BIG_ARRAYS it will be a gint64.
* icall.c: Cast MonoArrayBounds::length to a signed value so correctly
calculate the upper bound.
Fixes#471252.
svn path=/trunk/mono/; revision=125458
From Paolo's work, refactored, cleared up:
* threadpool.c, icall.c: ifdef code that requires a working socket
stack.
* metadata.c (mono_metadata_field_info): Do not attempt to return
a value from a function declared as void.
* console-io.c: Use MONO_NULL_TTYDRIVER to remove the tty driver
from the console stack.
* assembly.c: use strrchr instead of rindex.
* class.c, object.c, marshal.c, icall.c, reflection.c: include
alloca.h on systems that have it.
* environment.c: Avoid code that uses stuff from
HAVE_SYS_UTSNAME_H
* appdomain.c: Include sys/time.h.
* console-io.c: include sys/ioctl.h if it is available.
svn path=/trunk/mono/; revision=125449
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* ppc/ppc-codegen.h: Make operand order and case consistent
(assembler order) for ppc_load_reg_update, ppc_load_multiple_regs,
ppc_store_multiple_regs, ppc_lwz, ppc_lhz, ppc_lbz,
ppc_stw,ppc_sth, ppc_stb, ppc_stwu, ppc_lbzu, ppc_lfdu, ppc_lfsu,
ppc_lfsux, ppc_lfsx, ppc_lha, ppc_lhau, ppc_lhzu, ppc_lmw,
ppc_lwzu, ppc_stbu, ppc_stfdu, ppc_stfsu, ppc_sthu, ppc_stmw. Use
"i" or "ui" instead of "d" for immediated operands to immediate
arthimetic and logical instructions in macros ppc_addi, ppc_addis,
ppc_ori, ppc_addic, ppc_addicd, ppc_andid, ppc_andisd.
[__mono_ppc64__]: Make operand order and case consistent
(assembler order) for ppc_load_multiple_regs,
ppc_store_multiple_regs. Simplify the DS form and make them
consistent with D forms for ppc_load_reg, ppc_load_reg_update,
ppc_store_reg, ppc_store_reg_update. ppc_ld, ppc_lwa, ppc_ldu,
ppc_std, ppc_stdu. Define ppc_lwax and ppc_lwaux.
2009-02-02 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* exceptions-ppc.c (restore_regs_from_context): Correct operand
order (offset then base reg) for ppc_load_multiple_regs.
(emit_save_saved_regs) Correct operand order for
ppc_store_multiple_regs.
(mono_arch_get_call_filter): Correct operand order for
ppc_load_multiple_regs.
* mini-ppc.c (emit_memcpy): Fix operand order for
ppc_load_reg_update and ppc_store_reg_update.
(mono_arch_output_basic_block): Correct operand order for ppc_lha.
(mono_arch_emit_epilog): Correct operand order for
ppc_load_multiple_regs.
* tramp-ppc.c (mono_arch_create_trampoline_code): Correct operand
order for ppc_store_multiple_regs and ppc_load_multiple_regs.
svn path=/trunk/mono/; revision=125443
* DataGridView.cs: When editing is finished do not remove the editing
row, because it has already become a real one. Instead add a new one.
[Fixes bug #471754]
svn path=/trunk/mcs/; revision=125440
* method-builder.h (_MonoMethodBuilder): Add a 'skip_visibility' flag.
* method-builder.c (mono_mb_create_method): Set method->skip_visibility from
the method builder.
* marshal.c: Set mb->skip_visibility instead of setting it on the method
after it was created and cached, as the later is not thread safe.
svn path=/trunk/mono/; revision=125436
* method-builder.h (_MonoMethodBuilder): Add a 'skip_visibility' flag.
* method-builder.c (mono_mb_create_method): Set method->skip_visibility from
the method builder.
* marshal.c: Set mb->skip_visibility instead of setting it on the method
after it was created and cached, as the later is not thread safe.
svn path=/trunk/mono/; revision=125435
* mono-debug.c (mono_debug_print_stack_frame): Avoid crashes when this is
called while the debugging module is not initialized. Fixes#471669.
svn path=/trunk/mono/; revision=125413
* generic-sharing.c (lookup_or_register_other_info): Make sure the
loader lock is not taken while the templates lock is held. Fixes
#471089.
svn path=/trunk/mono/; revision=125388
* TreeView.cs: When drawing the node's image, check that the index
specified by the node is valid for the ImageList.
Fixes#471094.
svn path=/trunk/mcs/; revision=125379
* ToolBar.cs: Add new UIAPerformClick method to be called by
UIAutomationWinforms when someone calls Invoke() on the
ToolBarButtonProvider. r: jpobst
svn path=/trunk/mcs/; revision=125354
* marshal.c (mono_marshal_free_dynamic_wrappers): New function for
freeing wrappers of dynamic methods.
* loader.c (mono_free_method): Call it. Fixes#463323.
svn path=/trunk/mono/; revision=125349
* marshal.c (mono_marshal_get_runtime_invoke): Disable sharing for
methods taking vtype/byref arguments, to fix yet another bug caused by
the sharing of runtime invoke wrappers. Partly fixes#471259.
svn path=/trunk/mono/; revision=125348
* TypeMap.cs : allow get-only collections. Note that they are not
always deserializable (in .NET either).
* DataContractJsonSerializerTest.cs : fixed some tests to match
.NET RTM behavior. Added read-only collection case, (but [Ignore]d).
svn path=/trunk/mcs/; revision=125332
* TypeMap.cs : DataContractJsonSerializer in RTM does not seem to
reject contract-less types. So populate map for public members.
* DataContractJsonSerializer.cs : close XmlWriter to flush stream
(and it closes the stream by default).
* DataContractJsonSerializerTest.cs : added test for contract-less
serialization.
* Makefile : add -d:NET_3_5.
svn path=/trunk/mcs/; revision=125328
* XplatUIX11.cs: Don't send a WM_SHOWWINDOW message when receiving
MapNotify/UnmapNotify events - we are already firing those events in
the proper places, so we avoid this way to send the same message two
times. I'm leaving the handling code in case we could break something
in the future, as this change seems dangerous (but needed).
Fixes#467546.
svn path=/trunk/mcs/; revision=125325
* CommittableTransaction.cs (CommitCallback): Handle the case
where the callback is invoked before BeginCommit ends due to the
async call ending synchronously.
svn path=/trunk/mcs/; revision=125314
* Microsoft.Common.targets: Add targets for generating resources,
generate and deploy satellite assemblies, resolve project and assembly
references. All intermediate build output goes into a 'obj/' dir by
default. 'Clean' target enabled.
svn path=/trunk/mcs/; revision=125293
items like '{HintPathFromItem}', '{TargetFrameworkDirectory}' etc.
* AssemblyResolver.cs: Add api for more specific search, like search
in a directory, target frameworks, gac etc.
svn path=/trunk/mcs/; revision=125291
* aot-compiler.c: Add debug info for methods without debug info by
emitting an IL file and having the line number info referencing that file.
svn path=/trunk/mono/; revision=125273
* DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
binding is cleared prior to setting it to null. Fixes a regression
causing exceptions when the DataSource is set to null and then set
again to a data source.
svn path=/trunk/mcs/; revision=125271
* debug-mono-symfile.c (check_line): Return NULL instead of returning
<first file in file table>:1 when the IL offset does not have an associated
line number.
svn path=/trunk/mono/; revision=125261
* BuildEngine.cs (BuildProjectFile): Use
BuildSettings.DoNotResetPreviouslyBuiltTargets for building projects.
* Engine.cs (BuiltTargetsOutputByName): New. Table of targets already
built. Move logging of project start/finish to ..
* Project.cs: .. here. Build a target only if hasn't been built already.
Keep track of target outputs, and return those even if an already built
target has been invoked again.
Honor BuildSettings.None and DoNotResetPreviouslyBuiltTargets .
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestBuild[23]): Check number of task started/finished
events.
(TestResetBuildStat): Remove "NotWorking".
(TestBuild4): Likewise. Check number of task started/finished events.
* TargetTest.cs (TestTargetOutputs1): New.
svn path=/trunk/mcs/; revision=125234
* aot-compiler.c (emit_method_dwarf_info): Emit names for local variables.
* driver.c (mono_main): Enable debugging support automatically if XDEBUG
is used.
svn path=/trunk/mono/; revision=125231
* mono-debug.c (mono_debug_lookup_locals): New function to return local
variable info for a method.
* debug-mono-symfile.c (mono_debug_symfile_lookup_locals): Ditto.
svn path=/trunk/mono/; revision=125230
* cpu-arm.md: Increase the size of storer8_membase_reg and
loadr8_membase_reg to 24 bytes to accomodate the extra add.
* mini-arm.c (mono_arch_output_basic_block): Under FPA, when emitting
OP_STORER8_MEMBASE_REG and OP_LOADR8_MEMBASE_REG, add the original
reg to LR otherwise we'll be loading/storing from just the offset.
svn path=/trunk/mono/; revision=125205
Question: if we are storing gint32's inside the "*native_offset",
should we change the signature to "gint32 *native_offset" to
ensure that we do not have type definition problems?
* mini-exceptions.c (ves_icall_get_frame_info): Cast the gint32 to
an int * as this is what the other function expects, causes
problems with Freescale's compiler that defined int32_t to be a
long and makes int incompatible
svn path=/trunk/mono/; revision=125175
* jit-icalls.c (mono_imul_ovf): Fix one of the literals.
* mini.c (mini_init): Emulate mul.ovf opcodes if MONO_ARCH_EMULATE_MUL_OVF
is defined.
* mini-arm.h (MONO_ARCH_EMULATE_MUL_OVF): New define.
svn path=/trunk/mono/; revision=125166
* pedump.c: reuse code from monodis to make sure pedump honors
MONO_PATH, which is needed to verify net_2_1 assemblies.
svn path=/trunk/mono/; revision=125124
* mini-arm.c (mono_arch_context_get_int_reg): Adapt this to the "clever"
way registers are stored in MonoContext on arm.
svn path=/trunk/mono/; revision=125118
* UpDownBase.cs: Force Height to PreferredHeight.
* NumericUpDownTest.cs: Add a test to check Height == PreferredHeight.
svn path=/trunk/mcs/; revision=125102
* unwind.c: Rewrite the handling of the cached_info array to use hazard pointers
instead of locking so mono_get_cached_unwind_info () becomes signal safe.
svn path=/trunk/mono/; revision=125100
A fix for bug #470767
* statement.cs: Introduced BlockScopeExpression, needed when
expression tree conversion has to emit scope variables.
svn path=/trunk/mcs/; revision=125094
* exceptions-arm.c (mono_arch_find_jit_info): When unwinding using the LMF,
set esp to ARMREG_FP instead of R12, since R12 stores the value of sp for
the parent frame.
svn path=/trunk/mono/; revision=125081
* exceptions-arm.c (mono_arch_find_jit_info): The frame layout on arm have
separate frame and stack pointers, so we must use FP to find the register
spill area.
The FP reg is retrieved from the MonoContext::regs array.
svn path=/trunk/mono/; revision=125079
* mini-arm.c (mono_arch_emit_setret): Emit OP_FMOVE for methods that
return R4 and R8 when not running under softfloat.
Fixes basic-calls.exe
svn path=/trunk/mono/; revision=125077
* TaskEngine.cs (GetObjectFromString): Empty value is allowed only for
arrays.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestRequiredTask_*): New.
(TestBatchedMetadataRef5): New.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (RequiredTestTask): Rename to ..
(RequiredTestTask_TaskItems): .. this.
(RequiredTestTask_*): New types.
svn path=/trunk/mcs/; revision=125076
* UTF8Encoding.cs : surrogate characters are handled in
InternalGetChars() but not in InternalGetCharCount().
Fixed bug #415628.
* UTF8EncodingTest.cs : added test for bug #415628.
* 415628.bin : new test resource.
* Makefile: new resource, new EXTRA_DIST mess.
svn path=/trunk/mcs/; revision=125075
* XmlSchemaValidator.cs : when xsi:nil is true, do not validate
text string. Fixed bug #469713.
* XsdValidatingReader.cs : when xsi:nil is true, do not validate
text string.
* XmlSchemaValidatorTests.cs : added test for bug #469713.
svn path=/trunk/mcs/; revision=125069
* ssa.c: handle another alloca.h
* mini-exceptions.c (mono_handle_native_sigsegv): Do not use
PLATFORM_WIN32 for detecting if we have sigaction. Instead use
MONO_ARCH_USE_SIGACTION.
svn path=/trunk/mono/; revision=125037
* method-to-ir.c (mono_method_to_ir): Type cast fix on some platforms.
* mini-ppc.h (MONO_ARCH_USE_SIGACTION): Do not define this for all
PPC targets as sigaction does not exist on all platforms, define
this on a per-platform basis.
Instead of erroring out if the platform is not defined, include
mini-ppc-os.h, and expect that the OS specific setting provides
the required information.
svn path=/trunk/mono/; revision=125033
* configure.in: Remove -Wcast-align from the warning list, it leads to a lot of
useless warnings which can only be fixed by casting a pointer to (void*).
svn path=/trunk/mono/; revision=125006
* mini.c (construct_object_context_for_method): Move this outside
the DISABLE_JIT block to fix the --enable-minimal=jit build.
svn path=/trunk/mono/; revision=124998
"Backported" of r124984 from 2.0 branch.
* aot-compiler.c aot-runtime.c: Add full-aot support delegate BeginInvoke/EndInvoke.
"Backport" of r124977 + r124978 from 2.0 branch.
* exceptions-arm.c (mono_arm_throw_exception_by_token): New helper function
to avoid calling mono_exception_from_token () from the throw trampoline.
(mono_arch_get_throw_exception_generic): call throw_exception_by_token
for throwing corlib exceptions, this fixes full-aot support for corlib
exceptions.
svn path=/trunk/mono/; revision=124988
* configure.in: Add a couple of new AM conditionals for POSIX and
DARWIN, these are used to conditionally include some files in
mono/mini.
svn path=/trunk/mono/; revision=124974
* mini-darwin.c, mini-windows.c, mini-posix.c: Commit the first
part of the changes to split the code in mini into operating
system specific files.
This patch was done by copying mini.c to the respective files to
preserve SVN history.
svn path=/trunk/mono/; revision=124973
* HttpApplicationFactory.cs: fix check that avoids lock. Keep one
HttpApplication instance ready to be returned in an instance variable
to avoid a few locks.
svn path=/trunk/mcs/; revision=124950
* XplatUIX11.cs: We should use utf8 handling clipboard transference
with other x11 applications, and use utf16 when handling clipboard
data in the class library. Update the related points as well.
Fixes#468683.
svn path=/trunk/mcs/; revision=124918
* shared.c: Add an alternative implementation using shared memory instead of
files. This fixes problems where the mono process would spin up the disk
every x secs on laptops. Fixes#434566, #415373 and #321949.
svn path=/trunk/mono/; revision=124915
*.cs: Rename Parameters to ParametersCompiled and ParametersImported
when I finally found the right naming convention.
svn path=/trunk/mcs/; revision=124911
* Uri.cs (IsWellFormedUriString): Changing IsWellFormedUriString
to not throw an exception but return false instead.
Contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=124869
* DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
addition or removal. Fixes multiple crashes in OnMouseMove.
svn path=/trunk/mcs/; revision=124867
* reflection.c (mono_reflection_initialize_generic_parameter):
Reuse MonoType from param->pklass rather than allocating one.
(mono_dynamic_image_free): Update to changes.
svn path=/trunk/mono/; revision=124850
* BuildItem.cs (child_items): Change type from BuildItemGroup to
List<BuildItem>.
(HasParent): Rename to ..
(HasParentItem): .. this.
(ParentItemGroup): Add setter.
* BuildItemGroup.cs (.ctor): Add overload with @project param.
(AddNewItem):
(AddItem): Correctly set the ParentItemGroup for new build items.
(ParentProject): Add setter.
* Project.cs: Set the project for new BuildItemGroup instances.
* TaskEngine.cs (PublishItemGroup): Likewise.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* BuildItemTest.cs (TestBuildItemTransform): New.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (BatchingTestTask.TaskItemsOutput): New.
svn path=/trunk/mcs/; revision=124840
* generic-sharing.c (has_constraints): Enable gshared for methods/classes
with type constraints as an experiment.
svn path=/trunk/mono/; revision=124794
* method-to-ir.c (mono_method_to_ir): Avoid generic sharing for calls made to
remoting-invoke-with-check wrappers of shared methods.
svn path=/trunk/mono/; revision=124789
* class-internals.h (_MonoGenericInst::type_argv): Convert from
pointer to tail array to avoid extra allocation.
* metadata.c (free_generic_inst): Update to changes.
(mono_metadata_get_generic_inst): Likewise. Use alloca instead of
on-stack struct.
This adds a blit to get_generic_inst as compared to the original version.
However, both arms of the 'if' in there traverse the 'type_argv' array
_fully_ with 'for' loops, recursion and whatnot; the extra blit is unlikely
to add overhead.
svn path=/trunk/mono/; revision=124754
* sockets.c (WSASend): Fix memory leak, and optimize for the case
with 1 segment.
This should really use writev or sendmsg to use the kernel
scatter/gather facility instead of emulating it by copying buffers.
svn path=/trunk/mono/; revision=124732
A fix for bug #324319
* ecore.cs: Explicitly type null when assigning to type argument to
make pass verifier check.
svn path=/trunk/mcs/; revision=124723
* icall.c (ves_icall_System_Type_EqualsInternal): For user-defined types,
return TRUE if the two type objects are the same.
svn path=/trunk/mono/; revision=124714
* method-to-ir.c (emit_stloc_ir): Only apply the reg-reg move
optimization if the top of stack is the last instruction in the
bblock. Otherwise it might have been used after its definition.
Fixes#469742.
2009-01-27 Mark Probst <[email protected]>
* bug469742.2.il: New test.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=124712
* mini-trampolines.c (mono_magic_trampoline): Print out the caller
method as well when get_vcall_slot () fails to match a code sequence.
svn path=/trunk/mono/; revision=124689
* HttpHandlerAction.cs: removed the matches cache, it doesn't
improve matters here in 99% of the cases.
Regexps are no longer used to match handler paths, SearchPattern
is used instead.
2009-01-27 Marek Habersack <[email protected]>
* SearchPattern.cs: added
2009-01-27 Marek Habersack <[email protected]>
* System.Web.dll.sources: added System.Web.Util/SearchPattern.cs
svn path=/trunk/mcs/; revision=124659
* marshal.c (mono_marshal_load_type_info): Fill out info->min_align.
(mono_class_native_size): Use klass->marshal_info->min_align instead of
klass->min_align, since klass->min_align contains the managed alignment,
while the native alignment can be different, like for longs on x86.
Fixes#469135.
* class-internals.h (MonoMarshalType): Add a min_align field.
svn path=/trunk/mono/; revision=124559
* DataGridView.cs: Do not be too smart about selecting the first cell
when the first row is added as this is not what MS does. Fixes the
failing unit tests.
svn path=/trunk/mcs/; revision=124557
* TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
take into account the fact that OpenTreeNodeEnumerator needs to call
MoveNext/MovePrevious to actually put the passed node as the one
retrieved in Current. This way this property should work as really
expected in .net.
Fixes part of #467225.
svn path=/trunk/mcs/; revision=124553
* ClientProxyHandler.cs: before generating the proxy check if the
service type is decorated with the [ScriptService] custom
attribute. Only such service types can be called from client
JavaScript.
2009-01-26 Marek Habersack <[email protected]>
* ScriptManager.cs: before registering script service reference
check if the service type is decorated with the [ScriptService]
custom attribute. Only such service types can be called from
client JavaScript.
svn path=/trunk/mcs/; revision=124547
* TreeView.cs: When calculating the scrollbars, don't use
TreeNode.Bounds, since it still can have the values of the previous
-and now invalid- layout -which depends on TreeView.skipped_nodes, and
could not have been updated as well-, and use the actual number of
visible number of nodes to compute the height needed to contain all
the nodes. Also reset the value of vbar to 0 when disabled - this way
we make sure that, when re-enabled, it will update the visible area of
the treeview, even if the previous value before disabling it is the
same as now. Finally don't do anything for the vbar.ValueChanged
handler - for the case wheer we manually set the value but don't the
vbar is disabled already.
Fixes part of #467225.
svn path=/trunk/mcs/; revision=124509
* mini.c (mini_method_compile): Save the unwind info generated by the JIT
and put its id into jinfo->used_regs. This is only used on amd64,
which is currently the only platform generating unwind info.
* exceptions-amd64.c: Instead of unwinding based on a register mask, use
the dwarf unwinder. This is required to correctly handle async exceptions
like thread abort and stack overflows, which can happen while a method
is in the middle of its prolog or epilog.
* aot-runtime.c (mono_aot_get_unwind_info): New helper function to obtain
the unwind info belonging to an AOTed method.
* aot-compiler.c aot-runtime.c: Save/Load the unwind info emitted by the JIT
into cfg->unwind_ops.
svn path=/trunk/mono/; revision=124504
* domain-internals.h (struct _MonoJitInfo): Add a 'from_aot' field plus
some comments about the usage of the used_regs field.
svn path=/trunk/mono/; revision=124502
* unwind.c: Add functions for managing a set of unwind info entries, allowing
unwind info to be shared between methods.
svn path=/trunk/mono/; revision=124500
* data/config.xml: added a definition for .NET 3.5 AJAX entries
(feature AJAX) and moved the 1.0 entries to feature AJAX1.
svn path=/trunk/mcs/; revision=124498
* SearchPattern.cs: make IsMatch work for situations when there is
no wildcard in the pattern, but a subdirectory match is being
tested, e.g. pattern == "file.txt" and text ==
"subdir/file.txt". Lack of support for this has been causing
watching for changes to ASP.NET's web.config in subdirectories to
fail.
svn path=/trunk/mcs/; revision=124491
* WebClient_2_1.cs: Ensure we don't let exceptions go to native code.
* HttpWebRequest_2_1.cs: Add AllowReadStreamBuffering.
svn path=/trunk/mcs/; revision=124487
A fix for bug #469244
* cs-tokenizer.cs, cs-parser.jay: Fixed parsing of nullable type
instance inside a conditional expression.
svn path=/trunk/mcs/; revision=124484
* WebConfigurationHost.cs: when an attempt to map a fake virtual
path is made, MapPath returns the aplication physical root
directory. Fixes bug #463950
svn path=/trunk/mcs/; revision=124479
* HttpWebRequest.cs: added locking in SetResponseData for the case
when we get an error response before BeginGetResponse has been
called.
svn path=/trunk/mcs/; revision=124452
* mini.c (mono_get_domain_intrinsic): New helper function.
(mono_get_thread_intrinsic): Ditto.
* mini-arm.c mini-ia64.c: Use the new helper functions.
* method-to-ir.c (mono_method_to_ir): Fix the comment for
the last constrained_call change, since it is needed in the non-AOT
case as well.
svn path=/trunk/mono/; revision=124434
* mini.c (mono_get_domain_intrinsic): New helper function.
(mono_get_thread_intrinsic): Ditto.
* mini-arm.c mini-ia64.c: Use the new helper functions.
* method-to-ir.c (mono_method_to_ir): Fix the comment for
the last constrained_call change, since it is needed in the non-AOT
case as well.
svn path=/trunk/mono/; revision=124433
* HttpResponse.cs: make sure config is not null here.
* HttpApplication.cs: add a timer (-d:PIPELINE_TIMER) for the pipeline.
Handle timeouts for OutputPage() too.
svn path=/trunk/mcs/; revision=124395
* HttpApplicationFactory.cs: set/reset the context for the application
when creating/disposing. Dispose() out of the lock.
svn path=/trunk/mcs/; revision=124393
* XmlSiteMapProvider.cs: if a nested sitemap is used (via the
siteMapFile node attribute) watch the named file for
changes. Fixes bug #465693
svn path=/trunk/mcs/; revision=124385
* HtmlTextWriter.cs: if OnTagRender returns false when called from
RenderBeginTag, push the tag to the stack regardless, and ignore
it in DoBeginTag and RenderEndTag. Fixes bug #463634
svn path=/trunk/mcs/; revision=124377
* aot-compiler.c aot-runtime.c: Treat delegate-invoke wrappers similarly to
runtime-invoke wrappers, since they are also shared based on signature.
svn path=/trunk/mono/; revision=124337
* metadata.c (mono_metadata_generic_param_equal): Only compare the
image if the owner is NULL. Fixes the AOT failures.
svn path=/trunk/mono/; revision=124301
* metadata.c (mono_metadata_load_generic_params): Initialize the
MonoGenericParam structure using memset so the image field is initialized
as well.
svn path=/trunk/mono/; revision=124266
* Stopwatch.cs: Reorder the calculations in Elapsed and ElapsedMilliseconds
to avoid overflow. Fixes#468570. Patch by Yoni Shalom <[email protected]>.
svn path=/trunk/mcs/; revision=124260
* Makefile (SYSTEMCORE_DEP):
If NO_SYSTEMCORE_DEP is defined System.Web.dll will not be linked
with System.Core.dll and BuildManager will use ReaderWriterLock
instead of ReaderWriterLockSlim.
2009-01-22 Marek Habersack <[email protected]>
* BuildManager.cs:
- if SYSTEMCOR_DEP is undefined use ReaderWriterLock instead of
ReaderWriterLockSlim
svn path=/trunk/mcs/; revision=124253
* mini-exceptions.c (ves_icall_get_frame_info): Fetch the generic
info from the (correct) context.
2009-01-22 Mark Probst <[email protected]>
* generic-stack-traces2.2.cs: Another generic sharing test for
stack traces.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=124246
* unwind.c (mono_unwind_frame): New function to unwind through a frame
using dwarf unwinding info. Not yet used.
svn path=/trunk/mono/; revision=124236
* unwind.c (mono_unwind_frame): New function to unwind through a frame
using dwarf unwinding info. Not yet used.
svn path=/trunk/mono/; revision=124235
* gtest-anontype-05.cs: update according to lastest changes in gmcs
to match was csc outputs. Also add new cases to check.
svn path=/trunk/mcs/; revision=124228
* XmlXapResolver.cs : fix assembly qualified names,
and give detailed errors.
* XmlResolver.cs : in 2.1 do not resolve relative Uri
to absolute.
svn path=/trunk/mcs/; revision=124218
* MessageHeaders.cs : List<T>.RemoveAll(Predicate<T>) doesn't
* exist in Silverlight.
Rewrite to avoid usage of it.
svn path=/trunk/mcs/; revision=124204
* BasicHttpBinding.cs: In silverlight ReaderQuota is immutable and always
has a default value of ReaderQuota.Max. Therefore no need to call CopyTo.
svn path=/trunk/mcs/; revision=124203
* SilverlightClientConfigLoader.cs : in Silverlight, there is
"ServiceReference.ClientConfig" which is used to resolve service
endpoint configuration. It is to consume that file.
* ChannelFactory.cs : use above in SL.
* ClientBase.cs : rename some misleading param names.
* net_2_1_raw_System.ServiceModel.dll.sources :
added SilverlightClientConfigLoader.cs.
svn path=/trunk/mcs/; revision=124191
* Makefile (net_2_0_dirs): added System.Web - it now depends on
System.Core, so it needs to be recompiled one more time after
System.Core is done.
2009-01-22 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
System.Web.Compilation/BuildManagerCacheItem.cs,
System.Web.Compilation/BuildManagerDirectoryBuilder.cs,
System.Web.Compilation/BuildProviderGroup.cs
* Makefile (SYSTEMCORE_DEP): added. Defines SYSTEMCORE_DEP on the
mcs command line when System.Core is present.
Added the DEVEL define, which defines DEVEL on the mcs command
line. This is used to conditionally compile development helper code in
System.Web.Util.FileUtils (and possibly other stuff later on)
2009-01-22 Marek Habersack <[email protected]>
* XsdBuildProvider.cs: added missing BuildProviderAppliesTo
attribute.
* BuildProvider.cs: added new internal virtual method,
ExtractDependencies() whose purpose is to extract virtual path
dependencies without compiling the code, if possible.
* TemplateBuildProvider.cs: implemented the new
ExtractDependencies () method which uses regular expressions to
extract file dependencies from the source without having to
compile the file.
* CompilationException.cs: added a new public property, Results,
which returns the compilation results.
* BuildProviderGroup.cs: added. A simple class descending from
List <BuildProvider> which is used to hold a compilation batch -
that is a collection of BuildProvider instances.
* BuildManagerDirectoryBuilder.cs: new class which takes care of
generating compilation batches for the requested virtual path. A
set of batches is generated from files found in the same virtual
directory as the requested virtual path and all of the
dependencies of those files. All files are grouped in batches
within which no file depends upon its siblings. An attempt is made
to sort the batches from the "least dependent" to the "most
dependent" batches - i.e. the batches which do not depend on other
batches go to the top.
Code generating the batches now correctly detects dependency loops
and throws an exception when one is encountered.
Batches are represented as instances of a new class -
BuildProviderGroup.
* BuildManagerCacheItem.cs: added. Contains all the compilation
result information needed by BuildManager. See below.
* BuildManager.cs: complete batch building rewrite:
- only one build lock is held instead of a set of compilation
tickets. Only one thread can compile anything at one given
time.
- retrieving types from the build cache now uses a slim rw lock,
so that readers aren't blocked while compilation is in
progress. Writer lock is acquired only when adding a newly
compiled type to the build cache and when removing it after its
dependencies made it invalid.
- assembly references for each compilation are now collected
dynamically as the source is being compiled, this removed a lot
of complexity in dealing with assembles containing conflicting
types. As a consequence right now there may exist several
loaded assemblies containing the same type, but only the latest
of them will be used in new compiles.
- the thread compiling code can recurse into the Build method
which causes the recursively referenced code to be compiled
into a separate, uniquely named, assembly. This deals with all
recursion loops and dependency problems.
- automatic app domain restart after a certain number of compiles
is enabled now.
- improved compilation error handling. If a compilation error
occurs, the code attempts to recompile the assembly up to 3
times, each time removing from the batch the files/virtual
paths which failed parsing/compilation. If the attempts failed,
another one is made to compile only the virtual path requested
by the calling code. Only should that fail a compilation
exception is thrown. All the compilation errors are written to
stdout if the application is in the debug mode.
- changed assembly naming. It now generates assembly names based
on whether the compilation is recursive and whether the batch
being compiled contains more than one code unit or
not.
- compilation results are now stored in the cache as instances of
the new BuildManagerCacheItem class, which contains all the
information required by BuildManager to return types,
assemblies, dependencies etc.
- GetReferencedAssemblies now correctly returns only the
assemblies defined in the .config files.
- GetVirtualPathDependencies does not need to compile code
anymore in order to extract virtual path dependencies. New code
in BuildProvider.ExtractDependencies () takes care of that.
- a BuildManagerDirectoryBuilder class instance is used to
generate compilation batches.
* AssemblyBuilder.cs: added support for keeping track of which
code unit was generated by which BuildProvider andr which
BuildProvider produced a given source file. Both changes serve the
purpose of dealing with compilation errors in BuildManager.
* ApplicationFileBuildProvider.cs: added missing
BuildProviderAppliesTo attribute
2009-01-22 Marek Habersack <[email protected]>
* FileUtils.cs: added two conditionally compiled methods (they
require DEVEL to be defined) which output lines to a log file.
2009-01-22 Marek Habersack <[email protected]>
* WebTest.cs: Run () sets the internal field
BuildManager.suppressDebugModeMessages to true.
2009-01-22 Marek Habersack <[email protected]>
* Web.mono.config: added numRecompilesBeforeAppRestart attribute
to the compilation element, set to 100000, to avoid appdomain
restarts during tests.
svn path=/trunk/mcs/; revision=124179
* DataContractSerializerMessageContractImporter.cs :
for such an element that does not contain schema type but has a
type reference, use ImportSchemaType().
svn path=/trunk/mcs/; revision=124167
* WebClient_2_1.cs: Make the ManualResetEvent local to the callback
because a WebClient can be reused causing a wait-handle race here
allowing a delegate to get collected causing a crash.
svn path=/trunk/mcs/; revision=124161
* mini-ppc.c (mono_arch_delegate_invoke_impl): Return function
descriptors.
* mini-trampolines.c (mono_delegate_trampoline): Remove the PPC64
special case and handle mono_arch_delegate_invoke_impl() returning
function descriptors.
* tramp-ppc.c (mono_arch_create_trampoline_code): Delegate
trampolines return function descriptors, too.
svn path=/trunk/mono/; revision=124114
* TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
of trying to set as top node the highest parent of the previous top
node. Moving to the bottom of the TreeView after a call to CollapseAll
is exactly what .net does. This should avoid some nasty issue when
CollapseAll is called and we don't need the vertical scroll bar.
svn path=/trunk/mcs/; revision=124108
* System.Net/WebClient_2_1.cs: use the length of the stream
instead of the ContentLength that is different for gzipped stream.
svn path=/trunk/mcs/; revision=124097
* class.c (mono_class_setup_vtable_general): In the generic instance
optimization, set method->slot for abstract virtual methods. Fixes part of
#467834.
svn path=/trunk/mono/; revision=124065
* mini.h
(MonoCompile): Added `disable_deadce_vars' to disable removing
unused variables.
* mini.c
(mini_method_compile): Set `cfg->disable_deadce_vars' when running
inside the debugger.
* liveness.c (mono_analyze_liveness): Don't remove any unused
variables if `cfg->disable_deadce_vars' is set.
svn path=/trunk/mono/; revision=124060
* domain-internals.h: Add new appdomain state MONO_APPDOMAIN_UNLOADING_START
which signals that the unloading has started but all appdomain services must
remain operational.
* appdomain.c (mono_domain_unload): The initial state for unloading now
is unloading_start and we switch to unloading after the managed call to
AppDomain::DomainUnload has finished.
The new unloading state has to be created because managed code in the
DomainUnload event can depend on things like the threadpool still working.
The domain must remain fully functional while the event executes.
This shown as an issue due to Process::WaitForExit, which waits for
async reads of stdout and stderr to complete. Since those are processed
in the threadpool the code deadlocks because the DomainUnload callback
waits for the async read finished event, which should have been set by a
threadpool job but has been discarded due to the domain been in unload
state.
svn path=/trunk/mono/; revision=124058
UIACheckChanged, UIARadioCheckChanged, UIAEnabledChanged, and
UIATextChanged events.
* Managed.Windows.Forms/System.Windows.Forms/Form.cs: Add UIAMenuChanged
event.
* Managed.Windows.Forms/System.Windows.Forms/Menu.cs:
* Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs: Note which
internal APIs are being used by UIA.
svn path=/trunk/mcs/; revision=124056
* method-to-ir.c: Only apply exception constructor optimization if
the the method actually belongs to an exception class. Fixes
#467456.
2009-01-21 Mark Probst <[email protected]>
* bug-467456.cs: New test case.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=124028
* DataContractSerializerMessageContractImporter.cs :
some refactoring. Process all schemas, including those in WSDLs.
svn path=/trunk/mcs/; revision=124026
* metadata.c (mono_metadata_generic_param_equal): Owner as well as
image must match.
2009-01-21 Mark Probst <[email protected]>
* generic-unloading.2.cs, generic-unloading-sub.2.cs: Test case
for unloading images whose MonoGenericInst's are still in use.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=124022
* TdsComm.cs: optimize Append(byte[],int,byte) for adding data to
the buffer in the largest size of chunks possible. also optimize
other Append overloads to use this rather than lots of Append(byte).
svn path=/trunk/mcs/; revision=124017
* aot-compiler.c (compile_method): Remove the previous limitation.
* method-to-ir.c (method-to-ir.c): Add support for the constrained prefix
on type variables in AOTed code.
svn path=/trunk/mono/; revision=123987
* mono-mmap.c: Applied patch from Koushik Dutta
([email protected]). Rework the #ifdefs so Android could use the mmap
implementation.
svn path=/trunk/mono/; revision=123986
* aot-compiler.c (compile_method): Check for methods which cannot be
encoded inside RGCTX_FETCH patches as well.
svn path=/trunk/mono/; revision=123982
* method-to-ir.c: Force the vtable variable in shared generic code
for the case that they might show up on a stack trace where they
are needed.
* mini-exceptions.c: Save and use generic sharing info as well as
IP in stack traces to resolve shared generic instantiations.
2009-01-20 Mark Probst <[email protected]>
* object-internals.h (struct _MonoException): Added a comment
explaining the new use of trace_ips.
2009-01-20 Mark Probst <[email protected]>
* generic-stack-traces.2.cs: Generic sharing test for stack
traces.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=123917
* mini-trampolines.c (mono_delegate_trampoline): Revert the change which
added a mono_get_addr_from_ftnptr () as it breaks the ia64 build.
svn path=/trunk/mono/; revision=123914
* method-to-ir.c: Do generic sharing for array constructors.
2009-01-20 Mark Probst <[email protected]>
* generic-sharing.c (inflate_other_data): Inflate array
methods correctly.
* loader.c, class-internals.h: Rename search_in_array_class() to
mono_method_search_in_array_class() and make it non-static.
2009-01-20 Mark Probst <[email protected]>
* generic-system-arrays.2.cs: Generic sharing test case for
arrays.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=123912
* mini-exceptions.c (mono_print_thread_dump): Add information
about the thread state using wapi_current_thread_desc.
svn path=/trunk/mono/; revision=123877
* threads.c: Add wapi_current_thread_desc that produces
a string representation of the current thread state.
* threads.h: Export wapi_current_thread_desc.
svn path=/trunk/mono/; revision=123876
* XmlDocumentNavigator.cs : in some corner cases an attribute
may have null OwnerElement. Fixed bug #458245.
* SelectNodesTests.cs : added test for bug #458245.
svn path=/trunk/mcs/; revision=123868
* XmlReaderBinarySupport.cs : do not hang in the middle of reading
byte chunk at some node types. Fixed bug #464229.
* XmlReaderCommonTests.cs : added test for bug #464229.
svn path=/trunk/mcs/; revision=123866
* XmlDefaultReader.cs : remove bogus overrides that blocks normal
Read(). It was a design flaw in .NET.
* RelaxngReader.cs : fixed wrong text skip and ns/datatypeLibrary
stack pop. Fixed bug #463267.
* RelaxngDatatypeProviderTests.cs : new test, based on bug #463267
by Mark Junker.
* Commons.Xml.Relaxng_test.dll.sources : forgot to add
RelaxngDatatypeProviderTests.cs.
* 463267.rng : new test file.
svn path=/trunk/mcs/; revision=123860
* TreeView.cs: When handling mouse up event, check whether
highlighted_node is null or not - usually it should be non-null
alwaays, since the mouse down handler sets it, but some externa
operations, such TreeNodeCollection.Clear, could set it to null.
Fixes#438650.
svn path=/trunk/mcs/; revision=123859
* IPAddress.cs: handle sign extension for the high byte when using the
byte[] ctor for an IPv4 address.
Fixes bug #467472.
svn path=/trunk/mcs/; revision=123856
* RelaxngGrammar.cs : fix confused use of datatype provider property.
Fixed bug #463264. Based on the patch by Mark Junker.
* RelaxngDatatypeProviderTests.cs : new test, based on bug #463264
by Mark Junker.
* 463264.rng : new test file.
svn path=/trunk/mcs/; revision=123853
* XElement.cs : iterate all attributes and see if there is
applicable ns prefix for current element. Fixed bug #466423.
* XElementTest.cs : added test for bug #466423.
svn path=/trunk/mcs/; revision=123851
* object.c (mono_raise_exception): Remove call to InterlockedIncrement
as it is performed elsewhere.
Code is contributed under MIT/X11 license
svn path=/trunk/mono/; revision=123836
* mono-perfcounters-def.h: Add counters for asp.net requests total and
requests queued.
* object.c (mono_raise_exception): Increment the exceptions total
counter when an exception is thrown.
* class-internals.h: Add a location for storing the total number of
asp.net requests served.
* mono-perfcounters.c: Implement update support for asp.net counters
from the class libraries. Implement read support for asp.net counters
and exceptions total counter.
svn path=/trunk/mono/; revision=123834
* MonthCalendar.cs: When handling the selection changes using the
mouse, don't set SelectionRange if the selection range didn't actually
change. This matters because, even if we set the range to the same
previous range, an extra DateChanged event is fired. Just to be clear:
SelectionRage property doesn't check whether the new value is
different to the previous one (by ref equals doesn't work here).
Fixes other bits of #364914.
svn path=/trunk/mcs/; revision=123799
* MonthCalendar.cs: Remove the extra OnDateChanged call when handling
selection using the keyboard, since we are already firing this event
when setting SelectionRange. Also don't set SelectionRange if the
previous and the new value are the same (the property, just as .net
does, doesn't check whether the previous value and the new one are the
same). This saves us from firing OnDateChanged event if the selection
range didn't change actually.
Fixes the remaining bits of #364914.
svn path=/trunk/mcs/; revision=123798
* mono-path.c (mono_path_canonicalize): Adding support for UNC
paths on Windows.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=123795
* gmisc-win32.c (g_path_is_absolute): Adding support for UNC
paths on Windows.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=123794
* ListBox.cs: When removing an item and the last item is selected,
remove it from the selection, and if selection mode is One try to
select the new last item.
Fixes#465422.
svn path=/trunk/mcs/; revision=123787
* ClientProxyGenerator.cs : fix reflection-based GetConstructor()
so that it can work in 2.1 profile (.ctor is made internal).
* CodeModule.cs : use DefineDynamicModule() which is avaiable in 2.1.
svn path=/trunk/mcs/; revision=123773
* SqliteCommandUnitTests.cs: Fix test ordering issues with the new nunit
version by marking Create () as [SetUp] instead of [Test].
svn path=/trunk/mcs/; revision=123766
* SqliteCommandUnitTests.cs: Fix test ordering issues with the new nunit
version by marking Create () as [SetUp] instead of [Test].
svn path=/trunk/mcs/; revision=123764
* mini.c (mini_thread_cleanup): Don't cleanup TLS storage if the
thread been cleaned up is not the same currently in execution.
Fixes appdomain-unload crashes on windows, osx and linux variants
without the __thread keyword.
svn path=/trunk/mono/; revision=123754
tests.
* IDbCommandTest.cs: Added test for ExecuteReader with CommandText
that is not initialized. Improved ExecuteScalar test.
svn path=/trunk/mcs/; revision=123750
* sgen-gc.c: Instead of scanning gray objects after all roots have been
processed, scan them directly after they are copied, to achieve better locality
and cache usage.
svn path=/trunk/mono/; revision=123749
value for CommandType and UpdatedRowSource. In Dispose, clear
CommandText (2.0 only) and Parameters. Include method that is being
executed in the exception messages for Connection and CommandText
verification.
* OdbcCommandTest.cs: Added tests for CommandTimeout,
UpdatedRowSource, Dispose and ResetCommandTimeout. Added
ExecuteNonQuery/ExecuteReader/ExecuteScalar tests for a connection
that is not initialized or closed.
svn path=/trunk/mcs/; revision=123742
* Process.cs: Avoid closing the duplicated process handle in
ProcessWaitHandle, it is done automatically by the WaitHandle.Dispose ().
Fixes#464628.
svn path=/trunk/mcs/; revision=123738
* icall.c (ves_icall_InternalExecute): Add write barriers.
* marshal.c (mono_marshal_get_write_barrier): Remove, this is now done in
the GC code.
* sgen-gc.c: Implement write barriers in IL code.
svn path=/trunk/mono/; revision=123720
* icall.c (ves_icall_InternalExecute): Add write barriers.
* marshal.c (mono_marshal_get_write_barrier): Remove, this is now done in
the GC code.
* sgen-gc.c: Implement write barriers in IL code.
svn path=/trunk/mono/; revision=123719
2009-01-17 Rodrigo Kumpera <[email protected]>
* decompose.c (mono_decompose_vtype_opts): Fix the decomposition
of OP_VCALL_* ops for 8 bytes vtypes on 32 bits archs and platorms
that pass them on a register pair.
This affects windows, OSX and FreeBSD. The mono/tests/handleref.exe
test was crashing due to that.
svn path=/trunk/mono/; revision=123706
used to indicate whether the type of the parameter has been updated.
Changed signature of 'updated' argument in GetFrameworkValue to ref
to match delegate in Mono.Data.Tds, and convert value if either the
type has been changed or if the 'updated' argument is true (which -
for now - means the value or size changed in TdsMetaParameter).
Various fixes for derived parameters:
- parameter_type 2 means InputOutput parameter, while 3 means Output;
- Only set precision and scale is type is decimal.
- When type has variable size, then also set Size.
svn path=/trunk/mcs/; revision=123705
* image.c: When unloading the image->references table, there can be gaps
in it. Ensure that we iterate every entry to avoid leaking assembly references
when unloading an appdomain.
svn path=/trunk/mono/; revision=123698
* handles.c (_wapi_handle_timedwait_signal_handle): Don't use the
set_wait_handle/clear_wait_handle machinery for alertable waits in
case of non-alertable waits.
Non-alertable waits must continue and wait on the cond as this will
release the lock. Otherwise this will cause a deadlock as anyone trying
to pulse the cond will block trying to acquire the said lock because
the thread in non-alertable wait will be busy looping in WaitForSingleObjectEx
or similar function, never releasing the lock.
Thou this fixes quite a few of the hangs introduced by non-pooling alertable
waits, the long term plan is to verify if all non-alertable waits really need
to be as such.
svn path=/trunk/mono/; revision=123669
* X11Structs.cs:
* XplatUIX11.cs: Properly encode/decode the unicode strings we
store/retrieve in the Clipboard. Also, since we try to convert the
data to different formats, separate the source and the result of
it, so we can always fallback to the original and don't mix wrong
conversions.
svn path=/trunk/mcs/; revision=123653
* exceptions-ppc.c: tweaks from malc (OV-Soft) to fix the size of the
trampoline code. Include ucontext.h only if available.
svn path=/trunk/mono/; revision=123609
* mono-hash.c: Change the roots to use write barriers when running with
SGEN, to avoid scanning all the hash nodes at every minor collection.
svn path=/trunk/mono/; revision=123561
* sgen-gc.c gc-internal.h: Add a new root type root-with-wbarrier, which
does not need to be scanned during minor collections, since writes to it
must use write barriers.
svn path=/trunk/mono/; revision=123560
* Uri.cs: Use registered UriParser when a custom schema is passed
Fixes 464235, but is a bit of a hack
* UriTest3.cs: test for bug 464235
svn path=/trunk/mcs/; revision=123481
* WebConnectionStream.cs: if the buffer has been killed, return -1 for
its length. Fixes regression in System.Runtime.Remoting.
svn path=/trunk/mcs/; revision=123449
* gen-md-tests.c: Revert decision of making base 16 the default.
It makes for shorter tests, but it's confusing.
* header-tests.md: Fix the tests to use an explicit 0x for hexadecimal numbers.
svn path=/trunk/mono/; revision=123439
* mono-hash.c: Rewrite the SGEN specific parts to use a user defined
marker function instead of registering each GC node as a hash root.
svn path=/trunk/mono/; revision=123434
* sgen-gc.c: Add support for user defined marker functions, used by
MonoGHashTable to avoid registering a GC root for every hash node.
svn path=/trunk/mono/; revision=123433
* mini.c: mono_domain_lookup_shared_generic() takes an open method
and doesn't check whether it's sharable, like it was before
removing the shared generics hash. This brings IronPython
performance back to what it was before that change.
svn path=/trunk/mono/; revision=123432
* handles-private.h (_wapi_handle_set_signal_state): Set the signalled state
of the handle while locking the global signal cond mutex.
* wait.c (WaitForMultipleObjectsEx): Check the signalled state of handles
inside the critical section before waiting, otherwise we could go to waiting
even when the handles are already signalled.
svn path=/trunk/mono/; revision=123421
* CILCompiler.cs: Avoid throwing exceptions for a few more unhandled opcodes.
Implement the reverse/ignorecase versions of Reference. Fix the reverse
version of Bitmap. Error out if a Jump opcode jumps outside the current
pc range. This works around #466151.
svn path=/trunk/mcs/; revision=123417
* Tds70.cs: send the leading '@' for parameters that do not have one.
Fixes bug #466071.
Thanks to William Shallum.
svn path=/trunk/mcs/; revision=123403
* AspGenerator.cs: implemented a work around which allows the
server controls embedded in client tag attributes to be parsed and
compiled.
svn path=/trunk/mcs/; revision=123397
launch the copied handler of PreRun instead of the global one
(gendarme would bark otherwise). (Improving r123375)
svn path=/trunk/mcs/; revision=123379
* Managed.Windows.Forms/System.Windows.Forms/Application.cs: Move the
PreRun event fire to the end of the XplatUI static ctor (we don't
move the PreRun event to this class because its usage would cause the
call to the static ctor). This way we can get a11y support for
dialogs that run without App.Run.
svn path=/trunk/mcs/; revision=123375
* appdomain.c|h: Expose mono_domain_unload to the embedding api so that
AppDomains created on the native side can be cleaned up on the native side.
svn path=/trunk/mono/; revision=123361
property to know the inner array's length of the location of items,
in order to avoid a try-catch strategy for the case when this array
has not been resized yet (for reference, look at r123288). r: jpobst
svn path=/trunk/mcs/; revision=123360
* method-to-ir.c: Handle delegate invocation optimization earlier,
otherwise it would be handled (much more slowly) by the
final/sealed optimization.
svn path=/trunk/mono/; revision=123349
* ClientBase.cs, ClientRuntimeChannel.cs : added support for
interactive channel initializers.
* ClientBase_InteractiveChannelInitializerTest.cs : new test, for
IInteractiveChannelInitializers support in ClientBase<T>.
* System.ServiceModel_test.dll.sources :
added ClientBase_InteractiveChannelInitializerTest.cs.
svn path=/trunk/mcs/; revision=123316
* HttpWebRequest.cs: create a result from the response when
*GetResponse() has not been called yet and we have already received
all the data.
Fixes bug #464013.
svn path=/trunk/mcs/; revision=123313
* sgen-gc.c: Fix warnings. Optimize copy_object () a bit. Split pinned/
non-pinned roots into separate hashes to avoid having to traverse them
in functions which are only interested in one kind.
svn path=/trunk/mono/; revision=123295
* gen-md-tests.c: Rename pe-header to pe-signature.
Add support for decimal literals using a '0' prefix.
Add proper pe-header variable.
svn path=/trunk/mono/; revision=123279
* reflection.c (ALLOC_REFENTRY): Don't allocate the ReflectionEntry structures
using the GC, they don't contain references.
svn path=/trunk/mono/; revision=123277
* HttpApplicationFactory.cs: if there are any *.browser files in
App_Data/Mono_Machine_Browsers/, use those instead of the default
machine browser files. This allows app developers to workaround
limitations with Mono's default browser files without causing
incompatibilities with MS's implementation.
++ System.Web.Configuration_2.0/ChangeLog (working copy)
* nBrowser/Node.cs: Fixed compatibility bug where <identification> sections were required
in browser defs.
svn path=/trunk/mcs/; revision=123263
Reapply r122913, this time handling processes by falling back to polling.
* handles.c: Rework the way the global signal stuff is handled: instead of
allocating a separate mutex/condvar pair for it, allocate a normal handle.
This way, it can reuse the alertable waiting code, allowing
WaitForMultipleObject to work without polling.
svn path=/trunk/mono/; revision=123262
* HttpConnection.cs: we were not writing the headers for 0-length
responses.
* WebConnectionStream.cs: for 204/304 responses with an explicit
content-length of 0, release the socket only once.
Fixes bug #465638.
svn path=/trunk/mcs/; revision=123250
* appdomain.h|c: New API for creating a MonoDomain in the embedding api
with a MonoAppDomain initialized against it.
svn path=/trunk/mono/; revision=123234
* CodeBuilder.cs, RootBuilder.cs, CollectionBuilder.cs: updates
related to ControlBuilder cleanup.
* ControlBuilder.cs: code cleanup - no field should be visible
outside the class unless it's a constant or a read-only field.
2009-01-13 Marek Habersack <[email protected]>
* XmlBuilder.cs: updates related to ControlBuilder cleanup.
2009-01-13 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
ControlBuilder cleanup.
svn path=/trunk/mcs/; revision=123229
* marshal.c: Avoid setting the exception clauses after a method has been entered
into the wrapper caches. Fixes#465700.
* method-builder.c (mono_mb_set_clauses): New function to set the clauses of the
method builder.
(mono_mb_create_method): Set the clauses from the method builder.
svn path=/trunk/mono/; revision=123201
2009-01-13 Jb Evain <[email protected]>
* Encoding.cs: when creating a ForwardingEncoder or a
ForwardingDecoder, don't crash if the Encoding doesn't
provide an EncoderFallback or a DecoderFallback.
in Test/System.Text:
2009-01-13 Jb Evain <[email protected]>
* EncoderTest.cs: Make sure we can get an encoder for a custom
encoding.
* DecoderTest.cs: ditto.
svn path=/trunk/mcs/; revision=123196
* sgen-gc.c (mono_gc_make_descr_from_bitmap): Handle large bitmaps by
encoding them as ROOT_DESC_COMPLEX.
(precisely_scan_objects_from): Implement support for ROOT_DESC_COMPLEX.
svn path=/trunk/mono/; revision=123152
* MonthCalendar.cs: Detect selection changes in MouseDown/MouseMove
handlers and fire the DateSelected event until MouseUp is reached,
like .net does, instead of firing it for each mouse event.
Fixes part of #364914.
svn path=/trunk/mcs/; revision=123150
* DriveInfo.cs: Added GetDiskFreeSpaceInternal
to query drive size and free space.
Added GetDriveTypeInternal to query type of drive.
svn path=/trunk/mcs/; revision=123148
* sgen-gc.c (scan_from_remsets): Clear the global remset of pointers which
no longer point to the nursery.
* sgen-gc.c: Add a few comments/FIXMEs.
svn path=/trunk/mono/; revision=123144
* LiteralStringControlBuilder.cs: added. Fixes bug #461214
* ControlBuilder.cs: added location tracking for literal string
children. Fixes bug #461214
* TemplateParser.cs: line pragmas are on by default. Fixes bug
#460479
2009-01-12 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: the LiteralStringControlBuilder
class is now used to track the location of the plain strings being
output to the generated code. Fixes bug #461214
* AspGenerator.cs: AppendLiteralString is called with the current
parser location as one of its parameters in FlushText (). Fixes
bug #461214
2009-01-12 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
System.Web.UI/LiteralStringControlBuilder.cs
svn path=/trunk/mcs/; revision=123106
* marshal.c (mono_marshal_get_synchronized_wrapper): Make the
initialization of the various _method variables thread safe. Fixes
#465377.
svn path=/trunk/mono/; revision=123092
* mini.c, mini.h: lookup_generic_method() is now
mono_domain_lookup_shared_generic() and uses the jit_code_hash,
making the shared_generics_hash obsolete.
2009-01-12 Mark Probst <[email protected]>
* domain.c, domain-internals.h: Remove the shared_generics_hash
and its lookup functions.
svn path=/trunk/mono/; revision=123089
* MembershipUserCollection.cs: CopyTo overloads use store.Values
as the copy source. Fixes bug #464783. Patch from Christian
Prochnow <[email protected]>
svn path=/trunk/mcs/; revision=123084
* mini-ppc.c, exceptions-ppc.c, cpu-ppc.md, cpu-ppc64.md: Don't
use the red zone. Make room on the stack first and then use it,
not the other way around.
svn path=/trunk/mono/; revision=123078
* gen-md-tests.c: Refactor the file-size into a new
atom 'variable' which is more extensible and easier
to use. Added binary add.
svn path=/trunk/mono/; revision=123063
* gen-md-tests.c: Extended grammar for expressions for
selectors and effects.
Added subtraction and file-size expressions.
Added truncate effect.
Fixed all warnings under -Wall.
svn path=/trunk/mono/; revision=123060
2009-01-12 Jb Evain <[email protected]>
* tabldefs.h: rename METHOD_ATTRIBUTE_CHECK_ACCESS_ON_OVERRIDE to
METHOD_ATTRIBUTE_STRICT to match the ECMA terminology.
in dis:
2009-01-12 Jb Evain <[email protected]>
* main.c: update reference to METHOD_ATTRIBUTE_CHECK_ACCESS_ON_OVERRIDE
with METHOD_ATTRIBUTE_STRICT.
svn path=/trunk/mono/; revision=123050
* TreeView.cs: When the selection gets canceled using the BeforeSelect
event, invalidate the previous highlighted_node bounds, to show the
user that the item was *not* selected.
Fixes#464191.
svn path=/trunk/mcs/; revision=123024
* ComboBox.cs: Separate some scroll logic: setting SelectedIndex, as
well as -in DropDown and Simple modes- writing in the textbox should
try to set the requested item as the top one, but navigating with the
keyboard and handling mouse selection don't need that behaviour. Also,
when resetting selected_index handling key press events, reset
ComboListBox.HighlightIndex.
Fixes the remaining bits of #464188.
svn path=/trunk/mcs/; revision=123010
* DataGridView.cs: Fix crashes when shortcut keys are pressed, but
there are no cells:
- CurrentCellAddress should be -1, -1 and not 0, 0.
- Be tolerant and fall back to clearing the current cell if either
column or row is -1 in MoveCurrentCell.
- Misc. more -1 checks.
svn path=/trunk/mcs/; revision=123003
* DataGridView.cs: Preserve the column index. Fixes a regression
introduced by the data binding position tracking code.
svn path=/trunk/mcs/; revision=123002
* DataGridView.cs: If the bottom of the row matches the client height
do not regard the row as partially visible. Fixes the weird scrolling
when there is no scrollbar.
svn path=/trunk/mcs/; revision=123001
I'm not going to implement this assembly, it's just for stub to
make it possible to build some applications that depend on this
assembly. Feel free to implement it.
svn path=/trunk/mcs/; revision=122999
* tramp-amd64.c (mono_arch_create_trampoline_code_full): Emit debug info for
trampolines.
* aot-compiler.c (mono_save_trampoline_xdebug_info): New function to emit
debug+unwind info for trampolines.
* mini.c (mono_create_unwind_op): New helper function.
* unwind.h: Add macros for emitting unwind ops without a MonoCompile.
svn path=/trunk/mono/; revision=122995
2009-01-09 Miguel de Icaza <[email protected]>
* handles.c (_wapi_handle_check_share): On non-Linux systems, do
not even compile in the code that scans for /proc/fd, and go
directly to the fallback function.
svn path=/trunk/mono/; revision=122969
2009-01-09 Paolo Molaro ([email protected])
* handles.c: Do not include some header files in platforms that
lack it.
svn path=/trunk/mono/; revision=122963
2009-01-09 Paolo Molaro ([email protected])
* error.c: On some platforms that do not define these variables,
do not use them.
* security.c, io-private.h: Only include some headers if they
exist on the system
svn path=/trunk/mono/; revision=122961
* threads.c (_wapi_thread_apc_pending): Check for thread->wait_handle ==
INTERRUPTION_REQUESTED_HANDLE too.
(wapi_interrupt_thread): Rework the comments, the thread is no longer
required to call QueueUserAPC to make the wait functions return.
svn path=/trunk/mono/; revision=122945
* handles.c: Rework the way the global signal stuff is handled: instead of
allocating a separate mutex/condvar pair for it, allocate a normal handle.
This way, it can reuse the alertable waiting code, allowing
WaitForMultipleObject to work without polling.
svn path=/trunk/mono/; revision=122913
* Socket.cs: Special case 0-length receive requests in the
BeginAccept overloads that wait for data, so they behave as the
non-waiting version. Seems to match MS behaviour, fixes bug
464201.
svn path=/trunk/mcs/; revision=122904
* DataGridView.cs: Implement data-bound new item editing/addition.
* DataGridViewRowCollection.cs: Make it possible for us to internally
remove the edit row.
[Fixes bugs #457107, #457308, #325240]
svn path=/trunk/mcs/; revision=122900
* CurrencyManager.cs: Even if Position is set to a greater value than the
list count reset it to position of the last item.
svn path=/trunk/mcs/; revision=122899
* BindingSource.cs: AddNew doesn't set index/add_pending for IBindingList.
Fix that in order to make CancelNew to work.
svn path=/trunk/mcs/; revision=122898
* BindingSource.cs: When adding a new item try to delegate to the internal
list first before throwing an exception.
svn path=/trunk/mcs/; revision=122897
* BindingList.cs: Add calls InsertItem which raises OnListChanged, so
don't raise a duplicate OnListChanged in AddNewCore.
svn path=/trunk/mcs/; revision=122896
* HttpContext.cs: RewritePath now treats relative and absolute
file paths with more care. If a path is of the ~/file.aspx form,
then the ~/ part is removed and the rest is combined with the base
virtual path. If the file path is of the ~ or /file.aspx forms,
then it is combined verbatim with the base virtual path. Fixes bug
#463964
Make sure the path returned from HttpRequest.BaseVirtualPath
contains the trailing slash before combining. Fixes bug #463964
svn path=/trunk/mcs/; revision=122891
* threads.c (signal_thread_state_change): Call wapi_interrupt_thread () to
interrupt a wait.
(mono_thread_execute_interruption): Call wapi_clear_interruption () to enable
the thread to wait again.
svn path=/trunk/mono/; revision=122890
* Documentation/en/**: Flush; changes due to mdoc-update
Reflection->Cecil migration. Changes include:
- Alphabetical ordering of custom attributes (these used to be in
svn path=/trunk/mcs/; revision=122861
* ComboBox.cs: When setting the text and adjusting the top_item, do it
*only* if the current item is *not* visible already.
Fixes part of #464188.
svn path=/trunk/mcs/; revision=122860
* DataGridView.cs: Requesting the CurrencyManager for the first time can
lead to unexpected OnBindingContextChanged calls and recursive rebinding.
Fix that.
[Fixes bug #464493]
svn path=/trunk/mcs/; revision=122848
* Cache.cs: System.Threading.Timer.Change takes a long, not an
int. The maximum value of sliding expiration is 365 days
(31536000000ms) which fits within the value range of long. The
previous cast to int might yield negative values in certain
situations which was the reason for bug #464221. Fixes bug #464221
svn path=/trunk/mcs/; revision=122839
* gc.c (mono_gc_init): Wait for finalizer thread to init on windows as
well. Otherwise the shutdown deadlock that happens on unix will can happen
as well.
If the main thread code finishes too fast it's possible that the finalizer
thread won't have executed yet, won't record itself as the finalizer thread
and the shutdown sequence will wait on it forever.
svn path=/trunk/mono/; revision=122838
* signal.c: Don't allow registration of a realtime signal to happen
if it was already registered outside of Mono.Posix.
svn path=/trunk/mono/; revision=122755
* UnixSignalTest.cs: Fix the RealTimeSignum constructor
tests to take into account the fact that some signals might be
in used by the runtime. Added a test for multiple registration
of a rt signal.
svn path=/trunk/mcs/; revision=122753
* UnixSignal.cs: Check if realtime signal install failed with
EADDRINUSE due to the signal been used by outside of Mono.Posix.
svn path=/trunk/mcs/; revision=122752
* XmlReader.cs : ReadContentAsString() does not reject non-elements.
ReadElementContentAsString() rejects non-content nodes.
* XmlReaderCommonTests.cs : added test for ReadContentAsString()
and ReadElementContentAsString() against certain node types.
svn path=/trunk/mcs/; revision=122737
* src/gfile-posix.c: Move g_get_current_dir, as it is a
POSIX-esque feature, and some other systems do not have current
directories.
* src/glib.h (G_LOCK_DEFINE, G_LOCK_DEFINE_STATIC):
Embedded support from Paolo's work on quack.
* configure.ac: check for strtok_r, langinfo.h and iconv.h
* src/gpath.c (strtok_r): Add a strtok_r implementation if it is
not available on the target system.
svn path=/trunk/mono/; revision=122735
* mini-arm.c (mono_arch_flush_icache): Use __GNUC_PREREQ instead of checking
__GNUC_MINOR__ which can break when the major version changes.
svn path=/trunk/mono/; revision=122702
* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Double check the
return value of GetCurrentDirectory to never access unitialized memory.
svn path=/trunk/mono/; revision=122674
* io.c (GetCurrentDirectory): Avoid calling g_get_current_dir straight
away as it doesn't handle ENAMETOOLONG correctly. As a bonus we avoid
allocating memory in the common path.
svn path=/trunk/mono/; revision=122673
* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Properly check the
return value of GetCurrentDirectory and expand the buffer if needed.
Fixes#459094.
svn path=/trunk/mono/; revision=122672
* marshal.c (GetIUnknownForObjectInternal, GetIUnknownForObjectInternal) :
Adding a call to mono_init_com_types.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=122662
* RadioButton.cs: When setting Checked, we should first update the
check state of the current RadioButton, as well as invalidating it,
and after that actually update the siblings. This is done to match
.net.
Fixes the remaining bits of #463028.
svn path=/trunk/mcs/; revision=122648
* net_2_1_raw_System.ServiceModel.dll.sources : add OperationContext
and OperationContextScope to 2.1 build.
* OperationContext.cs : changes to include this in net_2_1_raw.
svn path=/trunk/mcs/; revision=122632
* WindowHandler.cs: Don't attempt to activate a disposed Form.
Fixes several of the nunit winforms crashes on Mac.
svn path=/trunk/mcs/; revision=122621
* socket-io.c: ioctlsocket(FIONREAD) returns the size of the UDP header as well on
darwin. Use getsockopt SO_NREAD instead to get the right values for TCP and UDP.
ai_canonname can be null in some cases on darwin, where the runtime assumes it will
be the value of the ip buffer.
svn path=/trunk/mono/; revision=122617
* library.make: Allow platform specific exclude tags from the
test harness suite.
* darwin.make: Add to the build and add a new NotOnMac test
category
svn path=/trunk/mcs/; revision=122616
* RemotingServicesTest.cs : mark failing test as NotWorking, and
Ignore the blocker for other tests.
Remoting tests are finally back!
svn path=/trunk/mcs/; revision=122612
* HttpBugTests.cs : mark some tests as [Ignore] as they are blocker
to other http tests. Make sure to unregister HTTP channel.
svn path=/trunk/mcs/; revision=122609
* GenericTest.cs, HttpServerChannelTests.cs, ActivationTests.cs,
BaseCalls.cs, CrossDomainCalls.cs, HttpBugTests.cs,
ContextsTest.cs : explicitly set applicationBasePath to load
the test assembly itself. It reduces hundreds of test failures
under .NET and upgraded NUnit.
Marked some tests as NotWorking (due to nunit upgrade).
svn path=/trunk/mcs/; revision=122606
* CompareInfo.cs : Fixed bug #462957. With empty target string it
should always return 0.
* CompareInfoTest.cs : added test for #462957.
svn path=/trunk/mcs/; revision=122602
* verify.c (mono_class_interface_implements_interface): Verify parents as we can't rely on
interfaces_packed here.
Fixes part of #463294.
svn path=/trunk/mono/; revision=122584
* verify.c (is_array_type_compatible): Ignore bounds and sizes when checking array compatibility.
Fixes part of #463294.
svn path=/trunk/mono/; revision=122582
* verify.c (stack_slot_is_complex_type_not_reference_type): Check if the type
is a boxed complex as well.
Fixes part of #463294.
svn path=/trunk/mono/; revision=122579
* reflection.c (mono_image_get_methodref_token): Add an extra create_typespec parameter to
control if a methodspec should be created for the generic method definition from external assemblies.
Caching of methodspec is done using the handleref hash table.
Fixes#462592.
svn path=/trunk/mono/; revision=122539
* RadioButtonTest.cs: New test for Checked property. Also reset
'event_called' field to keep sanity for other tests.
svn path=/trunk/mcs/; revision=122523
* RadioButton.cs: Setting Checked to false should set TabStop to stop
as well. Also, when we get the focus and no other RadioButton is
selected in the parent control, we should mark ourselves as Checked.
Fixes part of #463028.
svn path=/trunk/mcs/; revision=122522
when one of Resources/* is modified.
* Resources/mdoc-html-utils.xsl: Rework the Requirements block so that
it doesn't require //AssemblyInfo or //AssemblyVersion. This allows
`mdoc update -fno-assembly-versions ...`-produced XML to still
produce HTML with a Requirements section (skipping the Assembly
Versions block but generating the Namespace and Assembly blocks).
Change the behavior of //since generation so that instead of
printing out a note before the method summary, a Since block is added
to the Requirements section, and the Since block contains the
//since/@version text. All this to make Mike Kestner happier. :-)
svn path=/trunk/mcs/; revision=122508
index out of range error. Fix.
* Mono.Documentation/monodocer.cs: Rename -fno-member-assembly-info to
-fno-assembly-versions, which prevents generation of //AssemblyVersion
elements. This suffers the same warning as -fno-member-assembly-info,
so don't use unless you can guarantee that no members will
ever be removed from your public API. :-)
Clean up -f handling so that -f:no-assembly-versions will work as
expected.
svn path=/trunk/mcs/; revision=122506
* DateTime.cs : when ".FF..." is specified, allow milliseconds-less
time. Fix#444103.
* DateTimeTest.cs : added test for parsing no-millisecond time
with optional millisecond designator.
svn path=/trunk/mcs/; revision=122503
which remove /Type/Members/Member/AssemblyInfo elements.
Requested by Mike Kestner.
Warning: this option will break automatic version tracking, so if a
member is present in e.g. v1.0 and is removed in e.g. v2.0,
the //Member element will be removed entirely when updating the
documentation against the 2.0 assembly. Use with care.
svn path=/trunk/mcs/; revision=122502
* ToolStripSplitStackLayout.cs: Enable the overflow button if any
of the buttons are set to Overflow = Always.
[Fixes bug #463013]
svn path=/trunk/mcs/; revision=122479
* CodeReader.cs: Do not call VisitVariableDefinitionCollection
unless LocalVarToken is different from zero.
* CodeWriter.cs: Use HasVariables and HasExceptionHandlers.
Write zero, not TokenType.Signature, for LocalVarToken if no
variable is defined. That should fix the problem with unsign
* Mono.Cecil.Cil/MethodBody.cs: Add HasExceptionHandlers,
HasVariables and HasScopes to avoid creating empty collections
inside Cecil. There is no HasInstruction because there's always
something if MethodDefinition.HasBody is true (i.e. a MethodBody
exists). [re-apply r1222198]
svn path=/trunk/mcs/; revision=122458
* loader.c (find_method): When searching the interfaces of a class
check the transitive closure of implemented interfaces.
Fixes#463303.
svn path=/trunk/mono/; revision=122450
* AsyncPeekTest.cs: Added test for handling exceptions aysnchronously.
* AsyncReceiveTest.cs: Added test for handling exceptions aysnchronously.
* MessageQueueBase.cs: Added support for handling exception asynchronously.
svn path=/trunk/mcs/; revision=122408
getting sql type of a given column (identified using its
ordinal). Modified GetBytes to throw SqlNullValueException
(2.0 profile) or return 0 (1.0 profile) when reading bytes
sequentially. Added support for non-sequentially reading
text and ntext columns using GetBytes. Modified GetChar
to throw a NotSupportedException to match MS.
svn path=/trunk/mcs/; revision=122396
* BindingNavigator.cs: Properly enable/disable the toolstrip buttons,
based on whether the binding source is availble or not. Fixes#463008.
svn path=/trunk/mcs/; revision=122388
* branch-opts.c (mono_if_conversion): Use branch->inst_true_bb/inst_false_bb
instead of bblock->out_bb [0]/[1], the two might not be the same. Fixes
#463357.
* iltests.il.in: Add a regression test.
svn path=/trunk/mono/; revision=122386
* Tds70.cs: Fixed columnsize for unicode columns. Set precision
and scale for non-decimal/numeric column.
* TdsColumnType.cs: Adds tds names as comment.
svn path=/trunk/mcs/; revision=122385
GetValue and GetValues. Improved existing tests.
* DbDataReaderTest.cs: Moved GetProviderSpecificValue test
to provider specific tests (as its behavior differs between
Odbc and SqlClient). Removed unused property.
svn path=/trunk/mcs/; revision=122384
* SqlCommandTest.cs: Fixed warning.
* SqlConnectionTest.cs: Removed unused property.
* SqlDataReaderTest.cs: Enabled GetChars test on 1.0
profile. Added GetValues test. Added and improved
GetSqlValue tests. Improved HasRows and NextResult
tests. Added GetFieldType tests. Added big batch of
schema-related tests.
* SqlParameterTest.cs: Moved disconnected tests to
System.Data test suite. Improved test for bug
#382635. Added test for failed conversion to SQL type.
svn path=/trunk/mcs/; revision=122382
unnecessary initializations. Added missing reader state
and row state checks. Fixed implementation of HasRows.
Modified type of DataType to object on 1.0 profile for
compatibility with .NET 1.x. Do not mark (Big)VarBinary
or ((Big)Binary as long, as unit tests show that IsLong
is for wide (unicode) data types. Fixed type data for
SmallDateTime and SmallMoney data types. Improved support
for bigint data type (using TDS 7.0).
svn path=/trunk/mcs/; revision=122381
parameters on the 2.0 profile, and set SourceVersion to
Current on 1.0 profile. Changed accessibility of RefreshSchema
to public, and do not immediately create commands. Removed
CWL.
svn path=/trunk/mcs/; revision=122379
null, use a zero-length string instead. On 1.0 profile, only
infer type from value if value is not null or DBNull. Store
raw value in TdsMetadataParameter, and use delegate to convert
it to framework type (when necessary). Improve implementation
of SqlValue (still needs lots of work).
svn path=/trunk/mcs/; revision=122376
retrieving value as framework type from SqlParameter. Store both raw
value as converted/resized value to allow us to perform lazy
conversion. Only resize value if value or size were updated. Avoid
double casting in ResizeValue.
svn path=/trunk/mcs/; revision=122375
* mini-ops.h: Add a definition of XPHI.
* mini.h (MONO_IS_PHI): Make is aware of simd instrincs.
* ssa.c (op_phi_to_move): Handle XPHI.
* ssa.c (mono_ssa_compute): Generate a XPHI for simd intrinsics instead of VPHI.
Fixes#462457
svn path=/trunk/mono/; revision=122363
and SqlParameterTest.cs.
* DbCommandBuilder.cs (QuoteIdentifier): Throw NotSupportedException.
* DbDataAdapter.cs (Update): Add row causing concurrency violation
to DBConcurrencyException.
* OdbcCommandBuilder.cs (QuoteIdentifier): Escape QuoteSuffix
character(s) in unquoted identifier.
* SqlCommandBuilder.cs: Added missing checks for QuotePrefix and
QuoteSuffix on 2.0 profile, and return a zero-length string if
not set (or set to null) on 1.0 profile. Do not allow the value
of CatalogSeparator and SchemaSeparator to be changed from '.'.
Modified generated SQL to match MS. Added implementation for
QuoteIdenfifier. Modified parameters to match MS.
* SqlParameter.cs (SqlValue): Keep Value in sync.
* DbCommandBuilderTest.cs: Added test for QuoteIdentifier.
* OdbcCommandBuilderTest.cs: Enabled test for QuoteIdentifier.
* SqlCommandBuilderTest.cs: Added tests for CatalogLocation,
CatalogSeparator, ConflictOption, QuoteIdentifier, QuotePrefix,
QuoteSuffix and SchemaSeparator.
* SqlParameterTest.cs: Moved existing tests from ProviderTests
to increase their visibility. Added tests for type inference.
svn path=/trunk/mcs/; revision=122361
* class.c (get_implicit_generic_array_interfaces): Extract valuetype
interfaces calculation to fill_valuetype_array_derived_types.
* class.c (get_implicit_generic_array_interfaces): Valuetypes need IList /
ICollection / IEnumerator interfaces for their extra twin type - sbyte for byte
for example.
* class.c (get_implicit_generic_array_interfaces): InternalEnumerator gets
interfaces for valuetypes if needed.
* class.c (fill_valuetype_array_derived_types): Enums should have interfaces
for their basetype as well. Types are array expanded if rank is > 0.
Fixes#400716.
svn path=/trunk/mono/; revision=122358
* CurrencyManager.cs, DataGrid.cs:
- Rename CanAddRows to AllowNew. The CurrencyManager has no
concept of "rows".
- Add two more internal properties AllowRemove and AllowEdit.
* DataGridView.cs: Refactor in a data-bound situation AllowUserToAddRows,
AllowUserToDeleteRows and cell ReadOnly state to be also checked against the
CurrencyManager data source.
svn path=/trunk/mcs/; revision=122342
* PenTest.cs: Fix test case not to use a color that is "destroyed"
by another unit test. The nunit update changed the order in which
the test cases are executed.
svn path=/trunk/mcs/; revision=122341
A fix for bug #462950
* class.cs, decl.cs: Use full explicit name when defining automatic
property backing field.
svn path=/trunk/mcs/; revision=122334
* DataGridView.cs: Fix crashes caused by assigning negative values to
ScrollBar.LargeIncrement when the ClientSize.Width/Height is less than
the column/row heights/widths.
svn path=/trunk/mcs/; revision=122325
* DataGridView.cs: Non-autogenerated columns that have a data property
set that exists in the current datasource should be set to be data-bound.
svn path=/trunk/mcs/; revision=122324
* DataGridView.cs: Fix column sorting for columns containing null
values. A "null" value is not always "null" (e.g could be String.Empty)
and thus parsing numeric types throwed an exception for "null" values.
svn path=/trunk/mcs/; revision=122323
* DataGridView.cs: Multiple fixes to handle last column/row removal
and cell movement after that instead of throwing exceptions.
svn path=/trunk/mcs/; revision=122321
* DataGridViewCellCollection.cs: When cells are removed the column
indices become invalid if the cell is not the last one and have to
be refreshed.
svn path=/trunk/mcs/; revision=122320
* DataGridViewCellCollection.cs: When cells are removed the column
indices become invalid if the cell is not the last one and have to
be refreshed.
svn path=/trunk/mcs/; revision=122319
* DataGridViewCell.cs, DataGridView.cs, DataGridViewCheckBoxCell.cs:
Rewrite the value getting, setting, parsing, formatting logic:
- If data-bound value get/set should actually get and set from the
data source.
- Make proper usage of TypeConverters for value parsing/formatting.
- Raise DataError if setting the new value fails.
- Get rid off the internal valueType field and get/set the ValueType
property instead.
[Fixes bug #462051]
svn path=/trunk/mcs/; revision=122314
* DataGridView.cs: Rewrite the DataBinding layer:
- Get rid off all BindingSource/IBindingList/DataSet/DataTable
specific code.
- Get rid off the per DataSource type column autogeneration code.
- Use the CurrencyManager for everything that is DataBinding related.
svn path=/trunk/mcs/; revision=122313
* DataGridView.cs, DataGridViewRow.cs: Add a new internal property
DataManager to fetch the CurrencyManager for the DataGridView and to
spare this logic for the other components to follow.
svn path=/trunk/mcs/; revision=122311
In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine.dll.sources: Add IReference.cs
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* IReference.cs: New. Interface for Item/Metadata/PropertyReference.
* ChangeType (ToBuildItemGroup): Add 'split' param.
Track api changes.
* Expression.cs (Parse): Add a new overload with a 'split' param.
* ExpressionCollection.cs (Add): Add new overload for IReference,
remove the ones for Item/Metadata/PropertyReference.
(ConvertToArray): Implement correctly.
(ConvertToString): Track api changes.
(ConvertToITaskItem): Implement with ConvertToITaskItemArray.
(ConvertToITaskItemArray): Implement support for concat'ing expressions.
(AddItemsToArray): New.
(ConvertToITaskItemArrayFromString): Refactor a bit.
(ThrowCantConcatError): New.
* ItemReference.cs: Update.
* MetadataReference.cs: Update.
* PropertyReference.cs (ConvertToITaskItemArray): Implement.
(GetValue): New.
* BuildPropertyGroup.cs: Track api changes.
* TaskEngine.cs (PublishOutput): Improve exception message.
* Project.cs (DoLoad): Improve exception message. Add a null check.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs: Add tests for expression parsing, mainly for concat'ing
expressions. Remove "NotWorking" for some tests that are working now.
svn path=/trunk/mcs/; revision=122310
* mini-ppc.c: The prolog size allocated can be too small for darwin
ppc32 under certain circumstances. Also fix a small logic bug.
svn path=/trunk/mono/; revision=122306
providerTests section.
* app-net_2.0.config: Added providerTests section and removed
mono.data section.
* Makefile: Added support for CONNECTION variable and corresponding
PROVIDER_TESTS_CONNECTION environment variable. Always rebuild test
assembly since we have no dependency check for sources in place.
Only add reference to Mono.Data on 1.1 profile. Added reference to
System.Configuration on 2.0 profile.
* sqlserver.config: Merged into app-*.config.
* odbc.config: Merged into app-*.config.
* System.Data.Connected.Tests.dll.sources: Added ConnectionConfig.cs,
EngineConfig.cs, EngineType.cs, ProviderTestsConfigurationHandler.cs
and DbDataReaderTest.cs. Removed OdbcConnectionStringBuilderTest.cs.
* ConnectionConfig.cs: Holds information on a specific connection and
corresponding engine to test.
* EngineConfig.cs: Holds information on the capabilities and behavior
of an RDBMS engine.
* EngineType.cs: Defines different database engines supported by the
provider tests.
* ConnectionManager.cs: Use DbProviderFactory and DbConnection
on 2.0 profile. Added support for new Connection/Engine configuration.
* ProviderTestsConfigurationHandler.cs: IConfigurationSectionHandler
for the ProviderTests section.
* DataReaderTest.cs: Added tests that were previously part of
SqlClient tests but apply to all families. Improved existing
tests.
* DbDataReaderTest.cs: Added GetProviderSpecificValues error check
tests.
* IDbCommandTest.cs: Added ExecuteNonQuery tests for empty CommandText.
Added test for bug #462947.
* OdbcCommandBuilderTest.cs: Improved GetDeleteCommand,
GetInsertCommand and GetUpdateCommand tests. Added QuotePrefix,
QuoteSuffix and QuoteIdentifier tests.
* OdbcCommandTest.cs: Improved existing tests. Added
ExecuteNonQuery and Dispose tests.
* OdbcConnectionStringBuilderTest.cs: Moved to System.Data
test suite.
* OdbcDataAdapterTest.cs: Removed extra whitespace.
* OdbcDataReaderTest.cs: Added GetBytes and GetSchemaTable
tests.
* OdbcParameterCollectionTest.cs: Improve existing tests.
* OdbcParameterTest.cs: Added tests for several data types.
* SqlCommandBuilderTest.cs: Improve Get*Command tests.
* SqlCommandTest.cs: Added test for bug #341743. Added test
for connection state after executing invalid SQL. Improved
stored procedure test to check behavior with and without
leading '@' for parameter names. Minor formatting changes.
* SqlConnectionTest.cs: Split up connection string errors
test.
* SqlDataReaderTest.cs: Improved GetInt64Test. Improved and
added GetBytes tests. Added GetSqlValues and HasRows tests.
Added GetSchemaTable test. Improved GetProviderSpecificFieldType
tests.
* SqlParameterTest.cs: Improved ParameterType test. Added
type inferrence tests.
* SqlTransactionTest.cs: Allow not working tests to run on MS.
* MySQL_5.sql: Added numeric and decimal colums with different
precision and scale. Added more rows to binary_family. Added
nchar and nvarchar columns to string_family, and added extra
data. Added time and date columns to datetime_family.
* sqlserver.sql: Added numeric and decimal colums with different
precision and scale. Added timestamp column and more rows to
binary_family. Added nchar and nvarchar columns to string_family,
and added extra data. Added sp_326182 stored procedure.
* sybase.sql: Added more rows to binary_family.
svn path=/trunk/mcs/; revision=122297
* MethodBody.cs: Revert r122198. This is causing the linker to emit
a bogus System.Xml.Linq.dll which cannot be unsigned for usage in
Moonlight.
svn path=/trunk/mcs/; revision=122285
* DataGridView.cs: Do not autogenerate duplicate column for a
data member that has already problematically been assigned one.
* DataGridViewTest.cs: Add a test for bug #457305.
[Fixes bug #457305]
svn path=/trunk/mcs/; revision=122276
internal so we can use it on the 1.0 profile (internally). Implemented
RowCount.
* System.Data_test.dll.sources: Added DBConcurrencyExceptionTest.cs.
* DBConcurrencyExceptionTest.cs: Added .ctor and Row(Count) tests.
svn path=/trunk/mcs/; revision=122263
* socket-io.h : Changing the signature of
ves_icall_System_Net_Sockets_Socket_Accept_internal to pass
the blocking state.
* icall-def.h : Changing the signature of
System.Net.Sockets.Socket.Accept_internal to pass the blocking state.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
For Windows only. Avoid blocking when calling accept by
querying for a connection via select. The loop also queries
the thread state every 1000 micro seconds for the thread
stop state. This will avoid the process hanging on shutdown
when using a TcpChannel that is never connected to.
* Socket.cs (Accept_internal) : Changing the signature to pass
the blocking state.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=122252
* socket-io.h : Changing the signature of
ves_icall_System_Net_Sockets_Socket_Accept_internal to pass
the blocking state.
* icall-def.h : Changing the signature of
System.Net.Sockets.Socket.Accept_internal to pass the blocking state.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
For Windows only. Avoid blocking when calling accept by
querying for a connection via select. The loop also queries
the thread state every 1000 micro seconds for the thread
stop state. This will avoid the process hanging on shutdown
when using a TcpChannel that is never connected to.
* Socket.cs (Accept_internal) : Changing the signature to pass
the blocking state.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=122252
* MetadataReference.cs (BuildItemGroupToITaskItems): Return unique
metadata values for unqualified references.
(BuildItemGroupToITaskItemArray): Rename to ..
(BuildItemGroupToITaskItems): .. this.
(HasTaskItem): New.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestBatchedMetadataRef[23]): Modify to check for
multiple items with same metadata value, incase of unqualified metadata
references.
Track changes in BatchingTestTask.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (BatchingTestTask): Add specific properties
for string and string[].
svn path=/trunk/mcs/; revision=122246
not set (or explicitly set to null or empty string), then return
default separator character. Added value check for CatalogLocation and
ConflictOption. Removed regions.
* DbCommandBuilderTest.cs: Added tests for properties.
* OdbcCommandBuilderTest.cs: Added tests for properties.
svn path=/trunk/mcs/; revision=122230
* OdbcColumn.cs: Treat OdbcType.Numeric as decimal.
* OdbcConnection.cs: Keep (weak) list of commands to allow us to
dispose them (and free their corresponding statement handles) when
the connection is closed. Fixed bug #341743.
* OdbcCommand.cs: Add internal Unlink method that is invoked when the
OdbcConnection is disposed, and which frees the statement handle.
Modified ExecuteNonQuery helper to take CommandBehavior and rename
freeHandle argument to createReader. Added CommandBehavior argument
to ExecSQL. Added FreeStatement overload that takes an option to not
perform an unlink. Fixes bug #3417434.
svn path=/trunk/mcs/; revision=122226
QuoteSuffix are not set (or are set to null). Changing QuotePrefix or
QuoteSuffix after a command has been generated should result in an
InvalidOperationException.
* DbConnectionStringBuilder.cs: Added support for ODBC rules. Major
rewrite fixing many compatibility issues, and improving support for
connectionstring formats/characters.
* System.Data_test.dll.sources: Added OdbcCommandBuilderTest.cs,
OdbcConnectionStringBuilderTest.cs and DbCommandBuilderTest.cs.
* libodbc.cs: Add IdentifierQuoteChar to OdbcInfo.
* OdbcCommandBuilder.cs: Return a zero-length string when QuotePrefix
or QuoteSuffix are not set (or are set to null). Changing QuotePrefix
or QuoteSuffix after a command has been generated should result in an
InvalidOperationException. Implemented support for obtaining
character(s) for quoting identifiers from specified connection.
Modified generated SQL to match MS.
* OdbcConnectionStringBuilder.cs: Improved special casing of Driver
and Dsn keywords. Re-use implemenation of DbConnectionStringBuilder.
Improved argument checks to match MS.
* DbCommandBuilderTest.cs: Added tests for QuotePrefix and
QuoteSuffix.
* DbConnectionStringBuilderTest.cs: Added tests for both odbc and
non-odbc rules.
* OdbcCommandBuilderTest.cs: Added tests for QuotePrefix and
QuoteSuffix. Added tests for QuoteIdentifier (some still marked
NotWorking).
* OdbcConnectionStringBuilderTest.cs: Moved from ProviderTests.
Added and improved tests.
svn path=/trunk/mcs/; revision=122225
* DataGridView.cs: In the case where there are no autogenerated
columns and the user adds columns problematically we must generate
the rows after the very first column is added.
svn path=/trunk/mcs/; revision=122211
* DateTimePicker.cs: When increasing/decreasing the value of month
with ShowUpDown set to true, moving from december to january, and
moving from january to december should adjust the year to the next and
the previous year, respectively.
Fixes the remaining bits of #459674.
svn path=/trunk/mcs/; revision=122208
* DataGridView.cs: If a new cell is selected edit mode should be
immediately enabled only if EditOnEnter is set. Whether the mouse
or not was used to select the cell is irrelevant.
svn path=/trunk/mcs/; revision=122205
* Mono.Cecil.Cil/MethodBody.cs: Add HasExceptionHandlers,
HasVariables and HasScopes to avoid creating empty collections
inside Cecil. There is no HasInstruction because there's always
something if MethodDefinition.HasBody is true (i.e. a MethodBody
exists).
svn path=/trunk/mcs/; revision=122198
* Mono.Cecil/MethodReturnType.cs: Override ToString so we can, by
default, display something useful about the return type.
svn path=/trunk/mcs/; revision=122197
* Mono.Cecil/GenericInstanceMethod.cs,
* Mono.Cecil/GenericInstanceType.cs,
* Mono.Cecil/IGenericInstance.cs: Introduce HasGenericArguments into
the interface and implement it inside GenericInstance[Method|Type]
svn path=/trunk/mcs/; revision=122195
* mini-exceptions.c: Check jit_tls->class_cast_from instead of class_cast_to
since only the former is nulled out after a successful cast. This prevents
crashes with rethrown exceptions when using --debug=casts.
svn path=/trunk/mono/; revision=122168
* class.c (get_implicit_generic_array_interfaces): Extract common
code to a helper function making it a lot easier on the eyes.
svn path=/trunk/mono/; revision=122135
* class.c (get_implicit_generic_array_interfaces): If the internal
enumerator is an interface inflate System.Object instead of itself.
Fixes#461261.
svn path=/trunk/mono/; revision=122133
2008-12-25 Miguel de Icaza <[email protected]>
* ProcessTest.cs: Created a test case from bug 459450.
2008-12-25 Leszek Ciesielski <[email protected]>
* System.Diagnostics/Process.cs: Raise the
Process.OutputDataReceived and Process.ErrorDataReceived with null
arguments at the end. This is the documented behavior:
http://msdn.microsoft.com/en-us/library/system.diagnostics.datareceivedeventargs.data.aspx
And CruiseControl.NET depended on this. Bug #459450.
* Microsoft.CSharp/CSharpCodeCompiler.cs: Fix the code, as it
depened on the previous broken behavior.
svn path=/trunk/mcs/; revision=122125
* WebConfigurationManager.cs: A better version of the previous
GetSection fix. Right now the method searches for directories
containing web.config and uses them, if found, to open the web
configuration. If no web.config is found, web configuration is
opened for the root application directory.
* WebConfigurationHost.cs: made GetWebConfigFileName internal
static, so that code can be reused from WebConfigurationManager.
svn path=/trunk/mcs/; revision=122124
* mini.h: New macro for checking whether a method is final,
i.e. whether the method or its class is marked final.
* method-to-ir.c: Use the new macro for all final-checks
consistently. Fixes the crash in the System.ServiceModel tests.
2008-12-24 Mark Probst <[email protected]>
* generic-sealed-virtual.2.cs: Test case for final generic
methods.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=122086
* MessageQueueBase.cs: Added optional base class that provide async
messaging support.
* CompletedEventArgs.cs: Added for events on async methods.
* CompletedEventHandler.cs: Added for events on async methods.
* IMessageQueue.cs: Added method and event signatures for async messaging.
* MessagingProviderLocator.cs: Added constant for InfiniteTimeout.
* QueueReference.cs: Remove unecessary logging.
svn path=/trunk/mcs/; revision=122084
* MessageQueue.cs: Added implementation for async methods: BeginReceive,
BeginPeek, EndReceive and EndPeek. Set up event handlers to propagate
Asycn ReceiveCompleted/PeekCompleted events to System.Messaging API users.
svn path=/trunk/mcs/; revision=122082
* object.c (mono_runtime_invoke_array): Don't assert with
byref nullable types.
* marshal.c (mono_marshal_get_runtime_invoke): To handle
byref nullables we unbox the object and store it on the
stack.
We can't use the boxed object since it is the T of Nullable<T>
and the boxed representation of a nullable it's underlying type
or null.
We could cheat and create a boxed nullable and use the same
machinery of other byref VTs but this feels like a hack and
using the stack has the bonus of reducing heap pressure.
Fixes#461941.
svn path=/trunk/mono/; revision=122070
* GDIPlusTest.cs: Add MeasureCharacterRanges test cases around bug
#449971 and add a few delta for FP comparison.
* TestGraphics.cs: Add a few delta for FP comparison.
svn path=/trunk/mcs/; revision=122060
* GraphicsPathTest.cs, LinearGradientBrushTest.cs, TestMatrix.cs:
Add delta when comparing floating point values since there can be
small differences between different platforms.
svn path=/trunk/mcs/; revision=122052
* SoftwarePublisherCertificateTest.cs: Update test syntax to nunit
2.2. Test more cases like base64, unicode base64 and PEM base64.
svn path=/trunk/mcs/; revision=122049
* SoftwarePublisherCertificate.cs: Support PKCS7 files that with
PEM headers around the base64 content.
[Fix bug #457658]
svn path=/trunk/mcs/; revision=122048
* DataGridView.cs:
- Make ReBind private and refactor various calls to call ReBind
instead of ClearBinding/DoBinding
- Rebind when the column collection changes
* DataGridViewColumnCollection.cs:
- Leave the rebinding on change to be handled by the DataGridView.
svn path=/trunk/mcs/; revision=122047
* DataGridView.cs: Add a ReBind convenience method.
* DataGridViewColumnCollection.cs: Rebind when a column is added.
[Fixes bug #462019]
2008-12-23 Jonathan Pobst <[email protected]>
* DataGridViewDataBindingTest.cs: Add test for bug #462019.
svn path=/trunk/mcs/; revision=122045
* mini-ppc.c (mono_arch_build_imt_thunk): Save and restore r11.
Clobbering it is not allowed because the caller might use it as
the vtable register in the interface call.
svn path=/trunk/mono/; revision=122034
* NunitWeb/Makefile (NunitWeb.dll): added NunitWeb/CustomSection.cs
* NunitWebResources/CustomSectionEmptyCollection.aspx: added
2008-12-23 Marek Habersack <[email protected]>
* WebConfigurationManagerTest.cs: added new test.
2008-12-23 Marek Habersack <[email protected]>
* CustomSection.cs: added. Implementation of custom configuration
elements for WebConfigurationManager tests.
2008-12-23 Marek Habersack <[email protected]>
* Web.mono.config: added CustomTags section definition, used in
WebConfiguratioManager tests.
2008-12-23 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection should call
OpenWebConfiguration using the actual directory path, not a file
path. If it fails to do so, System.Configuration may treat the
top-level Web.config file as a child one which, in turn, in
certain circumstances will lead to duplicate keys inserted in
collections.
2008-12-23 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added Test/mainsoft/NunitWebResources/CustomSectionEmptyCollection.aspx
* System.Web_test.dll.sources: added mainsoft/NunitWeb/NunitWeb/CustomSection.cs
svn path=/trunk/mcs/; revision=122024
* Configuration.cs: don't try to open the file if we know it does not
exist. Also, don't hide the actual exception in case there's a problem
opening the configuration file.
svn path=/trunk/mcs/; revision=122004
ConformanceLevel.Fragment while creating the reader as column
values are not really Xml documents. Also, throw
SqlNullValueException when data is null.
(.ctor): Take good care of empty XmlReaders.
svn path=/trunk/mcs/; revision=121956
* FileStream.cs: Found while debugging webcompare, we should add
Obsoletes to the FileStream constructors that take IntPtrs.
svn path=/trunk/mcs/; revision=121916
* HttpResponse.cs: the code in TransmitFile (VirtualFile, bool)
was an abomination - dear children, don't do this at home (never,
ever, allocate a buffer to load entire file). I will wear a brown
paper bag every 2nd Sunday in the next 6 months for writing the
old version of this code.
New code optimizes the write when DefaultVirtualFile is used (as
it refers to a physical file on disk) and reads/writes other
virtual files in chunks.
svn path=/trunk/mcs/; revision=121909
* Environment.cs (GetEnvironmentVariable) : Avoiding an nre if
the variable is not set.
* Environment.cs (SetEnvironmentVariable) : Adding a call to
internalBroadcastSettingChange to notify Windows that an environment
variable has changed.
* icall-def.h : Adding an internal call definition for
System.Environment.internalBroadcastSettingChange.
* icall.c : Adding a Windows only implementation to broadcast a
WM_SETTINGCHANGE when an environment variable has changed.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=121853
* Environment.cs (GetEnvironmentVariable) : Avoiding an nre if
the variable is not set.
* Environment.cs (SetEnvironmentVariable) : Adding a call to
internalBroadcastSettingChange to notify Windows that an environment
variable has changed.
* icall-def.h : Adding an internal call definition for
System.Environment.internalBroadcastSettingChange.
* icall.c : Adding a Windows only implementation to broadcast a
WM_SETTINGCHANGE when an environment variable has changed.
Contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=121853
* Mono.Posix_test.dll.sources: Add
Mono.Unix.Native/RealTimeSignumTest.cs.
* Mono.Unix/UnixSignal.cs: Allow RealTimeSignums to be used in addition
to Signum, so that real time signals can be used. Patch thanks to
[email protected].
* Mono.Unix.Native/NativeConvert.cs: Add FromRealTimeSignum(),
ToRealTimeSignum(). Patch thanks to [email protected].
* Mono.Unix.Native/RealTimeSignum.cs: Added; structure which represents a real-time
signal, a value V such that V >= SIGRTMIN and V <= SIGRTMAX.
Patch thanks to [email protected].
* Mono.Unix.Native/Stdlib.cs: Add SetSignalAction() and raise()
overloads which accept a RealTimeSignum instance.
Patch thanks to [email protected].
* Test/Mono.Unix/UnixSignalTest.cs: Add tests for RealTimeSignum
constructors, .RealTimeSignum and .IsRealTimeSignal properties.
Patch thanks to [email protected].
* Test/Mono.Unix.Native/RealTimeSignumTest.cs: Added; unit tests for
RealTimeSignum. Patch thanks to [email protected].
svn path=/trunk/mcs/; revision=121851
* XmlNamespaceManager.cs : namespace lookup failed for non-atomic
string in 1.1 profile. Fixed 1.0 part of #379139.
svn path=/trunk/mcs/; revision=121834
* BasicProfileChecker.cs : /definitions/message/part could omit
name attribute and it should not cause null key error.
svn path=/trunk/mcs/; revision=121828
* method-to-ir.c: use SIZEOF_REGISTER instead of SIZEOF_VOID_P or sizeof(gpointer) when appropriate.
* mini.h: Move typedef to mgreg_t up above include of mini-arch.h
* local-propogation.c: use SIZEOF_REGISTER instead of SIZEOF_VOID_P when appropriate
* cpu-mips.md: correct lengths for certain long_ opcodes.
* mini-mips.h: Only emulate long operations when SIZEOF_REGISTER==4. Add missing func decl.
* mini-mips.c: Add support for more long operations. Fix issues with stack frame layout for n32 (still not perfect yet). Add mips_emit_load_const().
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121800
* ControlBuilder.cs: BindingContainerType returns typeof (Page)
only when the current object is a RootBuilder and it's been
created for a page parser. Otherwise it returns typeof
(Control). Fixes bug #45630
svn path=/trunk/mcs/; revision=121752
* threadpool.c: Ensure that the io_queue_lock is initialized
in all circumstances, as we always attempt to cleanup against it.
svn path=/trunk/mono/; revision=121725
* icall.c (ves_icall_System_Environment_get_Platform): For
compatibility reasons for existing client code we will keep
returning 4 for a while.
For how long will depend on the documentation being updated, and
for us to give client code a chance to be updated.
This reverts the original decison on #433108 since we did not
catch roughly 33 instances of the broken code in our own source
code base, we did not catch failures on the buildbots, and QA did
not bring this as a problem.
Only today I found some customer's code breaking due to our own
class libraries not being fully updated and tracked it down to
this change. I am reverting it because if we could not even get
our story straight in our own code base, how can we hope that our
end user code be fixed?
As of this morning, our Wiki page that documents how to detect
Unix had not been fixed.
svn path=/trunk/mono/; revision=121714
* ListViewItem.cs (ListViewSubItem.ctor): Initalizing the
SubItemStyle member field.
Contributed under MIT/X11 license.
2008-12-17 Jonathan Pobst <[email protected]>
* ListViewItemTest.cs: Add test for empty constructor.
svn path=/trunk/mcs/; revision=121709
* MetadataReference.cs (ConvertToITaskItemArray): In case of batching,
only one instance of unique metadata value is required.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestBatchedMetadataRef1): Modify to check for multiple
items with same metadata value.
svn path=/trunk/mcs/; revision=121708
* exceptions-mips.c (mono_arch_find_jit_info): decode sd instructions as well when looking for registers.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121689
* mini-mips.c (mono_arch_output_basic_block): OP_JUMP_TABLE stores patch type in inst_c1, not inst_i1.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121688
* ListBox.cs: In MultiColumn mode don't use top_index to calculate the
y coord, since it's useless in this case, and we need to rely only on
the number of rows and ItemHeight to compute this value.
Fixes part of #257471.
svn path=/trunk/mcs/; revision=121656
* mini.h: Allow MonoInst 'p' field to alias with the low-order bits of the 'const_val' fields correctly on big-endian systems when SIZEOF_VOID_P < SIZEOF_REGISTER
* ir-emit.h: Change SIZEOF_VOID_P to SIZEOF_REGISTER, init instruction through inst_c* fields instead of inst_p* fields in case sizeof(inst_p) < sizeof(inst_c)
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121620
* winconfig.h : Defining the SIZEOF_REGISTER variable for the MSVC builds.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=121616
2008-12-16 Jb Evain <[email protected]>
* Makefile: build monolinker.exe in the profile directory instead of
the current one.
in tools/tuner and tools/moon:
2008-12-16 Jb Evain <[email protected]>
* Makefile: use the monolinker.exe from the profile directory.
svn path=/trunk/mcs/; revision=121613
* SqlParameter.cs: don't allocate error strings until the error
actually happens. Compare types instead of strings. Use a Hashtable
for type mappings.
svn path=/trunk/mcs/; revision=121605
* trace.c (mono_trace_enter_method): correctly handle arguments smaller than the stack slot size on big endian systems.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121579
* ControlTest.cs: New test added: AccessibilityPropertiesTest to test
accessibility properties: AccessibleName, AccessibleDescription,
AccessibleDefaultActionDescription and AccessibleRole.
[Test for bug #459223]
svn path=/trunk/mcs/; revision=121558
* data/Makefile.am (EXTRA_DIST): added
system.web.extensions_1.0.pc.in. Also added to pkgconfig_DATA
* data/system.web.extensions_1.0.pc.in: added. This file serves
the purpose of making MonoDevelop see the 1.0 version of the
System.Web.Extensions assembly in the project references
editor. This will also make legacy 2.0 ASP.NET apps not fail when
they reference the 1.0 version of the assembly in their project
files.
* configure.in: added data/system.web.extensions_1.0.pc to AC_OUTPUT
svn path=/trunk/mono/; revision=121557
* Configuration.cs: do not reset empty sections - it results in
the elements from the parent sections being re-added to the
current section with their default values which, in turn, can lead
to duplicate keys being added to the collections in some cases.
svn path=/trunk/mcs/; revision=121536
* ToolStripItem.cs: Add a UIA specific event for listening for when a
ToolStripItem becomes selected or deselected.
svn path=/trunk/mcs/; revision=121534
* XmlSchema.cs, XmlSchemaSet.cs : move substitutionGroup processing
from validation phase to post-subset-collection phase. It caused
inconsistent substitutionGroup processing among import and
schemaSet.Schemas(). Fixed possible XBRL schema processing.
* XmlSchemaSetTests.cs : added test for Compile() after "duplicating"
call to Add() for such schemas that also have xs:import of the
same schema that causes errors on processing substitutionGroup.
svn path=/trunk/mcs/; revision=121509
* MonthCalendar.cs: Select the date in MouseDown, not in MouseUp, as
.net does. Use the date in the point of the mouse move coords as the
new range as well, if the left button of the mouse is being pressed.
Fixes#364914.
svn path=/trunk/mcs/; revision=121507
* liveness.c (mono_analyze_liveness): Avoid eliminating the 'this' var in
gshared code. Fixes#458947.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=121496
* liveness.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
* needed.
* cfold.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
* needed.
* local-propogation.c: replace SIZEOF_VOID_P with
* SIZEOF_REGISTER where needed.
* regalloc2.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
* needed.
* mini.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
* needed.
* mini-codegen.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER
* where needed.
* ssa.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
* needed.
* decompose.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where
* needed.
* helpers.c: for mips/n32, don't pass -mips32 to objdump
Some of the simpler changes of SIZEOF_VOID_P to SIZEOF_REGISTER. Tested
on mips/o32, mips/n32 and x86.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121487
* metadata.c (mono_type_stack_size_internal): If SIZEOF_REGISTER > SIZEOF_VOID_P then use SIZEOF_REGISTER as the size and alignment of the stack slots.
Contributed under the MIT X11 license
svn path=/trunk/mono/; revision=121482
* reflection.c (ensure_runtime_vtable): Work on generic instances and
make sure all interfaces have MonoClass::interface_id set.
* reflection.c (ensure_generic_class_runtime_vtable): Ensure the
method table is property set.
svn path=/trunk/mono/; revision=121454
* class.c: New function mono_class_setup_interface_id that setup
MonoClass::interface_id if needed.
* class-internals.h: Export new function.
svn path=/trunk/mono/; revision=121453
* mini-ppc.h, exceptions-ppc.c, tramp-ppc.c: Create function
descriptors for helper functions directly in front of the code.
svn path=/trunk/mono/; revision=121450
* MonthCalendar.cs: When modifying either AnnuallyBoldedDates,
MonthlyBoldedDates or BoldedDates call UpdateBoldedDates, to
effectively repaint the control.
Fixes the remaining bits of #417961.
svn path=/trunk/mcs/; revision=121416
* MonthCalendar.cs: When setting MaxDate/MinDate, adjust the selected
range to contain only dates within the new possible range.
Fixes part of #417961.
svn path=/trunk/mcs/; revision=121414
In System.Web.Configuration_2.0:
2008-12-12 Owen Brady <[email protected]>
* nBrowser/File.cs, nBrowser/Identification.cs, nBrowser/Node.cs, nBrowser/NodeTypes.cs,
nBrowser/Result.cs, nBrowser/Build.cs, nBrowser/Exception.cs, CapabilitiesBuild.cs,
CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
* nBrowser/Build.cs: Removed LoadDefaultEmbeddedResource function, the embeded resource
it is referring too was never included in Mono. And was designed for a free standing
browser identification libary.
* nBrowser/Exception.cs: Removed Compile Attributes and related comments which were left
in from the original free standing browser libary.
* CapabilitiesBuild.cs: Removed Header Checksum related coding since it is not required
for the Mono implementation.
* CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
Removed functions which were designed to make use of features of a embeded browser file which
is not present in Mono.
* CapabilitiesChecksum.cs, RandomRoboBotKeywords.txt: Deleted
In .:
2008-12-12 Dean Brettle <[email protected]>
* System.Web.dll.sources: deleted
System.Web.Configuration_2.0/CapabilitiesChecksum.cs
* Makefile (RESOURCE_FILES_2): deleted
System.Web.Configuration_2.0/RandomRoboBotKeywords.txt
svn path=/trunk/mcs/; revision=121408
* icall.c: make Assembly.GetExecutingAssembly work properly when
reflection is used to invoke the method.
Bug #321781 fixed.
svn path=/trunk/mono/; revision=121352
* configure.in: introduce SIZEOF_REGISTER - usually ==SIZEOF_VOID_P, except on mips/n32
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121295
* metadata/generic-sharing.c: Look for constraints in all type
arguments, not just the first one.
2008-12-11 Mark Probst <[email protected]>
* method-to-ir.c: Removed an unnecessary assertion.
2008-12-11 Mark Probst <[email protected]>
* generic-marshalbyref.2.cs: Test for calls to marshal-by-ref
objects.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=121292
* MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
length of the text, but the end position, so we need to substract 1 to
have a valid value. Also, in the same InputText method, don't use
SelectionLength as the length of the text, since the selected text
could actually be empty, but we need to set the value anyway.
Fixes#457370.
svn path=/trunk/mcs/; revision=121285
* Ping.cs: close the socket in SendPrivileged. Use Buffer.BlockCopy
instead of Array.Copy. Return IPStatus.Unknown instead of throwing an
exception for unknown status codes received.
svn path=/trunk/mcs/; revision=121278
* appdomain.c: return the correct CodeBase for an Assembly instance
that was loaded from the shadow-copy directories.
Bug #458190 fixed.
svn path=/trunk/mono/; revision=121273
* TemplateParser.cs: in the 2.0 profile when a custom control is
registered, do not compile it right away but store the tag name in
a registry to be compiled at a later stage.
2008-12-11 Marek Habersack <[email protected]>
* BaseCompiler.cs: added a new method, InitializeType, to be
overriden in child classes when any class initialization needs to
be performed before methods, constructors and fields are created.
* TemplateControlCompiler.cs: if the parser has any custom
controls registered, compile them here - in the InitializeType
method.
svn path=/trunk/mcs/; revision=121262
class.c (mono_class_setup_fields): It working on an inflated class
first check if the generic definition did init with success.
Fixes#445361.
svn path=/trunk/mono/; revision=121238
* Variant.cs (SetValue): Changing the behavior for COM object in
VARIANTs to match MS. Also adding support for BStrWrapper,
UnknownWrapper, and DispatchWrapper.
Contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=121235
* object-internals.h : Adding a definition for
MonoReflectionComVisibleAttribute.
* marshal.c (cominterop_com_visible) : Method added to check the
ComVisible attribute of a class.
* marshal.c (cominterop_raise_hr_exception, cominterop_get_interface) :
cominterop_raise_hr_exception added to consolidate common code
to raise hr exceptions.
* marshal.c (cominterop_can_support_dispatch) : Method added to determine
if a managed class should support IDispatch.
* marshal.c
(cominterop_get_idispatch_for_objec, cominterop_ccw_queryinterfacet) :
Added additional checks for managed object when getting
an IDispatch interface.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=121234
* TextBox.cs: Don't do any auto complete task if the custom source is
null or empty. Also avoid duplication of code.
Fixes#457743.
svn path=/trunk/mcs/; revision=121208
* mini-ppc.c: Merged with mini-ppc64.c.
* mini-ppc.h: Define PPC_MINIMAL_PARAM_AREA_SIZE on all targets.
* Makefile.am: Use the same sources for PPC and PPC64.
* mini-ppc64.c: Removed.
2008-12-10 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: A few new macros for the final PPC/PPC64
merge.
svn path=/trunk/mono/; revision=121203
* Makefile : remove sys.messaging from CENTUM_TESTS. It has never
been supported, and now, it's heavily developed.
svn path=/trunk/mcs/; revision=121185
* TestGraphics.cs, GDIPlusTest.cs : fix tests wrt rounding that
were failing on .NET too (exposed by nunit24).
* LinearGradientBrushTest.cs, GraphicsPathTest.cs,
TestMatrix.cs : fix tests wrt rounding that were failing on .NET
too (exposed by nunit24).
svn path=/trunk/mcs/; revision=121182
* MasterPageParser.cs: do not compile anything while
parsing. MasterType virtual path is not compiled, but stored for
later. It is compiled when the MasterType property is requested
from within MasterPageCompiler.
* PageParser.cs: do not compile anything while
parsing. MasterPageFile, MasterType and PreviousPageType virtual
paths aren't compiled but checked for existence and stored for
later. Actual compilation happens when the MasterType and
PreviousPageType are requested from within PageCompiler.
* BaseParser.cs: added a new helper method, ThrowParseFileNotFound.
2008-12-10 Marek Habersack <[email protected]>
* ParseException.cs: made serializable.
* PageCompiler.cs: CreateStronglyTypedProperty calls
AddReferencedAssembly to add type's assembly to the unit's
references after the typed property has been created.
* BaseCompiler.cs: added a new helper method,
AddReferencedAssembly to be used whenever an assembly location
needs to be added to the compilation unit's list after the parsing
is done (e.g. when processing PreviousPageType or MasterPageType
properties in PageParser)
2008-12-10 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/MissingMasterFile.aspx
* System.Web_test.dll.sources: added System.Web.UI/PageParserTest.cs
2008-12-10 Marek Habersack <[email protected]>
* NunitWebResources/MissingMasterFile.aspx: added
2008-12-10 Marek Habersack <[email protected]>
* PageParserTest.cs: added
svn path=/trunk/mcs/; revision=121181
* branch-opts.c (remove_block_if_useless): Use MONO_IS_BRANCH_OP instead of checking
for the many branch ops. The original check miss OP_BR_REG.
Fixes#457574.
svn path=/trunk/mono/; revision=121173
* System/Test/System.Diagnostics/CounterCreationDataTest.cs: Test to verify CounterHelp defaults to String.Empty.
* System/System.Diagnostics/CounterCreationData.cs: Default CounterHelp to String.Empty.
svn path=/trunk/mcs/; revision=121172
* mini-mips.h mini-mips.c exceptions-mips.c tramp-mips.c: first round of changes necessary to eventually support n32.
svn path=/trunk/mono/; revision=121160
* RichTextBox.cs: When parsing the contents of a rtf file, don't call
Split to create a line - we are already doing this, by _adding_ a new
one when rtf_cursor_x is 0 (this field gets this value just after we
receive the newline param as true). This avoids having a proportional number
of empty lines in the end of the rich text box.
Fixes#396664.
svn path=/trunk/mcs/; revision=121149
* RichTextBox.cs: When saving the contents as a plain text, don't add
a new line for every Line structure, since the data in Document
already contains the new line characters. This avoids duplicated new
lines using the Save methods.
Fixes#445618.
svn path=/trunk/mcs/; revision=121147
* mini-mips.c (mono_arch_output_basic_block): use mfc1/lwc1 instead of mfc1d/ldc1
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121129
* marshal.c : Adding cominterop_release_all_rcws to release all
runtime callable wrappers held by the runtime.
* marshal.h : Adding deceleration for cominterop_release_all_rcws.
* mini.c (mini_cleanup) : Adding a call to cominterop_release_all_rcws
to release all runtime callable wrappers held by the runtime.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=121114
* tramp-amd64.c (mono_arch_create_trampoline_code_full) : Increase the code size for
for Winx64.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=121112
* cpu-mips.md: fix ckfinite length
* mini-mips.c: at least recognize n32 ABI when used (not yet supported)
(mono_arch_lowering_pass): cleanup, rearrange for clarity
(mono_arch_output_basic_block): implement OP_CKFINITE, add more asserts
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121099
* metadata.c (mono_image_alloc_lock): New helper function.
(mono_image_alloc0_lock): Ditto.
* metadata.c: Use the alloc_lock () helper functions for allocating
memory from the image mempool.
svn path=/trunk/mono/; revision=121097
* BasicProfileChecker.cs : reimplemented R2305 that turned out to
be wrong on fixing bug #443095 (fixed).
* 443095.wsdl, WebServicesInteroperabilityTest.cs : added
new test for R2305 checker.
svn path=/trunk/mcs/; revision=121095
* XsdValidatingReader.cs : skip text validation under xs:any.
Fixed part of bug #449512.
* XmlSchemaValidator.cs : skip text validation under xs:any.
* XmlValidatingReaderTests.cs : added test for validating mixed
element under xs:any.
svn path=/trunk/mcs/; revision=121093
* XslCompiledTransform.cs : Fixed bug #450797, patch by Jonathan
Anderson. Preserve whitespace-only text in xsl:text.
* XslTransformTests.cs : test for bug #450797 by Jonathan Anderson.
svn path=/trunk/mcs/; revision=121083
* Iterator.cs : DescendantIterator.Clone() was not cloning current
node in new code. Fixed bug #456103.
* XPathNavigatorTests.cs : added test fo bug #456103.
svn path=/trunk/mcs/; revision=121080
* exceptions-mips.c (mono_arch_find_jit_info): init new_ctx with ctx, dont' call setup_context.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=121078
* HttpServerUtility.cs: when Execute finishes, clear
Request.QueryStringRaw. Backport of r121010 by Vladimir Krasnov.
svn path=/trunk/mcs/; revision=121064
* DataGridViewRow.cs: Prevent an exception on a not yet databound grid,
where datasource is null.
[Fixes exception reported in bug 441240]
svn path=/trunk/mcs/; revision=121016
* Mono.Simd.dll.sources: Added VectorOperations.cs
2008-12-08 Rodrigo Kumpera <[email protected]>
* VectorOperations.cs: New file with extension methods
for Vector*. Added methods from Vector4f.
* Vector4f.cs: Remove methods that are now in
VectorOperations.
svn path=/trunk/mcs/; revision=121013
Files", so that ~all man pages can be under the same node.
* docs/lang-csharp.source: Since C# is the only current language, move
the child nodes "up" a node so we have "Languages/C# Compiler Error
Reference" and "Languages/C# Language Specification" nodes.
svn path=/trunk/mcs/; revision=121005
* unwind.c: New file, move the unwind info encoding functions here from
aot-compiler.c, so they could be used at runtime too.
svn path=/trunk/mono/; revision=121001
* SQLite3.cs: Avoid IntPtr.ToInt32 () to convert between IntPtr's and integers
since it is not 64 bit safe. Fixes#457038.
svn path=/trunk/mcs/; revision=120995
* class.c (mono_class_from_generic_parameter): Document it's
locking behavior. Fix double checked locking here, we stored in
param->pklass a partially initialized MonoClass and no membar was used.
svn path=/trunk/mono/; revision=120993
* NunitWebResources/ValidPropertyBind5.aspx: added
* NunitWebResources/ReadWritePropertyControl.ascx: added a
writable string property.
2008-12-08 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added another valid Bind
expression test.
2008-12-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: use the correct regex match group
index in SanitizeBindCall (), fixes bug #457011
svn path=/trunk/mcs/; revision=120988
* DataGridView.cs: This is the cool patch that adds support for
actually updating the data in the databinding backend after editing.
With bonus firing and handling the DataError event.
svn path=/trunk/mcs/; revision=120982
* Line.cs: When calculating the text tags's Shift value, store it as
pixels instead of points. This way we can actually handle different
fonts in the same RichTextBox, as well as the right size of the caret.
Fixes part of #351938.
svn path=/trunk/mcs/; revision=120979
* DataGridView.cs: Use the CurrencyManager to update the data source
binding position instead of casting the data sourcde to BindingSource.
This enables position updating for other type of data sources.
svn path=/trunk/mcs/; revision=120968
* mini-mips.c (mono_arch_emit_call): narrow float arguments when passing as args.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120962
* unwind.c: New file, move the unwind info encoding functions here from
aot-compiler.c, so they could be used at runtime too.
svn path=/trunk/mono/; revision=120960
so that <exception/> elements aren't grouped together. This causes
`make doc-update` to result in ~0 changes in ../../class/corlib.
Change the sorting of --exceptions-generated <exception/> nodes so
that namespaces are taken into consideration, thus "properly"
grouping types by namespaces, as I'd usually expect...
svn path=/trunk/mcs/; revision=120951
* DataGridView.cs: Sorting fixes:
- Be strict when sorting is enabled.
- If there is a data source delegate the sorting request.
svn path=/trunk/mcs/; revision=120948
* Binding.cs: When converting the data also try with the destination
type typeconverter. This indirectly adds support for Nullable types
in our databinding layer.
svn path=/trunk/mcs/; revision=120947
* TypeDescriptor.cs: Added support for NullableConverter.
* TypeDescriptorTests.cs: Added a test for the NullableConverter support.
svn path=/trunk/mcs/; revision=120946
* DataGridView.cs: When cell editing is finished focus back the
DataGridView. Fixes keyboard navigation post-editing.
svn path=/trunk/mcs/; revision=120944
* DataGridView.cs: Fix the cell editing by delaying the currentCell
setting to after EndEdit is called for the old cell.
svn path=/trunk/mcs/; revision=120943
* CurrencyManager.cs: Fix exceptions when resetting the data source
for the same time (e.g. in ComboBox):
- Do not set the list position if we are still transferring data
- When resetting the list firstly push the data then update the
binding.
* Binding.cs: Check BindingManager.Position == -1 instead of
BindingManager.Current == null in order to avoid unexpected
exceptions.
svn path=/trunk/mcs/; revision=120924
* mini-mips.c (mono_arch_lowering_pass): handle OP_IMUL_IMM as well
(mono_arch_output_basic_block): fix OP_LOCALLOC code generation
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120921
* mini-mips.c: cleanup warnings
(mono_arch_lowering_pass): handle OP_LOCALLOC_IMM
(mips_adjust_stackframe): handle case of taking the address of
stack locals
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120910
* aot-compiler.c: Implement a few functions missing from the asm writer.
(emit_method_code): Only write symbols for methods when using the bin
writer, since the assembler can't deal with the characters in our method
names.
svn path=/trunk/mono/; revision=120905
* mini-ppc.c: Some simple merges from mini-ppc64.c.
2008-12-05 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: ppc_load_func must use ppc_load_sequence.
Added ppc_compare_log.
svn path=/trunk/mono/; revision=120890
* MonthCalendar.cs: Add UIA specific events so that we can know when
the selection changes, and when MaxSelectedCount changes.
svn path=/trunk/mcs/; revision=120889
* configure.in: check whether round (3) and rint (3) are present
in the C library.
2008-12-05 Marek Habersack <[email protected]>
* sysmath.c (ves_icall_System_Math_Round2): if round (3) and rint
(3) functions are present in the C library use them to do the
job. If they are absent, make sure that the sum of int_part and
dec_part is rounded before returning. This is necessary due to the
division of dec_part by the power of 10 before the final addition
is performed - if the result is not rounded in some cases it will
yield invalid results.
svn path=/trunk/mono/; revision=120880
* BuildManager.cs: attempt to enter the compilation critical
section with a timeout up to 3 times before giving up. This avoids
deadlocks in situations where there are two virtual directores
each containing user controls referencing user controls from the
other directory.
svn path=/trunk/mcs/; revision=120861
* exceptions-ppc.c: Merged with exceptions-ppc64.c.
* mini-ppc.c, mini-ppc.h: Remove PPC_STACK_ALIGNMENT and use
MONO_ARCH_FRAME_ALIGNMENT. Struct for PPC64 function descriptors.
* exceptions-ppc64.c: Removed.
* Makefile.am: Use exceptions-ppc.c instead of exceptions-ppc64.c.
svn path=/trunk/mono/; revision=120853
* DataGridView.cs: Fix scrolling and selection of cells/rows prior
to the control being drawn for the first time by:
- Implement DisplayedRowsCount to not rely on the control being
already painted. Also added support for the partial row flag.
- Fix scrolling to take into account partial rows and scroll to
them.
[Fixes bug #456527]
svn path=/trunk/mcs/; revision=120851
Reorder parameters to be in sorted order, so `mdoc help COMMAND`
parameters are sorted.
* Mono.Documentation/monodocer.cs: Remove try/catch in
MDocUpdater.Run(MDocUpdaterOptions), so that any generated exceptions
will be handled within mdoc itself (thus allowing the normal
"See `mdoc help' for more information." message). Improve some
error messages so they're more useful.
svn path=/trunk/mcs/; revision=120842
* mini-mips.c: introduce USE_LDC_SDC: use ldc1/sdc1 to load/store doubles, disabled by default
* mini-mips.c (mono_arch_emit_outarg_vt): fix offset calculation for memcpy in structure passing.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120838
* tuner/Mono.Tuner/RemoveSerialization.cs
* tuner/Mono.Tuner/PrintStatus.cs
* tuner/Mono.Tuner/AdjustVisibility.cs
* tuner/Mono.Tuner/InjectAttributes.cs
* tuner/Mono.Tuner/CheckVisibility.cs:
do not tune the assemblies that the linker doesn't
consider for actual linking.
svn path=/trunk/mcs/; revision=120832
* JsonSerializer.cs: StringBuilder extension methods aren't used
anymore, changed to calls to static methods in
StringBuilderExtensions.
* StringBuilderExtensions.cs: cannot use extension methods here
because this file is also used in the version 1.0 build which
doesn't reference System.Core
svn path=/trunk/mcs/; revision=120823
* cpu-mips.md: add long_conv_to_ovf_i4_2
* mini-mips.c: update/add various _OVF_ opcodes to fix test failures
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120819
* mini-mips.c: ifdef protect automatic promotions of R4 to R8.
* mini-mips.c (mono_arch_emit_setret): handle R4 case with FCONV_TO_R4 instead of FMOVE
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120803
* exceptions.cs: Add support for documenting a *subset* of all
possible exceptions. Subsets include: the member itself, the member
and methods it calls that are in the same assembly, and all possible
methods across all assemblies.
* monodocer.cs: Allow --exceptions to take a SOURCES argument, to
control which location sources will be searched for exceptions.
svn path=/trunk/mcs/; revision=120798
* simd-intrinsics.c: Add support for operator == and !=
on Vector4(u)i.
* simd-methods.h: Add SN_op_Inequality and SN_op_Equality.
svn path=/trunk/mono/; revision=120788
* marshal.c (mono_marshal_emit_native_wrapper): Add AOT support for pinvoke
wrappers by emitting the function address using a CEE_MONO_ICALL_ADDR
instruction instead of a pointer constant.
svn path=/trunk/mono/; revision=120749
* mini-mips.c (mono_arch_lowering_pass): handle OP_COMPARE and OP_ICOMPARE
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120745
* mono.sln : Removing monoburg from the solution.
* libmono.vcproj : Removing files deleted from svn.
* mono.def : Removing mono_burg* exports that no longer exist.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=120725
* loader.c (mono_method_get_header): Do most of the work outside the
loader lock, to avoid assembly load hook deadlocks.
* metadata.c (mono_metadata_parse_mh_full): Use finer-grained locking.
(mono_metadata_parse_type_full): Ditto.
svn path=/trunk/mono/; revision=120611
* System.Data.DataSetExtensions_test.dll.sources: added
System.Data/DataRowExtensionsTest.cs
2008-12-02 Marek Habersack <[email protected]>
* DataRowExtensionsTest.cs: added
2008-12-02 Marek Habersack <[email protected]>
* DataRowExtensions.cs: when Field <T> is specialized on a
nullable type (either a reference or an instance of Nullable <T>)
do not throw exception for column value being DBNull but return
null instead.
svn path=/trunk/mcs/; revision=120592
* System.Web_test.dll.sources: added System.Web.UI/DataBinderTest.cs
2008-12-03 Marek Habersack <[email protected]>
* DataBinderTest.cs: added
2008-12-03 Marek Habersack <[email protected]>
* DataBinder.cs: clean up Eval for good this time.
GetIndexedPropertyValue should throw an exception when a string
indexer expression is used and the container is an IList.
svn path=/trunk/mcs/; revision=120590
* method-to-ir.c (mono_method_to_ir): Handle ldtoken of an open
generic type (via a typedef or typeref) correctly.
2008-12-03 Mark Probst <[email protected]>
* generic-typedef.2.cs: New test for ldtoken of open generic
types.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=120589
* mempool.c (mono_backtrace): Take the number of allocated bytes as argument.
Make the stack depth fixed. Ensure proper argument passing to the backtrace
funtions. Finally, use a lock to produce well ordered output.
The lock looks silly, as all calls to the corlib mempool should be guarded
with the loader lock, but for some reason this fact doesn't help.
* mempool.c (mono_mempool_alloc0): Add support for TRACE_ALLOCATIONS.
svn path=/trunk/mono/; revision=120519
* PaintEventArgsTest.cs: Tests were failing due to being dependent
on the order in which the tests were running, which changed when we
did nunit 2.2->2.4. Modified tests to not use global Graphics contexts,
and to dispose the Graphics like they were relying on the
GraphicsDispose () test to do.
svn path=/trunk/mcs/; revision=120504
* tramp-ppc64.c (mono_arch_create_rgctx_lazy_fetch_trampoline):
Fix trampoline size.
* mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: A few floating point
conversion opcodes are implemented natively instead via emulation.
2008-12-02 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: Opcodes for floating point conversions from
64 bit integers.
Code submitted by [email protected] at
https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
X11/MIT license.
svn path=/trunk/mono/; revision=120492
* DataBinder.cs: when Eval attempts to find Items [] in the
container, catch and ignore all exceptions - the null returned
from GetPropertyValue may be a legitimate return value.
svn path=/trunk/mcs/; revision=120485
* XplatUIX11.cs: Add support to RichTextFormat by reading it as ascii
text and then let the underneath users of IDataObject interpret and
parse by themselves.
Fixes#439251.
svn path=/trunk/mcs/; revision=120461
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWeb/NunitWeb/Resources/Web.mono.config.1.1
2008-12-02 Marek Habersack <[email protected]>
* WebTest.cs: for 1.1, copy the Web.mono.config.1.1 resource
2008-12-02 Marek Habersack <[email protected]>
* Web.config: added ASP.NET AJAX 1.0 configuration entries
* Web.config.1.1: copied from the last revision before the above
changes, so that 1.1 tests don't fail.
* Web.mono.config.1.1: copied from revision before the AJAX
changes below, so that 1.1 tests don't fail.
svn path=/trunk/mcs/; revision=120442
* method-to-ir.c (mono_method_to_ir): Disable debugging
information for the init locals block to make the debugger stop
after all locals have been initalized.
svn path=/trunk/mono/; revision=120438
* StateManagedCollection.cs: adding an item to the collection does
not call SetDirty as an item is added, thus not affecting the
indexes of its predecessors. Fixes bug #443100
Insert doesn't call SetDirtyObject as all objects are made dirty
in SetDirty which is called from here. Same applies to this [int]
indexer.
svn path=/trunk/mcs/; revision=120436
2008-12-01 Jb Evain <[email protected]>
* Makefile: move tuning logic inside ../moon. We now simply build
the tuner as a simple library.
in mcs/tools/moon:
2008-12-01 Jb Evain <[email protected]>
* Makefile: re-use the tuning logic that previously was defined
in mcs/tools/tuner. We're now building the net_2_1 tuned libraries
from here exclusively.
in mcs/tools:
2008-12-01 Jb Evain <[email protected]>
* Makefile: build the tuner library during the net_1_1 profile. The
tuning of the net_2_1 assemblies now takes place in moon.
svn path=/trunk/mcs/; revision=120432
* Mono.Linker/AssemblyResolver.cs (AreSame(TypeReference,TypeReference):
fix the case where we compare two GenericInstanceType of the same
element type with different generic arguments.
svn path=/trunk/mcs/; revision=120410
* mini.c (mini_method_compile): Only run local deadce if MONO_OPT_DEADCE
is enabled.
* method-to-ir.c (mono_method_to_ir): Fix invalid code generated by the
alu->alu imm optimization which only shows if deadce is disabled.
svn path=/trunk/mono/; revision=120407
* DataGridView.cs: Ensure that when a row is removed the all the
current row/column/cell get updated. Fixes multiple exceptions.
svn path=/trunk/mcs/; revision=120406
* aot-compiler.c: Rename the function names for the binary and asm writers
so they can coexist in the same process. Rework the xdebug code to use the
asm writer. This avoids the need to call into the runtime to dump the
debugging info. Add more debugging info for types.
svn path=/trunk/mono/; revision=120394
* genmdesc.c genmdesc.pl mini.h: Don't put the CEE_ opcodes into the
cpu description tables, they can't occur in cpu-<ARCH>.md.
svn path=/trunk/mono/; revision=120391
* method-to-ir.c (mono_method_to_ir): Set the type of the value pushed on
the stack in CEE_LDFLDA. Fixes#450542.
* generics.cs: Add a new test.
svn path=/trunk/mono/; revision=120389
* verify.c (is_compatible_boxed_valuetype): Rewrite function to work properly with
targets that require strict compatibility between the types.
* verify.c (verify_stack_type_compatibility_full): Boxed values are not compatible
to unboxed types. All cases that this is true are checked by is_compatible_boxed_valuetype.
Kill the strict argument and create a new one valuetype_must_be_boxed.
* verify.c (verify_delegate_compatibility): Use verify_stack_type_compatibility_full to
state that all valuetypes must be boxed.
Fixes#448560.
svn path=/trunk/mono/; revision=120385
* DataGridView.cs, DataGridViewCell.cs: Fire CellStateChanged events.
* DataGridViewCell.cs: Set the cell as selected prior to setting the
new state.
[Fixes issue 1 in bug #443560]
svn path=/trunk/mcs/; revision=120379
* mini-ops.h: updated MIPS opcodes
* mini-mips.c: decompose long opts
* mini-mips.h: decompose long opts
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120372
* TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
instances to the ContentPlaceHolders collection when the
placeholder is instantiated in the control build method, collect
the ids and store them in ContentPlaceHolders inside the
constructor. Fixes bug #449970
For each content placeholder generate a public virtual property
named "Template_PLACEHOLDERID", this is compatible with what .NET
does.
* BaseCompiler.cs: added new virtual method,
AddStatementsToConstructor, which is called just before
CreateConstructor returns.
2008-12-01 Marek Habersack <[email protected]>
* MasterPage.cs: use List <string> for ContentPlaceHolders instead
of ArrayList.
CreateMasterPage now directly accesses the ContentPlaceHolders as
it is now a list of strings
svn path=/trunk/mcs/; revision=120353
* Mono.Cecil.Signatures/CustomAttrib.cs: Define reusable Empty
arrays for both FixedArg and NamedArg.
* Mono.Cecil.Signatures/SignatureReader.cs: Avoid creating empty
ParameterDefinitionCollection on constructors. Use the new Empty
arrays when possible.
svn path=/trunk/mcs/; revision=120348
* Mono.Cecil/MethodReference.cs: Make HasParameters virtual
* Mono.Cecil/MethodSpecification.cs: Override HasParameters to make
sure we're tracking the same object as the Parameters property does.
* Mono.Cecil/PropertyDefinition.cs: Implement HasParameters based on
the GetMethod, SetMethod or its own parameter collection.
* Mono.Cecil/PropertyReference.cs: Add abstract HasParameters property
svn path=/trunk/mcs/; revision=120347
* Style.cs: WriteStyleAttributes must not use the fontinfo field
directly, it has to be done via the Font property. Fixes bug
#449793
svn path=/trunk/mcs/; revision=120345
* DataGridView.cs: Cleanup MoveCurrentCell to not fire any CellEnter,
CellLeave events as this is already done in SetCurrentCellAddressCore.
svn path=/trunk/mcs/; revision=120310
* DataGridView.cs: Set the minimum size for the columns to be the
width of their header, so that the columns don't get squashed
all together.
svn path=/trunk/mcs/; revision=120306
* DataGridView.cs: Move all currentCell setting code into
one central place - SetCurrentCellAddressCore. That way the
current cell is properly updated when programatically set.
Fire RowEnter/Leave events.
svn path=/trunk/mcs/; revision=120304
* DataGridView.cs: Update the CurrencyManager.Position, so that
when a BindingSource is used BindingSource.Current will be correct.
svn path=/trunk/mcs/; revision=120303
* GroupBoxRenderer.cs: Fix when VisualStyles disabled:
- No caption text is drawn because Color.Empty is used.
- Fix top and height off by 1.
svn path=/trunk/mcs/; revision=120302
* Mono.Cairo/ImageSurface.cs: Fixes ImageSurface constructor signature.
Data param should not be ref since the data is not modified.
svn path=/trunk/mcs/; revision=120299
* cpu-mips.md: fix length on int_rem_un
* mini-mips.c (mips_stackframe_adjust): fix insertion of spillvars region in MIPS stackframes.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120297
* MenuAPI.cs: Add a Menu.SelectedItem null check when navigating the
menus using the arrow keys. Also when handling the left arrow key, don't
assign the current menu to the parent one, if the parent is null.
Fixes#446392.
svn path=/trunk/mcs/; revision=120294
* IPAddressCollection.cs: added an internal method to make the
collection read-only.
* IPInterfaceProperties.cs: read DNS client configuration from
/etc/resolv.conf.
* NetworkInterface.cs: dummy Speed property for linux.
Bug #450211 fixed.
svn path=/trunk/mcs/; revision=120281
* ecore.cs (MethodGroupExpr.Error_ArgumentCountWrong): New helper
for CS1501 error.
(MethodGroupExpr.OverloadResolve): Add sanity check between
IsApplicable and VerifyArgumentsCompat.
(VerifyArgumentsCompat): Report CS1501 where appropriate.
svn path=/trunk/mcs/; revision=120280
* TermInfoDriver.cs: Also register a mapping to make verase be the
backspace key. Funny thing: verase was fetched from the termios,
but it was *never* actually used in this file.
VSUSP and VINTR are likewise ignored. Must ponder this.
This makes the backspace key in MacOS work on interactive
applications.
svn path=/trunk/mcs/; revision=120261
* mini-exceptions.c (mono_handle_native_sigsegv): Check
mono_debug_using_mono_debugger() in addition to the
`no_gdb_backtrace' flag in the `MonoDebugOptions'.
svn path=/trunk/mono/; revision=120260
* mini-ops.h: updated more MIPS opcodes
* mini-mips.c: FP compare/branch working again, clean up last of CEE_ -> OP_ mappings
* cpu-mips.md: Added MIPS versions of new FP compare/branch opcodes.
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120259
* class.c (mono_class_setup_fields): Don't copy MonoType::attrs as
the inflate_generic_type machinery should handle it.
This avoids a crash when the field's flags is zero and it's type is
a primitive.
What happens is that mono_metadata_parse_type_full will see that opt_attrs
is zero and will return one of the cached built-in primitive types. Since
those types live in read-only memory, the code that copies it crashes.
svn path=/trunk/mono/; revision=120256
* mini-mips.c (mono_arch_emit_call): adding missing conversion to fp single when passing in integer arg register.
* mini-mips.c (mips_adjust_stackframe): compensate for spill-down logic.
* mini-ops.h: correct selected mips opcode entries
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120249
* mini-ppc64.c, mini-ppc64.h: Enable generalized IMT thunks and
make them work.
2008-11-28 Mark Probst <[email protected]>
* object.c: Don't put function descriptors into generalized IMT
thunks.
2008-11-28 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: #define for the maximum length of a load
sequence.
svn path=/trunk/mono/; revision=120248
* ArrayExtensions.cs (IsAligned): Add a sensible default
implementation that will give results similar to the instrinsic version.
svn path=/trunk/mcs/; revision=120234
* nunit-summary.xsl : copied from nunit resource (summary.xslt)
* library.make : put transformation result from TestResult-*.xml
into TestResult-*.log as we used to do.
svn path=/trunk/mcs/; revision=120207
* DataBinder.cs: do the proper thing in Eval when a non-indexed
property is requested on an object and not found. In that case try
to use the Items property.
svn path=/trunk/mcs/; revision=120199
* library.make (TESTNAME_ARG): added support for the nunit-console -run
parameter, so that individual tests can be ran.
svn path=/trunk/mcs/; revision=120198
* ListView.cs: use the _correct_ operator when checking whether
selected item index is within the data keys range.
svn path=/trunk/mcs/; revision=120194
* ArrayExtensions.cs: Add Get/SetVector variants for
all vector types.
* ArrayExtensions.cs: Add IsAligned query method to check
is an index of a given array is property aligned for simd.
svn path=/trunk/mcs/; revision=120175
* mempool.c, mempool-internals.h: Added g_slist_append_mempool()
from mini/mini.c.
* generic-sharing.c: Allocate the method template slists from the
image mempool so it doesn't leak.
2008-11-27 Mark Probst <[email protected]>
* mini.c: Removed g_slist_append_mempool(). Now in
metadata/mempool.c.
svn path=/trunk/mono/; revision=120174
* FileInfo.cs: Change ToString (in 2.1) not to return the full path
of the filename (since it's not SecurityCritical).
svn path=/trunk/mcs/; revision=120172
* simd-intrinsics.c (mono_emit_vector_ldelema): Extract the element
size properly and make the bounds check optional.
* simd-intrinsics.c (emit_array_extension_intrinsics): Add support
for SetVector and IsAligned.
svn path=/trunk/mono/; revision=120167
* ListView.cs: fixes in DoUpdate and DoDelete - check must be made
that the requested item index is _smaller_ than the number of
keys, not _bigger_.
Enable using the lambda expression in CreateItemsInGroups - the
gmcs bug preventing that was fixed.
svn path=/trunk/mcs/; revision=120165
* docs/Makefile: remove nunit docs that do not exist (and I don't
think such docs for private mono use should be provided).
svn path=/trunk/mcs/; revision=120104
The port compiles (tested under Debian Linux), and almost correctly
compiles and executes an empty c# program ;).
Contributed under the MIT X11 license.
svn path=/trunk/mono/; revision=120058
Jb Evain <[email protected]>
* WellFormedXmlWriter.cs : new file to escape invalid XML
characters.
* mono-api-info.cs mono-api-diff.cs : don't use XmlTextWriter
directly when you don't know what you are going to write.
escape invalid characters as \xXX or \uUUUU.
svn path=/trunk/mcs/; revision=119984
* SynchronizationContext.cs: A temporary horrible hack to SyncContext
to hard-wire all calls back to the main thread (moonlight-only) so that
we can use our unit test harness. This will be fixed for 2.1 when we
implement Dispatcher properly.
svn path=/trunk/mcs/; revision=119981
A fix for bug #447027
* anonymous.cs (HoistedVariable): Cache also outer access to deal
with context variables stored as expression instances.
svn path=/trunk/mcs/; revision=119966
* Scrollbar.cs:
* ScrollableControl.cs: Simplify the code to manually set the size of
the thum area, avoiding duplication of code, and also preserving the
right value for different code paths - this can happen when size
changes are made to the scrollbar after setting LargeChange, Maximum
or related properties for the ScrollBar.
svn path=/trunk/mcs/; revision=119941
* ScrollableControl.cs: When scrolling, don't invalidate the entire
area, and call to XplatUIX11.ScrollWindow instead. This is exactly
what .Net does: copy the visible area, and only invalidate the part of
the area that wasn't visible before scrolling.
Fixes#441738.
svn path=/trunk/mcs/; revision=119930
* mono-debug-debugger.c
(mono_debugger_runtime_invoke): Return the exception object if an
exception was thrown. Visual Studio displays the exception object
in the locals window.
svn path=/trunk/mono/; revision=119899
* System.Web.dll.sources: added
System.Web.Compilation/AspComponent.cs
2008-11-25 Marek Habersack <[email protected]>
* RootBuilder.cs: use new API in AspComponentFoundry to retrieve
registered control type.
* TemplateControlParser.cs: AddControlImports () removed. Its
functionality is now implemented in ControlBuilder.AddChild in a
more elegant, fine grained and correct way.
* TemplateParser.cs: replaced some "" with String.Empty
* ControlBuilder.cs: AddChild now adds an import for child's
namespace if the control being added has been registered in the
web.config file. Possible fix for #447896 and #447898
* PageParser.cs, MasterPageParser.cs: do not call
AddControlImports, it no longer exists.
2008-11-25 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: GetComponentType methods replaced with
GetComponent returning an instance of AspComponent which fully
describes the registered item. Components are cached, indexed by
full tag name.
* AspComponent.cs: added
svn path=/trunk/mcs/; revision=119893
* mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, cpu-ppc64.md: Several
fixes. PPC64 now passes most of the runtime regressions.
svn path=/trunk/mono/; revision=119882
* DataGridView.cs: Listen for a DataTable's TableCleared event so we
can clear ourselves when it is raised, we don't have a newrowindex
if we don't have any columns.
* DataGridViewRowCollection.cs: Ensure we always delete all the rows,
re-index after each delete so the NewRow will have the correct index.
[Fixes bug #448005]
2008-11-24 Jonathan Pobst <[email protected]>
* DataGridViewDataBindingTest.cs: Flush and add test for bug #448005.
* DataGridViewRowCollectionTest.cs: Add test for bug #448005.
svn path=/trunk/mcs/; revision=119826
* Mono.Linker.Steps/ResolveFromAssemblyStep.cs
* Mono.Linker.Steps/ResolveFromXmlStep.cs
* Mono.Linker.Steps/MarkStep.cs:
generalize the use of the new Has* pattern in Cecil
to avoid unecessary allocations. Also cache delegates.
svn path=/trunk/mcs/; revision=119809
* HttpRuntime.cs: take PlatformID.MacOSX into account when
determining whether we're running on Windows or not. Possible fix
for #447874
svn path=/trunk/mcs/; revision=119800
* ScrollBar.cs:
* ScrollableControl.cs: When the manual thumb size is used, the
maximum allowed value should depend on that thumb size, instead of
LargeChange (using the maximum - LargeChange + 1 value). But
LargeChange should be used normally when incrementing/decrementing.
Fixes the remaining part of #441546.
svn path=/trunk/mcs/; revision=119787
until an about:blank has been loaded (according to spec). Fix
ScrollbarsEnabled to set when a document is loaded (since we use js
for it). Fix url so it reflects the current loading document and not
the previous one. Send StatusChanged events.
2008-11-23 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=119747
before a window is created. Fix the window getter so it gets the top content
window if no window is focused.
2008-11-23 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=119745
* test-695-2-lib.cs:
* test-695-3.lib.cs: Added test for bug #432423.
* AssemblyBuilder.cs: When assembly is strongnamed, then explicitly
set PublicKey flag. Do not allow AssemblyFlagsAttribute to overwrite
flags value, and ignore PublicKey flag if assembly is not strongnamed.
Fixes bug #432423.
svn path=/trunk/mcs/; revision=119742
in 3 stages so events can be registered before the window is actually created.
The creation of the window is now done only when a user requests something
from the binding (like opening a window, or rendering content)
2008-11-23 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=119732
* System.Runtime.Serialization_test.dll.soruces :
remove ALL Mainsoft serialization tests that completely fail under
.NET and reduce 107 test failures out of 113.
They are English (language) dependent.
svn path=/trunk/mcs/; revision=119730
* ScrollBar.cs:
* ScrollableControl.cs: Set manually the thumb size for the
ScrollableControl scrollbars, so any further changes to the underneath
scrollbars respect the original size.
Fixes part of #441546.
svn path=/trunk/mcs/; revision=119686
* Makefile: Add reference to System.Core so we can
define extension methods.
* Mono.Simd.dll.sources: Add Mono.Simd/ArrayExtensions.cs.
2008-11-21 Rodrigo Kumpera <[email protected]>
* ArrayExtensions.cs: New type exposing extension
methods to primitive arrays to load/store Vectors
from.
svn path=/trunk/mcs/; revision=119685
* TemplateControlCompiler.cs: make the Bind regex stricter.
When creating Eval expression from Bind, replace single quotes
with double quotes. Fixes bug #447597
When processing Bind expressions and the regex doesn't match,
throw an exception.
2008-11-21 Marek Habersack <[email protected]>
* ControlBuilder.cs: in BindingContainerType if builder is a
RootBuilder and no naming container is found, return typeof
(Page). In the TemplateBuilder case return cb.ControlType, not
this.ControlType.
svn path=/trunk/mcs/; revision=119661
* typemanager.cs, decl.cs, anonymous.cs, class.cs, enum.cs: Rewrote
member type resolve to follow normal flow, instead of random
property access.
svn path=/trunk/mcs/; revision=119647
* icall.c (mono_method_get_equivalent_method): Make sure
method->klass->methods is inited before looping over it.
svn path=/trunk/mono/; revision=119611
resources, also clone the underlying stream, since it needs to stay
around for the life of the image (gdi doesn't clone the underlying
stream when cloning images, so when the gc disposes the original, it
will also dispose the stream, which invalidates the clone).
* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
clone under win32
* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
clone under win32
[fixes#438886]
2008-11-21 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=119580
* object.c: when calling ExecuteAssembly in a newly created domain,
the configuration file and application base are already set up.
Bug #446353 take 2 fixed.
svn path=/trunk/mono/; revision=119575
* mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: Several fixes. Now
PPC64 passes basic-long.exe.
2008-11-21 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: Make ppc_is_[u]imm16() work with 64 bit
values.
svn path=/trunk/mono/; revision=119560
* Ping.cs: the time for the arguments of 'ping' is in seconds. Don't
read the output of running the command, since we trust the return
code.
svn path=/trunk/mcs/; revision=119534
* decompose.c: Decompose carry and overflow add on PPC64 like on
other 64 bit archs. Don't decompose sub at all on PPC64.
* mini-ppc64.c, exceptions-ppc64.c, tramp-ppc64.c, cpu-ppc64.md:
Several fixes and new opcodes. Now PPC64 runs (but doesn't pass)
basic-long.exe.
2008-11-20 Mark Probst <[email protected]>
* ppc/ppc-codegen.h: Use ppc_load_reg instead of ppc_ld in
ppc_load_func to fix the 2 bit shift.
svn path=/trunk/mono/; revision=119516
* TextBoxBase.cs: Provide a default implementation for ChangeBackColor.
Having something internal abstract isn't very nice for people who want
to inherit from this class.
svn path=/trunk/mcs/; revision=119502
* ToolStripItem.cs: Don't crash if ImageIndex or ImageKey is set to an
invalid value. Just return null for the Image, and use the ImageList's
ImageSize for calculations.
2008-11-20 Jonathan Pobst <[email protected]>
* ToolStripItemTest.cs: Add test to ensure we don't crash when
ImageIndex refers to a non-existant index.
svn path=/trunk/mcs/; revision=119468
* ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
through DroppedDown so the proper events get called and state gets reset.
[Fixes bug #446805]
svn path=/trunk/mcs/; revision=119450
* docs.make (monoapi.zip): Make slightly more unforgiving, by
using '&&' instead of ';' to sequence commands.
(mono-tools.zip, mono-file-formats.zip): Likewise.
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip):
Likewise.
(convert.exe): Don't depend on Makefile.am or docs.make.
svn path=/trunk/mono/; revision=119413
* ListView.cs: implemented the EditItem property.
Use ConvertEmptyStringToNull in ExtractItemValues.
2008-11-20 Marek Habersack <[email protected]>
* ListViewTest.cs: added tests for several properties.
svn path=/trunk/mcs/; revision=119405
Cecil's BaseAssemblyResolver search list so that assemblies in the
same directory as the assembly we're processing can be found.
Allows mono-tools/gendarme to be built with a Cecil-using mdoc.
svn path=/trunk/mcs/; revision=119380
* ListView.cs: added paremeter checks to AddControlToContainer.
CreateInsertItem must instantiate the template and call raise the
ItemCreated event.
Added parameter checks to FindPlaceholder
2008-11-19 Marek Habersack <[email protected]>
* AssemblyInfo.cs: made System.Web.Extensions_test_net_2_0 a
friend assembly.
2008-11-19 Marek Habersack <[email protected]>
* EventRecorder.cs: class is now serializable.
* ListViewTest.cs: use system.web Mainsoft test framework.
ListViewPoker is now able to record events.
Added wrappers for ListView protected methods to ListViewPoker,
Added two simple test ITemplate classes.
Added tests for initial values.
Added tests for all the methods which can be tested in a simple
way, without using a real asp.net page.
Added test for the Edit functionality.
2008-11-19 Marek Habersack <[email protected]>
* CountryCollection.cs, Country.cs: added
2008-11-19 Marek Habersack <[email protected]>
* ListViewTest.aspx, ListViewSort.aspx, Web.mono.config: added
2008-11-19 Marek Habersack <[email protected]>
* Makefile (NUNIT_RESOURCE_FILES): added
* System.Web.Extensions_test.dll.sources: added the system.web
Mainsoft test suite files.
Added new test files.
svn path=/trunk/mcs/; revision=119375
* docs.make (monoapi.zip): Handle the case where 'monoapi.tree'
exists but 'monoapi.zip' doesn't. IOW, we should rebuild
monoapi.zip with 'rm monoapi.zip; make'.
(mono-tools.zip, mono-file-formats.zip): Likewise.
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip): Likewise.
(monoapi.tree): Don't use $< in an explicit rule.
(mono-tools.tree, mono-file-formats.tree): Likewise.
svn path=/trunk/mono/; revision=119361
* MonoSymbolWriter.cs, MonoSymbolTable.cs: Change always boxed
value type LineNumberEntry to class. It saves 19MB for corlib
compilation.
svn path=/trunk/mcs/; revision=119357
* appdomain.c: write the full path of the assembly to the .ini file
created when "shadow-copying"
Bug #446353 fixed.
svn path=/trunk/mono/; revision=119267
mono-tool{.tree,.zip} files.
* mono-file-formats.config, mono-tools.config: Alter paths to man
pages so that they're valid for building from mono/docs.
* monoapi.make: Rename to docs.make.
svn path=/trunk/mono/; revision=119255
* ControlBuilder.cs: make sure no control implementing the
INonBindingContainer can be returned from BindingContainerType.
svn path=/trunk/mcs/; revision=119233
* mini-x86.c (mono_arch_output_basic_block): Use movsd instead of monvups
in OP_EXTRACT_R8 to avoid possible stack corruption.
svn path=/trunk/mono/; revision=119228
* x86/x86-codegen.h: Fix comment about the version of PCMPGTQ.
* x86/x86-codegen.h: Add movsd constant and x86_sse_alu_sd_membase_reg
macro.
svn path=/trunk/mono/; revision=119227
* HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
throw if the client closes.
* HttpListenerResponse.cs: close the connection for 1.0 clients.
svn path=/trunk/mcs/; revision=119225
* ListViewContainer.cs: added
* ListView.cs:
Align group with empty items if there are no more data items.
Each group is contained within ListViewContainer.
Calculate the number of groups correctly.
2008-11-18 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
./System.Web.UI.WebControls/ListViewTableCell.cs
Added ./System.Web.Query.Dynamic/DynamicClass.cs and
./System.Web.Query.Dynamic/ParseException.cs
Added ./System.Web.UI.WebControls/ListViewContainer.cs
svn path=/trunk/mcs/; revision=119223
In class/System.Data/System.Data:
* XmlConstants.cs (QnUnsignedShort): Rename from QnUsigned short
and fix the value too.
* XmlSchemaWriter.cs (XmlQualifiedName): Update to changes.
In class/System.Data/Test/System.Data:
* DataSetTest.cs (Bug420862): New test.
svn path=/trunk/mcs/; revision=119197
* library.make (TEST_FILES): Notice filenames with ../ in the test
sources file, and handle them in a way suitable for the 'make
dist' handling of such files.
svn path=/trunk/mcs/; revision=119196
* DataGridViewColumnCollection.cs: Make sure we re-index the columns after
the collection is modified.
2008-11-18 Jonathan Pobst <[email protected]>
* DataGridViewColumnCollectionTest.cs: Add test to ensure we re-index
columns after modifying the collection.
svn path=/trunk/mcs/; revision=119164
* aot-compiler.c mini.c mini.h: Add a JIT debugging mode modelled after
a similar mode in Kaffe: When the the MONO_XDEBUG env var is set, debugging
info for JITted code is emitted into a shared library, loadable into gdb.
svn path=/trunk/mono/; revision=119160
* include/private/gc_locks.h (test_and_set): The PPC64 case is
wrong, as it operates on 64 bit values, not on 32 bit ones as the
function requires. The PPC32 case is sufficient.
svn path=/trunk/mono/; revision=119156
* AspTokenizer.cs: if there's a newline between the opening server tag
and any other special character, treat the block as a code-render
block.
Bug #445889 fixed.
svn path=/trunk/mcs/; revision=119126
* System.Web.Extensions.dll.sources: added
./System.Web.UI.WebControls/ListViewTableCell.cs
2008-11-18 Marek Habersack <[email protected]>
* ListView.cs: implemented grouping support. With this ListView is
feature complete.
Refactored grouped/non-grouped rendering common code into separate
methods.
FindPlaceholder now looks for the placeholder recursively.
Implemented forgotten UpdateItem method.
* ListViewTableCell.cs: added
svn path=/trunk/mcs/; revision=119125
* DataConverter.cs: Fix alignment for strings when the
natural-alignment parameter is used '!'.
Disables CLS errors when not compiling with the CLS flag.
Fixes#445867
svn path=/trunk/mcs/; revision=119122
These changes are made under the MIT/X11 license
* mini-ops.h: Added OP_ROUND.
* cpu-x86.md: Added round.
* mini-x86.c: Added support for intrinsicing Math.Round
(double).
* basic-math.cs: Added test_0_round to test rounding.
svn path=/trunk/mono/; revision=119105
* DomainUpDown.cs: Remove string cache and reflection optimizations. They
aren't always correct, and fixing them for every case is not worth the
negligible benefit they provide.
[Fixes bug #445713]
svn path=/trunk/mcs/; revision=119066
* marshal.h : cominterop_ccw_getfreethreadedmarshaler added to return the
free threaded marshaler when QueryInterface is called on a COM callable
wrapper requesting the IMarshal interface.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=119064
* DataGridView.cs: We should never add actual cells to the RowTemplate.
Internally, use RowTemplateFull to give us a new row with cells.
* DataGridViewColumnCollection.cs: Clear Rows when we clear Columns.
* DataGridViewRowCollection.cs: Use RowTemplateFull.
2008-11-17 Jonathan Pobst <[email protected]>
* DataGridViewTest.cs: Add a test showing how RowTemplate works.
svn path=/trunk/mcs/; revision=119060
* XplatUIX11.cs: Forms without borders should be able to change its
size - specially they should be able to be maximized, adding the
respective MotifFunctions.Resize bit when setting window properties as
well as *not* marking the Hwnd as size fixed.
Fixes#444347.
svn path=/trunk/mcs/; revision=119020
* method-to-ir.c (handle_delegate_ctor): Emit the address of the delegate
trampoline as an AOT const of the proper type instead of MONO_PATCH_INFO_ABS.
* mini.c (mono_codegen): Remove the handling of delegate trampolines, they
are not needed any more.
svn path=/trunk/mono/; revision=119013
* Index.cs (empty): New empty array constant.
(Reset): Initialize '_array' to 'empty'.
(RebuildIndex): Don't allocate array if it will be empty.
(FindAllIndexes): Use 'empty' instead of 'new int [0]'.
svn path=/trunk/mcs/; revision=119008
* Index.cs: Remove use of Array and Size properties by taking
advantage of the invariant that _array is never null.
(EnsureArray): Remove.
(Array): Remove.
svn path=/trunk/mcs/; revision=119007
Remove the old JIT code.
* inssel*.brg: Removed.
* ssa.c abcremoval.c aliasing.c: Removed.
* ssa2.c: Renamed to ssa.c.
* abcremoval2.c: Renamed to abcremoval.c.
* *.c: Removed all !cfg->new_ir code.
* mini-<ARCH>.c: Removed mono_arch_call_opcode (),
mono_arch_emit_this_vret_args (), and mono_arch_get_inst_for_method ().
* mini.c: Removed the old mono_method_to_ir () and all the code used by it.
svn path=/trunk/mono/; revision=118965
* Mono.Documentation/mdoc.cs: Add dump-tree command which can be used
to dump the contents of assemble-generated .tree files.
* mdoc.exe.sources: Add Mono.Documentation/dump.cs to the build.
svn path=/trunk/mcs/; revision=118963
Reflection->Cecil migration. Changes include:
- Alphabetical ordering of custom attributes (these used to be in
Reflection order, and Cecil uses a different ordering, so just
sort them now).
- Closer documentation mapping to source code (e.g. `class Foo :
ICollection<Bar>, IEnumerable<Bar>` now adds IEnumerable<Bar> as
an interface).
- Some method have been removed (presumably because the source was
altered since the last time `make doc-update` was run).
svn path=/trunk/mcs/; revision=118950
have `abstract' on them.
* Test/DocTest-v1.cs: Add a property to an interface to check above.
* Test/en.expected.importslashdoc/Mono.DocTest/Widget+IMenuItem.xml,
Test/en.expected.since/Mono.DocTest/Widget+IMenuItem.xml,
Test/en.expected/Mono.DocTest/Widget+IMenuItem.xml,
Test/html.expected/Mono.DocTest/Widget+IMenuItem.html,
Test/msxdoc-expected.importslashdoc.xml: Flush.
svn path=/trunk/mcs/; revision=118949
`make doc-update` in corlib:
- Ensure that custom attributes are sorted (they weren't before,
resulting in spurious differences between Reflection & Cecil
output).
- CecilExtensions.GetMethod() should return null if the method can't
be found.
- DocUtils.IsDelegate() should ensure that the delegate type isn't
abstract (otherwise it dies on System.MulticastDelegate, which is
an abstract type lacking an "Invoke" method).
- Properly count generic argument counts for nested types (fixes IOE
from S.C.G.Dictionary`2.KeyCollection.Enumerator).
* Test/DocTest-v1.cs: Add doubly-nested class under a generic class to
simulate S.C.G.Dictionary`2.KeyCollection.Enumerator behavior.
* Test/en.expected.importslashdoc/index.xml,
Test/en.expected.importslashdoc/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
Test/en.expected.importslashdoc/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
Test/en.expected.since/index.xml,
Test/en.expected.since/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
Test/en.expected.since/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
Test/en.expected/index.xml,
Test/en.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.xml,
Test/en.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection.xml,
Test/html.expected/index.html,
Test/html.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection+Enumerator.html,
Test/html.expected/Mono.DocTest.Generic/GenericBase`1+NestedCollection.html,
Test/html.expected/Mono.DocTest.Generic/index.html,
Test/msxdoc-expected.importslashdoc.xml: Flush (new types/changes
from DocTest-v1.cs changes).
svn path=/trunk/mcs/; revision=118948
* aot-compiler.c aot-runtime.c: Emit most of the non-table data in a structure
to simplify the code and cut back on the number of global symbols in the AOT
file.
svn path=/trunk/mono/; revision=118947
* unwind.h: New file, contains definitions for stack unwinding.
* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
to cfg->unwind_ops.
* aot-compiler.c: Generalize the emitting of unwind information to use the
information in cfg->unwind_ops.
* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.
svn path=/trunk/mono/; revision=118943
* unwind.h: New file, contains definitions for stack unwinding.
* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
to cfg->unwind_ops.
* aot-compiler.c: Generalize the emitting of unwind information to use the
information in cfg->unwind_ops.
* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.
svn path=/trunk/mono/; revision=118942
* unwind.h: New file, contains definitions for stack unwinding.
* mini.c (mono_emit_unwind_op): New helper function to append an unwind op
to cfg->unwind_ops.
* aot-compiler.c: Generalize the emitting of unwind information to use the
information in cfg->unwind_ops.
* mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.
svn path=/trunk/mono/; revision=118941
* aot-compiler.c: Emit dwarf unwind information so gdb can unwind through
AOT method frames. Enable writing symbols for methods by default.
svn path=/trunk/mono/; revision=118936
* System.Web.Extensions.dll.sources: added
System.Web.UI.WebControls/DataPagerCommandEventArgs.cs
2008-11-15 Marek Habersack <[email protected]>
* ListViewInsertEventArgs.cs: implemented the Values property.
* ListView.cs: CreateChildControls uses the Items collection to
store the created items.
InsertNewItem triggers page validation if necessary.
Part of InsertNewItem code refactored to DoInsert.
Implemented handling of the Insert and Select commands.
* TemplatePagerField.cs: implemented all the code.
* DataPager.cs: CreatePagerFields now adds the new pager field
control before creating data pagers in it and before binding to
data. This avoids situation in which the field is parentless.
FindPageableItemContainer now properly finds the container if it's
placed directly in the Page.
{Load,Save}ViewState don't use a Pair anymore, object array is
used for compatibility with MS.NET
* NumericPagerField.cs, NextPreviousPagerField.cs,
DataPagerFieldCommandEventArgs.cs: minor refactoring
* ListViewSelectEventArgs.cs: implemented all the code.
* ListViewInsertedEventArgs.cs: Values allocates the dictionary on
demand now.
Initialize all the properties in constructor
* DataPagerCommandEventArgs.cs: added
* DataPagerField.cs: implemented IsTrackingViewState
* DataPagerFieldItem.cs: implements the INonBindingContainer
interface.
svn path=/trunk/mcs/; revision=118918
* ContentPlaceHolder.cs, Content.cs, FormViewPagerRow.cs,
ChangePassword.cs, DetailsViewPagerRow.cs: implements
INonBindingContainer interface.
* Wizard.cs: implement INonBindingContainer interface for several
private/internal classes.
2008-11-15 Marek Habersack <[email protected]>
* INonBindingContainer.cs: added
* Control.cs: BindingContainer now checks if a control implements
INonBindingContainer interface in addition to the
BINDING_CONTAINER mask check.
* UserControl.cs: implements INonBindingContainer
* ControlBuilder.cs: use the new INonBindingContainer interface to
determine the binding container type in the BindingContainerType
property. If TemplateBuilder's ContainerType implements that
interface, the NamingContainer is queried for the binding
container type. If ContainerType is null, we return our own
ControlType (if we're TemplateBuilder)
2008-11-15 Marek Habersack <[email protected]>
* System.Web.dll.sources: added System.Web.UI/INonBindingContainer.cs
svn path=/trunk/mcs/; revision=118917
* simd-intrinsics.c (simd_intrinsic_emit_getter): Generalize this code
and make it work with vectors of element sizes 1, 2 and 4.
* simd-intrinsics.c: Enable getter for all vectors with element size
1, 2 or 4.
* simd-methods.h: Add the names of other getters.
* mini-ops.h: Added OP_EXTRACT_I2/U2/I1/U1.
* cpu-x86.md: Same.
* mini-x86.c: Same.
svn path=/trunk/mono/; revision=118899
list of assembly references for mdoc.exe.
* Mono.Documentation/monodocer.cs: Migrate from System.Reflection to
Mono.Cecil. This was done for two reasons:
1. mscorlib.dll: Reflection can load only one mscorlib.dll into an
AppDomain, which must be the same mscorlib.dll as the runtime
version. Thus, in order to run monodocer on mscorlib.dll v1.1,
monodocer must be a .NET 1.1 application, and to document
mscorlib.dll v2.0, monodocer must be a .net 2.0 app.
1.a I don't think it's feasable to drop support for
mscorlib.dll v1.1.
1.b This has been previously handled (so far) with conditional
compilation, but the conditional compilation is painful to
maintain, and prevents use of LINQ in ongoing development.
1.c .NET 4.0 will be coming out "soon" (within 2 years?), and it's
possible that mono will maintain the same limitation, thus
necessitating having *three* different monodocer programs to
document mscorlib.dll for v1.1, v2.0, and v4.0. Yech.
2. Future directions: It would be nice to parse method/property IL
bodies to determine which exceptions can be generated, thus
generating <exception cref="..."/> stubs. Even with empty stubs,
I belive this would be useful within e.g. MonoDevelop to know
which exceptions a method is able to generate.
This cannot be done (at present) with System.Reflection, and
would require Mono.Cecil.
Downsides: mdoc now depends upon Mono.Cecil, which is API-unstable.
This will likely also complicate execution under .NET, as Mono.Cecil
would need to be XCOPY deployed into mdoc.exe's directory.
* Test/DocTest-v1.cs: Add additional tests for Custom Attribute
generation.
* Test/en.expected.importslashdoc/Mono.DocTest.Generic/Func`2.xml,
Test/en.expected.importslashdoc/Mono.DocTest.Generic/MyList`2.xml,
Test/en.expected.importslashdoc/Mono.DocTest/DocAttribute.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Widget+Direction.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Widget.xml,
Test/en.expected.since/Mono.DocTest.Generic/Func`2.xml,
Test/en.expected.since/Mono.DocTest.Generic/MyList`2.xml,
Test/en.expected.since/Mono.DocTest/DocAttribute.xml,
Test/en.expected.since/Mono.DocTest/Widget+Direction.xml,
Test/en.expected.since/Mono.DocTest/Widget.xml,
Test/en.expected/Mono.DocTest.Generic/Func`2.xml,
Test/en.expected/Mono.DocTest.Generic/MyList`2.xml,
Test/en.expected/Mono.DocTest/DocAttribute.xml,
Test/en.expected/Mono.DocTest/Widget+Direction.xml,
Test/en.expected/Mono.DocTest/Widget.xml,
Test/html.expected/Mono.DocTest.Generic/Func`2.html,
Test/html.expected/Mono.DocTest.Generic/MyList`2.html,
Test/html.expected/Mono.DocTest/DocAttribute.html,
Test/html.expected/Mono.DocTest/Widget+Direction.html,
Test/html.expected/Mono.DocTest/Widget.html,
Test/msxdoc-expected.importslashdoc.xml: Flush -- updated output due
to new custom attributes, better implemented interface detection --
care of the Mono.Cecil migration -- etc.
svn path=/trunk/mcs/; revision=118892
* reflection.c (mono_type_get_object): Special case the very common
void type.
* domain-internals.h (struct _MonoDomain): Add 'typeof_void' field to
hold typeof(void).
svn path=/trunk/mono/; revision=118879
* Makefile.am (ENABLE_DTRACE): Re-add dtrace -h flag.
Fixes#445074.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=118867
* aot-compiler.c: Add functionality to emit local symbols to the elf writer.
Use it to emit local symbols for all methods so AOTed methods show up with
their full name in gdb/valgrind output.
svn path=/trunk/mono/; revision=118845
* mini-trampolines.c (mono_magic_trampoline): Move the patching of plt
entries out of the if (!generic_shared...) code so it is always done.
(mono_class_init_trampoline): Do the patching when running under valgrind
too, newer versions of valgrind have no problems with it.
svn path=/trunk/mono/; revision=118843
* Dictionary.cs (ICollection.CopyTo): fix the different possible
copying cases depending on the actual type of destination array,
be it an array of KeyValuePair, DictionaryEntry, or object.
Fixes#444778.
svn path=/trunk/mcs/; revision=118841
* Dictionary.cs: fix ICollection<KeyValuePair<T>>.Remove and .Contains
to not only check if the key exists but if the associated value is the
good one as well. Fixes#444768.
svn path=/trunk/mcs/; revision=118838
* configure.in: Add preprocessor defines for ppc(64).
Suggested by Paolo and Mark.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=118836
* DefaultWsdlHelpGenerator.aspx: use javascript instead of
HttpWebRequest to avoid a deadlock if the web service uses Session.
Bug #444343 fixed.
svn path=/trunk/mono/; revision=118833
* TemplateControlCompiler.cs: If BindingDirection of the parent
template builder is OneWay in
RegisterBindingInfo, do not throw an exception but simply do not
register the binding.
svn path=/trunk/mcs/; revision=118813
* TemplateControlCompiler.cs: treat Eval and Bind expressions as
verbatim code. The only difference between the two is that in the
latter case Bind is replaced with Eval in the output code. Fixes
bug #444725
2008-11-14 Marek Habersack <[email protected]>
* DataBinder.cs: if Eval doesn't find the indicated property, try
to find an indexer property on the object and use the expression
value as its parameter. Fixes#444725
svn path=/trunk/mcs/; revision=118799
* FtpDataStream.cs: use the socket for reading until the end of a
stream that wasn't read entirely. Remove unused ManualResetEvent.
* FtpWebRequest.cs: set the file_name when downloading. Update the
response status after every SendCommand. Send a "OPTS utf8 on" as MS
does (the control cnc reader should do something with UTF8)
svn path=/trunk/mcs/; revision=118783
* mini-ppc.c, cpu-ppc.md: Reserve space for the parameter area in
filters.
2008-11-13 Mark Probst <[email protected]>
* filter-stack.cs: Test whether method calls with large arguments
work in filter clauses.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=118728
* process.h : Adding method declaration for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* process.c : Adding implementation for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* wait.h : Adding method declaration for WaitForInputIdle.
* wait.c : Adding implementation for WaitForInputIdle.
* Process.cs : Adding an implementation for WaitForInputIdle
to call the an internal call. The internal call is only
implemented properly on Windows.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=118724
* process.h : Adding method declaration for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* process.c : Adding implementation for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* wait.h : Adding method declaration for WaitForInputIdle.
* wait.c : Adding implementation for WaitForInputIdle.
* Process.cs : Adding an implementation for WaitForInputIdle
to call the an internal call. The internal call is only
implemented properly on Windows.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=118724
* simd-intrinsics.c (simd_intrinsic_emit_ctor): If the target is already a pointer
store the elemens directly instead of using and intermediate.
svn path=/trunk/mono/; revision=118715
//meta[@http-equiv='Content-Type']/@content attribute value (changed
due to yesterday's defaulttemplate.xsl fix).
svn path=/trunk/mcs/; revision=118712
* Socket.cs: mark the socket as not connected when there is a pending
error or exception about to be thrown.
Bug #443346 fixed.
svn path=/trunk/mcs/; revision=118696
* aot-compiler.c (compile_method): Don't skip synchronized methods.
(encode_method_ref): Flag synchronized methods so they won't go through
the AOT trampoline.
svn path=/trunk/mono/; revision=118692
* mini-ops.h: Remove OP_PUSH_R4 and OP_LOADX_STACK.
* cpu-x86.md: Same.
* mini-x86.c: Same.
* mini.h (struct MonoCompile): Add simd_ctor_var to be used as storage
for simd ctor values.
* simd-intrinsics.c (simd_intrinsic_emit_ctor): Use simd_ctor_var for the constructor
instead of directly pushing the values on stack. This saves about 15 bytes of generated code.
svn path=/trunk/mono/; revision=118659
* library.make: AOT the library after compilation if the AOT_IN_PROFILES
variable is defined and it contains the current profile.
svn path=/trunk/mcs/; revision=118624
* method-to-ir.c (mono_method_to_ir2): Revert the last change to the
box+brtrue optimization since it causes test failures on x86.
svn path=/trunk/mono/; revision=118619
Mono.Mozilla/interfaces/nsIURIContentListener.cs,
Mono.Mozilla/DOM/ContentListener.cs: New class added to listen for
load requests and handle content types
* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: New
NavigationRequested event to catch load requests
2008-11-12 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=118617
* Vector*.cs: Renamed ShiftRightLogic to LogicalRightShift and
ShiftRightArithmetic to ArithmeticRightShift.
2008-11-12 Rodrigo Kumpera <[email protected]>
* Documentation/en/Mono.Simd/Vector*.xml: Renamed ShiftRightLogic
to LogicalRightShift and ShiftRightArithmetic to ArithmeticRightShift.
svn path=/trunk/mcs/; revision=118608
* Vector*.cs: Add indexer to all Vector types to get/set an individual component's value.
* Documentation/en/Mono.Simd/Vector*.xml: Added Member entry for indexer (Component).
svn path=/trunk/mcs/; revision=118603
* Mono.Cecil.Signatures/SignatureReader.cs: properly construct
TypeReferences when reading them from custom attributes data.
svn path=/trunk/mcs/; revision=118599
Fix for bug 439943.
* SettingValueElement.cs : do not write value element twice.
* CustomizableFileSettingsProvider.cs : create "value" element
instead of a document fragment so that the output from
SettingValueElement could become consistent.
Null binary value caused crash. Set appropriate
SerializedValue for each serialization type.
* SettingsPropertyValue.cs : output only when the value is
non-null.
svn path=/trunk/mcs/; revision=118565
* Module.cs (ResolveMethod): Use internal method
GetMethodFromHandleNoGenericCheck to avoid the generic type
limitation of GetMethodFromHandle.
Fixes#443763.
svn path=/trunk/mcs/; revision=118542
* regalloc2.c (INS_POS_INTERVAL): Decrease this to 8 to avoid overflows.
(update_liveness): Avoid holes in the liveness ranges of hregs if they are
both the source an destination of an instruction.
svn path=/trunk/mono/; revision=118532
* aot-compiler.c, aliasing.c, abcremoval.c: portability changes.
* mini.c mini.h, aot-runtime.c: the aot segfault-handling code is not
safe to execute in a signal handler and the kernel provides better
the info in /proc/self/smaps. Avoid the assert on sigaction during
cleanup.
svn path=/trunk/mono/; revision=118526
* DataGridViewRowCollection.cs: Guard against the user deleting the
NewRow. Add an internal delete so we can still delete it.
* DataGridView.cs: Use the new internal delete when deleting the NewRow.
[Fixes bug #442181]
2008-11-01 Jonathan Pobst <[email protected]>
* DataGridViewRowCollectionTest.cs: Add some tests for bug #442181.
svn path=/trunk/mcs/; revision=118509
* Mono.Cecil.Mdb/MdbFactory.cs: Wrap any MonoSymbolFileException
into a FormatException since callers can't catch the former (at least
not without catching Exception).
svn path=/trunk/mcs/; revision=118500
* */Makefile.am: Dont compile with --security as this fails under
Win32 and this is *not* what we want to test here anyway
svn path=/trunk/mono/; revision=118499
* method-to-ir.c (mono_method_to_ir2): In the box+brtrue optimization, only
do the bblock linking hack if it is actually needed.
svn path=/trunk/mono/; revision=118490
* branch-opts.c (mono_remove_critical_edges): Link up newly added
bblocks.
* mini.c (mini_method_compile): Compute unreachable bblocks properly even
for catch clauses.
(mini_method_compile): Set the starting value of next_vreg to
MAX_IREGS + MAX_FREGS when using globalra.
* method-to-ir.c (mono_method_to_ir2): Mark bblocks starting
filter clauses with BB_EXCEPTION_HANDLER.
svn path=/trunk/mono/; revision=118486
A fix for bug #435747
* assign.cs, expression.cs: Cleanup New assignment to emit correcly
compound value types assignment. Few micro optimizations added.
svn path=/trunk/mcs/; revision=118481
Test/System.Windows.Forms/FormTest.cs,
Test/System.Windows.Forms/FormEventTest.cs: Enable tests that
depend on synchronous WM_ACTIVATE messages and are now working with
the latest message fixes
2008-11-11 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=118455
* ConstructorOnTypeBuilderInst.cs (MetadataToken): Make this property
work under compiler context. Same hack as the one applied to
MethodOnTypeBuilderInst.
Fixes#442610.
svn path=/trunk/mcs/; revision=118450
Patch by Michael Barker:
a patch that adds support for passing all of the Message
properties via RabbitMQ (as per version 1.1 of System.Messaging).
This includes Recoverable (supporting persistence) and Priority (which
would support priority based delivery if RabbitMQ supported it) as
well as state and argument checking.
svn path=/branches/messaging-2008/mcs/; revision=117134
AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do $srcdir/scripts/patch-quiet.sh $i; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
Read-only data is data which is not modified after creation, like the
actual binary metadata in the metadata tables.
There are three kinds of threads with regards to read-only data:
- readers
- the creator of the data
- the destroyer of the data
Most threads are readers.
- synchronization between readers is not neccesary
- synchronization between the writers is done using locks.
- synchronization between the readers and the creator is done by not exposing
the data to readers before it is fully constructed.
- synchronization between the readers and the destroyer: TBD.
1.2 Deadlock prevention plan
----------------------------
Hold locks for the shortest time possible. Avoid calling functions inside
locks which might obtain global locks (i.e. locks known outside this module).
1.3 Locks
----------
1.3.1 Simple locks
------------------
There are a lot of global data structures which can be protected by a 'simple' lock. Simple means:
- the lock protects only this data structure or it only protects the data structures in a given C module.
An example would be the appdomains list in domain.c
- the lock is only held for a short amount of time, and no other lock is acquired inside this simple lock. Thus there is
no possibility of deadlock.
1.3.2 The class loader lock
---------------------------
This locks is held by the class loading routines in class.c and loader.c. It
protects the various caches inside MonoImage which are used by these modules.
1.3.3 The domain lock
---------------------
Each appdomain has a lock which protects the per-domain data structures.
1.3.4 The locking hierarchy
---------------------------
It is useful to model locks by a locking hierarchy, which is a relation between locks, which is reflexive, transitive,
and antisymmetric, in other words, a lattice. If a thread wants to acquire a lock B, while already holding A, it can only
do it if A < B. If all threads work this way, then no deadlocks can occur.
Our locking hierarchy so far looks like this:
<DOMAIN LOCK>
\
<CLASS LOADER LOCK>
\ \
<SIMPLE LOCK 1> <SIMPLE LOCK 2>
1.4 Notes
----------
Some common scenarios:
- if a function needs to access a data structure, then it should lock it itself, and do not count on its caller locking it.
So for example, the image->class_cache hash table would be locked by mono_class_get().
- there are lots of places where a runtime data structure is created and stored in a cache. In these places, care must be
taken to avoid multiple threads creating the same runtime structure, for example, two threads might call mono_class_get ()
with the same class name. There are two choices here:
<enter mutex>
<check that item is created>
if (created) {
<leave mutex>
return item
}
<create item>
<store it in cache>
<leave mutex>
This is the easiest solution, but it requires holding the lock for the whole time which might create a scalability problem, and could also lead to deadlock.
<enter mutex>
<check that item is created>
<leave mutex>
if (created) {
return item
}
<create item>
<enter mutex>
<check that item is created>
if (created) {
/* Another thread already created and stored the same item */
<free our item>
<leave mutex>
return orig item
}
else {
<store item in cache>
<leave mutex>
return item
}
This solution does not present scalability problems, but the created item might be hard to destroy (like a MonoClass).
- lazy initialization of hashtables etc. is not thread safe
Loaded 100 of 3733 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.