* Mono.Tuner/InjectSecurityAttributes.cs: fix issues
with non unique MethodReference.ToString for generic method defs.
svn path=/trunk/mcs/; revision=134200
* ListBox.cs: Handle the key down event in WndProc instead of doing it
in an event handler, as we need to avoid any operation in case
the user has handled it in its own OnKeyDown handler, and this can't
be achieved since our handler would be the first one always.
* FontDialog.cs: Update the calls since our method handling key down
has been renamed.
Fixes#503469.
svn path=/trunk/mcs/; revision=134198
* MessageFault.cs : Reason is mandatory. raise XmlException, and
CommunicationException in each CreateFault().
* soap-fault-incomplete.xml : new test file.
* MessageFaultTest.cs : new test.
* System.ServiceModel.dll_test.sources: added MessageFaultTest.cs.
svn path=/trunk/mcs/; revision=134197
* XPathNavigatorReader.cs : LookupNamespace() in XmlReader from
ReadSubtree() should work correctly on text nodes.
* XPathNavigatorCommonTests.cs : test that LookupNamespace() in
XmlReader from ReadSubtree() works correctly on text nodes.
svn path=/trunk/mcs/; revision=134196
* TcpDuplexSessionChannel.cs : on listener side, get TcpClient at
Open(). Some (but not all yet) continuous communication works now.
Use ProtocolException. Remove dummy binary session string.
svn path=/trunk/mcs/; revision=134185
* Application.cs: We should dismiss the active ToolStrip when we
receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
keyboard short cut can be properly processed by another menu item.
Fixes part of #503663.
svn path=/trunk/mcs/; revision=134183
* gc.c: MachO/Darwin supports and uses semaphores fine for this
use-case and is significantly more performant than the wapi layer.
svn path=/trunk/mono/; revision=134180
* HtmlForm.cs: if application isn't running on /, make sure we
generate the correct relative path for the action form attribute.
svn path=/trunk/mcs/; revision=134176
* Socket_2_1.cs: Add ConnectAsync support for NET_2_1 which will
ensure the EndPoint has a valid policy before connecting.
* SocketAsyncEventArgs.cs: Add support for IList<ArraySegment<byte>>
when sending. Add ConnectSocket for NET_2_1
svn path=/trunk/mcs/; revision=134171
disable QueryCache.GetFromSelectCache(), as the cache keeps breaking
for currently undiagnosed reasons. With this disabled, NerdDinner
seems to work properly.
svn path=/trunk/mcs/; revision=134143
* mini-mips.c mini-mips.h exceptions-mips.c: Transition the mips backend
to use mono_arch_throw_corlib_exception.
svn path=/trunk/mono/; revision=134141
* DnsEndPoint_2_1.cs: Add method to return an IPEndPoint from a
DnsEndPoint that match the requested AddressFamily
svn path=/trunk/mcs/; revision=134140
* System.ComponentModel/ListChangedEventArgs.cs: Fix .NET compatibility
problems (discovered from trying to run the System.Data.Linq
unit tests).
* Test/System.ComponentModel/ListChangedEventArgsTest.cs: Added; tests
for ListChangedEventArgs.
svn path=/trunk/mcs/; revision=134138
* Makefile.am (test-coreclr-security): Use the net_2_1_raw profile since
the net_2_1 profile is no longer generated.
svn path=/trunk/mono/; revision=134129
* aot-runtime.c (decode_patch): Allocate the data for R4/R8 from the
domain mempool.
* mini.c (mono_patch_info_dup_mp): Copy the table of switch targets too.
svn path=/trunk/mono/; revision=134120
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Moved
sending/receiving SizedMessageRecord parts to manager class.
Handle writer session, though it is likely broken at dictionary
writer part (no string is written so far).
* BinaryMessageEncoder.cs : add writer session and rename reader
session.
svn path=/trunk/mcs/; revision=134117
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Via uri
is mandatory in initiator preamble packet. Handle Fault reply in
initiator preamble.
svn path=/trunk/mcs/; revision=134111
* TcpDuplexSessionChannel.cs : ongoing refactoring to collect [MC-NMF]
based communication under TcpBinaryFrameManager class.
svn path=/trunk/mcs/; revision=134107
* SerializationMap.cs: interface collection failed to serialize as
it was calling inappropriate GetInterfaceMap().
* XmlObjectSerializerTest.cs : added serialization test for
interface collection.
svn path=/trunk/mcs/; revision=134100
* Test/test-config-file: Revert the prior change, as this breaks 1.0
profile testing.
* Test/test-config-file-net-2.0: Added; config file to use when testing
under the .NET 2.0+ profile, for #502944.
svn path=/trunk/mcs/; revision=134099
* HandlerFactoryConfiguration.cs: if we're matching a default
handler, disallow caching.
2009-05-14 Marek Habersack <[email protected]>
* HttpHandlersSection.cs: if we're matching a default handler,
disallow caching.
2009-05-14 Marek Habersack <[email protected]>
* HttpApplication.cs: LocateHandler won't cache if a default
handler was returned.
svn path=/trunk/mcs/; revision=134097
* aot-compiler.c: Emit a local symbol prefixed with the assembly name
for the got to make debugging easier and to avoid confusing it with the
system got.
svn path=/trunk/mono/; revision=134089
* aot-compiler.c (emit_method_code): Emit a C style symbol for each
method so a breakpoint can be set when using gdb.
svn path=/trunk/mono/; revision=134086
** Fixes rest of #497715 - Patch by Jonas Larsson <[email protected]>
* TdsMetaParameter.cs: Add support for XML type. For now, handle
XML type as just NVarchar.
svn path=/trunk/mcs/; revision=134079
2009-05-13 Mark Probst <[email protected]>
* sgen.c: Speed up weak links and finalizers by grouping them by
generation.
svn path=/trunk/mono/; revision=134053
* ReplyHandler.cs, InputOrReplyRequestProcessor.cs,
MessageProcessingContext.cs : reply processing is also needed by
non-request channels (i.e. duplex). Current code basis lacked
such possibility. Quick fix by adding duplex support in
ReplyHandler so far.
svn path=/trunk/mcs/; revision=134046
* ChannelDispatcher.cs, SecurityHandler.cs,
InputOrReplyRequestProcessor.cs, MessageProcessingContext.cs :
remove default communication timeouts from several types. They
bring bogus NRE. Instead, fill timeouts in ChannelDispatcher and
use it when required (it was actually *only* request processor).
* ChannelDispatcherTest.cs : make sure ctor args are nullable.
svn path=/trunk/mcs/; revision=134044
2009-05-13 Mark Probst <[email protected]>
* marshal.c (delegate_hash_table_add): When overwriting an entry,
free the old GCHandle (only applies to SGen).
svn path=/trunk/mono/; revision=134040
* UrlPattern.cs: The
value comparison is done case-insensitively when the dictionary
values are strings. Fixes bug #502555
svn path=/trunk/mcs/; revision=133997
* mini.c (mini_init): Install mono_aot_get_imt_thunk as the IMT thunk
builder when using full aot.
* mini-amd64.c (mono_arch_build_imt_thunk): Don't handle the full-aot case
here, it is already handled.
* mini-arm.c (mono_arch_emit_imt_argument): Pass the dynamic imt arg
correctly for IMT.
* aot-compiler.c (arch_emit_imt_thunk): Implement this for ARM.
* mini-arm.h: Enable IMT for full aot.
svn path=/trunk/mono/; revision=133992
* UrlPattern.cs: TrySubstitute performs substitution trimming. If
a segment would be set to a default value and all of its following
segments as well, it will be omitted from the generated URL.
svn path=/trunk/mcs/; revision=133990
2009-05-12 Mark Probst <[email protected]>
* monitor.c, monitor.h (mono_monitor_get_object_monitor_weak_link):
New function for returning a monitor's weak link if it has one.
* sgen-gc.c: Remove an object's monitor's weak link (if it has
one) when clearing a domain. These can still be around because
the object might not have been collected.
svn path=/trunk/mono/; revision=133989
TraceSourceInfo(string, SourceLevels, TraceImplSettings) constructor.
* System.Diagnostics/TraceSourceInfo.cs: Add a new constructor,
TraceSourceInfo(string, SourceLevels, TraceImplSettings), which adds
the DefaultTraceListener w/o depending upon (the possibly still
initializing) TraceImpl members. Fixes#502944.
* Test/test-config-file: Add a /configuration/system.diagnostics/source
section to elicit the buggy behavior found in #502944.
svn path=/trunk/mcs/; revision=133981
* mini.c (mini_init): Don't disable IMT for full aot if the
architecture supports it.
* mini.h (MonoAotTrampoline): New enum containing the different types
of 'numerous' trampolines.
(MONO_AOT_FILE_VERSION): Bump this.
* aot-compiler.c aot-runtime.c: Unify the handling of specific and
static rgctx trampolines. Add support for full-aot IMT thunks.
* mini-amd64.h: Enable IMT for full aot.
svn path=/trunk/mono/; revision=133971
* ComboBox.cs: If auto complete is being used, it is needed to update
the actual value of the combo box, doing it immediately if the user
presses Enter, or doing it when our combo box loses focus. Finally,
when handling Enter and Escape keys for the combobox, don't try to
hide the listbox if it is not visible in the first place.
Fixes part of #489339.
2009-05-11 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=133969
* TestDriver.cs: Add a CategoryAttribute class and an --exclude option
to exclude tests belonging to a category.
* generics.cs: Mark some tests with a !FULLAOT category.
* Makefile.am (fullaotcheck): Run tests with --exclude !FULLAOT. Include
generics tests.
svn path=/trunk/mono/; revision=133968
* WebHeaderCollection_2_1.cs: Headers are case insensitive but we
must keep them in their original form since AllKeys property will
report them that way and user code (like DRT#288) can depends on
this behavior.
svn path=/trunk/mcs/; revision=133966
* template_main.c: Some small improvements on Windows: No need to
include <shellapi.h>, <windows.h> does it already. Don't use the
argc value as passed to main(), instead just let
CommandLineToArgvW() overwrite it. Free the buffer returned by
CommandLineToArgvW().
svn path=/trunk/mcs/; revision=133962
* gc.c (mono_gc_init): Set gc_thread on creation. This avoids the
prevous wait that resulted in a deadlock on Windows when initializing
the runtime form DllMain. Also results in improved startup time.
(finalizer_thread): Get rid of thread_started_event.
* threads.c, threads-types.h (mono_thread_create_internal): Return the
resulting MonoThread.
Contributed under MIT/X11 license.
Also fixed ChangeLog encoding.
svn path=/trunk/mono/; revision=133959
* assembly-with-methods.cs: Mark the class with the
P/Invoke as abstract.
* cli-tables-tests.md: Add tests for implmap.
svn path=/trunk/mono/; revision=133947
* ToolStripDropDownTest.cs: New test to assure the Height atfer
calculating the layout depends on ToolStripItem.GetPreferredHeight.
svn path=/trunk/mcs/; revision=133943
* ToolStripDropDownMenu.cs: Use the height returned by
ToolStripItem.GetPreferredHeight to calculate our own height.
svn path=/trunk/mcs/; revision=133941
* security-core-clr.c: Delegate checks are done at creation time,
not a invocation time. Fix exception for Telerik Silverlight demo
svn path=/trunk/mono/; revision=133938
cases and never when the "this" property is used. Call ToLower
in SetHeader too in order to avoid typos.
2009-05-11 Sebastien Pouliot <[email protected]>
svn path=/trunk/mcs/; revision=133930
2009-05-11 Mark Probst <[email protected]>
* sgen-gc.c (need_remove_object_for_domain): Remove the special
case for the Thread class.
* threads.c: Do clean-up of abort exception/state in
thread_cleanup() instead of Thread.free_internal(). Also clean up
current_appcontext. The reason we have to do that is because
those references might point into another domain and if that
domain is unloaded before the thread is finalized, they point to
invalid data.
svn path=/trunk/mono/; revision=133925
* HttpWebRequest_2_1.cs: Fix Accept and ContentType properties
to use, with special care, the Headers property
* WebHeaderCollection_2_1.cs (SetHeader): Add or remove header.
svn path=/trunk/mcs/; revision=133916
* template_main.c: Enable passing options to the bundled Mono
interpreter through a MONO_BUNDLED_OPTIONS environment
variable. Requested in bug #495858.
Enable non-ASCII (arbitraty Unicode in fact) command-line
parameters to a mkbundled executable on Windows. Use
GetCommandLineW(), CommandLineToArgvW(), and then
g_utf16_to_utf8(). From bug #446172.
svn path=/trunk/mcs/; revision=133915
* XmlSchemaComplexType.cs : make complex content type work like .NET
does. Patch by Jonas Larsson. Fixed bug #501814.
* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
Larsson.
svn path=/trunk/mcs/; revision=133908
* XmlSchemaComplexType.cs : do not forget to clear attributes
before Compile(). Patch by Jonas Larsson. Fixed bug #501763.
* XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson.
svn path=/trunk/mcs/; revision=133905
* UrlPattern.cs: TrySubstitute treats defaults differently
now. They are not consulted when checking if the passed values
match the pattern, but only when substituting the values. Fixes
bug #502555
2009-05-11 Marek Habersack <[email protected]>
* RouteCollectionTest.cs: added test for bug #502555
svn path=/trunk/mcs/; revision=133904
* XmlAtomicValue.cs : support more type conversion. fixed bug #501666.
* XmlSchemaValidatorTests.cs : added test for bug #501666.
svn path=/trunk/mcs/; revision=133903
* aot-compiler.c (emit_and_reloc_code): Move the implementation of
MONO_PATCH_INFO_GOT_OFFSET to a separate arch-specific function.
(emit_plt): Fix a warning.
svn path=/trunk/mono/; revision=133895
* TreeNode.cs: When setting Checked, do a double null check, since the
current node can still get a null parent handling
TreeView.OnAfterCheck.
Fixes#502567.
svn path=/trunk/mcs/; revision=133868
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ExpressionInListControl.aspx
2009-05-10 Marek Habersack <[email protected]>
* AspGenerator.cs: keep processing the tag if it is not a server
one and contains expressions and no code render blocks.
2009-05-10 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added a test for expressions in
list control items.
svn path=/trunk/mcs/; revision=133861
* LinkedListTest.cs: Added NotWorking test for #481621,
converted from example code by Andy Hume <[email protected]>.
svn path=/trunk/mcs/; revision=133858
* aot-compiler.c aot-runtime.c: Fix the build by moving is_shared_got_patch
back into aot-compiler.c to a place where the other functions shared by
the runtime and aot compiler are.
svn path=/trunk/mono/; revision=133856
* aot-compiler.c aot-runtime.c: Emit the got addr using a separate symbol,
as done previously, instead of in MonoAotFileInfo, since pointers might have
alignment requirements.
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=133855
* HttpWebRequest_2_1.cs: Move Headers property logic here (as
shown by adding more unit tests)
* WebClient_2_1.cs: Add comment that Headers are not validated
there, but later.
* WebHeaderCollection_2_1.cs: Add a SetHeader method that can
work around the normal validations that the "this" property
needs to do.
svn path=/trunk/mcs/; revision=133852
* aot-runtime.c (mono_aot_is_shared_got_patch): Move this routine
that is used at runtime from the aot-compiler.c, this makes it
work on setups that remove the AOT compiler from the output
image.
svn path=/trunk/mono/; revision=133848
2009-05-10 Andreas Faerber <[email protected]>
* null-gc.c (mono_gc_weak_link_add, mono_gc_clear_domain): Fix
stub signatures.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=133844
* verify.c, metadata-verifier.c: Add support for disabling the
verifier in some builds.
[ Sorry, my previous commit accidentally commited some work in
progress ]
svn path=/trunk/mono/; revision=133840
* configure.in: Instead of reporting the various disabled features
in a loop, where a keyword might fail, report the actual disabled
features in the sections that handle them
svn path=/trunk/mono/; revision=133837
* decompose.c (mono_decompose_long_opts): Move the ppc/sparc specific
stuff to mono_arch_decompose_long_opts ().
(mono_decompose_opcode): Remove some dead code.
svn path=/trunk/mono/; revision=133833
* messages.c: Split the scan into common and uncommon messages to
allow the messages that are not produced by Mono to be removed on
embedded scenarios.
svn path=/trunk/mono/; revision=133830
* messages.c (message_string): instead of having a gigantic switch
table, use a sorted structure in memory and do a binary search on
it.
This reduces the runtime size by 49k and the debugging symbols by
400k.
svn path=/trunk/mono/; revision=133828
2009-05-09 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open up the internals to System.Windows.Browser
(needed right now), System.Windows and System.Xml (needed for an
upcoming patch).
In System.Net:
2009-05-09 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: When associated with a WebRequest
the header collection items needs to be validated since not all
headers will be valid. Part of fix for DRT#532
svn path=/trunk/mcs/; revision=133826
* DateTimePicker.cs: Add a UIA-specific property to ensure that if
is_checkbox_checked is changed, we won't break.
svn path=/trunk/mcs/; revision=133815
ToolStripDropDownButton and we get Select()ed.
* ToolStripMenuItemTest.cs: Improve test, and remove the
NotWorking attribute. Also remove the 'var' keywords, doh!
svn path=/trunk/mcs/; revision=133814
* ToolStripControlHost.cs: DefaultSize must return the current size of
the Control, not the value returned by GetPreferredSize. Also connect
a handle to the control Resize event, and use it to fire
OnHostedControlReize.
Fixes the remaining bits of #483146.
svn path=/trunk/mcs/; revision=133811
* ToolStripDropDown.cs: When performing the layout, use
ToolStripItem.GetPreferredSize ().Height instead of
ToolStripItem.Height, since we are already using it that way in this
same method.
Fixes part of ##483146.
svn path=/trunk/mcs/; revision=133810
* DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send
OnUIASelectionChanged when ShowCheckbox is true and the checkbox
recieves focus. Part of fix for #502029.
svn path=/trunk/mcs/; revision=133783
* method-to-ir.c (mono_method_to_ir): Fix boostrap of non amd64 builds
cmethod can be null for quite a some reasons.
svn path=/trunk/mono/; revision=133779
** Fixes#497715
* SqlDataReader.cs: (GetSqlXml): Handle Xml types for TDS 8/8.1
clients as well.
* SqlParameter.cs: Map XML type properly.
svn path=/trunk/mcs/; revision=133769
* method-to-ir.c (mono_emit_call_args): Add a 'tail' flag argument.
(mono_method_to_ir): Use MONO_ARCH_USE_OP_TAIL_CALL macro to determine
whenever to make tail calls using OP_TAIL_CALL. Enable support for tail
calls returning structures by addr on amd64.
* mini-amd64.h (MONO_ARCH_USE_OP_TAIL_CALL): New arch-specific macro.
* iltests.il.in: Restructure the tail call tests a bit.
svn path=/trunk/mono/; revision=133766
* runtime/Makefile.am (mcs-compileall): Pass --security=validil
to the runtime so the assemblies are not required to be verifiable.
svn path=/trunk/mono/; revision=133737
* Connection.cs: if the socket is already disconnected, Shutdown will
fail with a SocketException... Also, catch *all* the possible
exceptions since the socket.Close method could also throw
ObjectDisposedException.
Fixes bug #449092.
svn path=/trunk/mcs/; revision=133734
* src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
just saving it in a static variable. Also modified microseconds
calculation to avoid overflow.
svn path=/trunk/mono/; revision=133725
* UniqueId.cs: Fix attributes for v3.5 (and later 2.0 SP) and remove
them (in particular [SecurityTreatAsSafe]) from the NET_2_1 build.
svn path=/trunk/mcs/; revision=133716
* XElement.cs (Load (XmlReader,LoadOptions)): prevent a NRE if
the provided XmlReader doesn't have existing settings.
Fixes#501589.
svn path=/trunk/mcs/; revision=133710
* gen-md-tests.c (next_token): Stop taking chars
for a token when encountering the first delimiter char.
This makes the parser less brain-dead when encountering
sequences like "foo()".
svn path=/trunk/mono/; revision=133695
Reverting because regression unfixed for 4 days:
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_TCP6ROW:get_LocalEndPoint () failed with exception '(null)':
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_TCP6ROW:get_RemoteEndPoint () failed with exception '(null)':
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_UDP6ROW:get_LocalEndPoint () failed with exception '(null)':
../mcs/class/lib/net_2_0/System.dll verification failed
svn path=/trunk/mono/; revision=133677
* ToolStripMenuItemTest.cs: Add a test for GetCurrentParent
(passes on MS.NET). Related to a11y bugs #485524 and #479397.
svn path=/trunk/mcs/; revision=133676
* cli-tables-tests.md: Tests for propertymap table.
* assembly-with-cas.cs: New test file for producing tests
for property tables.
* Makefile: Add new dependencies.
svn path=/trunk/mono/; revision=133627
* Lease.cs: Don't use ArrayList.Remove() to remove sponsors because
it will end calling Equals, which may crash if the sponsor is not
available anymore. Just compare references.
svn path=/trunk/mcs/; revision=133621
* RealProxy.cs: If async dispatch crashes, don't propagate the
exception. The exception will be raised when calling EndInvoke.
svn path=/trunk/mcs/; revision=133620
* TemplateParser.cs: PageParserFilterType uses
HttpApplication.LoadType so that it is able to load the filter
from App_Code or with not fully qualified type names.
svn path=/trunk/mcs/; revision=133606
* configure.in: Reduce configure-time dependencies by using
pkg-config the way it was originally intended to be used, and not
with the incredibly lame and painful inducing pkg.m4 file.
I am on a quest to remove this gratuitous dep on pkg.m4 that is
making people's lives miserable around the globe, just because
someone can not be bothered to learn the shell if construct.
svn path=/trunk/mono/; revision=133582
* UrlPattern.cs: Match adds defaults values should some keys be
missing from the url. Fixes bug #500739
* Route.cs: a small GetRouteData loop optimization
2009-05-05 Marek Habersack <[email protected]>
* RouteTest.cs: added test for bug #500739
svn path=/trunk/mcs/; revision=133577
* Methods.cs: if SoapRpcMethodAttribute doesn't specify the action
or the action name is an empty string, generate the Action in
SoapMethodStubInfo constructor. Fixes bug #459790
svn path=/trunk/mcs/; revision=133574
* BuildManager.cs: RemoveFailedAssemblies wraps the compilation
exception to be rethrown in a HttpException instance.
* AspGenerator.cs: create a Location and pass it to the parser
before calling AddDirective from GetInheritedType, so that we get
meaningful exception messages with source, line information etc.
svn path=/trunk/mcs/; revision=133568
* eglib.vcproj, genmdesc.vcproj, libgc.vcproj, libmono.vcproj,
mono.vcproj,monoposixhelper.vcproj : Adding TARGET_X86 and
TARGET_AMD64 preprocessor definitions to the Win32 and x64 targets.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=133532
proper time when SelectionIndex changes. Fixes#499887.
* TabControlTest.cs: More accurate test for bug#499887 showing
the SelectedIndex at the moment of the event (passes on Vista).
svn path=/trunk/mcs/; revision=133510
* ThemeDirectoryBuildProvider.cs: use new AspGenerator constructor
which takes AspComponentFoundery as its
parameter. AspGenerator.RootBuilder isn't initialized until after
the parser is initialized.
* TemplateControlCompiler.cs: make sure to call
ProcessGeneratedCode on each instance of ControlBuilder after it's
fully generated. Fixes bug #500075
* TemplateBuildProvider.cs: moved the directive regex to
AspGenerator
* BaseCompiler.cs: added two internal properties, BaseType and
DerivedType, which are used in calls to
ControlBuilder.ProcessGeneratedCode. Fixes bug #500075
* AspGenerator.cs: implemented a work around for our parser
limitation which is unable to extract the page/control's base type
before parsing the actual file contents. This is necessary to
support ASP.NET MVC's "generic" Inherits attribute. The reason we
need to find out what the base type is before parsing the file is
that we need to look at the type's custom attributes to see if a
root control builder type is specified (which is what ASP.NET MVC
does) and, if yes, use it instead of the default type. Fixes bug
#500075
2009-05-04 Marek Habersack <[email protected]>
* TemplateParser.cs: take RootBuilder from the associated
generator.
Allow the main page directive to be added twice if the parser
needs it. Used by AspGenerator when extracting the inherited type
name before actual parsing. Fixes bug #500075
* FileLevelControlBuilderAttribute.cs,
FileLevelPageControlBuilder.cs, FileLevelUserControlBuilder.cs:
implemented
* ControlBuilder.cs: added a new internal property,
DataBindingMethod.
Implemented ProcessGeneratedCode.
svn path=/trunk/mcs/; revision=133500
* aot-compiler.c (encode_patch_list): Simplify this considerably as we are
no longer saving offsets, so just save the patch types along with the other
info.
* aot-runtime.c (load_patch_info): Update after the changes to
encode_patch_list ().
(decode_got_entry): Removed, merged into load_patch_info ().
(is_shared_got_patch): Removed, call the same function from
aot-compiler.c.
* mini.h: Bump aot file format version.
svn path=/trunk/mono/; revision=133469
* Ping.cs: we just need the address(es), not a host entry. This avoids
querying the DNS server(s) when the target is an IP address.
svn path=/trunk/mcs/; revision=133459
* MonthCalendar.cs: In SetBoundsCore always do the bounds check to
have valid values, even if BoundSpecified is not including
Size/Height/Width - this is useful when we are in a control using Dock
or Anchor.
Fixes part of #483146.
svn path=/trunk/mcs/; revision=133441
* debug-debugger.c (debugger_insert_source_breakpoint): Don't call
mono_debugger_insert_method_breakpoint() since the class init
handler we're inserting at the top of the method already gives us
a notification.
svn path=/trunk/mono/; revision=133425
* CredentialCache.cs : implement all not-implemented methods.
Patch by Mineda Nozomi. Close bug #499556.
* CredentialCacheTest.cs : new tests for get/add/remove.
Patch by Mineda Nozomi.
svn path=/trunk/mcs/; revision=133400
2009-05-02 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs (ThrowSecurityException): Don't include
CAS-specific information when throwing a SecurityException in
NET_2_1
In System:
2009-05-02 Sebastien Pouliot <[email protected]>
* Console.cs: Remove Windows-specific p/invokes and SSC code
from the NET_2_1 build.
In System.Security.Cryptography.X509Certificates:
2009-05-02 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Remove code to initialize from an handle
in NET_2_1 since this is only possible from Windows and would be
SC anyway.
In System.Reflection:
2009-05-02 Sebastien Pouliot <[email protected]>
* Assembly.cs: Exclude CAS-specific code for NET_2_1
svn path=/trunk/mcs/; revision=133384
* Tds.cs (ExecuteQuery): Reset all the variables related to LoadData when
performing queries with SequentialAccess set to true. Fixes incorrect
handling of data retrieval when consecutive queries are run with
SequentialAccess set to true.
svn path=/trunk/mcs/; revision=133366
* Tds.cs (ExecuteQuery): Reset SequentialAccess read state variables
in order to avoid blocking forever when two consecutive queries are
executed with SequetialAccess set to true.
svn path=/trunk/mcs/; revision=133365
* mini-llvm.c mini-x86.c: Implement 32 bit and x86 support.
* ssa.c (mono_ssa_compute): Don't skip I8 values when using LLVM.
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Update to the latest
LLVM API.
* mini.c (mini_method_compile): Set the from_llvm flag in MonoJitInfo
if needed. Don't decompose long operations when using llvm.
svn path=/trunk/mono/; revision=133297
while reading the .config file, instead cache the values and refer
to the cached values during initialization. This prevents recursive
initialization calls (Trace.OnInit() ... Trace.Listeners.Add() ...
Trace.OnInit() ...), and associated duplicate parsing of .config file
sections. Fixes bnc#499442.
* TraceImpl.cs: Cope with DiagnosticsConfigurationHandler changes.
* TraceListenerCollection.cs: Add internal
Add(TraceListener,TraceImplSettings) method for adding
TraceListeners during DiagnosticsConfigurationHandler initialization
(which can't access TraceImpl, as we may still be reading the
.config file to determine the TraceImpl values).
svn path=/trunk/mcs/; revision=133291
* CodeAccessSecurityAttribute.cs, SecurityAction.cs,
SecurityAttribute.cs, SecurityPermissionAttribute.cs: Add [Obsolete]
on NET_2_1 since CAS stuff is not available in Moonlight. Note that
the types needs to be present because compiler insert them inside
assemblies.
svn path=/trunk/mcs/; revision=133279
2009-05-01 Mark Probst <[email protected]>
* gc.c (mono_gc_run_finalize): Don't set the domain too late,
because mono_delegate_free_ftnptr() needs it.
svn path=/trunk/mono/; revision=133261
* cli-tables-tests.md: Tests for event map table.
* assembly-with-events.cs: New test file for producing tests
for cattr table.
* Makefile: Add new dependency.
svn path=/trunk/mono/; revision=133243
* cli-tables-tests.md: Tests for standalonesig table.
* assembly-with-complex-type.cs: Added more stuff for
field layout tests.
svn path=/trunk/mono/; revision=133241
* cli-tables-tests.md: Tests for field layout table.
* assembly-with-complex-type.cs: Added more stuff for
field layout tests.
svn path=/trunk/mono/; revision=133239
* cli-tables-tests.md: Tests for class layout table.
* assembly-with-complex-type.cs: Added more stuff for
class layout tests.
svn path=/trunk/mono/; revision=133236
* cli-tables-tests.md: Tests for decl security table.
* assembly-with-cas.cs: New test file for producing tests
for cattr table.
* Makefile: Add new dependencies and do some cleanup.
svn path=/trunk/mono/; revision=133234
2009-04-30 Mark Probst <[email protected]>
* domain.c (mono_domain_set_internal_with_options): Don't do
anything if the old domain is the same as the old one. Fixes
#499326.
svn path=/trunk/mono/; revision=133222
2009-04-30 Mark Probst <[email protected]>
* appdomain.c: Deregister the reflection_info roots when unloading
a domain.
* sgen-gc.c, domain.c, gc-internal.h: mono_gc_clear_domain() nulls
memory allocated by a domain and frees its disappearing links.
* boehm-gc.c, null-gc.c: Empty implementation of
mono_gc_clear_domain().
svn path=/trunk/mono/; revision=133212
MySQL connection types, as those are actually included with Mono
(unlike MySql.Data, which isn't included with Mono).
svn path=/trunk/mcs/; revision=133210
2009-04-30 Mark Probst <[email protected]>
* gc.c: Set the correct domain when invoking finalizers.
* appdomain.c: Set the correct domain when creating threads.
svn path=/trunk/mono/; revision=133202
* BuildManager.cs: when BuildInner catches a compilation
exception, wrap it in HttpException before re-throwing.
2009-04-30 Marek Habersack <[email protected]>
* TemplateParser.cs: removed the PageParserFilterTypeName
property, the filter type name is looked up on demand now.
* ApplicationFileParser.cs, MasterPageParser.cs,
UserControlParser.cs: load config defaults explicitly after
initializing the instance.
svn path=/trunk/mcs/; revision=133169
2009-04-29 Tom Hindle <[email protected]>
* Marshal.cs: Improved GetExceptionForHR to return real
C# exceptions in certain cases instead of always COMException.
svn path=/trunk/mcs/; revision=133150
* cli-tables-tests.md: Tests for cattr table.
* assembly-with-cattr.cs: New test file for producing tests
for cattr table.
* Makefile: Add new dependencies and do some cleanup.
svn path=/trunk/mono/; revision=133092
* decompose.c (mono_decompose_long_opts): Move the implementation of LNEG
to mono_arch_decompose_long_opts () for x86 and arm.
svn path=/trunk/mono/; revision=133088
2009-04-29 Sebastien Pouliot <[email protected]>
* PKCS1.cs: Make this work under NET_2_1 where SHA384 and SHA512
are not available in the BCL.
In System.Security.Cryptography:
2009-04-29 Sebastien Pouliot <[email protected]>
* DES.cs, DESCryptoServiceProvider.cs: Do not include in NET_2_1
* HMACMD5.cs, HMACRIPEMD160.cs, HMACSHA384.cs, HMACSHA512.cs: Do
not include in NET_2_1
* MACTripleDES.cs: Do not include in NET_2_1
* RC2.cs, RC2CryptoServiceProvider.cs: Do not include in NET_2_1
* Rijndael.cs, RijndaelManaged.cs, RijndaelManagedTransform.cs:
Do not include in NET_2_1 (AES is available in System.Core.dll)
* RIPEMD160.cs, RIPEMD160Managed.cs: Do not include in NET_2_1
* SHA1CryptoServiceProvider.cs: Do not include in NET_2_1, however
SHA1Managed is available.
* SHA384.cs, SHA384Managed.cs: Do not include in NET_2_1
* SHA512.cs, SHA512Managed.cs: Do not include in NET_2_1
* TripleDES.cs, TripleDESCryptoServiceProvider.cs: Do not include
in NET_2_1
svn path=/trunk/mcs/; revision=133013
* hashwrap.cs: Add "#if !NET_2_1 ... #endif" on wrappers so they
don't get compiled for 2.1 (since mscorlib 2.1 lacks some
required types and the generated code is not part of SL2).
svn path=/trunk/mcs/; revision=133011
* MetaTable.cs: implemented the DataContextType,
DataContextPropertyName properties and the ToString method.
* MetaColumn.cs: implemented the Scaffold, DisplayName,
SortExpression, UIHint properties and the ToString method.
* DynamicField.cs: implemented
* DynamicDataManager.cs: partially implemented RegisterControl.
Added internal AutoFieldGenerator class, used by RegisterControl
when dealing with GridView.
Implemented some properties.
* DynamicDataExtensions.cs: implemented GetTable and FindMetaTable
* DynamicControl.cs: implemented parts of the class.
2009-04-29 Marek Habersack <[email protected]>
* DataBoundControl.cs: added InternalGetDataSource method, used by
DynamicData
2009-04-29 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for
System.Web.DynamicData
2009-04-29 Marek Habersack <[email protected]>
* Test/System.Web.DynamicData.ModelProviders/TableProviderTest.cs:
added
* System.Web.DynamicData_test.dll.sources: added
System.Web.DynamicData/DynamicDataManagerTest.cs,
System.Web.DynamicData/DynamicDataExtensionsTest.cs,
System.Web.DynamicData.ModelProviders/TableProviderTest.cs
* System.Web.DynamicData.dll.sources: added
System.Web.DynamicData.ModelProviders/DLinqAssociationProvider.cs
System.Web.DynamicData.ModelProviders/DLinqColumnProvider.cs
System.Web.DynamicData.ModelProviders/DLinqDataModelProvider.cs
System.Web.DynamicData.ModelProviders/DLinqTableProvider.cs and
removed
System.Web.DynamicData.ModelProviders/DLinqDataModelProviders.cs
2009-04-29 Marek Habersack <[email protected]>
* TableProvider.cs: implemented
* DLinqDataModelProvider.cs: renamed from
DLinqDataModelProviders.cs and moved some classes to separate
files.
* DLinqTableProvider.cs: moved to here from
DLinqDataModelProvider.cs
* DLinqColumnProvider.cs: moved to here from
DLinqDataModelProvider.cs
* DLinqAssociationProvider.cs: added
2009-04-29 Marek Habersack <[email protected]>
* DataBinder.cs: GetPropertyValue must throw also if propName is
empty.
2009-04-23 Marek Habersack <[email protected]>
* ContextConfiguration.cs: implemented all the methods and added a
parameterless constructor.
2009-04-23 Marek Habersack <[email protected]>
* System.Web.DynamicData_test.dll.sources: added
System.Web.DynamicData/ContextConfigurationTest.cs
* Makefile: tests need to be linked with
System.ComponentModel.DataAnnotations.dll
2009-04-23 Marek Habersack <[email protected]>
* AssociatedMetadataTypeTypeDescriptor.cs: added - doesn't add any
real functionality yet.
* AssociatedMetadataTypeTypeDescriptionProvider.cs: implemented
all the methods.
2009-04-23 Marek Habersack <[email protected]>
* System.ComponentModel.DataAnnotations_test.dll.sources: added
* System.ComponentModel.DataAnnotations.dll.sources: added
System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs
* Makefile: enabled tests
2009-04-23 Marek Habersack <[email protected]>
* ContextConfigurationTest.cs: added
svn path=/trunk/mcs/; revision=133003
2009-04-29 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Add CryptoConfig_2_1.cs (partial class) to
the build
In System.Security.Cryptography:
2009-04-29 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Change to partial class and don't include this
part (#ifdef out) in the NET_2_1 build.
* CryptoConfig_2_1.cs: Partial class that contains only what's
needed for Moonlight (NET_2_1). This disallow dynamically replacing
cryptographic algorithms using machine.config
svn path=/trunk/mcs/; revision=132992
* HttpContext.cs:
* HttpWorkerRequest.cs:
* HttpRuntime.cs: if other parts of the system are using the
threadpool and we queue requests, once the threadpool is free we
might still not get back to use it to the maximum extent possible.
Adding a few more calls to QueuePendingRequest ensures that does not
happen.
svn path=/trunk/mcs/; revision=132946
* TdsConnectionPool.cs: if GetConnection() fails to create a
connection, try again several times and then throw. Improved
ResetConnectionPool() so that it does not immediately close
connections in use. Don't re-add connections that have been closed.
* Tds.cs: Connected tests the socket connection too. Made Disconnect()
not throw.
* TdsComm.cs: set more socket options (timeout and NoDelay) and have a
single entry point for reading from the stream.
svn path=/trunk/mcs/; revision=132939
* gen-md-tests.c: Fix stream header calculation.
* cli-tables-tests.md: Tests for constant.
* assembly-with-constants.cs: New test file for producing tests
for constant table.
* Makefile: Add new dependencies and do some cleanup.
svn path=/trunk/mono/; revision=132937
* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.
* cli-tables-tests.md: Tests for interfaceimpl.
svn path=/trunk/mono/; revision=132932
* verify.c: Improve error message.
* debug-helpers.c (mono_type_get_desc): Harden the code that
deals with VAR and MVAR.
svn path=/trunk/mono/; revision=132929
* TcpDuplexSessionChannel.cs : implement in-band dictionary support
in [MC-NMF] and [MC-NBFSE], used in duplex channels. Added some
comments for magic numbers based on [MC-NMF].
* BinaryMessageEncodingBindingElementTest.cs, binary-message.raw:
new test files.
* System.ServiceModel.dll_test.sources: added
BinaryMessageEncodingBindingElementTest.cs.
svn path=/trunk/mcs/; revision=132882
* BinaryMessageEncoder.cs : implement part of in-band dictionary
support for [MC-NBFSE] record in [MC-NMF], in this class.
svn path=/trunk/mcs/; revision=132881
* XmlBinaryDictionaryReader.cs : several fixes;
- Name property was always empty.
- Value property was always empty for attributes.
- TextIndex node type was not supported.
- node reset at Read() was incomplete.
- attribute Prefix for single character had wrong value.
- namespace nodes did not appear as attribute nodes.
- attribute value node must be always single. Another text node
means a text child of the element, not the following attr value.
tests will go in sys.servicemodel.
svn path=/trunk/mcs/; revision=132879
* cominterop.c (ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal):
changed to match .Net behaviour of not aborting on additional calls to ReleaseComObject.
svn path=/trunk/mono/; revision=132872
* ConsoleTraceListener.cs: add an internal constructor that takes a
string argument. Used when 'initializeData' is set.
* DiagnosticsConfigurationHandler.cs: try internal constructors when
the assembly is System.
Fixes bug #498853.
svn path=/trunk/mcs/; revision=132868
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlReaderCommonTests.cs: Add test case for an empty string url
In System.Xml:
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
a second change using Path.GetFullPath. (GetStreamFromUrl) Add
extra validations that would be missed in NET_2_1
svn path=/trunk/mcs/; revision=132856
* XmlReaderSettings.cs: Add MaxCharactersInDocument property for
NET_2_1 profile
* XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file
since this is not used anymore in Moonlight
svn path=/trunk/mcs/; revision=132855
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small
fixes wrt new unit tests (inside moon-unit).
In .:
2009-04-28 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Xml.dll.sources: Remove XmlUrlResolver.cs
and the associated [SecuritySafeCritical] that it required
svn path=/trunk/mcs/; revision=132852
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlResolverTest.cs: New. Unit tests for base features.
In System.Xml:
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
method for NET_2_1 profile.
In .:
2009-04-28 Sebastien Pouliot <[email protected]>
* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
the unit tests
svn path=/trunk/mcs/; revision=132851
* security-core-clr.c: Avoid redundant checks for platform code,
e.g. check for method and for class (very common) and check
for class and outer class (less common)...
svn path=/trunk/mono/; revision=132844
* GridView.cs: implemented ColumnsGenerator and enabled its use in
CreateColumns.
* DetailsView.cs: implemented the RowsGenerator property and
enabled its use in CreateFieldSet.
svn path=/trunk/mcs/; revision=132833
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx
2009-04-28 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #498637
2009-04-28 Marek Habersack <[email protected]>
* AspGenerator.cs: ProcessTag doesn't process a tag which is not
server-side and which has declarative expressions embedded. Fixes
bug #498637
2009-04-28 Marek Habersack <[email protected]>
* NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx: added
svn path=/trunk/mcs/; revision=132812
* Makefile (NAME_SUFFIX): New.
(LIBRARY_NAME): Use it.
(TEST_MCS_FLAGS): Don't mention name of library. Use NAME_SUFFIX
as appropriate when referring to other msbuild dlls.
svn path=/trunk/mcs/; revision=132811
* ComboBox.cs: When losing the focus, if our textbox is not null,
close its auto complete list, if any.
Fixes part of #489339.
svn path=/trunk/mcs/; revision=132804
* aot-runtime.c (mono_aot_create_specific_trampoline): Add a stat for the
number of trampolines used in full-aot mode.
* aot-compiler.c: Add an ntrampolines option to set the number of
trampolines emitted in full-aot mode.
svn path=/trunk/mono/; revision=132777
2009-04-27 Sebastien Pouliot <[email protected]>
* SecurityException.cs: Remove CAS-specific stuff from ToString
* SecurityManager.cs: Do not include for NET_2_1 build
* SecurityManager_2_1.cs: Alternate implementation for NET_2_1
In .:
2009-04-27 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Add new specific to 2.1 version of some
classes.
In System.Security.Policy:
2009-04-27 Sebastien Pouliot <[email protected]>
* Evidence.cs: Custom GetDefaultHostEvidence for NET_2_1
* Hash.cs: Do not include for NET_2_1 build
* HashMembershipCondition.cs: Do not include for NET_2_1 build
* PolicyLevel.cs: Do not include for NET_2_1 build
* PolicyLevel_2_1.cs: Alternate implementation for NET_2_1
* Zone.cs: Do not include for NET_2_1 build
* ZoneMembershipCondition.cs: Do not include for NET_2_1 build
svn path=/trunk/mcs/; revision=132774
* DispatchRuntime.cs : some comment.
* ChannelDispatcher.cs : ongoing changes to handle listeners and
accepted channels at more precise state. Listeners are opened,
without accepting channels. Some setup code is done at OnOpen(),
while some are done at OnOpened().
* ServiceHost.cs : split dispatcher open from dispatcher loop start.
Use DispatchRuntime.Type to specify service type.
* ChannelDispatcherTest.cs : added a couple of EndpointDispatcher
state tests.
svn path=/trunk/mcs/; revision=132739
* XplatUIX11.cs: Properly support UTF8 when handling the
SelectionRequest event - this is helpful supporting some window
managers, such KDE, that explictly request the text in utf8, as
opposed to gnome, that supports ascii.
Fixes#489393.
svn path=/trunk/mcs/; revision=132698
* ToolStripDropDownItem.cs: When assigning a new
ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
Capture duties performed by Application/ToolStripManager are handled
nicely and we don't end up in an inconsisten stat.
Fixes#492815.
svn path=/trunk/mcs/; revision=132696
* mini-codegen.c (mono_local_regalloc): Prevent sreg1/dreg to be allocated
to the same register as a fixed sreg2. Fixes#497271.
* iltests.il.in: Add a new test.
svn path=/trunk/mono/; revision=132689
* mini-amd64.c: Use moves instead of pushes for passing arguments on the
stack, since pushes complicate exception handling.
* exceptions-amd64.c (mono_arch_find_jit_info): Don't pop the arguments of
the stack if they are passed using moves.
svn path=/trunk/mono/; revision=132687
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add an assert.
* method-to-ir.c (mono_method_to_ir): Disable fast virtual generic methods
when using llvm.
* mini-llvm.c (mono_llvm_emit_method): Call jit icall wrappers, not the
icalls themselves. Convert arguments of FCOMPARE. Convert the destination
of FMOVE if it is an R4.
svn path=/trunk/mono/; revision=132686
2009-04-26 Mark Probst <[email protected]>
* domain.c, domain-internals.h: Disable
track_resurrection_{objects,handles}_hash in MonoDomain if using
SGen.
svn path=/trunk/mono/; revision=132681
* TermInfoDriver.cs: Use the new StreamReader.DataAvailable to
load all the data that was added into the `stdin' stream when we
did the `Read'.
2009-04-25 Miguel de Icaza <[email protected]>
* StreamReader.cs (DataAvailable): New internal function to work
around the fact that StreamReaders are now blocking on Peek(), and
that our own Console.TermInfoDriver used Peek() as a way of
probing if there was data on a stream before to avoid blocking. o
svn path=/trunk/mcs/; revision=132670
* mini-ops.h: Add OP_LLVM_OUTARG_VT opcode.
* mini.h (LLVMCallInfo): New structure to store calling convention
information for the LLVM back end similar to the CallInfo structures in
the back-ends.
* mini-amd64.c (mono_arch_get_llvm_call_info): New arch function to return
call information in a format usable by LLVM.
(mono_arch_emit_call): Move the LLVM handling code to mono_llvm_emit_call ().
* method-to-ir.c (mono_emit_call_args): Emit calls using
mono_llvm_emit_call () when compiling using LLVM.
* mini-llvm.c: Implement support for passing/receiving valuetypes. Add
comments to all functions. Fix memory leaks. Add a public init/cleanup
function.
* mini.c: Call the llvm init/cleanup functions in mini_init()/cleanup().
* method-to-ir.c (handle_array_new): Disable llvm when calling the vararg
mono_array_new_va () jit icall.
svn path=/trunk/mono/; revision=132665
* ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
any ToolStripDropDownItem when receiving a mouse down event in an
empty area.
svn path=/trunk/mcs/; revision=132664
* *.cs: Exclude the files for the NET_2_1 profile, since they are
unneeded and adds a bunch (23) [SecuritySafeCritical] to audit for
Moonlight
svn path=/trunk/mcs/; revision=132663
* Environment.cs: #ifdef out code that use the registry for the
NET_2_1 profile and some other properties (2) that added
[SecuritySafeCritical] methods to audit inside Moonlight.
svn path=/trunk/mcs/; revision=132662
Fix bug #484649:
* LoggerInfo.cs: fixed the parsing of the /logger: argument as described in
http://msdn.microsoft.com/en-us/library/ms164311.aspx
Added logger class detection if it's not explicit specified in the argument.
svn path=/trunk/mcs/; revision=132660
* include/private/gcconfig.h: Changes to support 64-bit ABI on MIPS.
Add an additional condition for a proper defining of ALIGNMENT
and CPP_WORDSZ.
svn path=/trunk/mono/; revision=132645
* assembly-with-params.cs: New test file with all sort of param kinds.
* assembly-with-methods.cs: Added more stuff to test paramlist.
* Makefile: Add new dependencies.
* cli-tables-tests.md: Tests for methoddef's paramlist.
Tests for the param table.
svn path=/trunk/mono/; revision=132635
a new shift/reduce conflict which is bothering me:
625: shift/reduce conflict (shift 452, reduce 890) on COMPLETE_COMPLETION
state 625
member_initializer : non_assignment_expression . opt_COMPLETE_COMPLETION (452)
opt_COMPLETE_COMPLETION : . (890)
COMPLETE_COMPLETION shift 452
CLOSE_BRACE reduce 890
COMMA reduce 890
opt_COMPLETE_COMPLETION goto 807
2009-04-24 Miguel de Icaza <[email protected]>
* complete.cs (CompletionElementInitializer): New completion class
to support completing inside a C# 3 element initializer, so this
allows completion for Silverlight situations where it is very
common to do:
new TextBlock () { Fo<TAB>
(CompletionSimpleName): Expose the prefix that was
passed to the simple name.
* cs-parser.jay (object_or_collection_initializer): Add support
for element_initializers.
* expression.cs (CollectionOrObjectInitializers.DoResolve):
special case completion expressions as this method aggressively
collects data before it operates, and errors were being thrown
earlier than we were able to complete.
svn path=/trunk/mcs/; revision=132626
Fixing the glib targets for Winx64.
* libmono.vcproj, mono.vcproj: Correcting the ProgramDatabaseFile
value for the Winx64 glib build.
* mono.sln: Enabling the glib targets for Winx64.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=132622
* HtmlizedException.cs: make HtmlException derive from
HttpException. System.Web.Mvc relies upon compile and parse
exception being descendants of HttpException or otherwise it will
catch and ignore compilation/parsing errors.
svn path=/trunk/mcs/; revision=132617
* ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
fire OnDropDownOpened/OnDropDownClosed depending on the new
visibility. This also ensures that any direct access to this instance
will fire the mentioned events for the OwnerItem.
* ToolStripDropDownItem.cs: Remove the invocations to
OnDropDownOpened/OnDropDownClosed, since they are handled in
ToolStripDropDown, as well as updating the
OnDropDownHide/OnDropDownShow calls to be in the right order.
Fixes#496193.
svn path=/trunk/mcs/; revision=132611
* libmono.vcproj: Adding metadata/metadata-verify.c to the project.
* runmdesc.bat: Fixing the argument order to genmdesc.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=132610
* System.Web_test.dll.sources: added
System.Web.UI/PageParserFilterTest.cs
2009-04-24 Marek Habersack <[email protected]>
* TemplateParser.cs: PageParserFilter.Initialize now takes just
one parameter.
* PageParserFilter.cs: a few alignments for .NET compatibility in
the default behavior.
2009-04-24 Marek Habersack <[email protected]>
* AspGenerator.cs: ProcessCode should _not_ stop processing the
passed code string if the filter's ProcessCodeConstruct returns
false. Fixes bug #497775
2009-04-24 Marek Habersack <[email protected]>
* PageParserFilterTest.cs: added
svn path=/trunk/mcs/; revision=132607
types:
2009-04-24 Miguel de Icaza <[email protected]>
* complete.cs (CompletionElementInitializer): New completion class
to support completing inside a C# 3 element initializer, so this
allows completion for Silverlight situations where it is very
common to do:
new TextBlock () { Fo<TAB>
(CompletionSimpleName): Expose the prefix that was
passed to the simple name.
* cs-parser.jay (object_or_collection_initializer): Add support
for element_initializers.
* expression.cs (CollectionOrObjectInitializers.DoResolve):
special case completion expressions as this method aggressively
collects data before it operates, and errors were being thrown
earlier than we were able to complete.
svn path=/trunk/mcs/; revision=132592
* Mono.Tuner.dll.sources: adjusted
* Mono.Tuner/FilterAttributes.cs: new step to remove some known
undesirable custom attributes.
svn path=/trunk/mcs/; revision=132582
crashes and report them. Borrow some tricks from md.
(LogEventsFromTextOutput): Ignore known non-error messages. Don't
log unknown lines, crashes get handled elsewhere.
svn path=/trunk/mcs/; revision=132569
* class.c (get_anon_gparam_class, set_anon_gparam_class): New. Don't
use ParamInfo class at all.
(mono_class_from_generic_parameter): Use them.
(make_generic_param_class): Fix a couple of instances where 'pinfo
== NULL' wasn't handle.
svn path=/trunk/mono/; revision=132549
* class-internals.h (MonoGenericParamInfo::token): New field.
* metadata.c (mono_metadata_load_generic_params): Initialize it
from metadata.
* class.c (mono_class_from_generic_parameter): Use it instead of
searching through metadata.
svn path=/trunk/mono/; revision=132547
* assembly-with-methods.cs:
* assembly-with-global-method.il: New test files with a global method.
* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.
* cli-tables-tests.md: Tests for the methoddef table.
* Makefile: Add new dependencies.
svn path=/trunk/mono/; revision=132535
* appdomain.c (mono_domain_create_appdomain_internal): Free the
string returned by get_shadow_assembly_location_base.
* appdomain.c (get_shadow_assembly_location_base): Add a comment
about caller's ownership.
svn path=/trunk/mono/; revision=132531
* reflection.c: Add mono_reflection_cleanup_domain to cleanup
reflection memory on domain unload.
* domain.c (mono_domain_free): Don't free refobject_hash, let the
reflection cleanup code do it.
* domain-internals.h: Add mono_reflection_cleanup_domain.
This fixes a memory leak for managed mirrors of reflection objects
on domain unload.
svn path=/trunk/mono/; revision=132530
* pedump.c (main): Init mono with mscorlib so it defaults to 2.0 and
doesn't try to parse the input assembly, which can be broken.
svn path=/trunk/mono/; revision=132527
* Regex.cs: Remove Compiler-related support for NET_2_1
* RegexOptions.cs: Remove Compile from values available on NET_2_1
svn path=/trunk/mcs/; revision=132491
2009-04-23 Mark Probst <[email protected]>
* boehm-gc.c, gc-internal.h, gc.c, monitor.c, null-gc.c,
sgen-gc.c: Implement track resurrection in weak GC handles in SGen
by using the lowest bit in the link to store whether the link is
tracked. Move the track_resurrection hashes into boehm-gc.c.
svn path=/trunk/mono/; revision=132485
* AsyncPostBackTrigger.cs: HasTriggered () must look up the
UniqueID of the control specified in the ControlID property or
otherwise it may miss certain triggers.
svn path=/trunk/mcs/; revision=132482
* Makefile: disable moon. Tuning is done by moonlight, which
will populate back the mcs tree with tuned assemblies for tests.
svn path=/trunk/mcs/; revision=132462
* ChannelFactory.cs : reordered preferrence of created channel types,
and fixed to allow duplex channels without CallbackContractType
(which does not always exist for duplex channels).
svn path=/trunk/mcs/; revision=132448
* namespace.cs (NamespaceEntry.CompletionGetTypesStartingWith):
Consider looking up the namespace that matches the prefix being
used.
This is part of the support for allowing completions like:
`System.Co<TAB>' to complete to System.Console.
* complete.cs (CompletionSimpleName.AppendResults): Make this
routine reusable.
svn path=/trunk/mcs/; revision=132430
* AssemblyInfo.cs: Open up the internals to System.ServiceModel.Web,
e.g. calls to IDataContractSurrogate, JsonReader ...
svn path=/trunk/mcs/; revision=132429
* Makefile.am: Split the console support in platform specific
code and put together a framework for making this easy in the future so
that we can start splitting code instead of having a mess of PLATFORM_WIN32
svn path=/trunk/mono/; revision=132422
* System.Net.dll.sources: Remove the common Const, Locale and
MonoTODOAttribute since we can now get them from mscorlib.dll.
Remove all System/System.Net.NetworkInformation/* types since
Socket does not depend on them anymore.
* DummySystemNet.cs: Add a dummy System.Net.NetworkInformation
namespace to please compilers.
svn path=/trunk/mcs/; revision=132409
* Socket_2_1.cs: Use old-n-simple CheckProtocolSupport to implement
OSSupportsIP[v4|v6] for Moonlight (NET_2_1 only) so we can avoid
including a bunch of types (22) from System.Net.NetworkInformation
and drop the number of [SecuritySafeCritical] methods to audit (the
same 22) and [SecurityCritical] (8) beside getting a smaller
System.Net.dll assembly :)
svn path=/trunk/mcs/; revision=132408
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Remove the common
Const, Locale and MonoTODO since we can now get them from mscorlib.dll
svn path=/trunk/mcs/; revision=132407
* Microsoft.CSharp/CSharpCodeCompiler.cs:
* Microsoft.VisualBasic/VBCodeCompiler.cs: better error when there's a
problem running the specified exec.
svn path=/trunk/mcs/; revision=132387
* configure.in: Check for a stable version of glib-2.0 as opposed
to an unstable development version (we don't want people
unfamiliar with glib versioning to install an unstable development
version of glib).
svn path=/trunk/mono/; revision=132384
* AdjustVisibility.cs: we're now turning non exposed fields and
methods (API wise) that are `protected` into `protected and internal`.
svn path=/trunk/mcs/; revision=132370
* method-to-ir.c (mono_method_to_ir): Force init_locals to be TRUE
to prevent asserts in various passes. Fixes#497220.
svn path=/trunk/mono/; revision=132364
* XmlSchemaValidator.cs : quick fix for bug #496205. Reset xsi:type
and endelement.
* XmlSchemaValidatorTests.cs : added test for bug #496192 and #496205.
* 496192.xml, 496192.xsd : new test files.
svn path=/trunk/mcs/; revision=132351
* XmlQualifiedName.cs : added Parse() overload that is used for
xsd validation.
* XmlSchemaValidator.cs, BuiltInDatatype.cs, XmlAtomicValue.cs:
use xsd-supported version of XmlQualifiedName.Parse().
Fixed bug #496205.
svn path=/trunk/mcs/; revision=132347
* XmlAttributeCollection.cs : when the node to be inserted has owner
element _but_ is identical to that of this collection, do not
reject it to raise an error. Fixed bug #496022.
* XmlAttributeCollectionTests.cs : added test for bug #496022.
svn path=/trunk/mcs/; revision=132344
* HttpSoapWebServiceHandler.cs: provide the full stack trace instead
of just the Message to aid in debugging web service problems.
Bug #496758 fixed.
svn path=/trunk/mcs/; revision=132335
* verify.c (mono_delegate_type_equal): Compare valuetypes using
mono_class_from_mono_type to avoid bad interactions with the dual representation
of the generic type definition.
svn path=/trunk/mono/; revision=132318
* verify.c (do_invoke_method): Use mono_class_from_mono_type to
get the MonoClass for the call context type as it might be a generic
instance.
Fixes#491483.
svn path=/trunk/mono/; revision=132317
* PageCompiler.cs: implemented new way of setting output cache
parameters in the 2.0 profile. The generated code is now the same
as on .NET and uses the OutputCacheParameters class to pass
settings to InitOutputCache.
2009-04-21 Marek Habersack <[email protected]>
* Page.cs: added support for OutputCacheParameters.NoStore to
InitOutputCache.
* TemplateParser.cs:
Added support for the SqlDependency, NoStore and CacheProfile
attributes of the OutputCache directive. Fixes bug #496951
svn path=/trunk/mcs/; revision=132312
2009-04-21 Mark Probst <[email protected]>
* object-internals.h: The Thread object has no execution_context
member anymore.
* threads.c, threadpool.c, threads-types.h: Accessor functions for
the execution context.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=132309
* Thread.cs: Make the execution context field thread-static to
avoid it being shared between app domains.
2009-04-21 Mark Probst <[email protected]>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=132308
* Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any
shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the
event is the same as the owner of the menu item. Also set properly
SourceControl for ContextMenuStrip, as well as add an internal field to
contain the control that owns the ContextMenuStrip (we need to know this
even before the public property is assigned).
Fixes bits of #393775.
svn path=/trunk/mcs/; revision=132303
* SimpleWebHandlerParser.cs: retrieve CompilationSection from the
appropriate web.config file.
* BaseParser.cs: moved the internal property VirtualPath from
TemplateParser to here and added an internal method
GetConfigSection to retrieve sections from the correct web.config
file on 2.0 applications. Fixes bug #494245
* PageParser.cs: use the new GetConfigSection method to retrieve
ClientTargetSection.
* TemplateParser.cs: moved the VirtualPath property to
BaseParser.
PagesConfig now uses the new GetConfigSection method. Fixes bug
#494245
svn path=/trunk/mcs/; revision=132300
In .:
2009-04-21 Sebastien Pouliot <[email protected]>
* System.Xml.Schema/*: Remove (not needed for 2.1 anymore)
* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132289
* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
MonoTODOAttribute since we get it from mscorlib (fix build too).
Remove System.Xml.Schema/XmlSchema.cs from build since we can
get the fields directly from System.Xml.dll
svn path=/trunk/mcs/; revision=132283
* aot-compiler.c aot-runtime.c: Emit the unwind info into a separate
table to avoid duplicates.
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
svn path=/trunk/mono/; revision=132267
* UriParserTest.cs: Ensure "tcp" is not a registred scheme
* UriTest2.cs: Make sure GetComponents and IsBaseOf do not throw
NRE is no UriParser was registred for the URI scheme
svn path=/trunk/mcs/; revision=132265
* DefaultUriParser.cs: Add special case for schema
* Uri.cs: Make sure we can use a default parser if none was
registred for the URI schema.
* UriParser.cs: Handle "*" as a special schema for "anything"
[Fix bug #496783]
svn path=/trunk/mcs/; revision=132264
* AssemblyInfo.cs: Remove extra attributes for 2.1. Open up the
internals to System.ServiceModel, e.g. to call the ctor of
System.Xml.XmlDictionaryReaderQuotas
svn path=/trunk/mcs/; revision=132261
* ClientRuntimeChannel.cs : setup IChannel instance at construction
time, so that it can GetProperty<T>() immediately after
ChannelFactory.CreateChannel().
Implement some properties.
svn path=/trunk/mcs/; revision=132249
* PeerResolver.cs, PeerResolverImpl.cs :
update API to the latest .NET.
* PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.
svn path=/trunk/mcs/; revision=132237
* WebConnection.cs:
* HttpWebRequest.cs: provide more information on why the connection
could not be established.
svn path=/trunk/mcs/; revision=132220
* verify.c (verify_clause_relationship): Only mask as an error if the exception clause
is nested in the filter block.
* verify.c (verify_clause_relationship): The disjoint check must verify if the exception
block is not fully nested.
Fixes#495656.
svn path=/trunk/mono/; revision=132207
* ComboBox.cs: When calculating the height of the ComboListBox,
specially for the 2.0 profile, use MaxDropDownItems if the
DropDownHeight property hasn't been set, and use the later if it has
been set. This way we support both properties.
Fixes#493308.
svn path=/trunk/mcs/; revision=132188
* verify.c (verify_type_compatibility_full): Compare MonoClass and
not MonoType to check for equality of valuetypes as the generic type
definition allows for two different encodings: the generic type definition
class or a generic instance over the GTD arguments.
Fixes#496175.
svn path=/trunk/mono/; revision=132185
* mini-llvm-cpp.cpp (mono_llvm_dump_value): New helper function to print
a Value to stdout.
* mini-llvm.c (mono_llvm_emit_method): Use it.
svn path=/trunk/mono/; revision=132183
* metadata-verify.c: Enable pe verification as the issue with #496453
is that the authenticode data directory have a different unspecified
format. Ignore it for now.
* pedump.c: Run the metadata verifier together with the IL verifier.
Fixes ##496453.
svn path=/trunk/mono/; revision=132170
* mini-llvm.c (type_to_llvm_type): Fix the mapping of enums.
(mono_llvm_emit_method): Add support for CAS. Fix handling of CSET opcodes
on volatile values.
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add support for
synchronized methods.
* mini.c (mini_method_compile): Disable LLVM for dynamic methods.
svn path=/trunk/mono/; revision=132169
* Thread.cs: For 2.1 ensure exceptions in threads are handled using the
UnhandledException event mechanism in System.Windows.Application instead
of crashing the application.
svn path=/trunk/mcs/; revision=132166
* Enum.cs (MonoEnumInfo): Compare bytes, shorts, ints and longs as
unsigned values as specified and to fix 371559, from the bug:
So the actual difference is that MSFT's Enum.GetValues
orders the members as unsigned even when the underlying
type is int. See the following. Perhaps that's what's
being implied by "binary values" in that Enum.GetValues
MSDN quote above.
svn path=/trunk/mcs/; revision=132113
Fix bug #494221
* MethodDef.cs (BeginLocalsScope): New.
(EndLocalsScope): New.
(AddLocals):
(GetNamedLocal): Support scoping for .locals
In ilasm/parser:
Fix bug #494221.
* ILParser.jay (scope_block_begin): Mark begin .locals scope.
(scope_block): Mark end .locals scope.
svn path=/trunk/mcs/; revision=132111
* Process.cs: Do not crash if GetProcesses_internal returns null
This happens on operating systems where we have not implemented
svn path=/trunk/mcs/; revision=132110
* mini.c (mini_method_compile): Enable ABCREM when running with LLVM.
* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOADI4_MEM/
OP_LOADI8_MEM.
svn path=/trunk/mono/; revision=132106
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add a MONO_LLVM env variable
allowing some options to be set dynamically.
svn path=/trunk/mono/; revision=132105
* mini-llvm.c (mono_llvm_emit_method): Handle compares followed by an
unconditional branch.
* mini.h (MonoTrampolineType): Add new trampoline type
'MONO_TRAMPOLINE_LLVM_VCALL' which handles virtual calls made from LLVM
compiled code.
* mini-trampolines.c (mono_llvm_vcall_trampoline): New C trampoline
function.
* mini-trampolines.c (mono_create_llvm_vcall_trampoline): New trampoline
creation function.
* mini.c (mini_init): Avoid using the common vtable trampoline when LLVM
is enabled. Instead, use the llvm vcall trampoline.
svn path=/trunk/mono/; revision=132104
prefix, e.g. `mdoc export-html-webdoc -o cache.new foo.tree` will
output files into `cache.new/foo` instead of directly into
`cache.new`. This makes it easier to specify more than one
.tree/.zip file on the command line.
svn path=/trunk/mcs/; revision=132103
character, as it may contain '\n' (thus preventing the following text
from being properly indented).
* Test/Mono.Options/OptionSetTest.cs: Add test to check \n\n
Option.Description handling.
svn path=/trunk/mcs/; revision=132102
* metadata-verify.c: Fix cli and table verification to use information
from the MonoImage. A lot of duplicated code got killed.
svn path=/trunk/mono/; revision=132099
This patch starts to integrate the metadata verifier with the runtime code.
This patch causes major regression in functionality for the metadata verifier
as cli and table verification are disabled since they require to be ported to
use MonoImage information.
* image.c (do_mono_image_load): Split the code in this function
into mono_image_load_pe_data and mono_image_load_cli_data.
Add care_about_pecoff parameter to not load pecoff data.
Call into the metadata verifier for pecoff and cli verification.
* image.c (mono_image_open_raw): New function that doesn't perform
any parsing of the image contents.
The reason for the 3 new functions is to give pedump better control
into the interaction with the verifier.
* metadata-internals.h: Add new functions from image.c as part of the
internal mono API.
* metadata-verify.c: Split mono_image_verify into mono_verifier_verify_pe_data,
mono_verifier_verify_cli_data and mono_verifier_verify_table_data. Prepare
to make those functions work together with the runtime.
* verify.c: Add mono_verifier_is_enabled_for_image function that returns
true if the image needs to be verified.
* verify-internals.h: Export new functions from metadata-verify.c and verify.c.
* pedump.c: Use new metadata verifier API.
svn path=/trunk/mono/; revision=132098
* mini-trampolines.c (mono_get_vcall_slot_addr): New helper function.
* mini-trampolines.c tramp-amd64.c tramp-x86.c: Use it.
* mini-<ARCH>.c: Get rid of the identical mono_arch_get_vcall_slot_addr ()
functions.
svn path=/trunk/mono/; revision=132097
* mini-<ARCH>.h mini-trampolines.c mini.c: Get rid of
MONO_ARCH_COMMON_VTABLE_TRAMPOLINE, it is supported by all archs.
svn path=/trunk/mono/; revision=132096
2009-04-19 Zoltan Varga <[email protected]>
* object.c (mono_install_vtable_trampoline): Make this receive a
trampoline creation function instead of trampoline, allowing the JIT
to use a different trampoline for each vtable.
In mini/
2009-04-19 Zoltan Varga <[email protected]>
* mini.c (mini_create_vtable_trampoline): Make this receive a
vtable argument, not yet used.
svn path=/trunk/mono/; revision=132081
Option.Description text of `"aaa." . "a" x 64` (that is, "aaa."
followed by 64 "a"s) would cause GetLines() to go into an infinite
loop and (eventually) die from an OutOfMemoryException. Oops.
Fix this, simplify the logic, and turn GetLines() into an
IEnumerable<string>.
* Test/Mono.Options/OptionSetTest.cs: Add additional line breaking
tests. Remove [Category("NotWorking")], as they work for me.
svn path=/trunk/mcs/; revision=132074
* NumberFormatter.cs: Keep the current thread's number formatter
as a ThreadStatic member.
2009-04-18 Mark Probst <[email protected]>
* Thread.cs: Don't keep the current number formatter here
because it's shared between app domains.
svn path=/trunk/mcs/; revision=132067
* RemotingServices.cs (GetDomainProxy): Make a copy of the array
created in the other app domain so as not to pollute our own.
svn path=/trunk/mcs/; revision=132066
* complete.cs: Include namespace resolution in simple names as
well as global types and types in the using scope in the
resolution.
* namespace.cs: Supporting infrastrcture to provide completions
based on the current using scope.
svn path=/trunk/mcs/; revision=132065
2009-04-18 Mark Probst <[email protected]>
* icall-def.h: New icall for getting the thread abort exception
state for a thread.
* object.c, thread.c, object-internals.h: A thread's abort
exception state is now a GC handle. To get the object it stands
for, we must move it into the current app domain, if it's
different than the one where it originated from.
* appdomain.c: Bump corlib version.
* domain.c, domain-internals.h: New function for setting the
domain and migrate the thread abort exception or not.
2009-04-18 Mark Probst <[email protected]>
* appdomain-thread-abort.cs: New tests for thread aborts across
app domains.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=132064
2009-04-18 Mark Probst <[email protected]>
* Thread.cs: Make the abort exception state a GC handle, to
properly separate AppDomains. Add internal method for getting the
state object.
* ThreadAbortException.cs: Get the abort exception state via the
method in Thread.
2009-04-18 Mark Probst <[email protected]>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=132063
of the evaluator API.
* cs-tokenizer.cs (CompleteOnEOF): this new property is used to
support the completion engine. When we reach the end of the
input stream instead of returning EOF, when this flag is true the
tokenizer instead produces:
One GENERATE_COMPLETION token: this token then must be
handled in the grammar at every point where the user
would likely request a completion.
As many COMPLETE_COMPLETION tokens as necessary. These
tokens are generated to assist the parser in unwinding and
producing a valid parse tree.
The parser rules do not have to be perfect, the parser needs to be
augmented with judicious use of GENERATE_COMPLETION tokens to
improve the areas where we can provide completion and the parser
needs to add support for COMPLETE_COMPLETION tokens in productions
to make them work.
It is common to not have enough support for COMPLETE_COMPLETION
under certain rules and that even if we generated the
GENERATE_COMPLETION token that the resulting tree will be invalid
due to the missing rules that support COMPLETE_COMPLETION.
The final EOF token is produced by having the parser notify the
tokenizer when it reaches the root production that the next token
should be EOF.
* support.cs (CompletionResult): New Exception. This exception
is thrown to return the completion results when one of the special
completion expressions is reached.
This exception is thrown by the completing ExpressionStatements
classes that live in complete.cs
* complete.cs (CompletingExpression): a new base class for
completing expressions. This derives from the
ExpressionStatement class and not from Expression as it allows
completion to happen not only where expressions are expected in
the grammar, but also where statements are expected.
(CompletionSimpleName): A new class used to provide completions
for SimpleNames. This currently only resolves to local
variables from the evaluator context (GetVars call).
(CompletionMemberAccess): Implements support for completing member
access patterns.
* cs-parser.jay: Add support for completion in a few places.
* eval.cs (GetCompletions): New public API for the evaluator that
returns a list of possible completions given the input. The
return value is an array of completions
* anonymous.cs (Compatible): If the exception thrown from the
resolved expression is a CompletionResult exception let that one
through instead of printing a diagnostic error in the try/catch.
svn path=/trunk/mcs/; revision=132052
Initial support to provide code completion facilities to consumers
of the evaluator API.
* cs-tokenizer.cs (CompleteOnEOF): this new property is used to
support the completion engine. When we reach the end of the
input stream instead of returning EOF, when this flag is true the
tokenizer instead produces:
One GENERATE_COMPLETION token: this token then must be
handled in the grammar at every point where the user
would likely request a completion.
As many COMPLETE_COMPLETION tokens as necessary. These
tokens are generated to assist the parser in unwinding and
producing a valid parse tree.
The parser rules do not have to be perfect, the parser needs to be
augmented with judicious use of GENERATE_COMPLETION tokens to
improve the areas where we can provide completion and the parser
needs to add support for COMPLETE_COMPLETION tokens in productions
to make them work.
It is common to not have enough support for COMPLETE_COMPLETION
under certain rules and that even if we generated the
GENERATE_COMPLETION token that the resulting tree will be invalid
due to the missing rules that support COMPLETE_COMPLETION.
The final EOF token is produced by having the parser notify the
tokenizer when it reaches the root production that the next token
should be EOF.
* support.cs (CompletionResult): New Exception. This exception
is thrown to return the completion results when one of the special
completion expressions is reached.
This exception is thrown by the completing ExpressionStatements
classes that live in complete.cs
* complete.cs (CompletingExpression): a new base class for
completing expressions. This derives from the
ExpressionStatement class and not from Expression as it allows
completion to happen not only where expressions are expected in
the grammar, but also where statements are expected.
(CompletionSimpleName): A new class used to provide completions
for SimpleNames. This currently only resolves to local
variables from the evaluator context (GetVars call).
(CompletionMemberAccess): Implements support for completing member
access patterns.
* cs-parser.jay: Add support for completion in a few places.
* eval.cs (GetCompletions): New public API for the evaluator that
returns a list of possible completions given the input. The
return value is an array of completions
* anonymous.cs (Compatible): If the exception thrown from the
resolved expression is a CompletionResult exception let that one
through instead of printing a diagnostic error in the try/catch.
svn path=/trunk/mcs/; revision=132033
* ChannelFactory.cs: Ensure we create and open a factory here,
avoids a NRE regression in
System.ServiceModel.ClientRuntimeChannel.SetupRequestChannel ()
svn path=/trunk/mcs/; revision=132023
* repl.cs: Support executing files that were specified in the
command line.
2009-04-17 Miguel de Icaza <[email protected]>
* eval.cs: Introduce an entry point that allows for initialization
to return a list of the files passed on the command line.
svn path=/trunk/mcs/; revision=132017
* ChannelFactory.cs, ClientRuntimeChannel.cs : implemented
CreateFactory() and moved corresponding code from latter to
former. Made implementation closer to .NET behavior.
svn path=/trunk/mcs/; revision=132016
* coreclr-security.cs: Add test case for the "special" case about
a default ctor being SSC on a transparent type (e.g. WebClient)
svn path=/trunk/mono/; revision=132010
* CSharpCodeCompiler.cs: pass current application's domain
PrivateBinPath to gmcs using its /lib parameter and put the same
value in the MONO_PATH environment variable. Fixes bug #493874
svn path=/trunk/mcs/; revision=131983
* AspGenerator.cs: if thead/tbody are parsed as children of a
server-side table control, ignore them. Fixes bug #481622
svn path=/trunk/mcs/; revision=131977
* assembly-with-complex-type.cs: Add stuff to
fill constant, field rva and field marshal tables.
* cli-tables-tests.md: Initial tests for the field table.
* gen-md-tests.c: Add or-byte and or-ushort effects. Fix
documentation.
svn path=/trunk/mono/; revision=131963
* metadata-verify.c: Add a macro to conditionally enable
dumping of verification information. Add make_coded_token
and search_sorted_table to enable search sorted tables
by a given coded token.
svn path=/trunk/mono/; revision=131961
* metadata-verify.c: Add array mapping from table index
to description offset. Add get_col_offset and get_col_size
functions.
svn path=/trunk/mono/; revision=131960
* metadata-verify.c: Fixed constant table description.
Fixed calculation of HasCustomAttribute coded index size.
Fixed calculation of size for many table indexes.
svn path=/trunk/mono/; revision=131958
HelpSource.GetText() unless *useful* content is being returned, as
when non-null is returned RootTree.RenderUrl() assumes that the url
was handled and won't try any other HelpSources. In this case, we
can (and do) have multiple ManHelpSources present, but since
ManHelpSource.GetText() was returning "<html>url was null</html>",
RootTree thought it was handled...when it wasn't. Fix.
svn path=/trunk/mcs/; revision=131934
EcmaDoc.GetCref() to generate //member/@name values.
* Mono.Documentation/dump.cs: Add -f=FORMAT support, so that we can
load an appropriate HelpSource (if supplied) so that an appropriate
Node.PublicUrl can be displayed in the output.
svn path=/trunk/mcs/; revision=131927
* net_2_1_raw_System.Xml.dll.sources: Remove corlib's files since
System.Xml can now access, for 2.1 (moonlight) corlib's internals.
svn path=/trunk/mcs/; revision=131926
* net_2_1_raw_System.dll.sources: Remove corlib's files since System
can now access, for 2.1 (moonlight) corlib's internals.
svn path=/trunk/mcs/; revision=131925
* AssemblyInfo.cs: allow System, System.Xml and Mono.
CompilerServices.SymbolWriter access to mscorlib internals
for 2.1 (Moonlight) so they can access internalized types
like non-generic System.Collections
svn path=/trunk/mcs/; revision=131924
it's own process, and spawns monodoc GUI into a separate process,
then sends Node.URL values (obtained from the MonoDevelop process)
to load the documentation into the monodoc GUI. Problem:
occasionally the requested documentation isn't loaded, but instead
some completely unrelated documentation is shown instead. This is
because the Node.URL value contains HelpSource-dependent data, e.g.
a Node.URL value of "ecma:0#Foo/" will specify the 1st file
within...whatever HelpSource is first consulted by monodoc (which
can vary between monodoc runs, the phase of the moon, etc.).
Solution: Add a Node.PublicUrl property which returns _stable_ URLs
which aren't specific to a given HelpSource.
- Add Node.PublicUrl property, which delegates to
Provider.GetPublicUrl(string), so that a Provider can generate a
Provider-independent URL (if possible).
- Print PublicUrl from Node.PrintTree().
- Add RootTree.GetSupportedFormats(), RootTree.GetProvider()
methods.
- Make RootTree.GetHelpSource() public.
* Monodoc/ecma-provider.cs: Add EcmaDoc.GetCref() method (generates an
XML documentation //see/@cref value), override
Provider.GetPublicUrl() (which will return cref's if possible).
svn path=/trunk/mcs/; revision=131923
* ResourceWriter.cs: The magic internal type here is required to match
Microsofts for SL2 resource deserialization.
svn path=/trunk/mcs/; revision=131919
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Move the calls to
mono_debug_add_delegate_trampoline () to get_delegate_invoke_impl ().
svn path=/trunk/mono/; revision=131908
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
ChannelFactory_1.cs :
Sort of reverted internal client channel type changes from
February, but to work fine in SL2 too. Now ChannelFactory<T>
can handle combined interface of IClientChannel and the contract.
svn path=/trunk/mcs/; revision=131899
* HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
does not report them (since they are the "right" behavior)
* WebClient_2_1.cs: Fix BaseAddress property to return the URI to
the XAP file. Implement protected GetWebRequest which will make an
absolute URI from a relative one (using BaseAddress). That remove
the need of the previous hack.
* WebRequest_2_1.cs: Remove previous hack
svn path=/trunk/mcs/; revision=131897
* certmgr.cs: Don't throw if we're missing an argument. Fix by
Romain Tartiere (bug #464765). Updated help to specify that
"option type" is mandatory in some cases.
svn path=/trunk/mcs/; revision=131892
* HttpContext.cs: local resources code now uses the custom
resource provider factory, just like the global resources
code. Fixes bug #493263
2009-04-16 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs:
AssignPropertyFromResources now checks whether the field/property
passed to it is decorated with the Localizable custom attribute
and whether the resource provider contains an entry for that
property.
svn path=/trunk/mcs/; revision=131888
* TemplateControlCompiler.cs: using a regexp to check whether an
expression is a Bind one. Fixes bug #493639
2009-04-16 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx
2009-04-16 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #493639
svn path=/trunk/mcs/; revision=131874
* cli-tables-tests.md: Tests for the field list of the typedef table.
* assembly-with-complex-type.cs: New assembly source.
* Makefile: Compile the new assembly source.
svn path=/trunk/mono/; revision=131856
* metadata-verify.c (verify_pe_optional_header): Add comment of why
the code is commented.
* metadata-verify.c (verify_resources_table): Remove spurious printf
and don't fail if there are unmanaged resources. Gmcs generates a useless
one for all assemblies - I bet it's some MS compatibility junk.
svn path=/trunk/mono/; revision=131854
- Add HelpSource.IgnoreCache field, so that if the cache is present
it will be ignored. (Required by 'mdoc export-html-webdoc' so it
gets "fresh" content to generate the cache, and by monodoc GUI as
it can't use the cache'd HTML; cache'd HTML is for ASP.NET
webdoc only.)
- Alter the cache directory from e.g. sources/netdocs to
sources/cache/netdocs (as defined by
XmlDocUtils.GetCacheDirectory()).
- Add HelpSource.GetCachedText() method which will return the
contents of the cache for an id.
* Monodoc/addins-provider.cs, Monodoc/ecma-provider.cs,
Monodoc/error-provider.cs, Monodoc/man-provider.cs,
Monodoc/simple-provider.cs: Use GetCachedText().
* Mono.Documentation/XmlDocUtils.cs: Add GetCacheDirectory(),
GetCacheFileName() methods.
svn path=/trunk/mcs/; revision=131828
2009-04-15 Martin Baulig <[email protected]>
* MonoSymbolTable.cs
(LineNumberTable.DW_LNE_MONO__extensions_start): New const.
(LineNumberTable.DW_LNE_MONO__extensions_end): New const.
(LineNumberTable.DoRead): Ignore unknown extended opcodes if
they're within the Mono extension range.
svn path=/trunk/mcs/; revision=131801
2009-04-15 Martin Baulig <[email protected]>
* debug-mono-symfile.c
(mono_debug_symfile_lookup_location): Don't print a warning for
unknown extended opcodes if they're within 0x40 and 0x7f.
svn path=/trunk/mono/; revision=131800
target directory already exists and is newer than the source files,
don't regenerate output. (Greatly speeds things up if nothing has
changed.) Add a --force-update option to disable this behavior.
svn path=/trunk/mcs/; revision=131770
* TemplateParser.cs: use generic lists for import, namespace and
interface caches. If a namespace is added (e.g. by parsing the
Import directive), find the assembly in which namespace is
defined.
2009-04-15 Marek Habersack <[email protected]>
* BuildManager.cs: do not add all assemblies in bin/ when serving
a precompiled site. Fixes bug #493873
When serving a precompiled site, check if the bin/ directory
contains certain well-known assemblies and load them if present.
svn path=/trunk/mcs/; revision=131768
* HttpApplicationFactory.cs: if a notification is received from a
FileSystemWatcher which was configured to watch for
subdirectories, uses a filter (currently we have just one such
watcher - waiting for changes to '?eb.?onfig') and the event
doesn't match the filter, ignore the event. Fixes bug #495011
svn path=/trunk/mcs/; revision=131752
In ilasm/codegen:
* MethodDef.cs (GetNamedLocalSlot): Return -1 if local var not found.
In ilasm/parser:
* ILParser.jay (instr): Handle unidentified local var id.
In ilasm/scanner:
* StringHelper.cs (startIdChars): New. Set of chars that can start an
identifier.
(Start): Use startIdChars instead of idchars.
svn path=/trunk/mcs/; revision=131736
HelpSource, not through the RootTree, as URLs of the form
"ecma:0#AvoidExtensionMethodOnSystemObjectRule/" use the number (0
in this case) as a HelpSource-relative identifier. Result: you get
the wrong documentation if you go through RootTree.
svn path=/trunk/mcs/; revision=131728
* mdoc.exe.sources: Add ObjectRocks.cs, webdoc.cs to the build.
* Mono.Documentation/mdoc.cs: Add export-html-webdoc command, which
"pre-renders" HTML for use by the webdoc ASP.NET renderer.
* Mono.Documentation/webdoc.cs: Added; MDocExportWebdocHtml
implementation; attempts to pre-render HTML based on .tree/.zip
file contents.
* Mono.Documentation/ObjectRocks.cs: Added; extension methods for tree
traversal (from Mono.Rocks). For use in webdoc.cs.
svn path=/trunk/mcs/; revision=131727
* verify.c (mono_method_verify): Don't fail if an unconditional branch
with non empty stack happens before the beginning of a try block.
Fixes#494812.
svn path=/trunk/mono/; revision=131704
* Uri.cs: Fix processing of %2f and %5c in paths. Avoid a few
computation where the result is not used (overwritten)
svn path=/trunk/mcs/; revision=131681
* marshal.c (delegate_hash_table_add): Make delegate_target_locations
a MonoGHashTable to keep its values alive.
(emit_marshal_boolean): Fix a warning.
svn path=/trunk/mono/; revision=131667
* ContainerControl.cs: Implement support for Control.CausesValidation,
by adding a pending list of controls to be validated in the top
container control, and postpone validation as needed.
Also remove any control in the validation chain in case it gets removed
from its owner before the pending validation actually happens.
Fixes#457170.
svn path=/trunk/mcs/; revision=131656
* marshal.c (mono_delegate_to_ftnptr): Use mono_gc_alloc_fixed () for
allocating the location holding the this argument to prevent
'too many root sets' errors.
svn path=/trunk/mono/; revision=131655
* socket-io.c: don't return IPv4/IPv6 addresses if the machine does
not have any interface configured for IPv4/IPv6.
svn path=/trunk/mono/; revision=131639
* object.c (mono_class_create_runtime_vtable): Set field->offset to -1
to mark fields as special static.
(mono_field_static_get_value): Handle special static fields.
(mono_field_static_set_value): Ditto.
* class-internals.h (struct _MonoClassField): Document this.
svn path=/trunk/mono/; revision=131623
* cominterop.c (mono_cominterop_emit_marshal_com_interface): Assigning
the argument a value of null for the MARSHAL_ACTION_MANAGED_CONV_OUT
case. This will handle when managed code returns null to native code.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131622
* object.c (build_imt_slots): Changing a free to a g_free to match
the g_malloc0 in add_imt_builder_entry that allocated this memory.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131621
* marshal.c (emit_marshal_boolean): Adding code to ensure that
the correct TRUE value is passed through the marshaling layer.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131618
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131614
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131613
* mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
full aot support to the arch specific code.
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.
* aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.
* aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.
* mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
collect information about the delegate invoke impl trampolines.
* mini.h (MonoAotTrampInfo): New structure collecting the information needed
to save trampolines during full-aot mode.
svn path=/trunk/mono/; revision=131612
* HttpUtility.cs: the collection returned from ParseQueryString knows
how to convert the key/value pairs to a string.
svn path=/trunk/mcs/; revision=131599
A fix for bug #493887
* statement.cs: Don't skip string multi-section with default or
null label when populating string hashtable.
svn path=/trunk/mcs/; revision=131588
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.
In mono/mini:
* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
if they are inside a conditional.
svn path=/trunk/mono/; revision=131565
* mini-trampolines.c (mono_create_static_rgctx_trampoline): New trampoline
creation function which returns a trampoline which sets the rgctx
argument.
(mono_magic_trampoline): Use the rgctx trampoline instead of an rgctx
wrapper if possible.
(mono_delegate_trampoline): Ditto.
* mini.c (mono_jit_runtime_invoke): Ditto.
* tramp-amd64.c: Add an implemention of static rgctx trampolines for AMD64.
* aot-compiler.c aot-runtime.c: Add support for static rgctx trampolines.
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
svn path=/trunk/mono/; revision=131555
* mini.c (mini_method_compile): Disable sharing of stack slots/registers
and extend live ranges to cover the whole method when using xdb.
svn path=/trunk/mono/; revision=131528
* jit-icalls.c (ldvirtfn_internal): Avoid creating rgctx wrappers here,
do it in the trampolines.
* mini-trampolines.c (mono_magic_trampoline): Add an rgctx wrapper if
needed.
* mini-trampolines.c (mono_delegate_trampoline): Ditto.
svn path=/trunk/mono/; revision=131527
* WebClient_2_1.cs: WebClient allows relative URI...
* WebRequest_2_1.cs: ...while WebRequest does not by default.
Also uncomment a few checks for new test cases
svn path=/trunk/mcs/; revision=131518
* method-to-ir.c (mono_method_to_ir): Avoid using the fast virtual method
call code in full-aot mode since IMT is disabled there.
(mono_method_to_ir): Inline ldfld wrappers which return structures too, the
new JIT no longer has that restriction.
svn path=/trunk/mono/; revision=131517
* UpdatePanel.cs: implemented SingleChildControlCollection to be
used in CreateControlCollection ().
RequiresUpdate not only checks the update mode and explicit update
requests, but also looks if any triggers fired.
Initialize () initializes triggers only if partial rendering is
supported by the ScriptManager.
IsInPartialRendering property no longer returns the value of
ScriptManager.IsInPartialRendering. Instead, it relies on the
value of instance field which can be set using new internal
SetInPartialRendering () method (called from
ScriptManager.RenderPageCallback ())
Simplified the logic in RenderChildren ().
* ScriptManager.cs: no need to register panels for refresh in
OnPreRenderComplete, this is now done in RenderPageCallback.
Modified HasBeenRendered () so that it doesn't query whether the
panel has been explicitly updated by the user, but checks whether
panel is in the list of panels to refresh.
RaisePostDataChangedEvent () doesn't update the panel whose id is
named in the POST request for refresh. This is handled in
RenderPageCallback.
Reverted the changes to WriteCallbackPanel and RenderFormCallback
committed in r129774.
RenderPageCallback now correctly detects panels to be refreshed
(and thus included in the async response).
* AsyncPostBackTrigger.cs, PostBackTrigger.cs: implemented
HasTriggered ().
svn path=/trunk/mcs/; revision=131511
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
* aot-compiler.c (emit_extra_methods): Emit the wrapper method names in
a more compact format.
(mono_aot_wrapper_name): New function to return a unique name for a
wrapper method, also used by the AOT runtime.
* aot-runtime.c (find_extra_method_in_amodule): Update after the changes to
aot-compiler.c.
svn path=/trunk/mono/; revision=131502
* aot-compiler.c (add_generic_class): Add the helper methods from T[]
when a ICollection<T> etc is encountered.
(add_generic_instances): Process method arguments/locals too.
(emit_trampolines): Emit unbox trampolines for extra methods too. Shorten
trampoline names.
* aot-runtime.c (mono_aot_get_unbox_trampoline): Handle extra methods too.
svn path=/trunk/mono/; revision=131501
2009-04-10 Mark Probst <[email protected]>
* appdomain-unload.cs: Test for invoking on a proxy whose server
domain was unloaded.
svn path=/trunk/mono/; revision=131473
* include/private/gc_locks.h (GC_test_and_set): Merge a change from libgc
7.1's libatomic-ops to fix the ppc build with gcc 4.4.
svn path=/trunk/mono/; revision=131471
* Array.cs: Make some of the InternalArray methods non-generic to cut down
on the number of instantiations. Add implementation for
ICollection:IsReadOnly.
svn path=/trunk/mcs/; revision=131469
an improvement, but doesn't fix all problems. In particular, some
assemblies will depend upon other assemblies to load (e.g. 3rd party
assemblies) but these dependent assemblies shouldn't be documented.
Add support for -r:ASSEMBLY and -L:DIRECTORY arguments to allow the
user to manually add to the assembly search path so that assemblies
can be found. Assemblies added via -r will NOT be documented.
svn path=/trunk/mcs/; revision=131447
* decompose.c (mono_decompose_opcode): Make this return a MonoInst*
representing the result of the decomposition. Nullify instructions
instead of setting them to OP_NOP since nops can't have registers
set.
svn path=/trunk/mono/; revision=131445
* valid_delegate_signature_with_generics.cs: Test for the compatibility
of delegate arguments when a function has a non generic type argument
and the delegate has a generic one.
svn path=/trunk/mono/; revision=131437
* finalizer-abort.cs, finalizer-exception.cs, finalizer-exit.cs :
Adding a sleep to the waiting thread to give Mono on Windows an
opportunity to interrupt the thread via QueueUserAPC.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131423
* aot-compiler.c (mono_compile_assembly): Split this huge function into
smaller parts. Add 'nodebug' option to prevent generation of DWARF debug
info. Strip 'mapping symbols' on ARM.
* iltests.il.in (test_0_fconv_to_i): Disable this on ARM too.
svn path=/trunk/mono/; revision=131421
* ListBox.cs: The default instance StringFormat field used to draw our
items should use the StringFormatFlags.NoWrap value, so it doesn't try
to put in a different line the text that doesn't fit our bounds, but
show it partially.
Fixes#475581.
svn path=/trunk/mcs/; revision=131415
that DISTFILES can be properly set (and thus properly distribute the
*_test.dll.sources file). This allows unit tests to actually build
and run when building from the tarball.
svn path=/trunk/mcs/; revision=131409
* CheckedListbox.cs: When executing OnItemClick check that the index
is different to -1 before trying to retrieve an item using that value.
Fixes a ArgumentOutOfRangeException thrown when the horizontal
scrollbar was visible but not needed, and then a clicked was received
on its area.
svn path=/trunk/mcs/; revision=131404
2009-04-09 Sebastien Pouliot <[email protected]>
* System.Net.dll.sources: Remove some unneeded files for the
build. Add the SL2 specific enums, instead of using the existing
ones from System.dll. Include Socket_2_1.cs (from System) and use
the AssemblyInfo.cs for this assembly
In System.Net:
2009-04-09 Sebastien Pouliot <[email protected]>
* DnsEndPoint_2_1.cs: Fix header.
* HttpStatusCode_2_1.cs: New. SL2 (short) version of the enum
* HttpWebRequest_2_1.cs: Add missing members
* WebExceptionStatus_2_1.cs: New. SL2 (short) version of the enum
* WebHeaderCollection_2_1.cs: Implement S.C.IEnumerable
svn path=/trunk/mcs/; revision=131400
2009-04-09 Sebastien Pouliot <[email protected]>
* Socket.cs: Split socket class into two files (this one and the
new Socket_2_1.cs). This let us remove (some) existing #if in the
sources and avoid (a lot) of new ones for Moonlight.
* Socket_2_1.cs: Just enough of socket for NET_2_1. This helps
the tuner not to bring a lot of extra stuff (some visible)
into Moonlight.
* SocketAsyncEventArgs.cs: Ifdef out some cases for NET_2_1 so
Moonlight can use it's own (smaller) SocketAsyncOperation enum
In .:
2009-04-09 Sebastien Pouliot <[email protected]>
* System.dll.sources: Add System.Net.Sockets/Socket_2_1.cs
svn path=/trunk/mcs/; revision=131392
* ecma-provider.cs: remove 'using'.
* provider.cs: if there's a directory with the base name, read the
files from there instead of from the .zip file.
svn path=/trunk/mcs/; revision=131376
* class.c (can_access_instantiation): Verify accesibility of element types
for arrays and pointers.
* class.c (can_access_type): Return true if the target class is VAR or MVAR.
* class.c (mono_method_can_access_method_full): Fix typos in the documentation.
Fixes#493068.
svn path=/trunk/mono/; revision=131372
shared amongst all AssemblyDefinitions to resolve assembly/type
references with Cecil. Otherwise, if we have deeply nested
directories with cross-directory assembly dependencies, then Cecil
won't find the necessary assemblies (e.g. b/bin/Debug/b.dll has a
type which inherits from a/bin/Debug/a.dll -- here, we'll have two
separate AssemblyDefinitions, and when b.dll's AssemblyDefinition
tries to resolve types from a.dll, it fails).
See: http://lists.ximian.com/pipermail/mono-devel-list/2009-April/031646.html
svn path=/trunk/mcs/; revision=131370
sqlmetal, as it couldn't find an IProcessor implementation (as the
local AssemblyInfo.cs was missing a [assembly: DbLinq] attribute).
Fix so that sqlmetal works again.
* Makefile: Actually enable NUnit tests.
svn path=/trunk/mcs/; revision=131358
* MaskedTextBox.cs: If Insert is pressed, change the internal
overwrite mode for our default value.
Fixes some bits of #477395.
svn path=/trunk/mcs/; revision=131344
* security-core-clr.c: Simplify get_reflection_caller not to call
mono_method_get_last_managed (another stack walk) and adjust the
callers to handle a (should not happen) NULL return value.
svn path=/trunk/mono/; revision=131339
* dis/get.c: Use new MonoGenericParam accessors.
* metadata/class-internals.h (mono_generic_param_owner): New accessor.
(mono_generic_param_num): Likewise.
(mono_type_get_generic_param_owner): New helper.
(mono_type_get_generic_param_num): New helper.
* metadata/{class.c, icall.c, metadata.c, reflection.c, verify.c}: Use them.
* mini/aot-compiler.c: Use new MonoGenericParam accessors.
svn path=/trunk/mono/; revision=131315
* ScriptComponentDescriptor.cs: properties/events/references must
be serialized in alphabetical order. This matches what .NET
does. Some 3rd party controls depend upon this fact.
svn path=/trunk/mcs/; revision=131314
* aot-runtime.c (decode_klass_ref): Simplify generic parameter
handing. Avoid allocating MonoGenericParams, but use the ones in
the container itself.
svn path=/trunk/mono/; revision=131295
* dis/get.c: Use MonoGenericContainer accessor to get the contained
MonoGenericParam.
* metadata/class-internals.h (mono_generic_container_get_param): New wrapper.
* metadata/{class.c, icall.c, metadata.c, verify.c}: Use it.
svn path=/trunk/mono/; revision=131294
* verify.c (mono_type_is_valid_type_in_context): Rewrite to use
the standard case/loop. In particular, don't complain about
references to generic type definitions.
svn path=/trunk/mono/; revision=131270
* mini-llvm.c (mono_llvm_emit_method): Fix alignment in the LOCALLOC_IMM
opcode. Use pointer types in more places instead of casting them to
integers.
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Create a pass manager to run
optimizations.
(mono_llvm_optimize_method): New helper function to optimize a method.
* method-to-ir.c (mono_emit_widen_call_res): Extract the call result
widening code so it could be called from more places.
(mono_method_to_ir): Call mono_emit_widne_call_res () in several more
code paths in the call opcodes.
svn path=/trunk/mono/; revision=131265
* loader.c (method_from_memberref): If ít's a memberref to a typespec inflate
the signature and search the inflated type.
We can't blindly search the generic type definition or expect that the signature
will be inflated as both options can happen. The only solution is to search the
inflated type against the inflated signature.
Fixes#492778.
svn path=/trunk/mono/; revision=131263
* verify.c (mono_method_verify): Don't init code slots for exception boundaries if they
are larger than code size.
This can happen in valid code if the try/catch block is not followed by any instruction
and do a backward branch on the leave instruction.
Fixes#492494.
svn path=/trunk/mono/; revision=131233
* TemplateControlCompiler.cs: GenerateExpressionFromString doesn't
assume that the passed member is a property anymore. Fixes bug
#492252
svn path=/trunk/mcs/; revision=131210
* TreeView.js: removed nodeText parameter from the JS calls.
* TreeView.cs: encode | characters into U+007C, so that
RaiseCallbackEvent doesn't get confused.
Removed nodeText parameter from the JS calls.
svn path=/trunk/mcs/; revision=131196
* TreeNode.cs: reset the path data for all child nodes too.
* TreeView.cs: HtmlAttribute encode the node text. When rebuilding the
node tree, set the correct index for the nodes so that the Path is
correct.
svn path=/trunk/mcs/; revision=131186
* AssemblyInfo.cs: Added; Assembly-level attributes for sqlmetal.exe.
* Makefile: Correct the "namespace" of the embedded resource files;
build NUnit tests for sqlmetal.exe.
* sqlmetal.exe.sources: Build against the local AssemblyInfo.cs, not
DbMetal's AssemblyInfo.cs file.
* sqlmetal_test.dll.sources: Added; source files for the NUnit test.
* Test/AssemblyInfo.cs: Added; Assembly-level attributes for the NUnit
test assembly.
svn path=/trunk/mcs/; revision=131184
* ListView.cs: In EnsureVisible avoid any direct access to items if we
are using virtual mode - otherwise use the bounds stored in a specific
item in a given index. This is specially important when using groups
or when items are re-arranged, since the position in the items
collection can be different than that one being displayed.
Fixes the rest of ##491978.
svn path=/trunk/mcs/; revision=131163
* AssemblyInfo.cs: Remove AllowPartiallyTrustedCallers from NET_2_1
build (not in SL2) and open our internals to System.Xml.Serialization
(only in NET_2_1) since MS SL2 SDK requires it. Test case @
http://demos.devexpress.com/AgDataGridDemos/
svn path=/trunk/mcs/; revision=131162
* dwarfwriter.c: Use _ to separate class name
components as gdb can't handle '.'. Represent reference variables
as 'class <NAME>&'.
svn path=/trunk/mono/; revision=131157
* security-core-clr.c: Fix typo while comparing second method names
in can_avoid_corlib_reflection_delegate_optimization
svn path=/trunk/mono/; revision=131152
* ToolTip.cs: New fields to store the title/icon information.
* ThemeWin32Classic.cs: Implement support for tooltip's title and
icon.
Fixes#491978.
svn path=/trunk/mcs/; revision=131143
* HttpRuntime.cs: added a new internal static property
IsDebuggingEnabled
* HttpContext.cs: IsDebuggingEnabled now calls
HttpRuntime.IsDebuggingEnabled
2009-04-06 Marek Habersack <[email protected]>
* Page.cs: ProcessRaiseCallbackEvent and ProcessGetCallbackResult
now return full exception trace if one is caught and we're running
in debugging mode.
2009-04-06 Marek Habersack <[email protected]>
* TreeView.js: TreeView_ToggleExpand now takes more parameters - a
full definition of treeview's node contents.
Added new function, TreeView_PopulateNode, which partially takes
over role of the PopulateNode function generated in
TreeView.OnPreRender (see below). Fixes bug #492307
* TreeView.cs: RaiseCallbackEvent needs to recreate the event
target's parental tree all the way from the root to the node and
populate only the leaf (requested) node. This avoids calling the
TreeNodePopulate handler more times than needed. Fixes bug #492307
OnPreRender: moved the script code to constants and the script
body is now generated using StringBuilder instead of a series of
String.Format calls.
GetClientExpandEvent: adjusted code for new TreeView JavaScript
API.
svn path=/trunk/mcs/; revision=131137
* object.c (mono_class_compute_gc_descriptor): Make this non-static.
* domain-internals.h (struct _MonoJitInfo): Add a 'gc_info' field.
* gc-internal.h (MonoGCCallbacks): New stucture containing the callback
functions supplied by the JIT for the SGEN GC.
* sgen-gc.c: Call the callbacks supplied by the JIT to do stack marking.
svn path=/trunk/mono/; revision=131132
* mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.
* mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
* mini-gc.c: New file, contains the SGEN GC related parts of the JIT.
* gc-test.cs: New file with GC stack marking tests.
svn path=/trunk/mono/; revision=131131
* mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.
* mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
* mini-gc.c: New file, contains the SGEN GC related parts of the JIT.
* gc-test.cs: New file with GC stack marking tests.
svn path=/trunk/mono/; revision=131130
* Workspace.cs, ResourceCollectionInfo.cs,
CategoriesDocument.cs, ServiceDocument.cs : use common internal
SyndicationExtension class for extensions.
svn path=/trunk/mcs/; revision=131111
an NUnit test assembly during 'make test' and will run the tests
within the NUnit test assembly during 'make run-test'.
* library.make: Split out NUnit test rules/logic into tests.make.
* Makefile: Distribute tests.make.
* README.makefiles: Document HAS_NUNIT_TEST for executable.make,
documenting how to have NUnit tests for executables.
* tests.make: Added; NUnit test logic rules.
svn path=/trunk/mcs/; revision=131072
* AssemblyResourceLoader.cs: MS sets cacheability to public. Add
Last-Modified header and return 304 if validating max-age=0 or
If-Modified-Since succeeds.
svn path=/trunk/mcs/; revision=131053
* mono-filemap.c: Move mono_file_unmap for the not-mmap case to
the mono-filemap.c file so it can be plugged in platform-specific
code as well.
svn path=/trunk/mono/; revision=131031
* LogicalTypeInfo.cs: don't throw NREX when the passed type
doesn't have a parameterless constructor in
ShouldGenerateScript. Fixes bug #485435
svn path=/trunk/mcs/; revision=130982
* WebUIValidation_2.0.js: CustomValidatorEvaluateIsValid calls the
client-side evaluation function even if ControlToValidate is not
set. Fixes bug #485458
svn path=/trunk/mcs/; revision=130979
* SessionSQLServerHandler.cs: recreate connection after database
became unavailable but the session handler is still alive. Fixes
bug #491508. Patch from Hubert Fongarnand
<[email protected]>, thanks!
svn path=/trunk/mcs/; revision=130972
* AspParser.cs: local copy of checksum generated by the tokenizer
is made right after parsing is done.
* AspGenerator.cs: set tparser.MD5Checksum in Parse instead of in
InitParser. Avoids empty checksums in #pragma checksum.
svn path=/trunk/mcs/; revision=130971
* mini.h (COMPILE_LLVM): New macro.
* decompose.c (mono_decompose_opcode): Use the COMPILE_LLVM macro.
* ssa.c (mono_ssa_compute): Ditto.
* unwind.c (mono_unwind_get_ops_from_fde): New helper function to extract
the unwind ops from a DWARF FDE.
* mini-llvm.c: Implement generation of unwind info for LLVM compiled
methods by extracting the dwarf unwind ops from the unwind info generated
by LLVM.
svn path=/trunk/mono/; revision=130967
* TabControl.cs: When removing a tab that was previously selected, set
internally the value of selected_index to -1, to avoid trying to
access the previous one when trying to set the new one (and was
already removed from the collection). This is what .net seems to do
too.
Fixes#490937.
svn path=/trunk/mcs/; revision=130931
* mini-llvm.c (mono_llvm_emit_method): Enable support for non-IMT virtual
calls.
* mini-amd64.c (mono_arch_get_vcall_slot): Handle more kinds of the SIB
addressing modes.
svn path=/trunk/mono/; revision=130911
* WebConfigurationManager.cs: added code in the static constructor
to enable retrieving application settings via
ApplicationSettingsBase from within asp.net applications. Fixes
bug #491531
* ApplicationSettingsConfigurationFileMap.cs: added.
2009-04-03 Marek Habersack <[email protected]>
* CustomizableFileSettingsProvider.cs: added a way for System.Web
to specify path to the current Web.config. Fixes bug #491531
svn path=/trunk/mcs/; revision=130909
* Mono.Cecil.Metadata/BlobHeap.cs
* Mono.Cecil.Metadata/MetadataWriter.cs:
do a better job at emitting a blob heap.
svn path=/trunk/mcs/; revision=130908
* ClipboardTest.cs: New rrich text format test, and also re-name the
previous test to be a little more informative. Also clear the data
we have put in the clipboard before returning.
svn path=/trunk/mcs/; revision=130903
* XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
separated, and we cannot fallback on Text if Rtf is requested but not
present.
* Clipboard.cs: Actually use the format specified by our user when
putting data.
svn path=/trunk/mcs/; revision=130902
* mini.c (mini_method_compile): Add support for compiling with LLVM,
failing back to the JIT if something cannot be handled.
* mini-amd64.c (mono_arch_emit_call): Emit the arguments more simple when
compiling with LLVM.
* decompose.c (mono_decompose_opcode): Avoid decomposing some opcodes when
compiling with LLVM.
* method-to-ir.c (mono_method_to_ir): Avoid decomposing SWITCH when
compiling with LLVM.
* mini-ops.h: Add a few opcodes needed by LLVM.
* dwarfwriter.c (mono_dwarf_writer_emit_method): Avoid crashes if the method
has no unwind info.
* mini-llvm.c mini-llvm-cpp.cpp: New files containing the experimental llvm
backend.
svn path=/trunk/mono/; revision=130895
* Dictionary.cs (ValueCollection.CopyTo): fix for copying to
an object array. Based on a patch by Tobias Grimm <[email protected]>.
Fixes bug #328036.
svn path=/trunk/mcs/; revision=130884
* CompilationException.cs: skip warnings in ErrorMessage and
ErrorLines
* BuildManager.cs: when an error occurs while compiling the
requested virtual path, throw the exception, do not attempt to
build again.
* TemplateControlCompiler.cs: implemented missing converter for
the ExpandDepth property. Fixes bug #490860
2009-04-02 Marek Habersack <[email protected]>
* HttpException.cs: if there are more lines with errors, display
them all.
svn path=/trunk/mcs/; revision=130876
* valid_candidate_contraint_is_inflated_using_global_context.cs:
New test for cases where the candidate constraint type refers to the
global generic context.
We have to use it because it might be the case the the global context
has more arguments than the local one.
svn path=/trunk/mono/; revision=130873
* verify.c (mono_generic_param_is_constraint_compatible): Inflate the candidate
using the context of the method been verifier and not of the method been called.
* verify.c: Add verifier_inflate_type and mono_type_is_valid_type_in_context to
safely inflate generic types.
svn path=/trunk/mono/; revision=130872
* Initial import of ASP.NET MVC 1.0
2009-04-02 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added Mono specific attributes to delay-sign
the assembly with the winfx.pub key.
svn path=/trunk/mcs/; revision=130868
* security-core-clr.c: Change the strategy for checking the
"reflection using delegates optimization" to avoid unneeded
attributes in multiple class libraries.
svn path=/trunk/mono/; revision=130865
* ContentType.cs : when there are especials, quote parameter values.
* ContentTypeTest.cs : add quotation test for especials.
svn path=/trunk/mcs/; revision=130842
2009-04-01 Mark Probst <[email protected]>
* regalloc.h, mini-codegen.c: Make vassign members gint32 to fix
ridiculously large methods.
svn path=/trunk/mono/; revision=130798
* AssemblyBuilder.cs: CSharpCodePragmaGenerator.ReserveSpace:
added the 2 extra chars to pragmaChecksumStaticCount constant (the
ones added by Gonzalo below) and removed one NewLine to account
for Martin's change below.
VBCodePragmaGenerator.ReserveSpace - one newline follows
#ExternalSource.
VBCodePragmaGenerator.DecorateFile - one newline follows
#ExternalSource.
svn path=/trunk/mcs/; revision=130763
* Fixes rest of #480377
* DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
where passed type overloads an explicit operator for conversion of values.
svn path=/trunk/mcs/; revision=130709
* Fixes rest of #480377
* DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
where passed type overloads an explicit operator for conversion of values.
svn path=/trunk/mcs/; revision=130708
* verify.c (verifier_load_field): Fail if the field parent could not be loaded.
* verify.c (mono_method_verify): Do proper bounds checking of exception
clause ranges.
svn path=/trunk/mono/; revision=130699
* Page.cs: SavePageViewState saves the list of controls which
require post back regardless of whether view state is disabled or
not. Fixes bug #490753
svn path=/trunk/mcs/; revision=130694
* Code.cs (CILLabel): Add new constructor to signal that
a label is an absolute il offset. This is required by exception
handling declarations that use offsets and not labels.
svn path=/trunk/mcs/; revision=130691
* HttpApplicationFactory.cs: use glob patterns to watch for
changes to global.asax and web.config files.
Set up recursive watch on web.config in a separate thread, to
minimize application startup delay. Fixes bug #490497
svn path=/trunk/mcs/; revision=130682
* X11Clipboard.cs: Actually look for the RtfText format when calling
GetRftText in our clipboard formats list, instead of using the
generical Text format.
svn path=/trunk/mcs/; revision=130681
2009-03-31 Mark Probst <[email protected]>
* sgen-gc.c: Execute critical finalizers after ordinary
finalizers.
* class-internals.h, domain.c: Add CriticalFinalizerObject to
mono_defaults.
2009-03-31 Mark Probst <[email protected]>
* critical-finalizers.cs: Test case for critical finalizers.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=130677
2009-03-31 Mark Probst <[email protected]>
* sgen-gc.c: Wait until the last finalizer has executed when
returning from WaitForPendingFinalizers.
2009-03-31 Mark Probst <[email protected]>
* finalizer-wait.cs: Test case for WaitForPendingFinalizers.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=130670
* DefaultWsdlHelpGenerator.aspx: the link element in <head> must
be created using Response.Write, as the code expression in the
href attribute is otherwise treated verbatim. This is the same as
with .NET. Fixes bug #490497
svn path=/trunk/mono/; revision=130667
* All of the below are part of the fix for bug #489687
* ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
constructors.
* BuildProvider.cs: associated virtual path is stored internally
as an instance of VirtualPath, accessible via new
VirtualPathInternal property.
* BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
detect fake virtual paths.
GetBuildProvider now takes a VirtualPath instead of string for the
virtualPath parameter. The passed VirtualPath instance is passed
unchanged to BuildProvider.
* BuildManager.cs: AssertVirtualPathExists now uses
VirtualPath.IsFake to check for fake virtual paths.
* ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
MasterPageBuildProvider.cs, PageBuildProvider.cs,
ThemeBuildProvider.cs, UserControlBuildProvider.cs,
WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
CreateParser overloads now take a VirtualPath instead of a string
for the virtualPath parameter.
* ThemeBuildProvider.cs: use new parser constructors which take
VirtualPath instances instead of strings.
2009-03-31 Marek Habersack <[email protected]>
* VirtualPath.cs: added code to detect whether the VirtualPath
instance represents a fake virtual path (IsFake property).
Added new property DirectoryNoNormalize which returns
non-normalized directory for the VirtualPath instance.
Made ToString () a bit more friendly and well-behaved.
2009-03-31 Marek Habersack <[email protected]>
* ApplicationFileParser.cs, MasterPageParser.cs, PageParser.cs,
PageThemeFileParser.cs, PageThemeParser.cs, UserControlParser.cs,
WebHandlerParser.cs, WebServiceParser.cs: 2.0 constructors take a
VirtualPath instance for the virtualPath parameter, instead of a
string.
svn path=/trunk/mcs/; revision=130665
2009-03-31 Martin Baulig <[email protected]>
* debug-debugger.c (debugger_remove_breakpoint): Call
mono_debugger_remove_class_init_callback ().
2009-03-31 Martin Baulig <[email protected]>
* mono-debug-debugger.c
(mono_debugger_register_class_init_callback): Also register the
class init callback if the class is already initialized to make
things work with shadow copied assemblies.
svn path=/trunk/mono/; revision=130658
* XmlBinaryDictionaryReader.cs, XmlDictionaryWriter.cs :
a couple of fixes to reflect correct values for node properties
on each read step.
* XmlBinaryDictionaryReaderTest.cs: make tests more doubtful on
state.
svn path=/trunk/mcs/; revision=130655
* security-core-clr.c
(mono_security_core_clr_ensure_reflection_access_field): Let
critical code access the field (just like we do for methods). Use
check_field_access helper.
(mono_security_core_clr_ensure_reflection_access_method): Use
check_field_access helper.
svn path=/trunk/mono/; revision=130652
2009-03-31 Mark Probst <[email protected]>
* sgen-gc.c: Remove data (callback) element from FinalizeEntry
* and
call the run-finalize function directly.
* gc.c, gc-internal.h: Make run_finalize() non-static.
svn path=/trunk/mono/; revision=130650
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs
XmlBinaryFormat.cs : implemented element with short prefix.
* XmlBinaryDictionaryReaderTest.cs,
XmlBinaryDictionaryWriterTest.cs : added test for element with
short prefix.
svn path=/trunk/mcs/; revision=130617
* socket-io.c: don't fail if the SocketOptionsFlag has Partial or
* MaxIOVectorLength enabled, just ignore them.
Fixes bug #349688.
svn path=/trunk/mono/; revision=130613
* aot-compiler.c (mono_compile_assembly): Call img_writer_emit_start ()
right before emitting code, not at the start.
* mini.c (mono_postprocess_patches): Extract this into a separate function
from mono_codegen ().
* ssa.c (mono_ssa_compute): Set ins->klass for every PHI node, handle
byref types correctly.
svn path=/trunk/mono/; revision=130585
* gen-md-tests.c: Parse the source assembly using the runtime
metadata routines.
* gen-md-tests.c: Add table-row function.
* Makefile: like gen-md-tests with the runtime.
* cli-tables-tests.md: Add initial tests for the module table.
svn path=/trunk/mono/; revision=130581
* TextBox.cs: Process auto completion properly when we are using the
internal source provided by ComboBox, and also remove some repeated
checks.
Fixes#489339.
svn path=/trunk/mcs/; revision=130573
* AssemblyBuilder.cs: introduced a kludge to add #pragma checksum
and #pragma lines (or its vb equivalent - #ExternalSource) to
code-behind files named in the CodeFile/Src directives while
copying them to the dynamic directory for compilation. The kludge
works by recognizing the .cs and .vb extensions and wrapping the
file contents in the appropriate directives. This is done in this
way because the other possible way, using the
CodeSnippetCompileUnit, requires the entire file to be read in
memory and then passed to CodeDOM. We fall back to this way when
the file being copied is neither C# or VB.
svn path=/trunk/mcs/; revision=130566
src/DbLinq/Factory/Implementation/AbstractObjectFactory.cs, add
src/DbLinq/Data/Linq/SqlClient/Sql2008Provider.cs.
* src/**/*: Flush; syncs to DbLinq r1038, fixes
System.Data.Linq.SqlClient.Sql200?Provider cor-compare differences,
unit test execution order dependency issues, namespace names within
tests, etc.
svn path=/trunk/mcs/; revision=130561
ExceptionLocations.AddedMember, used for --exceptions=added support.
* Mono.Documentation/monodocer.cs: Add --exceptions=added, which will
only add <exception/> elements for newly added elements. This is
useful for updating documentation for established projects which
already have <exception/> corrections (e.g. *removal* of
<exception/> elements because the exceptions weren't actually
possible), so only new members should have <exception/> created.
svn path=/trunk/mcs/; revision=130551
* X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
its own file, since it is adding some functionality and thus is not a
simple struct as before.
* XplatUIX11.cs: Add support to store different formats that could
have been specified by the user when puting data in the Clipboard -
this is important when more than one format is supported (such plain
text and rtf text). Update in the needed places, as well as simplify
the code.
Fixes#489625.
2009-03-30 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=130537
* XplatUIX11.cs: When handling the SelectionRequest event, use
SelectionRequestEvent instead of SelectionEvent, so we get the right
data for the app asking for clipboard data. Set the member of
SelectioneEvent.property to indicate the place where we are storing
the information as well - this is specially important for gnome/kde
apps using the TARGETS atom to ask for the supported permission before
actually asking for a specific format.
Fixes#489393.
svn path=/trunk/mcs/; revision=130531
* mini-amd64.c (mono_arch_output_basic_block): Emit a few nops before
indirect calls, this avoids problems where get_vcall_slot () would get
confused by the native code for the instruction preceeding the call.
(mono_arch_get_vcall_slot): Simplify this.
(mono_arch_emit_imt_argument): Remove this, it is no longer needed.
svn path=/trunk/mono/; revision=130505
* mini-ops.h: Fix the definitions of the OP_IA64 opcodes, since the local
register allocator now seems to depend on them instead of the data in
cpu-<ARCH>.md.
svn path=/trunk/mono/; revision=130491
* mini.c (mini_method_compile): Throw the correct type of exception if
mono_method_get_header () fails because of a loading error.
svn path=/trunk/mono/; revision=130483
* mini.c (mini_method_compile): Clear the loader error if the method
header cannot be decoded.
In tests/
* load-exceptions.cs: Add a test for missing locals.
svn path=/trunk/mono/; revision=130476
* class.c: move coreclr inheritance/override checks to
security-core.clr.c
* security-core.clr.c|h: add code from class.c with additional
documentation. Fix override check when the method is not critical.
svn path=/trunk/mono/; revision=130464
* dwarfwriter.c (mono_dwarf_writer_emit_method): Fix handling of the
this argument for vtype methods. Add precise liveness info for arguments.
svn path=/trunk/mono/; revision=130460
* mini-codegen.c (mono_print_ins_index): Print the vreg of the
LIVERANGE_START/END opcodes.
* method-to-ir.c (mono_spill_global_vars): Fix liverange calculation
for arguments and values in registers.
svn path=/trunk/mono/; revision=130459
* DataGridViewCell.cs: We don't support drawing all types of cell borders,
so fallback and at least draw something instead of nothing.
svn path=/trunk/mcs/; revision=130449
* DataGridView.cs: If the column header isn't visible allow resizing
using the cell column border. Also be sure to reset the cursor properly.
[Fixes bug #489929]
svn path=/trunk/mcs/; revision=130446
* metadata-verify.c: Rename bounds_check_offset to bounds_check_datadir.
* metadata-verify.c: Implement table layout row size calculation. Verify
the total size of the tables.
svn path=/trunk/mono/; revision=130443
* appdomain.c:
* console-io.[ch]: added new mono_console_init() to make sure that
file descriptors 0, 1 and 2 are opened.
Bug #489019 fixed.
svn path=/trunk/mono/; revision=130424
* XmlBinaryDictionaryWriter.cs : further namespace refactory.
namespaces are managed by its own (to work fine for both string
and dictionary string).
svn path=/trunk/mcs/; revision=130396
* appdomain.h: Export a new callback type and a new function to
set this callback. This allow a mono host to provide it's own
definition for "platform code".
* metadata-internals.h: Add a core_clr_platform_code flag on
_MonoImage to (cache and) know if it is representing platform
code.
* image.c (do_mono_image_open): Set core_clr_platform_code flag
on platform code images.
* security-core-clr.c|h
(mono_security_set_core_clr_platform_callback): Allow the host
to provide it's own platform check definition.
(mono_security_core_clr_determine_platform_image): Detect if an
image is platform code (using the specified callback).
(mono_security_core_clr_is_platform_image): Return cached value
for platform code.
svn path=/trunk/mono/; revision=130389
2009-03-27 Zoltan Varga <[email protected]>
* threads.h: Add a comment to CreateThread.
In metadata/
2009-03-27 Zoltan Varga <[email protected]>
* threads.c (mono_create_thread): New helper function to wrap CreateThread
which has different parameter types for the 'tid' argument in windows and
the io-layer.
* appdomain.c attach.c threads.c: Use the new helper.
In mini/
2009-03-27 Zoltan Varga <[email protected]>
* aot-compiler.c: Use mono_thread_create () to create helper threads.
svn path=/trunk/mono/; revision=130385
* XmlBinaryFormat.cs, XmlBinaryDictionaryReader.cs,
XmlBinaryDictionaryWriter.cs : improved shorthanded prefix
support. Not only autocreated prefixes but also explicitly-
specified 'a' .. 'z' prefixes are mapped as shorthand.
Some significant (and ongoing) namespace support changes.
* XmlBinaryDictionaryWriterTest.cs: added test for shorthand
prefixed attributes.
svn path=/trunk/mcs/; revision=130381
* gen-md-tests.c: Add tables-header and set-bit helpers.
* cli-tables-tests.md: New tests for the cli tables.
* Makefile: Add new tests.
svn path=/trunk/mono/; revision=130349
IEnumerable<TEntity>.GetEnumerator() implementation to Table<TEntity>.
This is done for cor-compare compatibility with .NET.
svn path=/trunk/mcs/; revision=130333
* ToolStrip.cs: When disposing, iterate over the items in reverse
order, since disposing the items modifies the collection.
* ToolStripItem.cs: Remove from the owner when disposing.
Fixes#485769.
svn path=/trunk/mcs/; revision=130331
* DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
longer throws a NotImplementedException.
Based on a patch by Tom Hindle <[email protected]>
[Fixes bug #488319]
svn path=/trunk/mcs/; revision=130327
* DataGridView.cs: Do not show the vertical scrollbar if there is only
one row or less. For the sake of MSNET compatibility.
[Fixes bug #487988]
svn path=/trunk/mcs/; revision=130318
* TaskDatabase.cs (RegisterTask): Search for class by name
if task was not found using GetType (which uses namespace).
svn path=/trunk/mcs/; revision=130305
* HttpWorkerRequest.cs: use a generic dictionary to keep header
names in 2.0+.
GetKnown{Request,Response}HeaderIndex doesn't use the switch
anymore.
* HttpResponse.cs: WriteHeaders now checks whether a header to be
sent is a known one or not and uses the appropriate method to send
that header. Partial fix for bug #488702
svn path=/trunk/mcs/; revision=130292
* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
added some incomplete code for QName support.
* XmlBinaryDictionaryWriterTest.cs: added QName test part, but
disable since it does not work yet.
svn path=/trunk/mcs/; revision=130290
* X509ChainPolicyTest.cs: Add a small sleep between the Reset and
the second VerificationTime check since it would be possible, on
fast hardware, to get the same value (and assert).
svn path=/trunk/mcs/; revision=130282
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
handle utf16 typed nodes. (not sure if it is used in writer.)
svn path=/trunk/mcs/; revision=130281
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs,
XmlBinaryFormat.cs : fixed couple of issues regarding text and
base64 fixed-length buffers (their sizes are not variant).
Some ongoing changes on reading dummy-prefixed attributes.
svn path=/trunk/mcs/; revision=130278
* DataGridView.cs: When the current cell is moved out of the editing row
be sure to reset it back to a place holder row.
svn path=/trunk/mcs/; revision=130267
2009-03-25 Mark Probst <[email protected]>
* mini-codegen.c (mono_local_regalloc): Don't let sregs get
allocated to the same registers as fixed sregs.
2009-03-25 Mark Probst <[email protected]>
* interlocked-4.2.cs: New CompareExchange test (triggered
* register
allocation bug on x86 and amd64).
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=130247
* AspTokenizer.cs: MD5 checksum calculation happens here. It's
done incrementally as characters are read.
* AspParser.cs: the MD5 checksum is no longer computed here. Moved
to AspTokenizer.
After parsing, both the tokenizer and the string reader are
disposed of.
svn path=/trunk/mcs/; revision=130245
* AssemblyBuilder.cs: renamed CopyFile to CopyFileWithChecksum, in
prepration for future inclusion of checksum and line pragmas in
the file being copied.
Files are copied chunk by chunk, not by reading the entire
contents.
svn path=/trunk/mcs/; revision=130244
* appdomain.c: Bump MONO_CORLIB_VERSION to 73
* icall.c (ves_icall_System_Delegate_CreateDelegate_internal): Add
an extra 'throwOnBindFailure' parameter to the icall. Remove FIXME
and add a call to mono_security_core_clr_ensure_delegate_creation
to do the extra checks required by CoreCLR.
* security-core-clr.c|h: Add function to check delegate creation,
both in the binding and accessibility, under CoreCLR.
svn path=/trunk/mono/; revision=130214
* reflection.c (mono_reflection_create_dynamic_method): when
coreclr is enabled make sure that every resolved object are
checked (e.g. field and method access).
* security-core-clr.c|h: Add function to check objects resolved
when a dynamic method is created.
svn path=/trunk/mono/; revision=130206
* Delegate.cs (CreateDelegate): fix checks to deal with
valuetypes -> obj conversions for arguments, and avoid
issues with such unallowed conversion for return types.
svn path=/trunk/mcs/; revision=130175
* gen-md-tests.c: Add stream-header and cli-metadata
helpers.
* cli-metadata-tests.md: New tests for the cli metadata header
and streams.
* Makefile: Add new tests.
svn path=/trunk/mono/; revision=130173
* SerializationMap.cs, XmlFormatterDeserializer.cs:
empty collection deserialization resulted in extra
consumption of the next xml node.
svn path=/trunk/mcs/; revision=130108
* TemplateBuildProvider.cs: add values of the CodeFile and Src
page/master/control directives to the list of file dependencies.
Extract language also for master/page, not only for controls.
* PageCompiler.cs: CreateConstructors now triggers master page
build, if the current page is using one. Fixes bug #487857
svn path=/trunk/mcs/; revision=130082
stat.f_bavail * stat.f_frsize, NOT f_bavail*f_bsize, as on some
platforms (Solaris) bsize is the preferred block I/O size, while
f_frsize is the *actual* filesystem block size. Thus, to get proper
disk under Solaris, we need to s/f_bsize/f_frsize/g.
svn path=/trunk/mcs/; revision=130055
* ConsoleTest.cs: added a bunch of tests for the standard input,
output and error stream properties.
2009-03-23 Marek Habersack <[email protected]>
* FileStreamTest.cs: added a bunch of tests for SafeFileHandle
constructors
2009-03-23 Marek Habersack <[email protected]>
* Console.cs: OpenStandard{Input,Output,Error} no longer use
FileStream on 2.0+. The reason is that SafeFileHandle used in the
stream doesn't allow handles with values <= 0, and on Unix stdin
is 0 which would break the Console class. Instead of FileStream,
introduced a simple internal specialized stream which is used in
this scenario.
2009-03-23 Marek Habersack <[email protected]>
* FileStream.cs: implemented full support for SafeFileHandle in
2.0. The obsolete constructors taking an IntPtr now wrap it in a
SafeFileHandle.
2009-03-23 Marek Habersack <[email protected]>
* SafeHandle.cs: added an internal property, OwnsHandle, used by
FileStream.
svn path=/trunk/mcs/; revision=130049
* aot-compiler.c (arch_emit_unbox_trampoline): Fix the binary writer support.
(mono_compile_assembly): Enable the binary writer for full-aot as well.
* image-writer.c (do_reloc): Add support for the JUMP24 relocation,
fix the handling of large values in the ALU_PC_G0_NC relocation.
svn path=/trunk/mono/; revision=130003
* driver.cs (Main): Use Environment.Exit to quit quickly and
prevent the compiler from doing the usual wait for helper thread
to terminate.
This is to prevent a slowdown that was reported by Gonzalo on
ASP.NET
svn path=/trunk/mcs/; revision=129990
* exception.c|h: Add helpers to create [Field|Method]AccessException
* icall.c: Add required coreclr check calls for field reflection.
Move the existing (method) check logic into security-core-clr.c
* security-core-clr.c: Add functions to check if the access of a
field or method is allowed when reflecting under coreclr. This is
mostly done using a stack walk to find the "real" caller: i.e. the
code that is calling the reflection
svn path=/trunk/mono/; revision=129959
mdoc-export-html, and other apps that use file timetamps: if the
file contents haven't changed after the update, don't replace the
"original" file. This preserves file timestamps, thus allowing
other apps to behave nicely (e.g. mdoc-export-html won't update all
documentation after running mdoc-update, as the files won't change
unless something has *actually* changed).
svn path=/trunk/mcs/; revision=129940
target file already exists and is newer than the source file, don't
regenerate it. (Greatly speeds things up if only a few .xml files
changed.) Add a --force-update option to disable this behavior.
svn path=/trunk/mcs/; revision=129936
* EventInfo.cs, MonoProperty.cs: Ensure the delegate optimization
works correctly, i.e. throw the right exception, with Moonlight.
svn path=/trunk/mcs/; revision=129872
* security-core-clr.c|h: (mono_security_core_clr_class_level,
mono_security_core_clr_method_level): Avoid potential
MonoCustomAttrInfo allocation for transparent assemblies (e.g.
user/application code) and make it easier to set breakpoints
svn path=/trunk/mono/; revision=129866
* OracleCommand.cs: fix suggested by Thracx <[email protected]>
where the parameter was always item zero for an out parameter.
svn path=/trunk/mcs/; revision=129864
* unwind.c (mono_unwind_ops_encode): Increase the size of the encode buffer.
* mini-amd64.c (mono_arch_emit_epilog): Remove the encoding of stack size
into cfg->used_int_regs, it is not needed with the dwarf unwinder.
(mono_arch_compute_omit_fp): Remove the emit_epilog () workaround.
svn path=/trunk/mono/; revision=129826
src/DbLinq.Firebird/FirebirdDataContext.cs,
src/DbLinq.Ingres/IngresDataContext.cs,
src/DbLinq.MySql/MysqlDataContext.cs,
src/DbLinq.Oracle/OracleDataContext.cs,
src/DbLinq.PostgreSql/PgsqlDataContext.cs,
src/DbLinq.Sqlite/Schema/DataCommand.cs,
src/DbLinq.Sqlite/SqliteDataContext.cs,
src/DbLinq.SqlServer/SqlServerDataContext.cs,
src/DbLinq/Util/ReflectionUtility.cs: Make types internal so that
they aren't exported from System.Data.Linq.dll.
svn path=/trunk/mcs/; revision=129823
* DataGridView.cs: If IsHandleCreated and the very first row is added
to the grid in a non-databound scenario - select the first cell.2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridViewTest.cs: Add tests to verify that the current cell changes
if IsHandleCreated and the first row is added in a non-databound scenario.
[Fixes bug #486881]
svn path=/trunk/mcs/; revision=129815
* DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
DataGridView. They do not belong to a DataGridView.
* DataGridViewTest.cs, DataGridViewColumnTest.cs: Add tests for
Row/CellTemplates being always null.
[Fixes bug #486645]
svn path=/trunk/mcs/; revision=129806
* DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
Set indices and associate with DataGridView only after the item is
add to the internal list.
[Fixes part of bug #486645]
svn path=/trunk/mcs/; revision=129805
* DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
FullRowTemplate already contains all the cells.
[Fixes part of bug #486645]
svn path=/trunk/mcs/; revision=129804
* DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
to perform Pre and Post removal actions to allow the current cell to be
moved and all events fired properly before the column is removed.
svn path=/trunk/mcs/; revision=129803
* ScriptManager.cs: WriteCallbackPanel is called from
UpdatePanel.RenderChildren and should not output anything for
panels registered as the ones to refresh. If such a panel calls
this method, its output is stored in a dictionary to be used later
in RenderFormCallback.
RenderFormCallback first renders all the form controls. In that
process UpdatePanel instances, if any, may call
WriteCallbackPanel. After that, if there are panels registered for
refresh, another loop over the list is made this time checking
whether any panels left their output in WriteCallbackPanel. If a
panel hasn't done it it is rendered. And last, another check is
done to see if the loop described above caused any panels to leave
output in WriteCallbackPanel. If yes, the output is written to the
text writer.
svn path=/trunk/mcs/; revision=129774
* SecurityManager.cs: Remove VerificationException (not used from
the runtime anymore) and add FieldAccessException (which is now,
or soon will be, required/used by the runtime).
svn path=/trunk/mcs/; revision=129771
* KnownTypeCollection.cs, XmlFormatterDeserializer.cs :
to infer type from xml qname, consider DataContractAttribute
names.
svn path=/trunk/mcs/; revision=129764
* AssemblyResolver.cs (GatherGacAssemblies): Handle duplicate entries.
These seem to be old copies of the assemblies with old keys. Pick
the one with the latest timestamp.
svn path=/trunk/mcs/; revision=129760
* DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
Post removal action to allow the current cell to be moved and all events fired
properly before the row is removed.
svn path=/trunk/mcs/; revision=129757
* metadata-verify.c (verify_resources_table): Fix verification of zero
sized resource section and id entries count.
svn path=/trunk/mono/; revision=129741
* TypeBuilder.cs (GetGenericTypeDefinition): Call the icall instead of
the base method which now throws an exception.
svn path=/trunk/mcs/; revision=129692
* Type.cs (GetGenericTypeDefinition): Make this throw an exception to be
consistent with MS.NET. Move the real implementation to MonoType.
svn path=/trunk/mcs/; revision=129691
* Control.cs: AppRelativeResourceDirectory no longer returns a
hard-coded "~/" when template control's virtual path cannot be
determined. It returns application relative version of
TemplateSourceDirectory instead.
svn path=/trunk/mcs/; revision=129676
* DataGridView.cs: Fix scrolling to take into account that the
scrollbars are actually inside the client area of the datagridview.
svn path=/trunk/mcs/; revision=129657
* DataGridView.cs: When DataSource changes the rebinding should happen
not if IsHandleCreated but if BindingContext != null.
* DataGridViewTest.cs: Add tests for the relevance of IsHandleCreated and
the BindingContext for the databound state of the DataGridView.
[Fixes bug #486013]
svn path=/trunk/mcs/; revision=129651
* DataGridView.cs: Browsable(false) properties should be skipped when
autogenerating the columns.
* DataGridViewTest.cs: Add a test for Browsable(false) columns.
[Fixes bug #486021]
svn path=/trunk/mcs/; revision=129637
* Unit.cs: introduced a field to tell the difference between empty
(as in Unit.Empty) and 0px units.
2009-03-17 Marek Habersack <[email protected]>
* UnitTest.cs: added a test for equality with Unit.Empty
svn path=/trunk/mcs/; revision=129620
* verify.c (mono_verifier_is_class_full_trust): Add support for
CoreCLR security mode where trusted assemblies are defined as
"platform code".
svn path=/trunk/mono/; revision=129588
* method-to-ir.c: Remove more dead code (that was required only
because of method_is_safe). Fix compiler warnings.
svn path=/trunk/mono/; revision=129585
* JavaScriptSerializer.cs: if conversion of IDictionary or
IDictionary <K,V> to an object is requested, make sure that a
concrete type is used (in both cases Dictionary <string, object>).
Make sure that if the target type is an IDictionary<K,V> that the
key is either an object or a string.
2009-03-17 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added tests for conversion to
IDictionary and IDictionary <K,V> types.
svn path=/trunk/mcs/; revision=129580
* Expression.cs : gave up another optimization for bug #443090.
* SelectNodesTests.cs : added 2nd test for bug #443490.
svn path=/trunk/mcs/; revision=129574
* XPathExpression.cs : eliminate use of ExpressionCache and lose
significant performance in some use for the sake of multithreaded
use. Fixed bug #477049.
svn path=/trunk/mcs/; revision=129545
* DomainUpDown.cs: When ReadOnly is true, all the text entered by the
user should use a different handling, trying to use every pressed char
as a unique and only one prefix to compare against the items. Also,
refactor some input check code to avoid duplication.
Fixes#458607.
svn path=/trunk/mcs/; revision=129531
* resources-tests.md: New file with pecoff tests.
* Makefile: Add new tests.
* header-tests.md: Update some tests.
svn path=/trunk/mono/; revision=129519
* mini.c (mini_method_compile): Print the method been compiled with
verbose level 1 instead of 3 as this helps a lot debugging JIT crashes
for people not familiar with the runtime.
svn path=/trunk/mono/; revision=129514
* mini-exceptions.c (get_generic_info_from_stack_frame): Avoid returning
a managed object which is later put into a GList. Return its class instead.
* mini.c (mono_allocate_stack_slots_full): Avoid sharing ref and non-ref
stack slots when using sgen.
svn path=/trunk/mono/; revision=129509
* DataGridViewBand.cs: Update our State whenever a property changes.
* DataGridView.cs: Don't be so generous in reseting Displayed, because
it will spawn lots and lots of unneeded State changed events.
[Fixes bug #484989]
svn path=/trunk/mcs/; revision=129501
* AspGenerator.cs:
TagParsed now better handles <script> tags. For both server and
client tags ProcessScript is called and the input text, in case of
client tags, is read verbatim to be processed when ProcessScript
is called to close the tag. At this point the verbatim text is
checked whether it contains server-side tags and/or expressions.
svn path=/trunk/mcs/; revision=129491
* UriParser.cs (GetComponents): Don't refer to fields of Uri to
extract components. Use a pair of regexes instead on
Uri.OriginalString.
* Uri.cs (OriginalString): Make available as an internal property
in the NET_1_1 profile.
svn path=/trunk/mcs/; revision=129488
* MenuAPI.cs: When navigating items using the keyboard properly handle
the case when no item is selected - this way we should try to select
the first or the last item depending on the direction, but no the
second or third one, etc.
svn path=/trunk/mcs/; revision=129472
* XmlSchemaValidator.cs : check identities for untyped attributes.
Attribute keyfield test must adjust depth, or it never matches.
Missing braces for IgnoreIdentity test.
svn path=/trunk/mcs/; revision=129464
This patch is contributed under the terms of the MIT/X11 license
* Makefile.am (test_platform): Enable testbundle for ppc.
svn path=/trunk/mono/; revision=129461
This patch is contributed under the terms of the MIT/X11 license
* mkbundle.cs (WriteSymbol): Use .p2align 5 instead of .align 32
to get consistent results on all platforms.
svn path=/trunk/mcs/; revision=129460
* AspGenerator.cs: when parsing nested tags (includes tags inside
client-side javascript script blocks) pass the closing tag up to
the containing parser.
Instead of parsing the whole plain text contents, plus the two
constructs we're interested in from it using regexs. This is
necessary as we might be passed JavaScript code and without
understanding its syntax we'll confuse the '<' character for the
start of a tag.
svn path=/trunk/mcs/; revision=129449
* BuiltInDatatype.cs, XmlSchemaDatatype.cs : some equality comparison
failed because it anyType is not used as singleton.
svn path=/trunk/mcs/; revision=129440
* AspGenerator.cs: when parsing nested tags (includes tags inside
client-side javascript script blocks) pass the closing tag up to
the containing parser.
svn path=/trunk/mcs/; revision=129412
* XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
EndElement at the next XmlReader.Read(). Fixed bug #480066.
* XmlReaderCommonTests.cs : added test for bug #480066.
svn path=/trunk/mcs/; revision=129404
* Form.cs: When calling ProcessCmdKey, just after checking for any
MainMenu, check if there's an active ContextMenu that is *not* owned
by the form - this is needed when a non-focusable control owns a
ContextMenu but its ProcessCmdKey method can't be called since it
can't receive any input.
Fixes#477655.
svn path=/trunk/mcs/; revision=129395
Directly manipulate lsb/msb of short/int/long instead of using BitConverter.GetBytes() and swapping the resultant byte array using Swap() to reduce array allocations which, improves overall performance of Mono's TDS implementation.
svn path=/trunk/mcs/; revision=129375
* Convert.cs (ToType): Control whether this internal function will
call an IConvertible.ToType method or not.
Classes and structs implementing IConvertible in mscorlib (the
only callers that can access Convert.ToType) must pass false to
avoid a infinite recursion problem and callers from the public
Convert API must call it with true.
This fixes the regression reported in #485377 that was introduced
by the fix for #481687.
* Int16.cs, UInt64.cs, Double.cs, Enum.cs, SByte.cs, UInt16.cs,
Byte.cs, Decimal.cs, Int32.cs, String.cs, Int64.cs, Char.cs,
Boolean.cs, Single.cs, UInt32.cs: Update the call sites.
svn path=/trunk/mcs/; revision=129367
* metadata-verify.c: Verify the data pointed by the import table.
2009-03-13 Rodrigo Kumpera <[email protected]>
* data-directory-tests.md: New tests for import table name, ilt and iat.
svn path=/trunk/mono/; revision=129350
2009-03-13 Mark Probst <[email protected]>
* coreclr-security.exe: Added a test for calling via a
MANAGED_TO_MANAGED wrapper.
svn path=/trunk/mono/; revision=129300
* dwarfwriter.c (emit_line_number_info): Disable an assert which seems to
trigger randomly.
* aot-compiler.c: Get rid of xdebug_lock (), use the loader lock instead.
* dwarfwriter.c (emit_line_number_info): Fix eglib build as eglib doesn't
implement GArray.
svn path=/trunk/mono/; revision=129278
* SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
SerializationSource as the class is going to be used in 2.1 too.
* XmlRootAttribute.cs : use KeyHelper above to add internal Key
property that is used in SL2 System.Xml.Serialization.dll.
* System.Xml.dll.sources, net_2_1_raw_System.Xml.dll.sources :
added KeyHelper.cs.
svn path=/trunk/mcs/; revision=129243
* Control.cs: clear the controls cache on control removal. This
ensures that a subsequent FindControl call won't return the
removed control.
svn path=/trunk/mcs/; revision=129234
* TypeMap.cs: Avoid checking the getter/setter information until after
checking if we have the required attribute decorated.
svn path=/trunk/mcs/; revision=129232
We can't just rely on the normal System.Data.Linq.dll.sources
handling because ../../tools/sqlmetal also uses these sources.
svn path=/trunk/mcs/; revision=129217
* appdomain.c: if the assembly name is a shadow-copied file, return
TRUE from mono_is_shadow_copy_enabled but don't actually do anything
in mono_make_shadow_copy.
* icall.c: if the assembly name is a shadow-copied file, replace it
with the original assembly path.
Bug #484244 fixed. NUnit tests for corlib can be run without
--noshadow now.
svn path=/trunk/mono/; revision=129210
* sgen-gc.c (add_to_global_remset): Fix the handling of root global remset
entries when the table is reallocated.
svn path=/trunk/mono/; revision=129204
* Mono.Cecil/AssemblyStripper.cs (PatchHeap): don't crash
if the assembly doesn't contain a specific metadata heap.
svn path=/trunk/mcs/; revision=129191
* sqlmetal/ChangeLog, sqlmetal/Makefile, sqlmetal/sqlmetal.exe.config,
sqlmetal/sqlmetal.exe.sources: Added; builds `sqlmetal.exe', which is
the Mono version of DbLinq's DbMetal.exe program (which in turn is
modeled on .NET's SQLMETAL tool), "tuned" to depend only on Mono's
System.Data.Linq.
svn path=/trunk/mcs/; revision=129189
sqlmetal.exe to access the System.Data.Linq.dll internals, as
sqlmetal.exe is DbMetal.exe, and needs access to (normally public)
DbLinq.dll types.
svn path=/trunk/mcs/; revision=129187
which DbLinq files are being excluded from the build), and add
additional files to the build, specifically the *SchemaLoader and
*DataContext types.
* src/**: Flush to DbLinq r1013 (which allows the *SchemaLoader and
*DataContext types to build under MONO_STRICT).
svn path=/trunk/mcs/; revision=129185
* nBrowser/Build.cs: made Browser() method thread-safe and moved the
actual tree creation to a private InitializeTree() method for clarity.
svn path=/trunk/mcs/; revision=129176
* XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
WM_HELP message for the associated window, don't call
NativeWindow.WndProc *at all*, since this could send a WM_*
key-related to Control.WndProc. Also, return the keypress message, in
case it needs to be preprocessed for any menu.
Fixes#478476.
svn path=/trunk/mcs/; revision=129170
* icall.c: Allocate the memory used by the mono_ptr_array macros using
mono_gc_alloc_fixed () since it contains GC refs.
svn path=/trunk/mono/; revision=129166
* BuildManager.cs, BuildManagerDirectoryBuilder.cs,
BuildProvider.cs, TemplateBuildProvider.cs: dependencies are
returned as an IDictionary <string, bool>. Dependencies must be
compared case-insensitively.
svn path=/trunk/mcs/; revision=129142
* SerializationMap.cs, KnownTypeCollection.cs :
support CollectionDataContract-based dictionary too.
* XmlObjectSerializerTest.cs : added test for dictionary with
CollectionDataContractAttribute.
svn path=/trunk/mcs/; revision=129128
* SerializationMap.cs : cosmetic !NET_2_1 fix (no effect).
* KnownTypeCollection.cs : use ICollection<> and IList instead of
IEnumerable. This causes confusion for dictionary.
svn path=/trunk/mcs/; revision=129124
* InotifyWatcher.cs: don't send events when a directory is created
unless it matches the pattern. Fixes bug #484082.
svn path=/trunk/mcs/; revision=129112
System.Data.Linq.dll, add unit tests -- which aren't hooked up to Mono's build
system -- various bug fixes, etc.)
svn path=/trunk/mcs/; revision=129090
A fix for bug #482996
* anonymous.cs: Make sure we are not infering return type when
checking type compatibility.
svn path=/trunk/mcs/; revision=129085
* WebClient_2_1.cs: OnOpenReadCompleted and OnDownloadStringCompleted:
make sure we don't pass any exceptions back to native code.
svn path=/trunk/mcs/; revision=129077
* SortedList.cs: Add version checking to the Key/Value enumerators +
implement support for Reset (). Fixes#483985.
svn path=/trunk/mcs/; revision=129076
* XmlFormatterSerializer.cs, XmlObjectSerializer.cs,
XmlFormatterDeserializer.cs, KnownTypeCollection.cs :
add more xsi:type to cover collection items.
* XmlObjectSerializerTest.cs : test for generic IList of
DictionaryEntry. (no Hashtable serialization yet.)
svn path=/trunk/mcs/; revision=129068
* typemanager.cs, generic.cs, parameter.cs, decl.cs, const.cs,
rootcontext.cs, namespace.cs, class.cs, delegate.cs, driver.cs,
generic-mcs.cs, attribute.cs, codegen.cs: Maintain predefined
attributes in their own structure. Needed when accessing their
properties before they are resolved.
svn path=/trunk/mcs/; revision=129061
2009-03-11 Mark Probst <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Use different
registers in case the ones we want to overwrite are used by the
other operand. Fixes regression in #480807.
svn path=/trunk/mono/; revision=129058
* KnownTypeCollection.cs : fix generic argument names in xml.
They should use xmlized names instead of raw type name.
* XmlFormatterDeserializer.cs : remove extra Console.WriteLine.
* XmlObjectSerializerTest.cs : test for generic IList of KeyValuePair
(it is still different from full IDictionary support...!).
svn path=/trunk/mcs/; revision=129055
* reflection.c (ensure_complete_type): New helper function to call
type resolve handlers for unfinished dynamic types.
(resolve_object): Call it for MonoClassFields. Fixes#483852.
svn path=/trunk/mono/; revision=129009
* KnownTypeCollection.cs : fix for generic serialization.
* XmlObjectSerializerTest.cs : test for generic type serialization.
svn path=/trunk/mcs/; revision=129001
* UrlAuthorizationModule.cs: OnAuthorizeRequest must use the
configuration from <location> elements in the config. Fixes bug
#467221
svn path=/trunk/mcs/; revision=128972
2009-03-09 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c: Correct handling of OP_LOADI4_MEMINDEX for ppc64.
Fixes#483462.
svn path=/trunk/mono/; revision=128904
Date: Thu Mar 5 17:47:30 2009 +0100
Add CompileUnitEntry.IncludeFiles.
2009-03-05 Martin Baulig <[email protected]>
* MonoSymbolTable.cs
(CompileUnitEntry.IncludeFiles): New public property.
(CompileUnitEntry.ReadData): Also read include files.
svn path=/trunk/mcs/; revision=128890
* class.cs: Use correct common base type for unmanaged delayed
check.
* rootcontext.cs: Wrap unhandled exception.
svn path=/trunk/mcs/; revision=128852
* domain-internals.h (struct _MonoDomain): Add new hash tables mapping
between GCHandles of type WeakTrackResurrection and the objects they
point to.
* gc.c: Partly implement the sematics of GCHandles of type
WeakTrackResurrection: these handles should only be cleared after the
finalizer of the object they are pointing to has ran.
svn path=/trunk/mono/; revision=128849
* DataGridView.cs: When removing the first displayed row and moving
the current cell up one we must invalidate the first displayed row
index before calculating the row heights, etc.
* DataGridViewTest.cs: Add tests for CurrentCell.
[Fixes bug #483202]
svn path=/trunk/mcs/; revision=128845
* DataGridView.cs: Fix three column bugs:
- Rows should be cleared (but not removed) if columns become 0.
- The current cell should get moved
- ColumnCount increase was adding too many columns.
* DataGridViewTest.cs: Add tests for ColumnCount.
svn path=/trunk/mcs/; revision=128844
* DataGridView.cs: Fix RowCount decrease which wasn't working well
in both scenarions - with and without editing row.
* DataGridViewTest.cs: Add more tests for the RowCount property.
svn path=/trunk/mcs/; revision=128833
* support.cs (SeekableStreamReader.ResetStream): New. Allocates the buffer.
(SeekableStreamReader.Position.set): Use it. Simplify logic
which, as a side-effect, makes it arbitrarily-seekable. Tune the
buffer size when the stream needs to be re-read from the beginning.
svn path=/trunk/mcs/; revision=128831
returns null.
* ConvertTest.cs: Merged and improved test for bug #481687.
* ConvertTest2.cs: Merged into ConvertTest.cs.
svn path=/trunk/mcs/; revision=128830
2009-03-06 Mark Probst <[email protected]>
* icall.c: Partially revert r126631 because using the jump
trampolines for generic shared methods makes it superfluous.
svn path=/trunk/mono/; revision=128828
* Convert.cs: Apply patch from Tom Hindle that uses
IConvertible.ToType if there are no other possible conversions
defined.
Fixes: #481687
svn path=/trunk/mcs/; revision=128807
* DataGridView.cs: Be compatible with MS in that the scroll to
selection has a synchronous effect. The trick here is that in
order to avoid unnecessary calculations each time a row/column
is added/removed we recalculate the whole grid size just before
just before the scroll to selection.
[Fixes bug #482478]
svn path=/trunk/mcs/; revision=128806
* JsonDeserializer.cs: unquoted key values must ignore leading
and trailing whitespace
2009-03-06 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added a test for unquoted tests
surrounded with spaces.
svn path=/trunk/mcs/; revision=128801
* ControlBuilder.cs: BindingContainerType - if control type of the
containing builder is null, return typeof (Control)
svn path=/trunk/mcs/; revision=128796
* MonoType.cs (MonoTypeInfo): Add default_ctor field.
* MonoType.cs: Add GetDefaultConstructor that caches using
type_info.default_ctor.
* MonoType.cs (FullName): Protects against type_info been replaced
under the hood.
* Activator.cs (CreateInstance): If the type is a MonoType resolve the
default constructor using the new method from MonoType.
Improves Activator::CreateInstance performance by at least 30%, reduces object churn
and domain lock contention.
svn path=/trunk/mcs/; revision=128795
* RichTextBox.cs: LoadFile(string path) should pass by default
RichTextBoxStreamType.RichText, without caring about the detection or
extension of the file.
svn path=/trunk/mcs/; revision=128791
* RichTextBox.cs: When calling LoadFile, remove the extra EOL
introduced by StreamReader, since it will convert the EOF to an EOL.
Fixes#479646.
svn path=/trunk/mcs/; revision=128788
* ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
string if we aren't on a ToolStripDropDownMenu.
svn path=/trunk/mcs/; revision=128780
* method-to-ir.c (mono_method_to_ir): Check for type load exceptions in
the delegate ctor handling code. Fixes#482638.
svn path=/trunk/mono/; revision=128778
* ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
code from Item to Button. Patch from Alex Shulgin.
svn path=/trunk/mcs/; revision=128777
* domain-internals.h (struct _MonoDomain): Move 'typeof_void' before
FIRST_GC_TRACKED.
* domain.c (mono_domain_create): Register the fields between FIRST_GC_TRACKED
and LAST_GC_TRACKED as a GC root.
svn path=/trunk/mono/; revision=128734
* gc-internal.h: Fix the comment of mono_gc_alloc_fixed.
* object.c (mono_class_create_runtime_vtable): Create a GC descriptor for
the static data even if it consists of 1 reference.
* boehm-gc.c (mono_gc_alloc_fixed): Allocate using GC_MALLOC_EXPLICITLY_TYPED
if there is a GC descriptor.
svn path=/trunk/mono/; revision=128731
* reflection.c (ALLOC_REFENTRY): Allocate ReflectedEntry-es using malloc
instead of through the GC since they contain no object references.
svn path=/trunk/mono/; revision=128727
* mini-trampolines.c (mono_create_jump_trampoline): If the method
is shared generic code, return the trampoline, even if the method
has already been compiled. Fixes#479753.
* mini.c, mini.h: New function
mono_jit_find_compiled_method_with_jit_info() which is the same as
mono_jit_find_compiled_method() but also returns the jit info.
2009-03-05 Mark Probst <[email protected]>
* generic-sharing.c (instantiate_other_info): Always return a jump
trampoline for method code.
2009-03-05 Mark Probst <[email protected]>
* bug-479763.2.cs: New test.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=128723
* method-to-ir.c (mono_method_to_ir): Only force the vtable var
for methods which actually have one. For all other methods, make
sure the this argument var is live the whole method.
* mini.c (mini_method_compile): Every shared method has a
this/vtable/mrgctx info. Fixes#480807.
svn path=/trunk/mono/; revision=128720
* ContractDescriptionGenerator.cs : fill service known types.
* ServiceKnownTypeAttribute.cs : correct implementation to populate
specified types.
svn path=/trunk/mcs/; revision=128719
* culture-info-tables.h: generated to include the en-tt culture.
2009-03-05 Marek Habersack <[email protected]>
* locales/en_TT.xml: added here since openi18n.org times out and
also I can't update icu_locales.tar.gz. File based on en_ZA.xml
from that tarball, with appropriate modifications.
* Makefile.am (supp_data_files): added supp/en_TT.xml
svn path=/trunk/mono/; revision=128714
* mono.def : Removing missing methods to remove link errors for
MSVC build.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=128713
* ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
* ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
not a ToolStripDropDown.
* ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
svn path=/trunk/mcs/; revision=128694
* mini-ppc.c (mono_arch_build_imt_thunk): Add support for mixed
generic/imt thunks where some entries branch through the vtable,
while other entries branch directly.
svn path=/trunk/mono/; revision=128690
* domain-internals.h (MonoDomain): Add two fields to cache invoke wrappers to
capture the thread context.
* object.c (mono_async_result_new): Cache the invoke wrappers to
ExecutionContext::Capture.
svn path=/trunk/mono/; revision=128664
* marshal.h: Add a prototype for what mono_compile_method returns
for invoke wrappers.
* gc.c: Use the new prototype declaration.
svn path=/trunk/mono/; revision=128663
* boehm-gc.c: Add some MONO_LOG tracing for the GC
* gc-internal.h:
* mono-gc.h: Expose mono_gc_invoke_finalizers in the embedding api.
svn path=/trunk/mono/; revision=128661
* DataGridView.cs: Fix RowCount/ColumnCount decreasing.
* DataGridViewTest.cs: Add tests for RowCount/ColumnCount decreasing.
Based on a patch by Tom Hindle <[email protected]>
[Fixes bug #482133]
svn path=/trunk/mcs/; revision=128645
* DataGridView.cs, DataGridViewElement.cs:
- Always calls OnDataGridViewChanged() if the new DGV is
not the same/null as the current one.
- Do not throw NREs when setting TopLeftHeaderCell to null
- Unset the DGV for TopLeftHeaderCell when replacing it
* DataGridViewCellTest.cs: Add tests for OnDataGridViewChanged behavior.
Based on a patch by Tom Hindle <[email protected]>
[Fixes bug #481681]
svn path=/trunk/mcs/; revision=128628
* CrossDomainPolicy.cs : added validation method. Not sure if it is
complete.
* CrossDomainAccessManager.cs : validate against crossdomain.xml too.
svn path=/trunk/mcs/; revision=128593
* ToolStripDropDown.cs: When dismissing control due to ESC, don't
hit a NRE if we are a ContextMenuStrip and do not have a parent.
[Fixes bug #478616]
svn path=/trunk/mcs/; revision=128573
* Mono.Cecil/StructureWriter.cs: properly set the metadata tokens
of newly emitted modules and assemblies. Fix#480729.
svn path=/trunk/mcs/; revision=128572
2009-03-04 Martin Baulig <[email protected]>
* debug-mini.c: Clean up the exception API and add documentation.
(mono_debugger_handle_exception): New public method; this is
called when throwing an exception or encountering an unhandled one.
(mono_debugger_call_exception_handler): Formerly known as
mono_debugger_handle_exception(); this is used to tell the
debugger that we're about to invoke an exception handler.
svn path=/trunk/mono/; revision=128556
2009-03-04 Martin Baulig <[email protected]>
* debug-mini.c (mono_debugger_runtime_invoke): Moved here from
../metadata/mono-debug-debugger.c; save and reset exception state.
2009-03-02 Martin Baulig <[email protected]>
* debug-mini.c: Moved the debugger exception handling here from
../metadata/mono-debug-debugger.c.
* debug-mini.h
(MonoDebuggerExceptionAction): New exception typedef.
* debug-mini.c
(MonoDebuggerThreadInfo): Added `MonoObject *last_exception'.
* exceptions-amd64.c
(mono_amd64_throw_exception): Use the new debugger exception
handling code.
* mini-exceptions.c
(mono_handle_exception_internal): Don't call
mono_debugger_unhandled_exception() here.
2009-03-04 Martin Baulig <[email protected]>
* mono-debug.h
(mono_debugger_runtime_invoke): Removed.
* mono-debug-debugger.c
(mono_runtime_invoke): Moved into ../mini/debug-mini.c.
2009-03-02 Martin Baulig <[email protected]>
* mono-debug.h
(mono_debugger_unhandled_exception): Removed.
(mono_debugger_handle_exception): Removed.
(mono_debugger_throw_exception): Removed.
* mono-debug.c
(mono_debug_debugger_version): Bump to 5.
* mono-debug-debugger.c: Moved the exception handling code to
../mini/debug-mini.c
svn path=/trunk/mono/; revision=128544
* CachedRawResponse.cs: headers are stored in NameValueCollection
now.
2009-03-03 Marek Habersack <[email protected]>
* HttpResponse.cs: fully implemented the Headers property.
It is also used in the 1.1 profile, but is internal.
* HttpCookie.cs: GetCookieHeader renamed to GetCookieHeaderValue -
now returns a string with the header value.
* HttpCacheVaryByParams.cs: GetResponseHeader renamed to
GetResponseHeaderValue - now returns a string with the header
value.
* HttpCachePolicy.cs: SetHeaders now takes a NameValueCollection
instead of an ArrayList
svn path=/trunk/mcs/; revision=128494
* domain-internals.h (struct _MonoDomain): Add a separate lock for the
finalize_objects_hash.
* gc.c: Use the separate lock to access the finalize_objects_hash field.
svn path=/trunk/mono/; revision=128490
2009-03-03 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Add finalize_runtime_invoke
field.
* metadata-internals.h (struct _MonoImage): Add runtime_invoke_vcall_cache
cache.
* image.c (mono_image_close): Free it.
* marshal.c (mono_marshal_get_runtime_invoke): Add a 'virtual' argument
allowing a creation of a wrapper which invokes its method using a CALLVIRT
on the this argument.
* gc.c (run_finalize): Optimize the calling of the finalizers.
In mini/
2009-03-03 Zoltan Varga <[email protected]>
* mini.c aot-compiler.c: Update after the changes to
mono_marshal_get_runtime_invoke ().
svn path=/trunk/mono/; revision=128489
* icall.c (ves_icall_MonoType_GetGenericArguments): Use
mono_array_class_get_cached to reduce locking contention. Extract
a domain var.
* icall.c (ves_icall_Type_GetFields_internal): Avoid allocating
intermediary managed arrays. Use caching version of mono_array_new
to allocate the result array.
* icall.c (ves_icall_Type_GetEvents_internal): Same.
* icall.c (ves_icall_Type_GetNestedTypes): Same.
* locales.c (create_names_array_idx): Use mono_array_new_cached
to reduce locking contention.
svn path=/trunk/mono/; revision=128455
A fix for bug #480867
* typemanager.cs, expression.cs, ecore.cs: Changed method group
expression to have no valid type.
svn path=/trunk/mcs/; revision=128441
* ListView.cs: SetPageProperties invoked the
PagePropertiesChanging event with the startRowIndex and
maximumRows parameters reversed. Fixes bugs #481250 and #481252
svn path=/trunk/mcs/; revision=128408
2009-03-02 Chris Toshok <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs: 2.1
has HasValue.
In System.XML/System.Xml:
2009-03-02 Chris Toshok <[email protected]>
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
EntityResolvingXmlReader.cs: 2.1 has HasValue.
In System.XML/Mono.Xml:
2009-03-02 Chris Toshok <[email protected]>
* SubtreeXmlReader.cs, XmlFilterReader.cs: 2.1 has HasValue.
In System.Xml.Linq/System.Xml.Linq:
2009-03-02 Chris Toshok <[email protected]>
* XNodeReader.cs: 2.1 has HasValue.
In System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-03-02 Chris Toshok <[email protected]>
* JsonReader.cs: 2.1 has HasValue.
svn path=/trunk/mcs/; revision=128406
* object.c (mono_method_add_generic_virtual_invocation): Put back the
thunk builder code for the non-interface case.
svn path=/trunk/mono/; revision=128404
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot):
Virtual generic methods might not have method->slot set, work around
that.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=128401
* Csc.cs (AddResponseFileCommands): Split DefineConstants on ';'.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CscTest.cs (DefineConstants): Add some extra semi-colons,
that should get removed on output.
(DefineConstants2): New. Test effectively empty define constants.
svn path=/trunk/mcs/; revision=128396
* EventInfo.cs: Apply similar trick to the one in MonoProperty to speed up
AddEventHandler.
2009-03-02 Rodrigo Kumpera <[email protected]>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=128383
* object-internals.h: Rename _MonoReflectionEvent to
MonoReflectionMonoEvent so it reflects the right managed type.
Add a MonoReflectionEvent that correctly represents System.EventInfo.
* icall.c:
* reflection.c: Adjust code to use the new MonoReflectionMonoEvent
type.
svn path=/trunk/mono/; revision=128382
* mini-trampolines.c (mono_generic_virtual_remoting_trampoline): Update
this since it now receives the method not its generic context in the
IMT reg.
svn path=/trunk/mono/; revision=128381
* Enum.cs (IsDefined): If the enum underlying type is int32, use
the generic version, which doesn't box every element of the array.
svn path=/trunk/mcs/; revision=128367
* mini-amd64.c (mono_arch_build_imt_thunk): Add support for mixed
generic/imt thunks where some entries branch through the vtable, while
other entries branch directly.
* mini-x86.c (mono_arch_build_imt_thunk): Ditto.
* method-to-ir.c (mono_method_to_ir): Enable fast virtual generic call
support for interface methods as well.
* mini-trampolines.c: Add support for virtual generic methods in interfaces
using the normal IMT thunks.
generics.cs: Add new tests.
svn path=/trunk/mono/; revision=128360
* object.c (get_generic_virtual_entries): New helper function to collect
the virtual generic method instances which need to be added to an IMT
thunk.
(mono_method_add_generic_virtual_invocation): Add a 'vtable' argument.
Instead of creating a new IMT thunk, reset the vtable slot to the
trampoline, the thunk will be created the next time the trampoline is called.
(build_imt_slots): Add support for virtual generic methods in interfaces by
adding to the IMT thunk all the methods registered using
mono_method_add_generic_virtual_invocation ().
* object-internals.h (_MonoImtBuilderEntry): Add a 'has_target_code' field.
(struct _MonoIMTCheckItem): Ditto.
svn path=/trunk/mono/; revision=128359
* Enum.cs (GetName): If the enum underlying type is int32, use
the generic version, which doesn't box every element of the array.
svn path=/trunk/mcs/; revision=128356
* method-to-ir.c (mono_method_to_ir): Pass the method instead of
the generic inst to the generic imt thunks. This fixes AOT support,
improves consistency with the normal IMT thunks, and makes it easier to
add support for interface generic virtual methods later.
* mini-trampolines.c (mono_magic_trampoline): Ditto.
svn path=/trunk/mono/; revision=128353
* object.c (mono_method_add_generic_virtual_invocation): Take a
MonoMethod argument instead of a MonoGenericInst. Fix the construction of
the IMT thunk to include all items.
svn path=/trunk/mono/; revision=128351
* icall.c (ves_icall_Type_GetMethodsByName): Avoid allocating
intermediary managed arrays. Use caching version of mono_array_new
to allocate the result array.
svn path=/trunk/mono/; revision=128348
Fields sub-node) would result in a stack overflow within
Resources/mdoc-html-utils.xsl:GetInheritedMembers(), because the
document() XSLT function was being used to obtain the base type's
documentation. It stack overflowed because the XmlUrlResolver was
being used, which when given e.g. file:///DocAttribute.xml, would
return file:///DocAttribute.xml (which makes sense), but it was
non-terminating. (I find this troubling as it should have been
trying to resolve e.g. System.Attribute, not DocAttribute; it must
be some XmlTransform-fu that was substituting documents.)
The fix is for EcmaUncompiledHelpSource to provide an alternate
document XmlResolver, one which always returns null from
XmlResolver.ResolveUri(), thus preventing endless recursion.
svn path=/trunk/mcs/; revision=128318
* Makefile: tune for internal use, but don't install.
Temporary situation, this will require more discussion
with spouliot.
svn path=/trunk/mcs/; revision=128310
* Mono.Tuner.dll.sources
* Mono.Tuner/MoonlightAssemblyStep.cs: add new step specific
to moonlight to instrument Moonlight assemblies one by one.
svn path=/trunk/mcs/; revision=128309
* ListView.cs: When removing items from a ListViewItemCollection
contained in ListView (not in ListViewGroup), before actually removing
the items remove them also from their -if any- associated groups. If
the item is present in ListViewGroup.Items but not in ListView.Items,
then don't remove it - this is *exactly* what .net seems to do.
Fixes the remaining bits of #478689.
svn path=/trunk/mcs/; revision=128308
delegate to return `null' if no further base types are found, so
stop processing if we find a null base type.
* Monodoc/provider.cs:
- Make GetHelpStream() virtual so that EcmaUncompiledHelpSource can
override it, as the default zip-based behavior is inappropriate.
- Make GetHelpXmlWithChanges() virtual so that
EcmaUncompiledHelpSource can override it, as the default zip-based
behavior is inappropriate.
- When initializing UncompiledHelpSources, set the
HelpSource.RootTree property (avoids an NRE from
EcmaHelpSource.GetTextFromUrl() when it reads RootTree.HelpSources).
* Monodoc/ecma-provider.cs:
- Within the XmlDocUtils.AddExtensionMethods() call, don't always
prefix the type with "T:", as sometimes the type will already start
with "T:", which is the case with EcmaUncompiledHelpSource ids.
- Add EcmaUncompiledHelpSource.GetHelpStream() and
EcmaUncompiledHelpSource.GetHelpXmlWithChanges(), which Do The
Right Thing for the file-based backend.
svn path=/trunk/mcs/; revision=128306
EcmaHelpSource.GetNamespaceDocument() wasn't being used anymore,
which is what EcmaUncompiledHelpSource overrides to permit loading
of local files. Result: an exception when trying to view namespaces
of local (non-assembled) directories. Oops. "Fixes" 443508.
svn path=/trunk/mcs/; revision=128305
* reflection.c: Use cached version of mono_array_new alongside
the mono_reflection_get_custom_attrs_by_type call path.
svn path=/trunk/mono/; revision=128304
* icall.c (ves_icall_Type_GetInterfaces): Avoid allocating
intermediary managed arrays. Use caching version of mono_array_new
to allocate the result array.
* icall.c (ves_icall_Type_GetConstructors_internal): Same.
svn path=/trunk/mono/; revision=128303
* icall.c: Add small implementation of a growable stack bound array.
* icall.c (ves_icall_System_Enum_get_hashcode): Fix warning.
* icall.c (ves_icall_Type_GetPropertiesByName): Avoid allocating
intermediary managed arrays. Use caching version of mono_array_new
to allocate the result array.
svn path=/trunk/mono/; revision=128302
* NameValueCollection.cs (AsSingleString): Avoid the allocation of
a stringbuilder for collections with only one element.
svn path=/trunk/mcs/; revision=128295
* driver.c (mono_set_signal_chaining): New public API function to enable
signal chaining on POSIX platforms.
* mini-posix.c mini.c: Applied a variant of a patch by Simon Rowland
([email protected]) to implement signal chaining. The original patch was
contributed under the MIT X/11 license:
https://bugzilla.novell.com/show_bug.cgi?id=318894
svn path=/trunk/mono/; revision=128282
* BaseParser.cs:
* PageParser.cs:
* ControlBuilder.cs:
* TemplateParser.cs:
* Page.cs:
* SimpleWebHandlerParser.cs: settings that have to be in
machine.config or the root level web.config now call
GetWebApplicationSection.
svn path=/trunk/mcs/; revision=128273
* Enum.cs (FindName): Use a hash table for looking up names instead of
a linear search for enums with a lot of values.
svn path=/trunk/mcs/; revision=128267
* ListView.cs: In our MouseDown handler in ItemControl use the item in
the very specific *real* position where the mouse was pressed, using
GetItemAtDisplayIndex for that purpose, instead of directly accessing
Items - this is specially useful when groups with Details view is
used. This is what we do in other places when using groups.
Fixes part of #478689.
svn path=/trunk/mcs/; revision=128264
* UInt16.cs (CompareTo/short): Make it return the
same values as the /object version.
* Enum.cs (CompareTo): Use new compare_value_to icall to do the comparison.
This avoids two allocations and reduce the number of trips to unmanaged land
by one.
The performance improvement is up to 3.5x with the bonus of reducing the generated
garbage.
2009-02-27 Rodrigo Kumpera <[email protected]>
EnumTest.cs: Tests for CompareTo.
svn path=/trunk/mcs/; revision=128247
* icall.c: New icall ves_icall_System_Enum_compare_value_to that
helps Enum::CompareTo to be implemented without reboxing all enums
to their underlying type.
svn path=/trunk/mono/; revision=128246
evaluator are not null, as documented in MSDN (and the variance found
while testing DbLinq).
* Test/System.Text.RegularExpressions/RegexReplace.cs: Add null
argument checks for Regex.Replace().
svn path=/trunk/mcs/; revision=128241
* domain.c (SET_APPDOMAIN): Avoid calling TlsSetValue () on some platforms,
since it acquires a global lock leading to scalability problems.
svn path=/trunk/mono/; revision=128236
* ReflectionPropertyDescriptor.cs: Don't cache getter and
setter properties. Cache instead the PropertyInfo objects
that defined them.
PropertyInfo::Get/SetValue is faster than calling the method
throught reflection.
svn path=/trunk/mcs/; revision=128235
* iltests.il.in (test_0_implicit_float_to_double_conversion): Disable this
too until it can be made to run on amd64.
svn path=/trunk/mono/; revision=128234
* MaskedTextBox.cs: Properly replace selection when a new valid key
is pressed - even when IsOverwriteMode is false. This is what .net
does.
svn path=/trunk/mcs/; revision=128224
* Message.cs : (in CreateBufferedCopy) do not pass the entire
message as BodyWriter.
(in GetReaderAtBodyContents) just write body contents.
* MessageImpl.cs : do not try to read body at ctor (fixed tons
of test failures).
Add some state check in GetReaderAtBodyContents().
* XmlReaderBodyWriter.cs : avoid possible extra xmldecl onto output.
svn path=/trunk/mcs/; revision=128186
* profiler.c: Make the stat profiler work with multiple appdomains, this
currently only works when no appdomains are unloaded.
svn path=/trunk/mono/; revision=128176
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.
The optimization is to create a pair of chained delegates that duplicate the workings
on MethodBase::Invoke without all the aditional overhead and without doing two
managed/native transitions.
Simple Getter performance is up to 17x faster.
This patch reduces contention on domain and domain jit code hash locks, which
can be very hot on asp.net applications.
svn path=/trunk/mcs/; revision=128172
* MaskedTextBox.cs: When setting Text use the very precise algorithm
that .net uses: iterate over every char of the new value, trying to
use every char, and use a normal call to MaskedTextProvider.Replace
call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
in case of error in both cases, as well.
Fixes#477408.
svn path=/trunk/mcs/; revision=128165
happens in numerous places. Instead, take a page out of the "I
never should have invented `null'" book, and ensure that Tree.Nodes
can never be null. This fixes the "HelpSource has 0 items" issue
and several other related ones.
svn path=/trunk/mcs/; revision=128134
elements (which can be done by e.g. running `mdoc assemble' on an
empty directory), in which case HelpSource.Tree.Nodes will be null.
Make sure that we don't get a NullReferenceException.
Patch thanks to Theerud Lawtrakul. Fixes#443699.
svn path=/trunk/mcs/; revision=128131
A fix for bug #475354
* convert.cs, nullable.cs, expression.cs, statement.cs: Emit
correctly user defined nullable equality operators.
svn path=/trunk/mcs/; revision=128118
* String.cs (FormatHelper): If all the arguments are strings, compute an
initial length for the stringbuilder to avoid reallocations.
svn path=/trunk/mcs/; revision=128114
* TagAttributes.cs: modified ToString to return string formatted
in a more helpful way.
* AspParser.cs: added ToString, helpful when debugging.
* AspGenerator.cs: properly print leading and trailing plain text
when looking for embedded tags in ProcessTagsInAttributes.
svn path=/trunk/mcs/; revision=128091
* merge.cs: Smarter merge to avoid duplicate (or unneeded) attributes
on methods when a type is decorated with SC or SSC.
svn path=/trunk/mcs/; revision=128089
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs,
ClientBase.cs, ChannelFactory_1.cs, DuplexClientBase.cs:
now ClientBase<TChannel>.InnerChannel became ChannelBase<T> as
SL2 does. This change required several internal changes in
proxy code generation. Also, now TChannel must be class.
svn path=/trunk/mcs/; revision=128056
* ServiceContractGenerator.cs : ClientBase<> argument type must be
class (the class itself is to be fixed soon as well).
svn path=/trunk/mcs/; revision=128055
supported by the server.
(GetColumnValue): lcid and sortId are available only from Tds 8.
* Tds80.cs (ProcessColumnInfo, ProcessOutputParam): Call base
methods if the server version is less than Tds 8.
svn path=/trunk/mcs/; revision=128053
- s/TEST_FILES/MAN_TEST_FILES/g: $(TEST_FILES) is used by the normal
build process, so the local definition is lost (and thus ignored).
Result: Test/* isn't actually copied. Oops. Changing to
MAN_TEST_FILES allows things to be copied.
- Fix the filenames within $(MAN_TEST_FILES) so `make dist-local'
works without error.
- Fixes#479753.
svn path=/trunk/mcs/; revision=128051
* HttpApplication.cs: let the current context known that
MapRequestHandler is done.
* HttpContext.cs: implemented RemapHandler
svn path=/trunk/mcs/; revision=128045
* MonoType.cs (FullName): Cache the result of this in a field, as
computing it is expensive.
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=128042
* metadata-internals.h (struct _MonoImage): Add a new cache for szarray
classes + a separate lock for it, as it is used frequently at runtime, not
just during metadata loading/JIT compilation.
* class.c (mono_bounded_array_class_get): Use the separate cache + lock
for szarrays.
svn path=/trunk/mono/; revision=128012
* object-internals.h (mono_class_from_name_cached): New macro to cache
the results of the lookup locally without having to declare a static
variable to hold it.
(mono_class_get_field_from_name_cached): Ditto.
(mono_array_class_get_cached): Ditto.
* threadpool.c threads.c locales.c icall.c reflection.c socket-io.c: Use
the new macros.
svn path=/trunk/mono/; revision=128011
* MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
key. Also create a new method to avoid code duplication between
OnKeyDown and OnKeyPress.
Fixes#477388.
svn path=/trunk/mcs/; revision=128006
* mini-exceptions.c (mono_handle_native_sigsegv): Implement the
suspend-on-sigsegv functionality.
* mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
to suspend when a native SIGSEGV is received. This is useful for debugging
crashes which don't happen under gdb, since a live process contains more
information than a core file.
* mini-exceptions.c (mono_print_thread_dump): Use
MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.
* mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.
* mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.
svn path=/trunk/mono/; revision=127943
* mini-exceptions.c (mono_handle_native_sigsegv): Implement the
suspend-on-sigsegv functionality.
* mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
to suspend when a native SIGSEGV is received. This is useful for debugging
crashes which don't happen under gdb, since a live process contains more
information than a core file.
* mini-exceptions.c (mono_print_thread_dump): Use
MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.
* mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.
* mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.
svn path=/trunk/mono/; revision=127942
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass a non-null
value to mono_arch_patch_callsite () to fix crashes.
svn path=/trunk/mono/; revision=127940
* ManagedCompiler.cs (AddResponseFileCommands): Use LogicalName for
embedded resources, wherever available.
* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Use
Path.Combine instead of hardcoding "\".
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateCSharpManifestResourceNameTest.cs (CheckResourceNames):
Refactor a bit to improve error reporting.
Update to use Path.Combine instead of hardcoding "\".
In tools/xbuild:
* xbuild/Microsoft.Common.targets (CopyNonResxEmbeddedResources): New.
(GenerateSatelliteAssemblies): Update to use the new ManifestNonResxWithCultureOnDisk
instead of NonResxWithCulture.
* xbuild/Microsoft.CSharp.targets (Csc): Fix "Resources" argument to use
the new on disk file names instead of original filenames.
svn path=/trunk/mcs/; revision=127938
* AspTokenizer.cs: put_back now uses a stack and allows more than
one invocation when called inside a tag.
* AspGenerator.cs: when a nested parser is used, pay attention to
server tags found inside client tags and add them to the control
tree.
svn path=/trunk/mcs/; revision=127935
* TempFileStream.cs: the class is internal
* VirtualPathUtility.cs: ToAbsolute (string, string, bool) is
internal
svn path=/trunk/mcs/; revision=127934
* Enum.cs (GetInfo): Add a global cache in addition to the thread-local
caches to accomodate short living threads like threadpool threads.
svn path=/trunk/mcs/; revision=127929
Atsushi Enomoto said on 2008-11-26, Mono's NUnit is for internal use
only, and installing nunit-docs.source causes an warning message
during monodoc startup.
* docs/nunit-docs.source: Remove.
svn path=/trunk/mcs/; revision=127907
* Microsoft.Build.Utilities.dll.sources: Add ProcessService.cs,
ProcessWrapper.cs, IAsyncOperation.cs and IProcessAsyncOperation.cs
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
* ProcessService.cs, IAsyncOperation.cs, IProcessAsyncOperation.cs,
ProcessWrapper.cs: Brought in from monodevelop.
* ToolTask.cs: Use the new ProcessService to execute the tool. Honor
SkipTaskExecution (). Use response files, but log the contents of the
response file instead of "@foo.rsp". Support environmentOverrides.
(LogEventsFromTextOutput): Add null check.
* Exec.cs (GetWorkingDirectory): Use the workingDirectory property.
svn path=/trunk/mcs/; revision=127886
* XmlDataReader.cs (ReadElementElement): For reference types
that implements IXmlSerializable, call the corresponding ReadXml.
* DataSet.cs (WriteColumnAsElement): For reference types that
implements IXmlSerializable, call the corresponding WriteXml.
svn path=/trunk/mcs/; revision=127849
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Lazily load UsingTask tasks.
* UsingTask.cs (Evaluate): Register 'this' with task database,
but don't load it yet. Register only if condition evaluates to true.
Move the load logic to ..
(Load): .. here. Register with the specified task database.
* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
in a table keyed by task name, but don't load it yet.
(GetTypeFromClassName): Try to load UsingTask if task is not already
loaded. Move loading logic to ..
(GetTypeFromClassNameInternal): .. here.
(CopyTasks): Copy the usingTasks table also.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* UsingTaskTest.cs (TestLazyLoad{1,2,3}): New.
(TestAssemblyNameOrAssemblyFileConditionFalse): New.
(TestDuplicate1): New.
* TargetTest (CheckLoggedMessageHead): Moved to TestMessageLogger,
use that.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (Another.SameTask): New.
(Other.SameTask): New.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* TestMessageLogger.cs (CheckLoggedMessageHead): Move here from
* TaskBatchingTest.cs: .. here. Track api change.
svn path=/trunk/mcs/; revision=127830
* MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
actually inversed, so put it the right way. Also, don't automatically
look for the next editable item after adding a new one, but way for
the next insertion (this is what .net does) - this is not needed when
MaskedTextProvider.InsertAt is called however, since it already looks for the
next editable position.
Fixes the remaining bits of #477383.
svn path=/trunk/mcs/; revision=127819
* os_dep.c (GC_init_linux_data_start): Avoid the call to GC_find_limit ()
if GC_no_dls is TRUE, as it is not needed and it complicates debugging since
it causes a SIGSEGV.
svn path=/trunk/mono/; revision=127807
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Replace the
nop code by patching the call address to point to the nullified class init
trampoline, as the former does not seem to be safe on SMP machines.
svn path=/trunk/mono/; revision=127806
* MaskedTextBox.cs: In OnKeyPress handle backspace by calling
MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
property after the text was modified, adjust the testPosition value
depending on what method was called.
Fixes part of #477383.
svn path=/trunk/mcs/; revision=127798
* ListView.cs: For EnsureVisible, adjust the view port bounds based on
the existence of the column headers, as well as using this information
to adjust the vscrollbar value, so items never get hidden by the
column headers.
Fixes#478498.
svn path=/trunk/mcs/; revision=127720
* xmltool.cs : Enabled new error recovery feature in RELAX NG
validation. It should continue error reporting until the end of
the document.
svn path=/trunk/mcs/; revision=127704
* RelaxngValidatingReader.cs : implemented error recovery feature.
Use InvalidNodeFound event (of type RelaxngValidationEventHandler)
to handle validation error like ValidationEventHandler in
System.Xml.XmlSchema.
* RdpPattern.cs : added "Anything" which is used in error recovery
support.
* relaxngtest.cs : added --skip-error option to test error recovery.
svn path=/trunk/mcs/; revision=127703
* reflection.c (encode_locals): Add checks for user types.
(method_encode_clauses): Ditto.
(method_encode_code): Ditto.
(mono_image_create_token): Ditto.
* object-internals.h: Change the type of more fields from MonoReflectionType*
to MonoObject*.
svn path=/trunk/mono/; revision=127683
* tramp-ppc.c (mono_arch_create_trampoline_code): Store the
correct frame pointer in the LMF. Should fix#478394.
svn path=/trunk/mono/; revision=127665
* threads.c (mono_thread_suspend_all_other_threads): Handle the case when
the a thread does not suspend within 100ms.
* monitor.c (mono_monitor_try_enter_internal): Handle SuspendRequested
in addition to StopRequested as well.
svn path=/trunk/mono/; revision=127661
* mono-debug.c: Call _mono_debug_get_image () while holding the debug lock.
* debug-mono-symfile.c (mono_debug_symfile_lookup_method): Actually
search the method_hash before inserting a new entry, to avoid crashes when
the same method is inserted multiple times, causing the old
MonoDebugMethodInfo structure to be freed by the value dtor function.
svn path=/trunk/mono/; revision=127660
* TextBox.cs: Some code lifting for AutoComplete's support. First,
when handling non-navigation keys, save the original Text typed by the
user, and don't motify it BEFORE. This was a design mistake, since the
re-assignation happens only when navigating the append/suggest list,
not while creating the matches. Also, process the Delete key just like
the backspace one. Finally, when handling WM_CHAR, ignore both Escape
and Enter keys.
Fixes some missing bits of #469967.
svn path=/trunk/mcs/; revision=127657
* Makefile.am (fullaotcheck): Copy Mono.Simd.dll as well.
* image-writer.c: Make the binary writer less verbose.
svn path=/trunk/mono/; revision=127644
* FtpWebResponse.cs: return a Null stream when there's no response to
be read.
* FtpWebRequest.cs: provide the error returned by the server in the
exception.
* WebClient.cs: set the correct method when doing a FTP upload.
Fixes bug #478451.
svn path=/trunk/mcs/; revision=127640
* marshal.c (mono_marshal_get_runtime_invoke): Fix _another_ bug sharing
runtime invoke wrappers, this time it is string ctor wrappers, which
pass a dummy string as 'this' instead of their obj argument. Fixes
#478473.
svn path=/trunk/mono/; revision=127637
2008-02-21 Jb Evain <[email protected]>
* Module.cs: add a new virtual GetModuleVersionId method,
and make the properties .MvId and ModuleVersionId call it.
This way, we can override it in ModuleBuilder.
Part of the fix for #471302.
in System.Reflection.Emit:
2008-02-21 Jb Evain <[email protected]>
* ModuleBuilder.cs: override GetModuleVersionId
so that we can get the module guid from Module.ModuleVersionId.
Part of the fix for #471302.
svn path=/trunk/mcs/; revision=127631
* ModuleBuilderTest.cs: add a test accessing the property
Module.ModuleVersionId on a dynamic module.
Test for #471302.
svn path=/trunk/mcs/; revision=127630
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added CopyTest.cs
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
Fix bug #458916.
* Copy.cs: CopiedFiles and DestinationFiles should have target paths
instead of source. Also, the metadata should get retained from source
items. Based on a patch by Jeffrey Richardson <[email protected]>
Refactor a bit to remove code duplication.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CopyTest.cs: New.
svn path=/trunk/mcs/; revision=127626
Extracted from a patch by Kornél Pál <[email protected]>.
* cpu-x86.md: Fix the sizes for long_conv_to_r_un and long_conv_to_r_un_2.
* mini-x86.c (mono_arch_output_basic_block): Use only 64bits of precision for
OP_LCONV_TO_R_UN.
Last fix for of #467201.
svn path=/trunk/mono/; revision=127585
* System.Web/HttpWriter.cs: new Response property and WriteUTF8Ptr
method.
* System.Web/HttpResponseStream.cs: added support for writing from an
IntPtr. copied the memcpy method from String.cs.
* System.Web.Compilation/BuildManager.cs: updated comment.
* System.Web.UI/ResourceBasedLiteralControl.cs: new Control. It's just
like a LiteralControl but will render itself from the bytes pointed to
by an IntPtr and not create any string from the underlying data unless
needed.
* System.Web.UI/TemplateControl.cs: implemented a bunch of methods
that are used from the precompiled assemblies for a web project. The
most notable change needed is to be able to read a win32 resource from
the dll of the control. The resource is a concatenation of literals
with plain text for the control and a specialized LiteralControl is
generated from different chunks of the resource.
* System.Web.UI/HtmlTextWriter.cs: new method that returns the
HttpWriter in use.
* System.Web.dll.sources: added new file.
* System.Web.Util/ICalls.cs: new internal call to get a pointer to the
win32 resource associated with the control's assembly.
svn path=/trunk/mcs/; revision=127579
* reflection.c (mono_reflection_setup_internal_class): Check for user types.
(mono_reflection_create_runtime_class): Ditto.
(mono_reflection_sighelper_get_signature_local): Ditto.
(mono_reflection_sighelper_get_signature_field): Ditto.
* object-internals.h (CHECK_MONOTYPE): New macro to check that a Type object
is a System.MonoType object or similar.
(monotype_cast): New helper function to cast a MonoObject to a
MonoReflectionType object.
* object-internals.h: Change MonoReflectionType* members in structures to
MonoObject* members to force the usage of the monotype_cast () function.
* reflection.c icall.c: Use monotype_cast () for accessing Type members of
structures/arrays. This causes us to assert instead of crashing when
instances of user defined subclasses of System.Type are encountered.
svn path=/trunk/mono/; revision=127576
* cil-coff.h:
* icall-def.h:
* icall.c: add new GetUnmanagedResourcePtr that returns a pointer to a
win32 resource loaded from a PE file.
* image.c: fix mono_image_lookup_resource.
svn path=/trunk/mono/; revision=127574
Extracted from a patch by Kornél Pál <[email protected]>.
* cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
and long_conv_to_r8_2:
Fixed part of #467201.
svn path=/trunk/mono/; revision=127562
Extracted from a patch by Kornél Pál <[email protected]>.
* cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
and long_conv_to_r8_2:
svn path=/trunk/mono/; revision=127561
Extracted from a patch by Kornél Pál <[email protected]>.
* mini-x86.c (mono_arch_output_basic_block): Adjust precision of int to float
conversion to 32 bits.
* cpu-x86.md: Increase the size of int_conv_to_r4.
* basic-float.cs: Add a test for this.
Fixed part of #467201.
svn path=/trunk/mono/; revision=127560
Extracted from a patch by Kornél Pál <[email protected]>.
* mini-x86.c (emono_arch_output_basic_block): Adjust precision of long to double
conversion to 64 bits.
* basic-float.cs: Add a test for this.
Fixed part of #467201.
svn path=/trunk/mono/; revision=127559
Extracted from a patch by Kornél Pál <[email protected]>.
* mini-x86.c (emit_move_return_value): Don't reduce precision of functions returning float.
This behavior is compatible with MS.
* iltest.il.in: Add a test for this.
Fixed part of #467201.
svn path=/trunk/mono/; revision=127558
Extracted from a patch by Kornél Pál <[email protected]>.
* mini-x86.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_R4, it must
change the precision of the value.
* cpu-x86.md: Define len for float_conv_to_r4.
* basic-float.cs: Add a test for this.
Fixed part of #467201.
svn path=/trunk/mono/; revision=127557
functions no longer declared within Mono.Posix.dll).
* signal.c: Allow Mono_Unix_UnixSignal_WaitAny() to be called
concurrently from multiple threads w/o blocking each thread;
previously, calls to Mono_Unix_UnixSignal_WaitAny() would block
until the previous call completed. This required restructuring
Mono_Unix_UnixSignal_SignalInfo to hold a ref-counted
read_fd/write_fd pair (instead of allocating & releasing within
_WaitAny()) so that the pipes could be "shared" between threads.
Patch thanks to [email protected].
svn path=/trunk/mono/; revision=127538
* ChannelFactory_1.cs : it's not going to create ClientRuntime
anymore here. Moving to ServiceEndpoint.cs as the first stage.
* ClientBase.cs : some comment.
* ServiceEndpoint.cs : moved CreateRuntime() from ChannelFactory<T>.
svn path=/trunk/mcs/; revision=127531
A fix for bug #477447
* statement.cs: Add reference to correct parent storey when this
is accessible from deep children storey (more than 1 level).
svn path=/trunk/mcs/; revision=127527
* cominterop.c : Adding cominterop_type_from_handle and
registering it as an icall. Replacing all references
to type_from_handle.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=127481
* Makefile.am: Add lock-tracer.h and lock-trace.c.
* appdomain.c: Call the tracer init function.
* domain-internals.h: Enable the tracer for the domain locks.
* image.c: Enable the tracer for image locks.
* loader.c: Enable the trace for the loader lock.
* lock-tracer.h:
* lock-tracer.c: Initial implementation of the lock trace utility.
The tracer requires a compile time define to be enabled and a env var
to be enabled at runtime.
svn path=/trunk/mono/; revision=127476
* FtpWebRequest.cs: avoid errors when creating a temporary Uri to get
the local path.
* WebClient.cs: when setting up the request for downloading, use the
default method. Fixes bug #477611.
svn path=/trunk/mcs/; revision=127449
* detect-sc.cs, detect-ssc.cs: Accept multiple input directories
to find the platform assemblies (and deal with the current /mcs
and /moon locations).
* Makefile.am: Detect platform assemblies in {x}/mcs and {x}/moon
svn path=/trunk/mcs/; revision=127439
* System.Windows[.Browser].auto.[sc|scc]: New data files
* mscorlib.auto.ssc, System.Net.auto.ssc: Updated since adding
the first auto.sc generation cause new auto.ssc to be found.
svn path=/trunk/mcs/; revision=127438
* DataGridView.cs: Do not reset the columns when the data list changes,
but only the rows. Fixes multiple bugs related to sorting, custom
column styles being reset and more.
svn path=/trunk/mcs/; revision=127434
* mini.c: Adjust locking order to the new semantics where the loader lock
comes first.
2009-02-19 Rodrigo Kumpera <[email protected]>
* appdomain.c:
* generic-sharing.c:
* object.c:
* reflection.c: Adjust locking order to the new semantics where the loader lock
comes first.
svn path=/trunk/mono/; revision=127430
* domain.c: Add mono_domain_code_* functions that perform locking
around the domain codeman.
* domain-internals.h: Export those functions.
* object.c: Use new functions instead of acquiring the domain lock.
svn path=/trunk/mono/; revision=127428
RealTimeSignum on OS X, as OS X doesn't support real-time signals
(and thus these will always error, often for the "wrong" reason).
* Test/Mono.Unix.Native/RealTimeSignumTest.cs: Disable the tests on
Mac OS X, as OS X doesn't support real-time signals.
svn path=/trunk/mcs/; revision=127415
A fix for bug #475860 by David Mitchell <[email protected]>
* class.cs: Define base type members before setting up member cache.
svn path=/trunk/mcs/; revision=127390
* *.cs: The tuner takes care of the visibility of this for us, and it
is in fact needed. (Readd ReadAttributeValue to 2.1)
svn path=/trunk/mcs/; revision=127366
* xmltool.cs : call Compile() and detect relax ng grammar error
so that it could detect grammar sanity when there is no instance
to be validated.
svn path=/trunk/mcs/; revision=127365
* System.Web/HttpApplicationFactory.cs: check of global.asax was precompiled.
* System.Web.UI/MasterPage.cs: the items in ContentPlaceHolders are lowercase.
* System.Web.Compilation/TemplateControlCompiler.cs: lowercase place holder names
* System.Web.Compilation/BuildManager.cs: initial support for
precompilation. No 'updatable', please.
svn path=/trunk/mcs/; revision=127352
* AttributeCollection.cs: this [Type] shouldn't throw a NREX when
attrList is null.
* TypeDescriptor.cs: GetConverter (Type) must throw
ArgumentNullException if the passed parameter is null.
FindDefaultConverterType should gracefully cope with type being
null.
2009-02-19 Marek Habersack <[email protected]>
* TypeDescriptorTests.cs: added a test for
TypeDescriptor.GetConverter (null) case.
svn path=/trunk/mcs/; revision=127343
* TemplateParser.cs: don't initialize PageParserFilter in
LoadConfigDefaults, postpone it till the first time the
PageParserFilter property is accessed.
* ApplicationFileParser.cs, UserControlParser.cs: make sure
VirtualPath is set in the constructors.
svn path=/trunk/mcs/; revision=127333
* Mono.Tuner/InjectSecurityAttributes.cs: new tuner step
which is able to process the security attribute data files.
It replaces the previous InjectAttributes step.
svn path=/trunk/mcs/; revision=127303
* cominterop.c (cominterop_get_managed_wrapper_adjusted) :
Adding exception handling for all CCW calls.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=127279
* UrlPattern.cs: TrySubstitute now gets the collection of default
values and uses it to replace url segments instead of failing when
the passed values collection is missing a segment.
* RouteCollection.cs: check if name is null or empty, not just
null in GetVirtualPath
* Route.cs: url.TrySubstitute should be passed the defaults
collection when called from GetVirtualPath
svn path=/trunk/mcs/; revision=127259
* Mono.Documentation/exceptions.cs, Mono.Documentation/monodocer.cs:
Use the new Mono.Cecil .Resolve() methods instead of (erroneously)
duplicating their functionality with the .GetDefinition() methods.
ExceptionLookup.this[IMemberReference] checks for multi-dimensional
arrays, as MD arrays are "special" (Cecil can't resolve them, as
they're internal to the runtime with no specific associated IL).
Fixes#471379.
svn path=/trunk/mcs/; revision=127244
* Uri.cs : file URI for Windows path should also try '\' instead of
'/' as a host/path separator.
* UriTest.cs : added test for windows local path with '\' (used in
ooxml relax ng test case).
svn path=/trunk/mcs/; revision=127237
* 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 and bug #476138.
svn path=/trunk/mcs/; revision=127234
* src/DbLinq.Firebird, System.Data.Linq.dll.sources :
added Firebird support sources (new in DbLinq).
svn path=/branches/atsushi-200810/mcs/; revision=115419
* Expression.cs : fix WeakReference usage for such case that it
might GC-ed between .IsAlive check and .Target retrieval.
svn path=/branches/atsushi-200810/mcs/; revision=115191
* XPathExpression.cs, Expression.cs : Cache compiled xpath
expressions so that they don't have to be parsed repeatedly.
svn path=/branches/atsushi-200810/mcs/; revision=114957
* Expression.cs, Iterator.cs : ChildIterator is not a SimpleIterator
now. And reduced extra clone when the context node has no child.
svn path=/branches/atsushi-200810/mcs/; revision=114931
* XPathNavigatorEvaluateTests.cs : corrected couple of misconception
in the tests.
* XslTransformTests.cs : removed extra NotDotNet.
svn path=/branches/atsushi-200810/mcs/; revision=114689
@@ -222,6 +222,8 @@ AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
AC_CHECK_TOOL(CC, gcc, gcc)
AC_PROG_CC
# Disabled for now to fix the windows build
#AC_PROG_CXX
AM_PROG_AS
AM_PROG_CC_STDC
AC_PROG_INSTALL
@@ -372,13 +374,19 @@ fi
# A sanity check to catch cases where the package was unpacked
# with an ancient tar program (Solaris)
#
AC_MSG_CHECKING(integrity of package)
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
AC_ARG_ENABLE(solaris-tar-check,
[ --disable-solaris-tar-check disable solaris tar check],
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
fi
fi
mcs_topdir='$(top_srcdir)/'$mcsdir
@@ -414,7 +422,7 @@ if test "x$USE_NLS" = "xyes"; then
fi
AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to installed)],
[], [with_libgdiplus=installed])
case $with_libgdiplus in
@@ -431,7 +439,7 @@ if test "x$PKG_CONFIG" = "xno"; then
if test "x$mono_feature_disable_full_messages" = "xyes"; then
AC_DEFINE(DISABLE_FULL_MESSAGES, 1, [Disables building in the full table of WAPI messages])
AC_MSG_NOTICE([Disabled full messages for Win32 errors, only core message strings shipped])
fi
if test "x$mono_feature_disable_verifier" = "xyes"; then
AC_DEFINE(DISABLE_VERIFIER, 1, [Disables the verifier])
AC_MSG_NOTICE([Disabled the metadata and IL verifiers])
fi
if test "x$mono_feature_disable_jit" = "xyes"; then
AC_DEFINE(DISABLE_JIT, 1, [Disable the JIT, only full-aot mode will be supported by the runtime.])
AC_MSG_NOTICE([Disabled the JIT engine, only full AOT will be supported])
fi
AM_CONDITIONAL(DISABLE_JIT, test x$mono_feature_disable_jit = xyes)
if test "x$mono_feature_disable_simd" = "xyes"; then
AC_DEFINE(DISABLE_SIMD, 1, [Disable SIMD intrinsics related optimizations.])
AC_MSG_NOTICE([Disabled SIMD support])
fi
AC_MSG_CHECKING(for visibility __attribute__)
@@ -738,7 +786,7 @@ case "x$gc" in
;;
esac
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB], [large_heap=$withval], [large_heap=no])
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
echo "FOO"
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
@@ -797,7 +845,7 @@ if test x$platform_win32 = xno; then
AC_MSG_CHECKING([if big-arrays are to be enabled])
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
if test "x$enable_big_arrays" = "xyes" ; then
if test "x$ac_cv_sizeof_void_p" = "x8"; then
AC_DEFINE(MONO_BIG_ARRAYS,1,[Enable the allocation and indexing of arrays greater than Int32.MaxValue])
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to NO)],[
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to no)],[
if test x$with_malloc_mempools = xyes; then
MALLOC_MEMPOOLS=yes
AC_DEFINE(USE_MALLOC_FOR_MEMPOOLS,1,[Use malloc for each single mempool allocation])
@@ -2185,7 +2271,7 @@ AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each
DISABLE_MCS_DOCS=no
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to YES)],[
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to yes)],[
if test x$with_mcs_docs != xyes; then
DISABLE_MCS_DOCS=yes
fi
@@ -2197,7 +2283,7 @@ AC_SUBST(OPROFILE_LIBS)
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
AM_CONDITIONAL(INSTALL_2_0, test x$PROFILE2 = xyes)
AM_CONDITIONAL(INSTALL_2_1, test x$MOONLIGHT = xyes)
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
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])
throwCreateValidationError(String.Format("Invalid end tag found. LocalName = {0}, NS = {1}.",reader.LocalName,reader.NamespaceURI),true);
vState=HandleError(String.Format("Invalid end tag found. LocalName = {0}, NS = {1}.",reader.LocalName,reader.NamespaceURI),true,prevState,RecoverFromInvalidEnd);
Loaded 100 of 2682 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.