Fixes an issue in Process where "pseudo-handles" for processes with
pids > 16 bits would overflow and start getting treated as normal
handles. This would frequently segfault MonoDevelop on MacOS.
When we are not using SHM we use psuedo handles to return processes from pids,
however we dont guard against pseudo-handles in CloseProcess, which could lead to
calling unref on a fake handle.
Pass the listener as it's own async state so that we avoid potential null derefs in the callback. Also wrap the BeginAccept and EndAccept calls in their own try/catches in case they throw an exception.
Fix possible state corruption in the case where Upgradeable wasn't reactivating its read bit after a downgrade and set events accordingly. Fix possible race where a write process wannabe could step in the middle of Upgradeable actually upgrading to write mode.
Conflicts:
mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs
The patch removes a small race condition where a boolean flag is set after acquiring a lock to
indicate to code executing in the finally {} block that it should release the lock. The boolean
variable is now removed and the lock is released unconditionally. It carries a potential to
throw an exception when the lock is not held, but it's better than to fail to release it and
lead the application to a deadlock.
* AssemblyBuilder.cs (GetTypes): Raise ReflectionTypeLoadException
if any type was not finished.
* AssemblyBuilderTest.cs: Add test for GetTypes () and incomplete
TypeBuilders'.
Fixes#640288
* threads.c (mono_thread_suspend_all_other_threads): wait_data
must not be malloc'd since it holds managed pointers. Alloc
it on stack since the struct is about 512/1024 bytes long.
* threads.c (mono_thread_manage): Ditto.
* threads.c (mono_threads_request_thread_dump): Ditto.
This error was found by Gonzalo when he was looking at another problem
when thread IDs overflowed ints.
Currently we use gpointers in the io-layer for the threadid, but we were
only exposing the value as an int32. The good news is that the code is
not really used right now, but could cause problems in the future as we
extend Process.
* Type.cs (GetTypeCodeImpl): If the type is a TypeBuilder
call into specific code.
* TypeBuilder.cs (GetTypeCodeInternal): New method that
handles enums correctly.
This change is required because calling into the runtime
with incomplete TypeBuilders cause the runtime to crash.
The embedding code looks at the executable name, and builds the embedding profile
from that, however the default install has a /usr/bin/mono symlink pointing to
/Library/Frameworks/Mono.framework. We now resolve the symlink before allowing
the embedding code to proceed.
Android defines a variable called "major" in its headers, lets rename
major -> major_collector to work around the conflict.
Not every architecture/platform has ucontext_t, so lets not strongly
type our contexts to that and let the macros do their job.
when running with SGEN, since SGEN writes to those arrays in:
==29095== at 0x6844E5: add_or_remove_disappearing_link (sgen-gc.c:4143)
==29095== by 0x6845F8: mono_gc_register_disappearing_link (sgen-gc.c:4167)
==29095== by 0x67DE35: clear_domain_process_object (sgen-gc.c:1384)
==29095== by 0x67DEA3: clear_domain_process_major_object_callback (sgen-gc.c:1400)
==29095== by 0x6DE2DC: major_iterate_objects (sgen-marksweep.c:692)
==29095== by 0x67E00B: mono_gc_clear_domain (sgen-gc.c:1459)
* debugger-agent.c: The end_runtime_invoke guard isn't working
on AMD64 as __builtin_frame_address (1) returns NULL. Disable the
behaviour by default, and make it runtime configurable.
svn path=/branches/mono-2-6/mono/; revision=148421
Simplifies the code a little bit by eliminating the in_quote variable,
but also fixes the rules to follow the requirements from the
"Shell Command Language" specification on the Unix03 site:
http://opengroup.org/onlinepubs/007908775/xcu/chap2.html#tag_001_002
In particular, the interpretation of the backslash inside double quotes
is limited to a handful of characters. Notice that this differs from
the glib implementation which is not correct either.
If we are redirecting to a GET from a POST, the Content-Length header
might have stale data and it will be sent. Some servers, instead of
ignoring it, keep waiting for the data to be sent (for a GET!).
Fixes bug #636219.
We were usign teh URL, but that might not be unique among several
requests that need to be authenticated using NTLM. This led to
different requests sharing the same authentication session which fails
miserably.
Bug #631315 fixed.
If there's a POST/PUT request that gets a NTLM 401, we save the data
and don't send it again until after the challenge phase. Ie, instead of
sending all the data 3 times, we only send it at most twice.
The duplicate-element checking algorithm wasn't restricted to just elements;
consequently, an 'invalid token' exception was generated from XPath because we
were trying to call XmlNode.SelectNodes("#text"), and '#' isn't valid. Oops.
Fixes building gendarme from mono-tools.
Previously, in a (misguided) effort to reduce memory requirements, I loaded
the source document into an XDocument, then wrote it piecemeal to an output
XmlWriter.
- Pro: only one document needed to be kept in memory, and additional
memory was only needed to write replacement //Type nodes.
- Con: since the output document isn't kept in memory, we can't do any
post-processing before writing.
Unfortunately, post-processing is what I want to do: I want to order the
//Type elements by //Type/@Name, which means I need the entire document in
memory _anyway_.
Sorting //Type elements is for the next patch; this just migrates to the "do
everything in-memory" logic.
Generate the //Type/AssemblyInfo/AssemblyPublicKey and
//Type/AssemblyInfo/AssemblyCulture elements based on the values stored in
the index.xml file (which is why we updated mdoc-update to store this).
If index.xml doesn't contain the //AssemblyCulture element, input a default
<AssemblyCulture>neutral</AssemblyCulture> element.
With these changes, we can import the .NET 4.0 reference assembly
documentation and validate the output w/o getting any errors.
Yes, this means we now accept several elements that aren't part of the ECMA
standard, but at least the primary source of information for ECMA will sanely
validate...
The //Member/Attributes element would "move" from after //Member/AssemblyInfo
to the last element within //Member when updating properties and events. This
would result in overly large diff's when no other changes occurred, and
results in 'mdoc validate' stating that the file is invalid.
This is so that `mdoc update-ecma-xml` can use this information when
generating the /Library/Types/Type elements, as //AssemblyPublicKey and
//AssemblyCulture are currently missing from `mdoc update-ecma-xml` output.
* method-to-ir.c (emit_write_barrier): If aot-compiling on
an arch with OP_CARD_TABLE_WBARRIER support, fallback to
the IR based cardtable barrier instead of going with the
remset one.
In mcs/class/corlib/System.Reflection.Emit:
* TypeBuilder.cs (DefineDefaultConstructor): If the resolved
type is either typeof (object) or typeof (ValueType) we backout
to the non resolved type as it might be one of the corlib's
typebuilders.
In mcs/mcs:
* rootcontext.cs (CloseTypes): Only apply the enum hack for
corlib here.
* rootcontext.cs (EmitCode): Do the corlib basic type hack
here before types are emitted. This is required since EmitType
produce type initializers, which derive from ValueType and must
be able to see the TypeBuilder version of it.
* mcs/class/System.Net/System.Net/InternalWebRequestStreamWrapper.cs:
Ensure WebClient.WriteStreamClosedCallback is never called more than
once (even if the stream was closed by the caller). Supply the length
of the data that was written to the stream to WebClient.
* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Keep an Uri of
BaseAddress handy since we'll need it later. Ensure OnWriteStreamClosed
is at least called once (inside finally). Emit UploadProgressChanged
(instead of Download*) when uploading.
* mcs/class/System.Net/System.Net/WebRequest_2_1.cs: Change text for
InvalidOperationException when the URI is not absolute (some MS tests
check for, case-sensitive, "URI").
In the latest revision of the framework, ReaderWriterLockSlim is totally fair and thus a call to TryEnterReadLock musn't succeed when writers are waiting to get the lock before them (and when the lock is currently in read mode).
* method-to-ir.c (emit_write_barrier): Amd64 can't use
big immediates (> 32bits) with ALU operations so
we assert if the cardtable ends been allocated in a high
address.
* sgen-cardtable.c: In order to support cardtables with 64bits we
allow cards to overlap each other. Cards are copied to a shadow
cardtable at the beginning of the scanning.
* gc-internals.h: Change signature of mono_gc_get_card_table to
return the card table mask.
* mini.h: Add PAND_IMM.
* method-to-ir.c: Handle card table masks.
* mini-x86.c: Ditto.
* sgen-cardtable.c: Add functions that test if a given
card or range or cards should be scanned. Those function
make sure the card are clear on return.
* sgen-gc.h: Export new functions.
* sgen-los.c: Use to new functions.
* sgen-marksweep.c: Ditto.
* sgen-cardtable.c: Use live block enumeration API
to clean blocks instead of a custom API.
* sgen-los.c: Add los_iterate_live_block_ranges.
* sgen-marksweep.c: Add major_iterate_live_block_ranges.
* sgen-gc.h: Adjust for new function.
First, we refactor out the "overwrite only if content has changed" logic in
monodocer into MdocFile.UpdateFile() so that we can reuse this same logic.
After that, it's primary all about MDocUpdateEcmaXml.UpdateExistingLibraries():
scan through the document looking for libraries we're interested in. If we
encounter one we don't care about, copy directly. If we do, enumerate it's
contents looking for types we care about, and either copy the old version
as-is if we don't care, or copy over the mdoc(5) version if we do.
This is for ECMA support: it's intended to take an existing
CLILibraryTypes.xml file (from the ECMA 335 standard) and update the specified
types within it. If no existing file is specified, it'll generate a new one
based on command-line arguments.
Update support is currently lacking, but it'll generate a new document with:
mono mdoc.exe update-ecma-xml -o - \
--library BCL --type=System.Environment Test/en.expected
Sometimes the predicate was also called multiple time generating exception that weren't caught by the general Task handler and thus swallowed by the runtime causing Thread shutdown and ultimately deadlocks.
Some concurrent collections don't necessarily guarantee that a call to Dequeue/Pop/equivalent will succeed even in the case there are elements in the collection. When one of such operation fail in test, retry it immediately to check for that sort of cases.
Merge token are simply the combined cancellation source of user (i.e. token supplied with PLinq operator WithCancellation) and internal tokens (supplied with WithImplementerToken).
send(2) does not return ETIMEDOUT for a blocking socket with a write
timeout set, which causes the wrong error code to be reported to the
managed world.
Fixes bug #599488.
* HttpWebRequest_2_1.cs: Avoid using AllKeys (unneeded allocations)
* WebClient_2_1.cs: Copy headers to WebRequest (some special cases are
now considered) then clear them. Expose SecurityException (unwrapped)
and closely match SL4 exceptions (including inner exceptions).
* WebHeaderCollection_2_1.cs: Add missing validations on header names
and values (from original WebHeaderCollection.cs + small fix)
in mcs/class/corlib/System.Reflection:
* MonoProperty.cs: Don't share the same field with
DeclaringType and ReflectedType.
in mcs/class/corlib/System:
* Environment.cs: Dump corlib version.
in mono/metadata:
* appdomain.c: Bump corlib version.
* object-internals.h: Add new field to MonoPropertyInfo.
* icall.c (ves_icall_get_property_info): Store the
declaring type into the new field.
Fixes#633671
'gmcs /doc' now properly generates explicitly implemented interface member
//member/@name values, so mdoc-update can now find them for the import. Yay!
The //member/@name for explicitly implemented interface members needs to
contain the fully-qualified interface name, including type parameters (if
necessary), so we need to generate
"M:Container`2.Element.System#ICloneable#Clone", not
"M:Container`2.Element.ICloneable.Clone".
Furthermore, explicitly implemented generic interface methods within a generic
type were always getting the type parameter count appended to them (which
somewhat makes sense, as they're on a generic type...) which is counter to what
CSC generates, e.g. we need to generate
"P:Container`2.System#Collections#Generic#IList<TValue>#Item(System.Int32)"
not "P:Container`2.IList`1.Item``1(System.Int32)".
Our previous inline card table write barrier did not perform
any checks on the pointers, which means that it marked cards
for the major heap even if the references stored there were
not to nursery objects. Doing that is slightly faster in the
mutator but the nursery collections might take a lot longer
because objects might have to scanned unnecessarily.
This patch implements an inline write barrier that also
performs a nursery check. To that end we introduce a new
IL opcode, OP_CARD_TABLE_WBARRIER.
It is currently only implemented on x86. For architectures
that don't support it (yet), we automatically regress to the
old, non-checking write barrier.
There was still an issue with thread-safety of binary protocols: If
the world was stopped while a thread was in the process of using a
binary protocol buffer, the GC would write all buffers to the file and
release the memory, making the thread crash once it restarted.
We fix this here by keeping a count of how many threads currently use
the buffers. If they are in use when we try to save and free them, we
don't. They'll be saved and freed eventually.
* mini.c (create_jit_info): Handle the case where the basic
block right after a try block is dead. For example:
.try {
....
leave ...
}
nop //HERE
.catch {
...
}
The above nop is dead code and the branch opts will nullify it
which caused the code in create_jit_info to assert when
calculating the try block lenght.
This is a very rare case since only obfuscators or broken
compilers would put instruction between the try and handler
blocks.
The fix is to simply iterate over all CIL addresses of the
try block in reverse order looking for the first block which
was not removed.
Fixes 633291
Since the call is also implemented as a simple long load operation in the runtime when on x86-64 there is no need to do the differentiation in managed code.
No mdoc changes, but since 'mdoc update --exceptions=all' scans across
assemblies, and since System.Delegate.Combine() now throws additional
exceptions (according to our IL scanning algorithm), the expected output
differs, leading to false negatives about regressions.
Furthermore, 'gmcs /doc' has been fixed (it used to cause a compilation
error) and improved, so more XML documentation is now imported because gmcs is
generating the correct XML documentation crefs. (Go gmcs, go!)
Fixes#624242
This also allows master 'gmcs /doc' to build OpenTK, gitorious.org/cadenza,
and build the mcs/tools/mdoc unit tests w/o compilation error.
The bug was caused by a NotSupportedException when calling ArrayContainer.Name
within DocUtil.GetSignatureForDoc(TypeSpec). This is directly fixed by
checking explicitly for ArrayContainer.
Another bug fixed was wrt type parameter indexing in nested types, hence
"counting" the number of type parameters declared in all declaring types.
When a server-side control processes its children (in the markup) as properties, it needs to instantiate
an object of the property type and assign it to the appropriate property of the control. Failing to do so
will cause markup which references properties to fail in certain cases (for instance when the control's
property type is a class and it is not instantiated by the control's constructor).
If the card table write barrier is used, emit it inline.
It's a quick address calculation and a single store, so
it's much more efficient than our old write barrier.
This is a direct card table, meaning there is only card table
level, which makes it very simple and efficient. It only works
on 32 bits at this point, and only for Mark&Sweep.
Move the CAS related code out of the
if (rs->ifree_mask & (regmask (dest_sreg))) {
section so it is executed even if the fixed sreg is already assigned.
* ObjectWriter.cs: Make the .ctor take a single BinaryFormatter
parameter and get the information from there. This should make
it easier to do some 4.0 new assignations, instead of adding yet
another parameter (also, ObjectReader is doing exactly what we
are doing here now).
* BinaryFormatter.cs:
* MessageFormatter.cs: Update call sites.
There is a possible crash using this profile if the monotouch.dll
isn't loaded into the process space. We will null guard the
type and only call start_wwan if its present.
QueryCheckerVisitor can then eventually decide if it's pertinent to run the query in parallel and set accordingly a boolean value (though not used by the engine at the moment).
Increase the sizes of the various load/store opcodes in order
to support the expansion when large stack frames (>32k) are
produced. Update prologue and epilogue code to generate the
frame in two steps.
Code contributed under the MIT/X11 license.
Because we were using the wrong handle in SetConsoleMode, newlines were breaking when TreatControlCAsInput was enabled. This no longer happens now that we're setting the correct mode on the input handle instead of the output handle.
If xbuild is unable to resolve a reference, then it dumps details of
why it failed. This adds a env var XBUILD_LOG_REFERENCE_RESOLVER,
which if set, logs those details of why a particular search path
was used to resolve the reference.
Update the man page also.
This is necessary for some PLinq operator that can provide a better optimized version of themselves when there is no ordering constraint whithout having to create yet another query node. Note that the method can be optimized with a more specialized version of the visitor.
Previously the case of Unordered wasn't taken in account and the control flow wasn't properly forwarded to the following nodes in the query# Please enter the commit message for your changes. Lines starting
Using ToArray directly, even though incorrect, was working by a twist of fate in that the mostly-standard partitioner and ToArray operator were based on the same assumptions.
Switch from manually creating result sets to creating them with a Linq query. Replaced some type with var. Split indexed and non indexed call in two different virtual method call.
In some rare case where a ThreadWorker have taken more than one item (and thus there are items to steal) another ThreadWorker that hadn't seen this extra work would go to sleep indefinitely and cause deadlock if the first Task executed was depending on another Task to be launched.
* MonoField.cs (FieldType): Lazy load the field type if
null.
* icall.c (ves_icall_MonoField_ResolveType): New icall
to lazy resolve a field.
* icall-def.h: Ditto.
* reflection.c (mono_field_get_object): Eager load a field's
flags since this simplifies a lot the managed side that doesn't
have to handle loading it if not present.
* class-internals.h: Add mono_field_is_deleted_with_flags
which takes the flag as an argument instead of using the
value on type->attrs.
* reflection.c (mono_field_get_object): Check if field->type
is present before using it.
* icall.c (ves_icall_Type_GetFields_internal): Do things
lazier by not depending on a field's type been loaded.
* class.c (mono_class_get_fields_lazy): Lazy variant
of mono_class_get_fields that returns fields with only
minimal information loaded (name and parent).
* class.c (mono_class_setup_basic_field_info): Loads minimal
info about a field, right now just name.
* class.c (mono_class_setup_fields): Use new functions to
load everything.
* class.c (mono_field_resolve_type): Init the error struct
and set it on case of a class failure.
* class.c (mono_field_get_flags): Since the field type
is lazy loaded we avoid loading it here since some
reflection operations depends on flags but require lazy
loading of type.
* DataGridView.cs: When refreshing the scrolling info,
set the values for the internal scrollbars even if we are forced
to not display them, since they are used to compute the
navigation, which should be available *always*.
* TextBoxBase.cs: In Text property always call
Document.SetSelectionToCaret just like we do in other places
calling Document.Empty(). This way we don't leave our selection
stuff in an inconsistent state.
Instead of a do/while loop, just keep looping until both KeyDown is true, and EventType == 1. It seems that sometimes when EventType == 1, KeyDown wasn't true but it would stop looping anyway. This caused mouse presses, context menu changes, and focus changes to register as key presses. With the new infinite loop, only actual key presses will be registered.
ConcurrentDictionary is now used to store the per-thread CyclicDeque instances instead of maintaining a growing array ourselves. Add hints are still used.
When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.
Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)
__CALLBACKTARGET and __CALLBACKARGUMENT have been renamed to __CALLBACKID and __CALLBACKPARAM, respectively,
recently and this script didn't get update for the change causing callbacks not to work on master.
* icall.c (ves_icall_MonoType_get_Module): Don't mono_class_init
the type as it's not needed.
* icall.c (ves_icall_MonoType_get_Assembly): Ditto.
* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
mono_reflection_get_type can return a non-null type and set a
loader error. Don't leak it.
Fixes#630773
Several method in ConcurrentDictionary do a combination of two actions or two different actions depending on a test. These additional methods to the standard SplitOrderedList operation set are for these.
This data structure is to be used internally by ConcurrentDictionary. Theory from paper "Split-Ordered Lists: Lock-Free Extensible Hash Tables" and "A Pragmatic Implementation of Non-Blocking Linked-Lists".
When GridView auto-generates columns it uses reflection to retrieve list of public properties present
in the item type. Only the properties that have bindable type and are declared directly in the item
type must be considered for column auto-generation.
in mcs/class/corlib/System.Reflection:
* CustomAttributeData.cs: This now receives only the information
required to later load argument data. This information is stored
in a new field that is later discarded.
in mono/mono/metadata:
* icall-def.h: Add new icall from CustomAttributeData.
* object-internals.h: Add new reflection.c function.
* reflection.c (mono_reflection_get_custom_attrs_info): Don't
init the class when retrieving custom attributes since we must
handle broken types.
* reflection.c (create_custom_attr_data): Don't resolve cattr
arguments eagerly. Instead pass enough information to
CustomAttributeData so it can later on create them.
* reflection.c (mono_reflection_resolve_custom_attribute_data):
new icall used to create the cattr data arguments.
This is required to match MS behavior and fix some of the issues
triggered by trying to compile MD.
Fixes#630074
WebConfigurationHost now supports one more parameter passed to it in InitForConfiguration -
a boolean telling whether the configuration being initialized belongs to another app. If it is
true then the virtual path passed to InitForConfiguration is used as the application virtual
path. This has the effect that IsDefinitionAllowed doesn't throw an exception when a configuration
element with the MachineToApplication level is parsed.
WebConfigurationManager.FindWebConfig checks whether the path passed to it belongs to this application
which allows the mechanism described in the first paragraph to work.
When HttpContext.RewritePath is passed a virtual path with more than one leading slash it
results in HttpApplication.GetHandler not being able to locate the appropriate handler.
Patch adds code to convert the passed virtual path to a canonical form.
Additionally, HttpApplication.Pipeline () now throws an exception when no handler can be
determined for the current request.
The bug was caused by the runtime loading two copies of System.Configuration -
one for the 4.0 profile (loaded by xsp4 itself) and another for the 2.0 profile
(loaded as a reference for BlogEngine.Core.dll) and for that reason, the static
class System.Configuration.ConfigurationManager was instantiated twice in the
BlogEngine application's AppDomain which, in effect, led to the exception since
the configuration system wasn't reset from the default one to the system.web-specific
one. The commit makes runtime remap System.Configuration 2.0 to 4.0.
Thanks to Zoltan Varga for catching the issue.
When the in-proc session handler puts items in the internal cache, it prefixes them with the
@@@InProc@ prefix to make sure they don't conflict with other values stored there. The handler
has been failing so far to remove that prefix when triggering the session end event. This commit
fixes the issue.
* Application.cs: At the end of the message loop in RunLoop
don't break the loop if the Form handle has been destroyed already -
which means that we *need* to wait for WM_QUIT and handle it
properly instead, so it doesn't end up affecting other forms.
In the parallel collector, the main GC thread needs to distribute all
remaining entries in the gray queue to the worker threads. Since the
distribution pool is limited in size we need to wait on it, which at
this point is only possible with busy-waiting. Since we don't want to
use up CPU resources and hog the cache lines we wait 2ms between
distribution attempts.
* mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs: Add new internal call to retrieve embedded application config. First
check if an embedded configuration exists before looking up on the
filesystem.
* mono/metadata/icall-def.h: Add entry for retrieving embedded application
configuration.
* mono/metadata/icall.c: Add function to retrieve embedded application
configuration if one has been registered with the runtime.
* Ping.cs: generates a random ICMP Identifier field per Echo to help
match up pings and their responses. Now has valid TTL and timeouts apply to
the correct pings. Also fixed bugs were received Sequence and
Identifier would be corrupt for values >255, and fixed corruption of
the Data field.
Patch by Michael Walsh that fixes bug #627330.
When a postback is made to the server, AsyncPostBackTrigger.HasTriggered must use FindTargetControl (true)
to find the associated control and see if its UniqueID matches the one of the control which originated
the postback. The target control may (and most probably is) outside the control panel and looking for it
only in the collection of child controls will make some sites fail to update content on async postback.
AsyncPostBackTrigger must search for the associated control in the naming containers during intialization
because its ControlID property is initialized with the unique name of the target control.
* ListView.cs: When using Details view re-populate our implicit
control collection to our header control is always on top. We
could try to just use BringToFront but since these controls are
implicit, we are not gracefully handling them.
* ListView.cs: Don't call Dispose for our implicit scrollbars,
as the default Control.Dispose impl is already disposing all the
implicit controls. This was generating extra Layout
events when disposing.
This is a new variant of Mark&Sweep which uses a pre-allocated
fixed-size heap instead of a dynamically grown, segmented one. The
main advantage of this heap organization is that it takes only one
pointer comparison to determine whether an object is on the small
object heap or in the LOS, instead of inspecting the object's size,
which requires three loads. Since that determination is required for
every marked object, speeding it up can improve performance
significantly.
Make the parallel Mark&Sweep collector selectable with the "major"
option of the "MONO_GC_PARAMS" variable as "marksweep-par". The
serial Mark&Sweep collector remains the default as "marksweep".
Previously we used one internal allocator. That was not a problem as
long as SGen was single-threaded. With parallel mark, however, we
needed a lock for the internal allocator to make it work. This patch
makes each worker thread use its own internal allocator instead, so we
don't have to lock anymore.
One problem introduced by this approach is that the allocator from
which a gray queue section was allocated is not known at the point where
the section is freed, because it might have been sent off to a different
worker thread. To solve this we have a "delayed" free function, which
determines the correct internal allocator from the internal allocator
block (which is aligned). The section is then added to a delayed free
queue of that allocator which is processed at some point by that
allocator's worker thread.
Note that the section cannot be freed by the thread that calls the
delayed free function because that would result in the possibility of
the "ABA" problem occuring.
Make the mark phase of the Mark&Sweep collector parallel.
At GC initialization we start a number of worker threads (as much
as the machine has cores) between which the objects in the gray
queue are distributed for marking.
* Microsoft.Win32.SafeHandles/SafeRegistryHandle.cs: Implement
ReleaseHandle by pinvoking RegCloseKey if we are on windows, and
nothing otherwise.
* Microsoft.Win32/Win32RegistryApi.cs:
* Microsoft.Win32/RegistryKey.cs: Don't call SafeHandle.Close
from our public api, and do it instead un the windows layer, as
we only support it there for now.
ASP.NET 4.0 allows one to set base types for Pages, User Controls, Application and PageParserFilter
from the pre-application start method(s). This commit implements support for this mechanism.
* ApplicationFileParser.cs: added override of DefaultBaseType property which checks whether
PageParser.DefaultApplicationBaseType is set and, if yes, uses it to set application base type
if there's no custom Global.asax
* PageParser.cs: implemented the EnableLongStringsAsResources, DefaultPageBaseType, DefaultApplicationBaseType,
DefaultPageParserFilterType and DefaultUserControlBaseType properties.
* TemplateParser.cs: if PageParser.DefaultPageParserFilterType is set, use it as the default type to create instance
of the page parser filter
* Added tests for the new properties.
* Added support in standalone runner for setting custom application domain data on domain creation, just before
the test is ran.
* marshal.c (mono_marshal_get_delegate_invoke): add support for
delegates pointing to instance methods that are closed over null.
Managed side of the feature is in 2ec0ab59fe.
If an app uses e.g. System.Diagnostics.Trace (and the Trace methods are
actually invoked, e.g. by building with -d:TRACE and using Trace.WriteLine()),
at least one System.Configuration.ConfigurationErrorsException was being
generated as part of startup (one from parsing machine.config, and an optional
second exception from parsing AppName.exe.config).
The exception was caught, so it didn't break anything, but it was still
undesirable.
The cause of the exception is as follows: The <system.diagnostics/>
configuration section is processed by DiagnosticsConfigurationHandler, which
is an IConfigurationSectionHandler implementation. In .NET 2.0, configuration
file processing was moved to use System.Configuration.ConfigurationSection
implementations, which would delegate to IConfigurationSectionHandlers if/when
specified.
However, before ConfigurationSection.GetRuntimeObject() calls into
DiagnosticsConfigurationHandler, it would indirectly call
ConfigurationElement.DeserializeElement() to process the e.g.
<system.diagnostics/> element, which would throw as ConfigurationElement was
hitting "unrecognized" XML elements (as ConfigurationElement doesn't know about
DiagnosticsConfigurationHandler-specific XML). This would result in a
ConfigurationErrorsException, which would be caught in GetRuntimeObject(),
then DiagnosticsConfigurationHandler.Create() would be invoked (doing the
"actual" <system.diagnostics/> parsing, allowing Trace to work, etc.
The fix taken here is to avoid calling
ConfigurationElement.DeserializeElement() if there's an
IConfigurationSectionHandler present, as it doesn't make sense to parse the
same section with two different handlers.
Make implementors of IInternalConfigurationHost.OpenStreamForRead return null instead of throwing an exception when there's no usable configuration file and deal with null at the call site.
This adds support for the ProviderName attribute of the OutputCache directive in user controls.
Also implemented missing support for SqlDependency attribute.
* TemplateControlCompiler.cs: StaticPartialCachingControl instantiation now uses the constructor overloads
which accept sqlDependency (2.0+) and providerName (4.0+)
* UserControlCompiler.cs: added code to output PartialCachingAttribute which accepts sqlDependency (2.0+) and
ProviderName (4.0+) arguments
* PartialCachingAttribute.cs added the 4.0 ProviderName property
* StaticPartialCachingControl.cs: implemented two missing constructors (one 2.0 and the other 4.0)
Added a missing BuildCachedControl overload which accepts providerName (4.0)
* TemplateParser.cs: factored out OutputCache attribute processing to a separate internal virtual method.
* UserControlParser.cs: added support for the ProviderName attribute of the OutputCache directive.
This commit implements the ability to programmatically set the name of the output cache provider
to hold cached control data.
* OutputCache.cs: added DefaultProvider internal property to return whatever default provider is
configured.
Added GetProvider() method to return instance of a named provider
* BasePartialCachingControl.cs: cache key and cached data are store in instance fields.
Added 4.0 internal property ProviderName which names the output cache provider to use for storage.
Removed OnInit from 4.0 profile, replaced with an override of Control's InitRecursive. Control is
created only when cached data is not found in the provider.
* Control.cs: made InitRecursive virtual for the benefit of BasePartialCachingControl above.
* ControlCachePolicy.cs: added 4.0 property ProviderName
When doing a rebuild for an already built project, the common
files (CopyLocal) should not be deleted by a project, as
other projects might be depending on them. This becomes a problem
when a common output dir is used.
Since "make dist" should also work from a tarball we must only call
the commit-to-changelog script if there's a git repository present.
If we're already in a disted tree, the script has already run.
The commit-to-changelog script now fails if git fails for whatever
reason. The most important reasons would be that git isn't installed,
and that the script is called without a repository.
* reflection.c (reflection_methodbuilder_to_mono_method):
Handle the case where a method parameter is defined using
a generic argument of another method. The resulting signature
must use the generic arguments of the method it belongs and
not from others.
This fixes one issue found while testing IronRuby 1.1.
* BuildProvider.cs: factored out build provider type retrieval code to a separate method
* BuildProviderCollection.cs: factored out build provider type retrieval code to a separate method
* BuildManagerDirectoryBuilder.cs: system.web/compilation section is not an application section - it can
be defined in web.config on any level.
* metadata-verify.c (mono_method_signature_checked): Change
signature to take a MonoError* instead of a GList** to make
it easier to the runtime to get error messages out of the
metadata verifier.
* verify-internals.h: Change signature.
* loader.c (mono_method_signature_checked): Pass the current
MonoError to mono_method_signature_checked to get better
error messages.
* metadata-verify.c (init_verify_context): Change parameter
from GList** to gboolean so it can be used with functions that
don't receive a GList** argument.
* mini-exceptions.c (mono_install_handler_block_guard): Guard against a
null MonoJitTlsData. This can happens if the thread receives the
interrupt signal before the JIT has time to initialize its
TLS data for the given thread.
When loading projects specified in the solution file, to find
their dependencies, missing imports cause an exception to be
thrown and so the deps are not available in the project instance.
MSBuild task can override properties for a project, and these
should be applied before the project file is loaded. This is to
allow the properties to be available for Imports. Eg.
<Import Project="$(SolutionDir)\foo.targets"/>
$(SolutionDir) is generally set by the MSBuild task in a .sln.proj
file.
Bug reported by JB Evain.
* Microsoft.Build.BuildEngine/Engine.cs:
Apply global properties before the project load.
* Test/*/EngineTest.cs (TestGlobalPropertiesImport*): New tests.
The major collector refactoring left heavy statistics broken. A few
heavy statistics counters are defined in sgen-gc.c but used in the
major collectors. We're now exporting them. Another possibility
would have been to define them in both major collectors, but since
this is only a debug feature that's not normally compiled in, we don't
care.
Make the major collectors define their own versions of
major_scan_object() by including a small header file. This
avoids indirect calls to major_copy_or_mark_object() and
allows inlining.
Instead of using solely SpinWait's SpinOnce method after ManualResetEventSlim's spinCount is reached, it now uses ManualResetEvent's WaitOne method. Various other checks like CancellationToken canceled state are still verified during that time albeit slower.
Instead of shutting down the thread when there is no more work to do, each ThreadWorker will now block on an EventWaitHandler and be awoken later by Scheduler.
* xbuild/xbuild/*/Microsoft.Common.targets: Rename item
@(TargetFrameworkDirectories) to @(_TargetFrameworkDirectories)
to *mark* it as private, and use the new $(TargetFrameworkDirectory)
property instead. Reported by mhutch.
* xbuild/xbuild/*/Microsoft.Silverlight.Common.targets: Update
to track the changes.
2010-08-02 Zoltan Varga <[email protected]>
* tramp-amd64.c (get_vcall_slot): Move mono_arch_get_vcall_slot () here, since it
is only used by this file.
* tramp-x86.c: Ditto.
* mini-trampolines.c mini-<ARCH>.c: Get rid of mono_arch_get_vcall_slot (), all
architectures should support MONO_ARCH_THIS_AS_FIRST_ARG now.
* RegistryKey.cs: Implement Handle, but only for Windows, since
we don't have any unmanaged api to access the registry - and our
unix impl is fully managed anyway. Also rename our internal
Handle property to InternalHandle.
* Win32RegistryApi.cs:
* UnixRegistryApi.cs:
* IRegistryApi.cs: Add a GetHandle method, and update calls to
RegistryKey.Handle to use InternalHandle instead.
* RegistryKey.cs: Implement the simple overloads of OpenBaseKey,
OpenRemoteBaseKey, FromHandle that take a RegistryView
parameter, which we ignore, as well as adding View property.
* Win32RegistryApi.cs:
* RegistryKey.cs: Implement RegistryKey.FromHandle method,
supported only on Windows as there is not any unmanaged
convention to retrieve a handle for a given key.
* Win32ResultCode.cs: Add InvalidHandle code.
* UnixRegistryApi.cs:
* IRegistryApi.cs: Update overloads.
* Makefile.am: added 2 new tests
* threadpool-exceptions6.cs: new thread.abort inside the threadpool
test.
* appdomain-unload.exe.config: this test does not work in .NET without
having the legacy unhandled exception mode enabled.
* RegistryKey.cs: Implement the 4.0 overload of DeleteSubKeyTree
that takes a boolean to throw an exception if the key is not
found. Just expose our already existing method as an internal
overload for 2.0.
This reverts commit 3c53388c59.
The LLVM version which required this change is broken, so revert this change
along with reverting the 'mono' branch in the mono/llvm repo to a working version.
This fixes EOL conversions flagged by git 1.7.1 core.autocrlf=true. At this
point, neither git 1.7.1 nor 1.7.2 show any automatic CRLF normalization.
I think we're ready for another experiment.
There seems to be a difference in the handling of mixed line-ending files
between git 1.7.2 and older versions, when core.autocrlf is set to true.
* mini/debug-debugger.c
(MONO_DEBUGGER__debugger_info): Add 'thread_abort_signal', pointing
to a field store the signal number on startup.
* metadata/mono-debug.h: Bump debugger version to 81.6.
The commits-to-changelog script previously generated ChangeLog entries
with a FIXME if it couldn't find anything applicable for that
particular ChangeLog. Since we want to use the script for "make dist"
it shouldn't do this. Instead it now just inserts the whole commit
message in those ChangeLogs.
When creating a distribution "make dist" now uses the
commits-to-changelog script to automatically update all
ChangeLog files since the last commit marked with the
"last-commit-with-compulsory-changelog-entry" tag.
This script converts git commit messages to ChangeLog entries. That
will hopefully allow us to forego adding ChangeLog entries in our
commits, which always leads to merge conflicts.
* UnixRegistryApi.cs: Move GetSubKeyCount and GetSubKeyNames to
KeyHandler, so we can properly track volatile subkeys there
*without* exposing any impl details.
* mono/tests/threadpool-exceptions[1-4].cs: new tests
* mono/tests/threadpool.cs: fix typo.
* mono/metadata/threadpool.c: starting in .NET 2.0, unhandled exceptions
in the threadpool can cause a crash in a running program. From now on,
we are compatible.
Until now exceptions thrown from a threadpool work item were ignored.
From now on they will propagate to the domain's UnhandledException event
and then to the root AppDomain. If they are not handled, they will cause
the program to abort.
2010-07-29 Rodrigo Kumpera <[email protected]>
Add support for calling vararg methods from SRE code.
This requires storing per-memberref signatures so
the JIT can know how many varargs parameters are
been passed.
* loader.c (mono_method_get_signature_full): If the
image is dynamic call mono_reflection_lookup_signature
to lookup the signature.
* reflection.c (mono_image_create_method_token): Save
the method object into the MonoDynamicImage::tokens.
Create a signature struct for MethodBuilders.
Save the signature into vararg_aux_hash so it can be
retrieved later.
* reflection.c (mono_reflection_lookup_signature): New
function. Check vararg_aux_hash for a signature before
returning method's own signature.
* metadata-internals.h (MonoDynamicImage): Add new
vararg_aux_hash hashtable.
* object-internals.h: Add mono_reflection_lookup_signature.
Fixes#626441
2010-07-28 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): Don't move forward
with verification if a stack overflow is detected for
the ARGLIST opcode.
Fixes#601953
2010-07-28 Rodrigo Kumpera <[email protected]>
* class.c (mono_bounded_array_class_get): Fail arrays
of void or typedbyref. Those two types are not allowed
to be used with arrays. Failing them is easier and less
error prone than returning NULL.
Fixes#603279
2010-07-28 Rodrigo Kumpera <[email protected]>
* object.c (mono_get_delegate_invoke): Don't assert if
the Invoke method is not found. This can happen with
broken types and it's the caller resposibility to deal
with a null return.
Fixes#553403
2010-07-28 Rodrigo Kumpera <[email protected]>
* class.c (mono_assembly_name_from_token): Handle
images with null assembly. This can happen with resource
or broken assemblies.
Fixes#623586.
2010-07-27 Rodrigo Kumpera <[email protected]>
* class.c (concat_two_strings_with_zero): Guard against
null strings.
Modified version of patch by Sebastien Pouliot.
Fixes#623653.
2010-07-27 Rodrigo Kumpera <[email protected]>
* image.c (mono_image_load_module): Handle the case of
module index equal or smaller than zero. It is possible
to embed a valid zero index into metadata so this case
must be explicitly handled.
Patch by Sebastien Pouliot.
Fixes#623581.
2010-07-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (INVALID_IMPLMAP_FLAGS_BITS): Add non standard
bits for best fit on/off (4,5) and throw on unmappable on/off (12/13).
Fixes#622221.
* JsonSerializationReader.cs, JsonSerializationWriter.cs:
Add a special case for IDictionary, since KeyValuePair objects
have private setters and can't be processed via the normal
object code path.
2010-07-27 Rodrigo Kumpera <[email protected]>
* EventLogger.cs: Emit verifiable code. This was blocking the
SWF test suite from running under the verifier.
In metadata:
2010-07-27 Geoff Norton <[email protected]>
* sgen-archdep.h: Ensure we store the registers we actually
need to scan.
In utils:
2010-07-27 Geoff Norton <[email protected]>
* mono-sigcontext.h: Extend the macro's for darwin and linux
to expose r8-r11 as well.
* verify.c (mono_generic_param_is_constraint_compatible): Don't
fail a contraint check even if the candidate has no constraints.
All constraints might resolve to the candidate itself so it can
have none.
Fixes#622225.
* FederatedMessageSecurityOverHttpElement.cs : use correct converter.
* WSFederationHttpBindingCollectionElement.cs : remove extra members.
* WSDualHttpBindingElement.cs, WSFederationHttpBindingElement.cs :
fill base properties expectedly.
* UnixRegistryApi.cs: From the static ctor of KeyHandler remove the
volatile keys directory if the last registered boot time has changed.
This way we *actually* have our volatile keys removed if the system as
rebooted.
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-24 Mark Probst <[email protected]>
* sgen-internal.c, sgen-gc.h, sgen-major-copying.c: Make the
internal allocator fast by keeping free-lists of chunks, not only
within chunks. Align the chunks, so that on freeing we can get
the chunk without searching.
2010-07-24 Mark Probst <[email protected]>
* sgen-internal.c, sgen-gc.c, sgen-gc.h, sgen-gray.c,
sgen-major-copying.c, sgen-marksweep.c, sgen-pinning-stats.c,
sgen-pinning.c: Allocate fixed-size structs without specifying the
size, instead registering it once with its type.
Dynamically-sized need their size specified when being freed.
2010-07-24 Mark Probst <[email protected]>
* sgen-major-copying.c, sgen-internal.c, sgen-gc.c, sgen-gc.h,
sgen-pinning.c: Copying major collector doesn't mess around with
internals of the internal allocator anymore, instead using public
functions.
2010-07-24 Mark Probst <[email protected]>
* sgen-internal.c: Internal allocator in its own module.
* sgen-gc.c, sgen-gc.h, sgen-gray.c, sgen-los.c,
sgen-major-copying.c, sgen-marksweep.c, sgen-pinning.c,
sgen-pinning-stats.c: Remove internal allocator and call the
public functions now.
* Makefile.am: Added new file.
* mini-darwin.c: Having reviewed xnu-1504.7.4 it is safe to call fork directly
here, it seems the old implementation was a hold over from the linux behaviour
This fixed gdb backtrace on amd64 and ppc.
** Fixes#565616 - Based on Patch by Hubert FONGARNAND
* DataContainer.cs (GetContainerData): If typecode is string,
call Convert.ToString() irrespective of whether value is
IConvertible or not.
* ContractAssertTest.cs
ContractAssumeTest.cs
ContractHelperTest.cs
ContractMustUseRewriterTest.cs:
Mark couple of runtime breaking tests (on .NET 4.0) as [Ignore].
** Fixes#565616 - Based on Patch by Hubert FONGARNAND
* DataContainer.cs (GetContainerData): If typecode is string,
call Convert.ToString() irrespective of whether value is
IConvertible or not.
* ContractAssertTest.cs
ContractAssumeTest.cs
ContractHelperTest.cs
ContractMustUseRewriterTest.cs:
Mark couple of runtime breaking tests (on .NET 4.0) as [Ignore].
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
during startup before the loader lock is initialized.
(mono_loader_unlock_if_inited): Ditto.
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
during startup before the loader lock is initialized.
(mono_loader_unlock_if_inited): Ditto.
* MenuRenderingMode.cs: added (4.0)
* Menu.cs: added the IncludeStyleBlock and RenderingMode 4.0
properties (not used in the code yet).
svn path=/trunk/mcs/; revision=160723
* HttpApplication.cs, HttpRuntime.cs, HttpApplicationFactory.cs:
Prepare for the runtime change that will terminate threadpool
svn path=/trunk/mcs/; revision=160700
* Array.cs: Fixes a couple of other cases where we were missing
the handling for null values, fixes a broken case of null
handling.
svn path=/trunk/mcs/; revision=160699
2010-07-21 Sebastien Pouliot <[email protected]>
* Makefile: Ensure SECURITY_DEP gets defined in our moonlight
raw profile
In System.Net:
2010-07-21 Sebastien Pouliot <[email protected]>
* ServicePointManager.cs: Add special validation for Moonlight
* WebConnection.cs: Change a define to NET_2_1
In System.Net.Security:
2010-07-21 Sebastien Pouliot <[email protected]>
* LocalCertificateSelectionCallback.cs:
* SslStream.cs:
Don't use alias in moonlight build (not needed and breaks
compilation otherwise)
svn path=/trunk/mcs/; revision=160675
* Wizard.cs: made rendering 100% compliant with .NET (button IDs,
2.0+)
Implemented LayoutTemplate (4.0+)
* LinkButton.cs: render id first
* CreateUserWizard.cs: CreateUserNavigationContainer.UpdateState
doesn't add a previous button if we're on the first step.
svn path=/trunk/mcs/; revision=160657
* method-to-ir.c (op_to_op_src2_membase): Reorganize the amd64 op->op membase
code, it was missing a few 'break's.
svn path=/trunk/mono/; revision=160633
* parser.cs (ParseEscape): Now parses with some context, whether
we are parsing inside a character range which can not contain
back-references or when we are parsing on a string context which
can contain back references.
This fixes bug #577346 which exposed a bug parsing this:
new Regex("[\\177-\\377]")
svn path=/trunk/mcs/; revision=160626
* NoAccessPolicy.cs: Set default to SecurityException each time
IsAllowed is called since we share a single instance of this type
svn path=/trunk/mcs/; revision=160611
* src/gmisc-win32.c (g_getenv): Distinguish between variable not
found and an empty variable.
This should fix 566152
svn path=/trunk/mono/; revision=160589
* BaseDomainPolicy.cs:
* ICrossDomainPolicy.cs:
* NoAccessPolicy.cs:
* PolicyDownloadPolicy.cs:
* SiteOfOriginPolicy.cs:
Allow throwing something else than a SecurityException
which is pretty rare but we got a DRT for it
svn path=/trunk/mcs/; revision=160586
* UnixRegistryApi.cs: Remove the in-memmory approach to volatile keys,
as it becomes trickier to handle deep hiearchies, subkeys and values
in some scenarios. So for now we keep them in disk, we in an
alternative directory, so we can cleam them properly later.
svn path=/trunk/mcs/; revision=160574
* Array.cs: Fix for bug #622101, this reverts portions of the
broken patch that was introduced as part of the fix for #351638
which was mostly a set of optimizations, but some were just
wrong.
svn path=/trunk/mcs/; revision=160527
* Graphics.cs (CopyFromScreen): Avoid crash if asked for a region
to big for XGetImage to return. Fix bug #582823
svn path=/trunk/mcs/; revision=160507
* FormViewRow.cs: added internal property RenderJustCellContents
which makes the control render only its children (4.0)
* FormView.cs: implemented RenderOuterTable property and the
ModifiedOuterTableStylePropertyName method (4.0)
svn path=/trunk/mcs/; revision=160496
* WebControl.cs: implemented verifying that no inline style
property is set for controls which support the RenderOuterTable
property (4.0)
* IRenderOuterTable.cs: internal helper interface for controls
which support the RenderOuterTable property (for now only
ChangePassword, 3 more to come)
* ChangePassword.cs: implemented RenderOuterTable property and the
corresponding behavior of not rendering surrounding table when the
property is set to false (4.0).
Modified BaseChangePasswordContainer to not inherit from Table
anymore. Table is an instance variable (always used as the
template container in 2.0) which is optionally (and by default)
used to contain the templates.
svn path=/trunk/mcs/; revision=160459
* mini-ia64.c: Change the calling convention to pass this as first as on other
architectures. Remove some dead code from the get_vcall_slot() and the implementation
of the CALL_MEMBASE opcodes as a result.
svn path=/trunk/mono/; revision=160458
* wthreads.c (CreateThread): Avoid an assert if the stack size specified by the
caller is smaller than the system minimum.
svn path=/trunk/mono/; revision=160457
* reflection.c, class-internals.h, class.c, icall.c: support
reflection of default constant value for Re.Emit properties.
svn path=/trunk/mono/; revision=160447
* reflection.c (load_cattr_value): Add support for encoding
DateTime constants into the blob. Turns out that this is
required by .NET, it was only documented post 1.0.
* icall.c (ves_icall_type_GetTypeCodeInternal): Guard test for
System.Decimal and System.DateTime inside a mono_is_corlib_image
call. A sample program showed that we could return the wrong
TypeCode just by creating a class with those names.
* class.c (mono_is_corlib_image): Exposed this to other metadata/
code.
svn path=/trunk/mono/; revision=160402
* DateTime.cs: This is the Retina Display of DateTime structs.
Unlike our previous Chubby DateTime that took 16 bytes of memory,
this slim version of DateTime only uses 8 bytes.
This fixes a couple of bugs 592221 and 622127. Additionally, it
turns out that the original Microsoft documentation did not spell
this out, but newer versions of the docs state that SetConstant on
a FieldBuilder should be capable of serializing DateTimes (which
is where this issue came from).
This is necessary to fix two crashers exposed by the CLR test
suite.
svn path=/trunk/mcs/; revision=160391
* tests.make: Do not run the tests under the verifier until the
verifier bug is fixed so at least we can see what is going on in
our buildbots.
svn path=/trunk/mcs/; revision=160388
* WebMessageEncoder.cs : support Raw message in ReadMessage() too.
Allow null content type.
* WebMessageFormatter.cs : do not depend on WebOperationContext.
add support for Raw format request.
* WebMessageEncodingBindingElementTest.cs : add test for null
content type for ReadMessage() (allowed),
* WebHttpBehaviorTest.cs : add test for deserializing Raw request
message too.
svn path=/trunk/mcs/; revision=160377
* BinaryMessageEncoder.cs, MessageEncoder.cs:
The default content type value is null, not the ContentType value.
* HttpReplyChannel.cs : pass HTTP ContentType header value to
MessageEncoder.ReadMessage().
svn path=/trunk/mcs/; revision=160376
* Menu.cs: fixed skip link rendering (no child controls are added
in the process, writing directly to HtmlTextWriter). Fixes tests
for 4.0
If StaticSubMenuIndent equals Unit.Empty on 4.0, default to using
16px as the value of the margin-left CSS attribute.
Fixed all failing tests (both 2.0 and 4.0)
svn path=/trunk/mcs/; revision=160369
* security-core-clr.c: Don't abort (only warn) if we cannot find
a caller for relfecting code (transparent is assumed). Fix
get_method_access_exception to accept a NULL caller.
svn path=/trunk/mono/; revision=160361
* namespace.cs, import.cs: When importing nested type via type
arguments set their parent type correctly (Fixes#622051).
svn path=/trunk/mcs/; revision=160356
* WebMessageFormatter.cs : add support for Raw format.
* WebMessageEncoder.cs : support Raw message. Fixed bug #619542.
* WebHttpBehaviorTest.cs : add test for bug #619542 (not sure if it
works on mono; run-test is broken in trunk. Verified under .NET).
svn path=/trunk/mcs/; revision=160341
* sgen-gc.c: Versions of safe_object_get_size() and
copy_object_no_checks() that work without the object's vtable
intact, by passing the correct vtable as an argument.
svn path=/trunk/mono/; revision=160316
* BoundField.cs: implemented HtmlEncodeFormatString property
(3.5+) and modified the way FormatDataValue works accordingly.
svn path=/trunk/mcs/; revision=160312
* ListBox.cs, CheckBoxList.cs, ListControl.cs: VerifyMultiSelect
is not part of the official API. MultiSelect capability validation
is performed using an internal virtual method MultiSelectOk ().
* BaseDataList.cs: OnPagePreLoad is not part of the official API
* BaseDataBoundControl.cs, BaseDataList.cs, DataListItem.cs,
ValidationSummary.cs: implemented 4.0 SupportsDisabledAttribute
property.
svn path=/trunk/mcs/; revision=160305
* Control.cs: moved 4.0 ClientID code to a separate method, so
that the ID_SET flag isn't set when necessary.
2010-07-13 Marek Habersack <[email protected]>
* Wizard.cs: wizard table doesn't contain any instances of
HtmlAnchor or Image controls. Moved rendering of the skip link
anchor to the TableCellNamingContainer class, which does that in
RenderChildren by directly writing to the passed writer. Fixes 4.0
rendering and all the failing Wizard tests.
svn path=/trunk/mcs/; revision=160304
* RegistryKey.cs: Call the proper UnixRegistryApi.CreateSubKey overload.
* UnixRegistryApi.cs: Implement basic support for volatile keys, by
storing them in memory instead of disk. We lack the support to have
them available to other processes - and given the fact that a
workaround would be gross, just don't implement that now.
svn path=/trunk/mcs/; revision=160300
** Fixes#569543
* Tds70.cs (ExecPrepared): Revert back to old changes.
* Tds80.cs (ExecPrepared): Override for Tds 8 version that
optimizes network bandwidth.
svn path=/trunk/mcs/; revision=160281
* sgen-gc.c, sgen-gc.h, sgen-los.c, sgen-major-copying.c,
sgen-marksweep.c: Update the heap boundaries thread-safe and lock
free if parallel mark is enabled.
svn path=/trunk/mono/; revision=160279
* sgen-gc.c, sgen-gc.h, sgen-major-copying.c: Lock the internal
allocator if parallel mark (not committed yet) is enabled.
svn path=/trunk/mono/; revision=160278
* reflection.c (inflate_mono_method): Handle dynamic
generic instances that have method.count set but
methods not. Fixes another crash from boo's test suite.
svn path=/trunk/mono/; revision=160277
* icall.c (ves_icall_MonoMethod_get_base_method): If
the method slot is bigger than the class vtable, return
the original method. Makes booc work again.
svn path=/trunk/mono/; revision=160268
* reflection.c (fix_partial_generic_class): Inflate the
generic instance parent in case it was changed after
MonoGenericClass was instantiated.
Fixes one of the issues from #389886.
svn path=/trunk/mono/; revision=160257
2010-07-12 Rolf Bjarne Kvinge <[email protected]>
* mono.1: Document MONO_DEBUG's new reverse-pinvoke-exceptions option.
In mono/mini:
2010-07-12 Rolf Bjarne Kvinge <[email protected]>
* mini.c|h:
* mini-exceptions.c: Add an option to MONO_DEBUG for tracking down exceptions
that reach native code from a reverse pinvoke.
svn path=/trunk/mono/; revision=160250
* InputOrReplyProcessor.cs : remove SecurityHandler. WS-Trust must
be handled before endpoint dispatching (it must not pass contract
filter) and doesn't make sense to be here.
* SecurityHandler.cs : move to old-code.
* SecurityReplyChannel.cs : handle WS-Trust message here.
* SecurityRequestContext.cs : so, do not pass those messages here.
* SslSecurityTokenAuthenticator.cs,
AuthenticatorCommunicationObject.cs,
SecureConversationSecurityTokenAuthenticator.cs :
add timeout argument to negotication requests.
* System.ServiceModel.dll.sources: remove SecurityHandler.cs
svn path=/trunk/mcs/; revision=160244
2010-07-12 Atsushi Enomoto <[email protected]>
* SecurityRequestContext.cs : revert extra and bogus changes I had
locally.
svn path=/trunk/mcs/; revision=160233
* mini-<ARCH>.c (get_call_info): Call mini_type_get_underlying_type () before passing
a type to MONO_TYPE_IS_REFERENCE (), since the latter can't handle VAR/MVAR.
Fixes#620864.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=160206
* mini.c (mono_jit_compile_method_inner): Don't bomb out if we don't
support a given runtime implemented method.
svn path=/trunk/mono/; revision=160205
* RegistryKey.cs: Add 4.0 CreateSubKey overloads taking a RegistryOptions
parameter.
* IRegistryApi.cs: Add a new overload for CreateSubKey for the 4.0
profile. Not nice, but better than to change the signature for each
profile.
* Win32RegistryApi.cs: Properly recognize a handle where a volatile
key is requested.
* UnixRegistryApi.cs: Stubbed.
svn path=/trunk/mcs/; revision=160203
** Fixes 620860
* Tds70.cs (Precision): New virtual property to handle Precision
values across different Tds versions.
(WriteParameterInfo): Use defined Precision property instead of
constant value. Also handle Ulong and long max/min values
properly.
* Tds80.cs (Precision): Override property to provide Tds 8
precision value.
svn path=/trunk/mcs/; revision=160199
* loader.c (mono_get_method_constrained): Properly unlock the
domain lock on failure. Use checked variant of
inflate_generic_signature.
svn path=/trunk/mono/; revision=160193
* gc.c, gc-internal.h, sgen-gc.c, sgen-gc.h, sgen-os-mach.c: An
interface to register our Mach exception thread which will not be
suspended by stop-the-world.
2010-07-10 Mark Probst <[email protected]>
* mini-darwin.c: Register the exception thread with the GC.
svn path=/trunk/mono/; revision=160190
* metadata.c (mono_metadata_parse_type_internal): Don't use
cannonical types when a transient type was requested.
Fixes#608626.
svn path=/trunk/mono/; revision=160189
* sgen-gray.c, sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c:
All functions that touch the gray queue directly or indirectly now
take it as an argument.
svn path=/trunk/mono/; revision=160184
* sgen-gray.c, sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c:
Put the gray queue data into a struct and pass it around.
svn path=/trunk/mono/; revision=160183
* class.c (mono_method_can_access_method_full): Handle type
accessibility with very deep nested types.
* class.c (mono_method_can_access_field_full): Ditto.
Fixes#619300.
svn path=/trunk/mono/; revision=160181
* sgen-gc.c, sgen-los.c, sgen-major-copying.c, sgen-marksweep.c,
sgen-scan-object.h: Use a macro for rounding up sizes and
addresses to ALLOC_ALIGN.
svn path=/trunk/mono/; revision=160179
* mini.h (MONO_INST_HAS_CONSTANT_LOAD): New instruction flag marking loads which load
from constant memory.
* ir-emit.h: Clean up the _FAULT macros a bit.
* decompose.c: Mark some loads as constant.
* mini-llvm.c: Pass the constant-ness of loads to LLVM using custom metadata.
svn path=/trunk/mono/; revision=160161
* driver.c (mini_usage): Change the name of the --sgen flag to be
--gc=sgen and also support --gc=boehm. These flags can also be
set on MONO_ENV_OPTIONS to propagate this to children processes.
* main.c: Remove the MONO_VM_OPTIONS environment variable that
only supported "sgen" and "llvm" config options and instead parse
the MONO_ENV_OPTIONS as options that are parsed by the command
line parser. Any command line option that Mono supports can be
passed in this environment variable.
svn path=/trunk/mono/; revision=160160
* mini.c (mini_method_compile): Run abcrem uncoditionally when LLVM is used since
it can now eliminate more than just bounds checks.
* ir-emit.h: Add MAY_FAULT versions of the LOAD_MEMBASE macros which take
an extra 'fault' argument.
* method-to-ir.c: Set the MONO_INST_FAULT of the array opcodes which are decomposed
later.
* decompose.c: Propagate the MONO_INST_FAULT flag from the array opcodes to their
decomposition.
* mini-llvm.c: Remove support for the X86/AMD64 COMPARE_MEMBASE opcodes, they are
no longer generated when LLVM is used.
* abcremoval.c: Eliminate MONO_INST_FAULT flags if possible.
svn path=/trunk/mono/; revision=160151
* XmlNodeReaderImpl.cs : in GetNamespacesInScope(), avoid NREs under
"no current node" situation. Also, look for attributes on iterated
nodes, not current ones.
svn path=/trunk/mcs/; revision=160145
* SignedXml.cs : avoid using LoadXml() to load xml element as in
literal string. Use ImportNode() instead.
Copy namespaces for a referenced node found in envelope document too.
svn path=/trunk/mcs/; revision=160143
* Message.cs, MessageBufferImpl.cs, MessageImpl.cs: preserve and
output attributes prefixes, to copy Body/@wsu:Id to successfully
verify the xmldsig.
svn path=/trunk/mcs/; revision=160142
* sgen-marksweep.c (major_finish_major_collection): Don't free
major heap blocks on 32 bit platforms because it can lead to
address space fragmentation. We'll figure this out later.
svn path=/trunk/mono/; revision=160134
from various points.
In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine.dll.sources: Add
UnknownToolsVersionException.cs
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Correctly handle precedence of ToolsVersion value coming
from various points.
* BuildEngine.cs (BuildProjectFile): Restore project.ToolsVersion .
* Engine.cs: Likewise. Also validate DefaultToolsVersion .
* Project.cs: Handle invalid tools version specified in the project
file, and fall back to engine's version.
* MSBuild.cs: Fix the precedence order, and validate.
* UnknownToolsVersionException.cs: New.
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks.dll.sources: Use
UnknownToolsVersionException.cs from Engine.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* MessageTest (TestExecution): Additional messages with 'low'
importance get emitted, so don't expect sequential messages.
In tools/xbuild:
* Main.cs: Use tools version specified on the command line, if
any.
* xbuild.exe.sources: Include UnknownToolsVersionException.cs from
MS.B.Engine
svn path=/trunk/mcs/; revision=160133
* Win32RegistryApi.cs: Use RegCreateKeyEx instead of RegCreateKey, as
we need it to further support both the missing bits and the 4.0
features.
svn path=/trunk/mcs/; revision=160130
* ChannelDispatcher.cs : do not swallow exception during
RequestContext.get_RequestMessage() and thus return SOAP Fault for
MessageSecurityException to the client.
svn path=/trunk/mcs/; revision=160122
* MessageHeader.cs : to clone raw xml completely, avoid using
ReadOuterXml() and text reader but use XmlNodeReader instaed.
* Message.cs : avoid extraneous xmlns:u attribute.
svn path=/trunk/mcs/; revision=160120
* MessageImpl.cs : When XmlReaderMessage was writing its contents,
it was dropping body attributes, including wsu:Id for WS-Security.
svn path=/trunk/mcs/; revision=160105
* mini-llvm.c (emit_load): Use the mono specific load intrinsics even outside clauses
since LLVM might be able to hoist them out of loops.
(emit_store): Ditto.
svn path=/trunk/mono/; revision=160089
* WebClient.cs: handle compressed streams when automatic decompression
is turned on by a class derived from WebClient.
svn path=/trunk/mcs/; revision=160084
* xdebug.c (mono_save_trampoline_xdebug_info): Make this receive a MonoTrampInfo.
* tramp-<ARCH>.c: Move the calls to save_trampoline_xdebug_info () into
mini-trampolines.c/mini-exceptions.c. Use a more human readable name for
generic trampolines+rgctx fetch trampolines.
svn path=/trunk/mono/; revision=160073
* assembly.c (mono_assembly_load_reference): Replace a g_warning
with a mono_trace calls. This makes compiling MD a lot less
scary.
svn path=/trunk/mono/; revision=160072
* ImageMap.cs: implemented missing Enabled property (2.0+)
RaisePostBackEvent must be protected and virtual (2.0+)
NavigateUrl is ignored if the control is disabled (4.0)
svn path=/trunk/mcs/; revision=160053
* Control.cs: if generating a predictable ID and the current
control is a naming container, ensure that an ID is generated if
not specified by user.
svn path=/trunk/mcs/; revision=160050
* ScriptModule.cs: PostAcquireRequestState must check if the
current context and the current handler aren't null before
attempting to use them.
svn path=/trunk/mcs/; revision=160044
* WebHttpBehavior.cs : Set an a default DispatchOperation to throw
EndpointNotFoundException instead of raising null Invoker error.
And add error handler that converts the exception to HTTP 404.
svn path=/trunk/mcs/; revision=160040
* sgen-gc.c (OBJ_COMPLEX_ARR_FOREACH_PTR): Don't load the vtable
from the object because it might have pinned/forwarding bits set.
svn path=/trunk/mono/; revision=160028
* method-to-ir.c (emit_imt_argument): Call add_outarg_reg even if MONO_ARCH_IMT_REG
is not defined in the LLVM case to keep the imt arg alive.
svn path=/trunk/mono/; revision=160007
4.0 updates.
* ResourceManager.cs: Mark ResourceSets as obsolete.
* ResourceReader.cs: New public Dispose method.
svn path=/trunk/mcs/; revision=160005
In class/corlib/System.Threading.Tasks/:
* Parallel.cs: Fix Parallel.Invoke to use all data supplied in
ParallelOptions
* ParallelOptions.cs: Use CancellationToken.None for initialization
svn path=/trunk/mcs/; revision=160004
* TreeView.cs:
When using registered CSS classes, the node style must use them in
reverse order.
More 4.0 test updates (disabled some Menu tests until its rendering is updated)
svn path=/trunk/mcs/; revision=160003
* HyperLink.cs: the associated image is not rendered using the
Image control.
4.0 updates for several tests (HTML rendering changes)
svn path=/trunk/mcs/; revision=159995
* ResourceWriterTest.cs: In our new AddResource_Stream_Default test
store the resource file under Test/resources/, instead of the base
dir, so we avoid filling the dir with not needed files.
svn path=/trunk/mcs/; revision=159992
** Fixes#609109 - DateTime part
* TdsComm.cs (Append[DateTime]): More fix for handling SqlServer
* MinValue for DateTime.
svn path=/trunk/mcs/; revision=159985
* exceptions-<ARCH>.c mini-llvm.c: Clean up the naming of the llvm related trampoline
functions, now its 'llvm_<FOO>_trampoline'.
svn path=/trunk/mono/; revision=159982
* XmlInputStream.cs : it had been failing to retrieve correct
encoding due to insufficient buffer reading. Fixed bug #615499.
svn path=/trunk/mcs/; revision=159967
* DTMXPathDocumentWriter2.cs : implement some writer methods.
(I think it was slipped down from some bugfixes, but not sure.)
svn path=/trunk/mcs/; revision=159966
** Fixes#609109
* TdsComm.cs (Append[DateTime]): Handle datetime values sanely
that are less than epoch.
(Append[string]): Fix boundary checking for availability of
enough buffer
svn path=/trunk/mcs/; revision=159962
* TypeMap.cs :
Do not try to add static members as serialization targets.
Support OnDeserializing and OnDeserialized. Fixed bug #615800.
* DataContractJsonSerializerTest.cs : add test for bug #615800.
svn path=/trunk/mcs/; revision=159958
* TypeMap.cs : when an object is null, return null, not just an
uninitialized object.
* DataContractJsonSerializerTest.cs : add test for bug #615801.
svn path=/trunk/mcs/; revision=159944
* ChannelFactoryBase.cs : null via uri parameter is not allowed.
* ClientRuntimeChannel.cs : give non-null Via uri.
* HttpTransportBindingElementTest.cs : add test for
ChannelFactoryBase`1.CreateChannel() with null via uri.
svn path=/trunk/mcs/; revision=159934
* ResourceWriter.cs: Implement 4.0 AddResource overloads taking a
Stream, as well as implement the same support in our AddResource that
takes an object too.
svn path=/trunk/mcs/; revision=159930
* method-to-ir.c (emit_imt_argument): Fix llvm support.
* mini-llvm.c: Use only one mono specific LLVM calling convention since imt/rgctx
cannot be passed in the same call.
svn path=/trunk/mono/; revision=159929
* mini-amd64.h mini-amd64.c tramp-amd64.c aot-compiler.c: Change the IMT
register to be the same as the RGCTX register, the two can't be used together on
the same call.
svn path=/trunk/mono/; revision=159928
* driver.c (mono_main), main.c: Add support for MONO_VM_CONFIG
that allows the user to force the VM to use llvm or sgen.
svn path=/trunk/mono/; revision=159927
* exceptions-ppc.c (mono_arch_handle_exception): Resume from the signal handler
before processing the exception on PPC too.
svn path=/trunk/mono/; revision=159923
* mini-ppc.h (MONO_CONTEXT_SET_SP): Define this to fix the PPC build.
* mini-ppc.c tramp-ppc.c aot-compiler.c: Change the managed calling convention so
'this' is always passed as the first argument, before the vtype ret arg. This
simplifies get_this_arg_reg () and LLVM integration.
svn path=/trunk/mono/; revision=159922
* HttpStandaloneReplyChannel.cs, HttpChannelListenerEntry.cs,
HttpContextInfo.cs, HttpListenerManager.cs,
HttpStandaloneRequestContext.cs, HttpListenerManagerTable.cs:
Fixed wsdl support in the new codebase, so enabled it again, and
made significant changes for ASP.NET integration. Now ASP.NET
implementation switched to the new one.
* SvcHttpHandler.cs : add required code for new ASP.NET HTTP stack.
Support for new and old stack (both) are temporarily enabled.
* HttpTransportBindingElement.cs : switch to new ASP.NET stack.
svn path=/trunk/mcs/; revision=159907
2010-06-07 Martin Baulig <[email protected]>
* mono-debug-debugger.c (mono_debugger_get_thread_abort_signal):
New helper function since mono_thread_get_abort_signal() is now
internal.
svn path=/trunk/mono/; revision=159904
2010-07-05 Martin Baulig <[email protected]>
* exceptions-x86.c (mono_arch_handle_exception): Port this to
Windows; apply my patch from r159782 in the mono-2-6 branch.
svn path=/trunk/mono/; revision=159901
2010-07-05 Rolf Bjarne Kvinge <[email protected]>
* configure.in: Restore the AM_CONDITIONAL debugger supported, we need it to
include/exclude assembler files from the build in the makefile.
In mono/mini:
2010-07-05 Rolf Bjarne Kvinge <[email protected]>
* Makefile.am: Don't build the debug assembler files if we're building without
debugger support.
svn path=/trunk/mono/; revision=159885
* unwind.c (decode_lsda): Use read32 for reading 32 bit quantities.
* tramp-arm.c (mono_arch_create_generic_trampoline): Save the original sp to
lmf->iregs [ARMREG_IP] to be consistent with mono_arch_emit_prolog ().
* mini-arm.h (MonoLMF): Remove unused fregs field, add comments for other fields.
* exceptions-arm.c: Clean up the handling of LMFs. Add LLVM exception trampolines.
svn path=/trunk/mono/; revision=159863
* metadata/file-io.c: don't prepend anything to the names returned
from FindFirst/FindNext.
* io-layer/io.c: don't strip out directory paths in the pattern.
Second half of the fix for 580090.
svn path=/trunk/mono/; revision=159861
* Directory.cs (ValidateDirectoryListing): Removing an unnecessary
Path.Combine call. Part of the fix for bug #580090.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=159860
* mini-arm.c: Always use V5 for passing IMT/RGCTX when running under LLVM.
* method-to-ir.c (emit_imt_argument): Fix LLVM support for architectures
without IMT_REG defined (ARM).
* exceptions-arm.c: Add LLVM throw exception trampolines, add xdebug info for
the trampolines.
svn path=/trunk/mono/; revision=159857
** Fixes#609935
* TdsMetaParameter.cs (Prepare): Use GetActualSize() instead of
Size property to calculate the length of a nvarchar param.
svn path=/trunk/mcs/; revision=159851
* object-internals.h, object.h: Make mono_string_to_utf_8_checked
public, as mono_string_to_utf_8 is deprecated.
* object.(c|h): Added mono_object_to_string, a public helper function
that calls ToString on a MonoObject and returns a MonoString.
* object.c (mono_print_unhandled_exception): Use mono_object_to_string.
svn path=/trunk/mono/; revision=159843
fail to work on .NET 4.0 as well, for the most part. I will fix them next week.
2010-07-02 Marek Habersack <[email protected]>
* TemplateControlParser.cs: added support for ClientIDMode
property
* Control.cs: implemented 4.0 features - ClientIDMode and
RenderingCompatibility.
* ClientIDMode.cs, IDataKeysControl.cs: added
2010-07-02 Marek Habersack <[email protected]>
* Menu.cs: 4.0 API updates.
* GridView.cs: implemented 4.0 properties -
SortedAscendingCellStyle, SortedAscendingHeaderStyle,
SortedDescendingCellStyle, SortedDescendingHeaderStyle,
ClientIDRowSuffix, ClientIDRowSuffixDataKeys, ShowHeaderWhenEmpty
along with associated rendering changes.
* DetailsView.cs, FormView.cs, GridView.cs: 4.0 API changes -
renamed ShowPage to SetPageIndex and made it public.
Added 4.0 interfaces to inheritance list and implemented them.
* DataKeyArray.cs: added internal constructor which accepts IList
instead of ArrayList. Changed the 'keys' field type to IList.
* ContainedTable.cs: the 'id' attribute must be rendered last.
* CheckBox.cs, CheckBoxList.cs, SiteMapPath.cs, Table.cs,
TableStyle.cs, TextBox.cs, WebControl.cs: 4.0 rendering changes.
* Calendar.cs, CompositeControl.cs, DropDownList.cs, HyperLink.cs,
Image.cs, ImageButton.cs, Label.cs, LinkButton.cs, LoginName.cs,
Panel.cs, Table.cs, TableCell.cs, TableRow.cs:
added new 4.0 property, SupportsDisabledAttribute.
2010-07-02 Marek Habersack <[email protected]>
* VersionConverter.cs: added support for checking whether the
passed version is equal or more than a specified minimal version.
* PagesSection.cs: added two 4.0 properties - ClientIDMode and
ControlRenderingCompatibilityVersion
2010-07-02 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added support for ClientIDMode 4.0
property
* PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
must call the base implementation.
svn path=/trunk/mcs/; revision=159826
* HttpStandaloneReplyChannel.cs, HttpStandaloneRequestContext.cs:
add more code that the asp.net stuff will become like.
* SvcHttpHandlerFactory.cs : remove unused code.
* SvcHttpHandler.cs : ditto. Add some code for what new asp.net
support will look like.
svn path=/trunk/mcs/; revision=159818
* HttpStandaloneReplyChannel.cs, HttpListenerManager.cs,
HttpStandaloneRequestContext.cs :
refactoring, to add ASP.NET implementation. (not in use yet)
svn path=/trunk/mcs/; revision=159817
* mini.h: Applied patch from Elijah Taylor ([email protected]). Fix some
definitions to match their declarations and vice-versa.
svn path=/trunk/mono/; revision=159816
* HttpContextInfo.cs, HttpListenerManager.cs,
HttpListenerManagerTable.cs : add implementation for ASP.NET, not
in use yet.
svn path=/trunk/mcs/; revision=159811
* ThemeWin32Classic.cs: The images drawn in the column header must be
vertically centered. Fixes#616432.
Patch by Thomas Goldstein ([email protected]).
svn path=/trunk/mcs/; revision=159805
* Message.cs, MessageImpl.cs, MessageBufferImpl.cs : remove BodyId.
XML attributes on s:Body are handled appropriately, not limited to
wsu:Id. Added several required overrides to Message and
MessageBuffer implementation classes.
* SecureMessageGenerator.cs : so, don't use BodyId. Treat it as a
specific case but still fallback.
svn path=/trunk/mcs/; revision=159800
* filewatcher.h filewatcher.h decimal.c threads-types.h: Applied patch
from Elijah Taylor ([email protected]). Fix some definitions to
match their declarations and vice-versa.
svn path=/trunk/mono/; revision=159774
* WebRequest.cs: DefaultCachePolicy and CachePolicy return a
NoCacheNoStore policy in all cases now. Workaround for bug #583934
svn path=/trunk/mcs/; revision=159758
* nullable.cs, expression.cs, statement.cs, method.cs, ecore.cs,
delegate.cs, cs-parser.jay, visit.cs: Use MemberAccess to resolve
base access expression, it has all bits done correctly.
svn path=/trunk/mcs/; revision=159732
* Makefile.am, mini-llvm.h, mini-unwind.h, mini.c, mini.h, xdebug.c:
implemt the option of loading the llvm backend from a module so
that we can have a single binary and the bloat from llvm is
only experienced when it is actually loaded.
svn path=/trunk/mono/; revision=159722
* mono-compiler.h: define MONO_LLVM_INTERNAL for internal functions
that may be needed by the llvm backend module.
svn path=/trunk/mono/; revision=159721
* typemanager.cs, membercache.cs, convert.cs, expression.cs,
ecore.cs: Replace remaining MethodLookup with correct user operator
lookup (to do correct deep lookup). Clean up most of outstanding
quirks in binary operator overload resolution.
svn path=/trunk/mcs/; revision=159717
* XmlDefaultWriter.cs : add state management support.
* XmlWriter.cs : use above feature for "null Settings in source
writer" case. This brings some minor .NET compatibility and
should fix bug #607697.
* XmlWriterTests.cs : remove NotWorking everywhere.
svn path=/trunk/mcs/; revision=159714
* XmlDefaultWriter.cs : new source (which I once wrote for relaxng
and corcompare).
* XmlWriter.cs : in some cases XmlWriter.Create() returns a new
wrapping writer instance.
If there was no Settings specified, return null.
* System.Xml.dll.sources,
moonlight_raw_System.Xml.dll.sources,
monotouch_System.Xml.dll.sources : add DefaultXmlWriter.cs.
* XmlWriterTests.cs : add a bit more assertions.
Remove NotWorking from some tests.
svn path=/trunk/mcs/; revision=159712
* XmlWriterTests.cs : add test matrix for understanding things.
Make those test names consistent. Mark as NotWorking.
svn path=/trunk/mcs/; revision=159704
* icall.c (ves_icall_Type_make_array_type): Raise a TLE if a
TypedByRef is passed.
* icall.c (ves_icall_Type_make_byref_type): Ditto.
* icall.c (ves_icall_Type_MakePointerType): Ditto.
Fixes#612780.
svn path=/trunk/mono/; revision=159694
* mini-trampolines.c (mono_vcall_trampoline): Fix a warning.
* mini-x86.c (mono_arch_get_vcall_slot): Remove most cases as the only caller
is now mono_arch_nullify_class_init_trampoline ().
(mono_arch_output_basic_block): Remove the special casing from the CALL_MEMBASE
opcodes, they are no longer needed.
svn path=/trunk/mono/; revision=159688
* mini-amd64.c (mono_arch_get_vcall_slot): Remove most cases as the only caller is
now mono_arch_nullify_class_init_trampoline ().
(mono_arch_output_basic_block): Remove the special casing from the CALL_MEMBASE
opcodes, they are no longer needed.
svn path=/trunk/mono/; revision=159687
* mini-trampolines.c (mono_vcall_trampoline): Use the LLVM method of obtaining the
vtable on platforms which support it.
svn path=/trunk/mono/; revision=159686
* aot-runtime.c (decode_exception_debug_info): Separate the LLVM and non-LLVM code
a bit better. Decode nesting information to fix eh support for llvm+aot.
* aot-compiler.c (emit_exception_debug_info): Encode nesting information for LLVM
methods.
svn path=/trunk/mono/; revision=159679
* ComplexBindingPropertiesAttribute.cs:
* DefaultBindingPropertyAttribute.cs:
* DefaultEventAttribute.cs:
* DefaultPropertyAttribute.cs:
Fix GetHashCode so that values are equals if Equals
return true
* DesignTimeVisibleAttribute.cs: Fix default value for Visible.
svn path=/trunk/mcs/; revision=159667
* import.cs: Operators must have between 1 and 2 parameters.
* method.cs: Switch destructor to direct membercache lookup
svn path=/trunk/mcs/; revision=159662
* membercache.cs, expression.cs, statement.cs, doc.cs, ecore.cs:
Changed FindMembers to allocate a new list only when a filter is
used. Saves decent chunk of memory and should save even more in the
future when the filter is not used that often.
svn path=/trunk/mcs/; revision=159648
* compiler.cs (LinkRef.ToString) [TRACE_REGEX]: Add pretty-printer
in TRACE_REGEX mode.
(TraceRegexp): Indent the output.
(TraceRegexpLabel): New. Prints out a line label.
(EmitCount): Don't trace. All callers are traced.
(ResolveLink): Trace line labels.
svn path=/trunk/mcs/; revision=159646
* mini-arm.c (get_call_info): Change the managed calling convention so 'this'
is always passed as the first argument, before the vtype ret arg. This simplifies
get_this_arg_reg () and LLVM integration.
svn path=/trunk/mono/; revision=159642
* mini-trampolines.c mini.c: Rework the virtual call handling code by using a separate
vtable trampoline for each vtable slot for both the LLVM and non-LLVM cases. Move
most of the vcall specific code to mono_vcall_trampoline () from
common_call_trampoline ().
svn path=/trunk/mono/; revision=159620
* UriTypeConverter.cs: Fix some regressed tests and add a new test
for when ConvertFrom is called with String.Empty.
svn path=/trunk/mcs/; revision=159598
* field.cs, property.cs, assign.cs, const.cs, expression.cs,
ecore.cs, class.cs, cs-parser.jay, enum.cs: Don't use intermediate
structure for simple type fields (saves memory and makes few things
simpler). Clean up some hacks mostly for events.
svn path=/trunk/mcs/; revision=159595
* UriTypeConverter.cs: Converting String.Empty should return null
instead of a Uri instance. Null values and unconvertable values
need to throw NotSupportedExceptions for moonlight too.
svn path=/trunk/mcs/; revision=159593
* mini-trampolines.c (common_call_trampoline): Remove the code which created static
rgctx trampolines when called from LLVM, they won't work for dynamic rgctx arguments
if the callsite is patched.
* mini-llvm.c (process_call): Disable calls which need an rgctx arg if not using
the llvm branch.
svn path=/trunk/mono/; revision=159585
* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Fix the name of
the trampoline in the xdebug info.
svn path=/trunk/mono/; revision=159584
* HttpUtility.cs: if IHtmlString instance is passed to HtmlEncode
(object), use IHtmlString.ToHtmlString () to return the value
without encoding it.
svn path=/trunk/mcs/; revision=159581
* mini-trampolines.c (common_call_trampoline): An ugly hack to
work around a potentially very hard to fix problem with inflating
generic methods.
2010-06-25 Mark Probst <[email protected]>
* class.c (mono_class_inflate_generic_method_full_checked): Added
a comment regarding a hack in mini-trampolines.c.
2010-06-26 Mark Probst <[email protected]>
* bug-616463.cs: New test.
* Makefile.am: Test added to generic tests.
This is a corrected re-commit of r159532.
svn path=/trunk/mono/; revision=159578
* sgen-gc.c (mono_gc_wbarrier_value_copy_bitmap): Use SIZEOF_VOID_P instead of
sizeof(SIZEOF_VOID_P) which is 4.
svn path=/trunk/mono/; revision=159575
* mini-gc.c (mini_gc_init_cfg): Use mono_gc_is_moving () instead of HAVE_SGEN_GC.
It might be be better to define a MonoGCJitOptions structure later and have the
GC return that.
svn path=/trunk/mono/; revision=159560
* wait.c handles.c wthreads.c: Call the mono_gc_ wrapper functions of some pthread
apis. This breaks the compile time dependency between io-layer and the GC.
svn path=/trunk/mono/; revision=159556
* gc_wrapper.h: Define the mono_gc_ wrappers for Boehm too, runtime code should
call these instead of the pthread_ variants.
svn path=/trunk/mono/; revision=159554
* Array.cs (SortImpl): Fix the 'fast path' which used 'as' to cast objects so
it never sorted the items array if it was not a object[]. Fixes#616416.
svn path=/trunk/mcs/; revision=159551
* TabControl.cs: Don't use the Font property of our TabPages - use our
own Font property instead, as .Net does.
Fixes some bits of #551032.
svn path=/trunk/mcs/; revision=159544
* mini-trampolines.c (common_call_trampoline): An ugly hack to
work around a potentially very hard to fix problem with inflating
generic methods.
I feel ashamed.
2010-06-25 Mark Probst <[email protected]>
* class.c (mono_class_inflate_generic_method_full_checked): Added
a comment regarding a hack in mini-trampolines.c.
svn path=/trunk/mono/; revision=159532
* mini-gc.c (mini_gc_init_cfg): New function to initialize GC specific flags
in MonoCompile.
* method-to-ir.c mini.c: Remove usage of HAVE_SGEN_GC and use runtime checks
instead.
svn path=/trunk/mono/; revision=159529
* configure.in: By default, we will now also buils an SGen-aware
VM by default. This can be turned off by using the
--with-sgen=no command line option.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Add support for building a sgen-aware versions of
the libraries: libmonoruntimesgen.la
libmonoruntimesgen-static.la,
they share all the components of the default, but use a differen
set of CFLAGS to enable SGEN instead.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Build the mono-sgen binary a Mono VM with the Sgen
GC enabled as well as libmono-sgen-2.0 and libomonosgen-static
* metadata: Move the mono-hash code here, as mono-hash is GC
aware, but the mono/utils directory is not
svn path=/trunk/mono/; revision=159514
* method-to-ir.c (mono_emit_wb_aware_memcpy): Don't emit bitmap
wb for now on 64bits systems while issues with valuetype returns
are not fixed.
svn path=/trunk/mono/; revision=159513
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add support for using a standard set of
passes by calling createStandardFunctionPasses ().
svn path=/trunk/mono/; revision=159507
depending on the redraw routines of SelectedIndex, which could be not
enough to detect the real affected area.
2010-06-24 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=159505
* statement.cs, report.cs: Rethrow internal error when reporting is
disabled.
* ecore.cs: Check for identical name only when simple name is set.
Fixes#616667
svn path=/trunk/mcs/; revision=159502
A fix for bug #616809
* generic.cs, expression.cs, ecore.cs: Added a new type expression
for open generic type to pass unbound type arguments to typeof
expression.
svn path=/trunk/mcs/; revision=159500
* HttpTransportBindingElement.cs :
Use new HTTP channel listener implementation.
* ChannelDispatcher.cs : enable service throttling again.
This time Http(Listener), ASP.NET and TCP listeners all work.
* System.ServiceModel.dll.sources :
add new HTTP channel listener implementation sources.
Old sources will be kept for a while, won't entirely vanish as
ASP.NET support will live there.
svn path=/trunk/mcs/; revision=159491
* HttpListenerManager.cs : finish pending wait handle when closing
a listener. Fixed the issue on closing host/listener/channels.
svn path=/trunk/mcs/; revision=159490
* MetadataExchangeBindingsTest.cs : make sure that the target port
of the Uri is available (as some other tests do).
svn path=/trunk/mcs/; revision=159487
* configure.in: By default, we will now also buils an SGen-aware
VM by default. This can be turned off by using the
--with-sgen=no command line option.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Add support for building a sgen-aware versions of
the libraries: libmonoruntimesgen.la libmonoruntimesgen-static.la,
they share all the components of the default, but use a differen
set of CFLAGS to enable SGEN instead.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Build the mono-sgen binary a Mono VM with the Sgen
GC enabled as well as libmono-sgen-2.0 and libomonosgen-static
svn path=/trunk/mono/; revision=159468
* configure.in: First pass at supporting the compilation of both
the Boehm-powered Mono VM and the Sgen-powered one.
The Boehm configuration flags are no longer part of the config.h
that we generate, but instead they are part of the CFLAGS
variables that are used for the following components:
* io-layer/ because it uses the pthread APIs that are
wrapped by using utils/gc_wrapper.h
* metatada/ because we have plenty of GC-specific code
* mini/ the VM itself
The patch currently only changes the way that Boehm is compiled,
no changes for Sgen have been done yet.
We now pass Boehm CFLAG settings as "BOEHM_DEFINES" which need to
be added to the three Makefiles above.
When building the bundled and modified libgc, we also need to pass
MONO_DEBUGGER_SUPPORTED as it triggers some special features in
the libgc.
Simplify the build also by removing the AM_CONDITIONAL debugger
supported, we now merely check this on the source file and wrap
the entire debug-debugger.c in an ifdef.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Put the BOEHM defines in the CFLAGS definition.
* domain-internals.h (MonoJitInfo): this structure used to have
different sizes depending on the GC that was configured (Boehm vs
SGen). I have removed this difference for the sake of avoiding
the complexity of dealing with the mono/arch directory requiring
GC-specific changes to their Makefiles.
2010-06-23 Miguel de Icaza <[email protected]>
* debug-debugger.c: Wrap the entire file with an #ifdef
MONO_DEBUGGER_SUPPORTED to simplify the build.
* Makefile.am: Fix the opcodes build issue by including the
source, not by including the .lo file directly
Always bring the MDB sources into the build, to drop the
dependency on the AM_CONDITIONAL from configure.in as the hard
debugger supports Boehm, but not Sgen, this simplifies the build.
* Renamed the *.s files into *.S
svn path=/trunk/mono/; revision=159461
* XmlFormatterDeserializer.cs: Fix some issues in Moonlight when
some referenced assemblies cannot be found or loaded
svn path=/trunk/mcs/; revision=159460
** Fixes#581679
* DataRelationCollection.cs (Add, Remove): Use DataRelation obj
instead of this when raising OnCollectionChang(ing, ed) events.
svn path=/trunk/mcs/; revision=159447
* HttpStandaloneChannelListener.cs
HttpStandaloneReplyChannel.cs
HttpStandaloneRequestContext.cs
HttpListenerManagerTable.cs
HttpChannelListenerEntry.cs
HttpContextInfo.cs
HttpListenerManager.cs :
Refresh implementation for HTTP channel listener in new namespace,
which works fine with throttling.
It still has some issue in closing channels or listeners, so it
does not replace existing implementation yet.
svn path=/trunk/mcs/; revision=159439
* ServiceMetadataExtension.cs : Reduced not a few lines of code,
now that we know wsdl and help do not have to be differentiated,
this extension support can be a lot simpler.
* HttpListenerManager.cs :
No need to get messed around MetadataPublishingInfo anymore.
svn path=/trunk/mcs/; revision=159411
* HttpListenerManager.cs : remove extra different code paths for
channel dispatchers with or without mex endpoints.
svn path=/trunk/mcs/; revision=159410
for dependency checks for targets.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* TargetBatchingImpl.cs (BuildTargetNeeded): Fix var names to
correctly reflect what they track. Log messages when skipping
or building a target.
In tools/xbuild:
* xbuild/Microsoft.CSharp.targets (CoreCompile): Fix inputs.
* xbuild/Microsoft.VisualBasic.targets (CoreCompile): Fix inputs.
svn path=/trunk/mcs/; revision=159406
* src/ghashtable.c: Add code to sanity check the
hashtable contents. This is invaluable, for example,
to catch bugs where a key hashcode changes after
insertion.
svn path=/trunk/mono/; revision=159385
* mini-llvm.c (mono_llvm_emit_method): Recalculate MONO_INST_INDIRECT flags to
allow better optimization if the OP_LDADDR which caused the flag to be set was
optimized away.
svn path=/trunk/mono/; revision=159381
2010-06-22 Geoff Norton <[email protected]>
* mach-support-*.(c|h): We cannot allocate from the gc, so make
these functions alloc-less.
in metadata:
2010-06-22 Geoff Norton <[email protected]>
* sgen-os-mach.c: We cannot call malloc from the gc, so we need to use
alloca instead to prevent a deadlock.
svn path=/trunk/mono/; revision=159356
* domain.c: Allow gettings the tls key, since we need it for
cross thread tls poking in sgen-mach
* sgen-gc.(c|h), gc-internal.h: Rework sgen into having some functions
in external files for platform specific STW support.
* sgen-os-mach.c: Add a new mach kernel backend implementation of STW.
* sgen-os-posix.c: Move the existing posix signal based STW here.
svn path=/trunk/mono/; revision=159349
* Makefile.am
* mach-support-amd64.c
* mach-support-x86.c
* mach-support.c
* mach-support.h: Added a new suite of helpers for managing threads
on mach based kernels.
svn path=/trunk/mono/; revision=159348
* TextControl.cs, XplatUIX11.cs, XplatUICarbon.cs: Expand paint
regions slightly so that the full extents of text get painted.
Fixes bug 464464.
svn path=/trunk/mcs/; revision=159327
* ServiceBehaviorAttribute.cs : do not overwrite existing properties
which may have been set by preceding behaviors. Fix WSDL output.
* EnvelopeVersion.cs : fix name and namespace for None property.
* HttpListenerManager.cs : add some comments.
* DispatchRuntimeTest.cs : add another line of assertion.
svn path=/trunk/mcs/; revision=159313
* compiler.cs: Add new internal flag to switch on regexp
* tracing.
The code is a statc readonly variable so the JIT can eliminate
all tracing code during normal runs.
svn path=/trunk/mcs/; revision=159286
* TabControl.cs: When setting SelectedIndex and the new selected tab
bounds are obscured by the scrollers, take into account the self tab
when looking for the proper bounds to adjust the slider. This is specially
important when we need to adjust the slider pos for the *last* tab page.
Fixes#615382.
svn path=/trunk/mcs/; revision=159277
* cs-tokenizer.cs, anonymous.cs, expression.cs, statement.cs,
support.cs, location.cs, cs-parser.jay: Some work on full ast mode.
svn path=/trunk/mcs/; revision=159275
* mini-llvm.c (exception_cb): For nested clauses, add the same try range to the
nesting clause too.
(mono_llvm_check_method_supported): Enable llvm for methods with nested clauses.
(mono_llvm_emit_method): Instead of calling 'mono_resume_unwind' directly, call a
trampoline which saves the context, so changes made to callee saved registers in
finally clauses are visible to a nesting catch clause.
* exceptions-amd64.c: Add a resume_unwind trampoline for LLVM.
* mini-exceptions.c (mono_handle_exception_internal): Fix support for nested clauses
in LLVM compiled code.
(mono_handle_exception_internal): Add a 'ctx' argument containing the state after
the finally handler has ran.
* mini.h (ResumeState): New structure containing information required to resume
exception handling after executing LLVM compiled finally clauses.
svn path=/trunk/mono/; revision=159274
* exceptions-amd64.c (get_throw_trampoline): Clean up the amd64 throw trampolines a
bit, by passing all the registers as one argument.
svn path=/trunk/mono/; revision=159271
* Type.cs (StructLayoutAttribute): This raises on v4.
* MonoType.cs (StructLayoutAttribute): Implement this
under v4.
svn path=/trunk/mcs/; revision=159263
* TabControlPainter.cs: Actually draw the focus rectangle - TabControl
ignores the value of ShowFocusCues. Also, properly compute the bounds
for the focus rectangle, since it should include the padding of the
tab page.
Fixes bits of #515045.
svn path=/trunk/mcs/; revision=159231
* metadata-verify.c: do not consider the assembly invalid if it
doesn't have a #Blob stream as resource assemblies don't
necessarily have one.
svn path=/trunk/mono/; revision=159181
* FontDialog.cs: Make the 16 colors in the color drop down
match .Net. Patch by Thomas Goldstein ([email protected]).
[Fixes bug #506726]
svn path=/trunk/mcs/; revision=159180
* FontDialog.cs: Show all 16 colors in the color drop down
to match .Net. Patch by Thomas Goldstein ([email protected]).
[Fixes bug #508523]
svn path=/trunk/mcs/; revision=159179
* TimeZoneInfo.cs: Applied patch from Vincent Povirk that adds
support for reading time zone information on windows.
This patch makes TimeZoneInfo.GetSystemTimeZones and
FindSystemTimeZoneById work based on the registry on non-Unix
platforms, if the appropriate registry key exists. Mono currently
reads from /usr/share/zoneinfo, which doesn't exist on Windows.
This should fix bug 606084.
It won't fix the Local property on Windows. I think that requires
a Windows API call to get the id of the local timezone.
This was modified from the previous version to not check the
registry on Unix platforms. (Sorry it took me so long to do
this. I have very little time to spend on Mono-related work.)
svn path=/trunk/mcs/; revision=159163
* DataPager.cs: when rendering the ID attribute, use ClientID
2010-06-18 Marek Habersack <[email protected]>
* NumericPagerField.cs: CreateDataPagers outputs correct page
number in query mode. Fixes bug #615315
Rendering changes to match .NET
* DataPagerField.cs: if query string has been handled and query
mode is in effect, return true. Fixes bug #615315
svn path=/trunk/mcs/; revision=159161
* aot-compiler.c aot-runtime.c: Fix LLVM support.
* mini-llvm.c: When emitting OP_CALL_HANDLER, avoid branching directly to the landing
pad, branch to a new bblock instead.
svn path=/trunk/mono/; revision=159154
* aot-compiler.c (emit_method_code): Use cfg->header instead of the header of
orig_method.
* exceptions-amd64.c (mono_arch_exceptions_init): Fix fullaot support.
svn path=/trunk/mono/; revision=159148
* ServiceHostBase.cs : Do not build more than one ChannelDispatcher
for a Binding. Then check duplicate listen URIs, excluding mex ones.
* ChannelDispatcher.cs : add simple bool field to mark for mex channel.
* ServiceMetadataExtension.cs : use simple ChannelDispatcher.IsMex field.
* ServiceHostTest.cs : improved endpoint tests and enabled them.
* ChannelDispatcherTest.cs : had to disable a test that regressed from
validating duplicate listen URI. Possible remedy is described too.
svn path=/trunk/mcs/; revision=159140
* typemanager.cs, namespace.cs: Report more predefined types and
imported types collision types as a warning.
Fixes#537414, #601157
svn path=/trunk/mcs/; revision=159130
* ServiceHostTest.cs : fix AddServiceEndpoint tests to make sense.
They are mostly not working. Enable working one.
* TcpTransportBindingElementTest.cs : rename misleading test.
svn path=/trunk/mcs/; revision=159122
* generic.cs: Overrides base method constraint can use method type
parameter.
* import.cs: Removed redundant cache.
svn path=/trunk/mcs/; revision=159120
* TestRunner.cs, TestWorkerRequest.cs: added support for POST
requests.
* StandaloneTest.cs: added support for POST requests. Run items
are executed in sequence and their results are preserved for the
next run. If the next run is a POST one, form data is extracted
from the previous response and used to generate POST data for the
current one.
Added a new property, FailedUrlCallbackName, which contains the
fully qualified method name of the test callback which failed.
Callback is no longer required to be present.
2010-06-18 Marek Habersack <[email protected]>
* FormViewUpdateParameters_Bug607722.cs: added two POST phases -
Edit and Update.
2010-06-18 Marek Habersack <[email protected]>
* standalone-runner.cs: added new command line parameter, --test,
which selects a single test to run instead of the entire suite. It
should be passed a fully qualified (without assembly name) type
name of the test class.
svn path=/trunk/mcs/; revision=159114
2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* System.Core/Dummy.cs:
* moonlight_raw_System.Core.dll.sources: Add an internal dummy class to create
the System.Core namespace.
* Makefile:
* moonlight_raw_System.Core.dll.sources: Include the dlr in Moonlight.
In class/System.Core/System.Linq:
2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* EnumerableQuery.cs:
* EnumerableQuery_T.cs:
* EnumerableExecutor.cs:
* EnumerableExecutor_T.cs: Include in Moonlight.
* Enumerable.cs: Moonlight too needs Zip.
In class/System.Core/System.Runtime.CompilerServices:
2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* ExecutionScope.cs: This class exists in Moonlight, but isn't supported.
* StrongBox_T.cs:
* DynamicAttribute.cs: Include in Moonlight.
svn path=/trunk/mcs/; revision=159111
* exceptions-x86.c (mono_x86_throw_corlib_exception): Negate the decrement of
the ip done by throw_exception (), it is not needed for corlib exceptions.
svn path=/trunk/mono/; revision=159101
* VirtualMachine.cs Connection.cs: Group events received together into an EventSet,
like it is done in JDI. Add a GetNextEventSet () method.
svn path=/trunk/mcs/; revision=159084
* sgen-gc.c (mono_gc_wbarrier_value_copy_bitmap): Work in a similar
way to mono_gc_wbarrier_value_copy but takes a bitmap that
indicates which slots need a write barrier.
2010-06-17 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_emit_wb_aware_memcpy): Simplify this function.
Call new jit icall mono_gc_wbarrier_value_copy_bitmap for vt wbarrier
of size > 5 words. This support fast barriers for value types up to
256/512 bytes which beyond that the copying itself is the major issue.
* method-to-ir.c (mini_emit_stobj): The intrinsic version is safe
for gsharing, so use it.
This eliminate all calls to mono_value_copy from managed code in
gmcs, fsharp and ipy.
This gives a 2% perf boost on ipy and 1% on gmcs over previous patches.
Even thou a lot of mono_value_copy calls were eliminated from fsharp,
performance kept
* mini.c (mini_init): Register new icall.
svn path=/trunk/mono/; revision=159083
* method-to-ir.c (mono_emit_wb_aware_memcpy): Handle nested valuetypes.
This eliminates 2% of mono_value_copy calls on ipy and 12% on fsharp.
svn path=/trunk/mono/; revision=159082
* method-to-ir.c (mini_emit_stobj): Don't call mono_value_copy for small
value types as the overhead is huge. Manually expand it up to 5 words to
avoid code bloat.
This improves gmcs times by 5% and unmodified binary-tree by 78%. The later
is an exception that performance is dominated by mono_value_copy.
This puts sgen about 5% ahead of boehm in terms of wall-clock on a Core2Quad.
svn path=/trunk/mono/; revision=159081
* TabControl.cs: When calculating the size of our tabs use
MinimumTabWidth only if SizeMode is other than Fixed.
Patch by Thomas Goldstein ([email protected]).
svn path=/trunk/mcs/; revision=159076
* DataConverter.cs: On bracketed cases, save the position as well,
like we do in the repeat case without brackets. Fixes#595929
svn path=/trunk/mcs/; revision=159075
* mini-llvm.c (process_call): Disable LLVM for calls to generic class init
trampolines on x86, since those have their own cconv.
svn path=/trunk/mono/; revision=159074
* exceptions-x86.c (mono_arch_exceptions_init): Implement the llvm throw corlib
exception trampolines.
* tramp-x86.c: Add xdebug info for a few trampolines.
* mini-llvm.c: Set the name of the arguments.
svn path=/trunk/mono/; revision=159073
* ServiceHostBase.cs : retrieve MessageVersion and raise an error
if there is none. (Check this earlier than building a listener.)
* ChannelDispatcher.cs : MessageVersion check is moved to
ServiceHostBase.
* ServiceMetadataExtension.cs : overwrite MessageVersion to use None.
(The only special case I found for ChannelDispatcher.MessageVersion.)
* CustomBindingTest.cs : add tests for MessageVersion check on Open().
* MetadataExchangeBindingsTest.cs : make sure that special casing of
MessageVersion does not happen at this layer.
svn path=/trunk/mcs/; revision=159061
* generic.cs, method.cs: Inflate copied type parameters from base
class or explicit interfaces.
* convert.cs: Fixed conversion between two type parameters.
Fixes#614471
svn path=/trunk/mcs/; revision=159050
* RootBuilder.cs: both LINK and META HTML tags must be represented
as instances of HtmlGenericControl. Fixes bug #603541
svn path=/trunk/mcs/; revision=159046
* mini-llvm.c (emit_cond_system_exception): Pass the ip of to throw_corlib_trampoline
using a block address if using the LLVM mono branch.
* exceptions-amd64.c (mono_arch_exceptions_init): Add new LLVM throw corlib exception
trampolines.
svn path=/trunk/mono/; revision=159044
* Random.cs: Do not call Math.Abs blindly when we get an int
value, as Math.Abs (Int32.MinValue) throws an overflow exception,
and our constructor uses Environment.TickCount which means that
eventually we will get a crash.
Fixes#605797
svn path=/trunk/mcs/; revision=159042
A fix for bug #599601
* dynamic.cs, ecore.cs: A new flag for dynamic resolver to ignore
generated member access left expression.
svn path=/trunk/mcs/; revision=159022
* Atom10ItemFormatter.cs : Fix reading of "source" element to not
expect feed element (ReadFrom() expects it). Fixed bug #614596.
svn path=/trunk/mcs/; revision=159019
* IsolatedStorageFile.cs: Remove should catch all the exceptions
caused by DirectoryInfo.Delete and throw an IsolatedStorageException
instead.
svn path=/trunk/mcs/; revision=159017
* mini.c (mini_init): Remove some of the llvm restrictions, they are no longer needed.
* method-to-ir.c (mono_method_to_ir): Enable fast virtual calls when using llvm.
* mini-trampolines.c (mono_llvm_vcall_trampoline): Rewrite this to use one vtable
trampoline per vtable slot index. The slot, along with the 'this' argument is enough
to identify the vtable slot address plus the method which needs to be compiled.
* mini.c (mini_get_vtable_trampoline): Use one vtable trampoline per vtable slot when
using llvm.
svn path=/trunk/mono/; revision=158965
* mini-x86.c (get_call_info_internal): Change the managed calling convention so
'this' is always passed as the first argument, before the vtype ret arg. This
simplifies get_this_arg_reg () and LLVM integration.
svn path=/trunk/mono/; revision=158963
* tramp-x86.c (mono_arch_create_generic_trampoline): Emit unwind info for
these trampolines.
* mini-x86.c (mono_arch_get_cie_program): Implement this for x86.
svn path=/trunk/mono/; revision=158960
* mini-amd64.c (CallInfo): Fix the position of the vret_arg_index field.
(get_call_info): Don't place the vret arg second when using varargs, since the
sig cookie could come before it.
svn path=/trunk/mono/; revision=158956
** Fixes#613087
* Tds.cs (ProcessLoginAck): Fix server version being compared in
the switch-case.
* Tds70.cs (BuildPreparedParameters, BuildProcedureCall): Set
* default
precision to 18 as used by MS.Net when connecting to SqlServer
7.0.
(BuildExec, ExecRPC): Marked protected in order to be used by
Tds80
and henceforth.
* Tds80.cs (Execute): Separated from Tds70 to include Tds80
* changes.
svn path=/trunk/mcs/; revision=158951
* mini-amd64.c (get_call_info): Change the managed calling convention so 'this'
is always passed as the first argument, before the vtype ret arg. This simplifies
get_this_arg_reg () and LLVM integration.
svn path=/trunk/mono/; revision=158950
etc., use `checked` expressions to generate OverflowExceptions.
Ensure that OverflowExceptions are generated for needed types.
Fixes#596339
* Test/System/ConvertTest.cs: Add tests for #596339.
svn path=/trunk/mcs/; revision=158945
* typespec.cs: ElementTypeSpec has to use its own ITypeDefinition.
* report.cs: Unwrap elements for related symbols reporting.
svn path=/trunk/mcs/; revision=158935
* TcpReplyChannel.cs : accept TCP channel on ReceiveRequest(). This
fixes standalone tcp-transport/sample[svc|cli]5.exe test in olive
(but not TcpTransportBindingElementTest.SimpleDuplexStreamed.)
* TcpTransportBindingElementTest.cs : add connection tests (imported
from standalone olive tests), one is disabled for breakage.
svn path=/trunk/mcs/; revision=158924
* parameter.cs, property.cs, membercache.cs, decl.cs, iterators.cs,
anonymous.cs, expression.cs, support.cs, method.cs, pending.cs,
class.cs, cs-parser.jay: Simplify parsing of accessors by removing
any intermediate steps and fake nodes, also saves few MBs of memory.
svn path=/trunk/mcs/; revision=158913
* ResourceExpressionBuilder.cs: cast the return value of
GetLocalResourceObject to appropriate type. Fixes bug #607766
* TemplateControlCompiler.cs: made CreateConvertToCall internal
static, so that it can be used from ResourceExpressionBuilder
svn path=/trunk/mcs/; revision=158909
* WebUIValidation_2.0.js: fail gracefully if control to validate
is not found (webForm.ValidatorGetValue and
webForm.Page_ClientValidate). Fixes bug #609478
svn path=/trunk/mcs/; revision=158905
* method-to-ir.c (mono_method_to_ir): Add support for .ctor intrinsics.
* method-to-ir.c (mini_emit_inst_for_ctor): New function for .ctor intrinsics.
For now just call simd intrinsics. This makes "x[0] = new Vector4f (10)"
translate into much nicer code.
svn path=/trunk/mono/; revision=158903
* mini-llvm.c (sig_to_llvm_sig_full): Add a 'sinfo' out argument which returns
parameter index information. Use this to simplify a lot of code.
svn path=/trunk/mono/; revision=158895
* certmgr.cs: Fix case where DSA is used in SSL certificate (rare
enough that this was never found/reported). Suggest novell's
bugzilla (instead of ximian)
svn path=/trunk/mcs/; revision=158883
* NetTcpBinding.cs : remove pointless EnvelopeVersion field.
* ClientRuntimeChannel.cs : disable MessageId output. It does not
happen on TCP transport. Added FIXME comment to verify this.
This fix makes non-first-time calls from mono client working.
svn path=/trunk/mcs/; revision=158872
* OperationInvokerHandler.cs, MessageProcessingContext.cs :
ChannelDispatcher may be null, so check its availability before
using it. Don't use it, when possible.
* DispatchOperation.cs : remove unused member.
svn path=/trunk/mcs/; revision=158871
* XmlDocument.cs : do not create XmlSchemaInfo instance every time
it validates a node.
* XmlSchemaValidator.cs : limit validity initialization. In some
cases it failed to set Invalid.
svn path=/trunk/mcs/; revision=158867
* fakepoll.h: Added for OSX
* serial.c:
* signal.c: poll on OSX is broken, so we use a select based
implementation instead.
svn path=/trunk/mono/; revision=158861
* aot-compiler.c (compile_method): Add a 'depth' parameter to add_generic_class too
to fix infinite generic recursion. Fixes#612702.
svn path=/trunk/mono/; revision=158853
* X509Certificate2Collection.cs: Add {} around default switch case.
* HttpListenerRequest.cs: Assign default value to variable before using.
svn path=/trunk/mcs/; revision=158852
ECMA documentation. The problem was that we parse all the XML files
in order to extract //summary and //remarks members, and then stored
the XmlNodes for these members. XmlNode keeps a ref to the creating
XmlDocument, thus keeping the XmlNode around requires keeping the
entire XmlDocument around; result: ~350+MB RAM is needed to assemble
netdocs.zip (in ../../docs). To fix, import the XmlNodes that we
actually care about into an otherwise empty XmlDocument, so that we
only save the nodes we need. Result: ~32MB RAM is needed.
Fixes#602560.
svn path=/trunk/mcs/; revision=158835
* object.c (mono_method_add_generic_virtual_invocation): Fix the computation of the
IMT slot which is passed to callbacks.get_imt_trampoline.
svn path=/trunk/mono/; revision=158819
* object.c: Use a callback to create IMT trampolines, allowing the usage of one
imt trampoline per imt slot when using LLVM.
svn path=/trunk/mono/; revision=158816
* object.c: Use a callback to create IMT trampolines, allowing the usage of one
imt trampoline per imt slot when using LLVM.
svn path=/trunk/mono/; revision=158815
Fixes#438454.
* metdata/object.c (mono_runtime_run_main): Move
fire_process_exit_event() into runtime.c:mono_runtime_shutdown().
* metdata/runtime.c: Added; adds mono_runtime_shutdown(), which invokes
the AppDomain.ProcessExit event in all AppDomains.
* tests/Makefile.am: Add test-process-exit target.
* tests/bug-438454.cs: Added; test case for #438454.
* tests/bug-438454.exe.stdout.expected: Added; expected output when
executing bug-438454.exe, to test the ordering of the
AppDomain.ProcessExit event wrt ThreadPool disposal.
svn path=/trunk/mono/; revision=158809
files if any of the source .xml files have changed. This allows
new <summary/> values to be inserted into the index.{opts.ext}
files, instead of the index files being "stale". Fixes#573121.
svn path=/trunk/mcs/; revision=158790
* Mono.Options/Options.cs: Fix RemoveItem() and SetItem() so that
removing by index and using the numeric indexer work as expected.
* Test/Mono.Options/OptionSetTest.cs: Make OptionSetTest inherit from
ListContract so that the IList<T> and ICollection<T> interfaces are
fully tested.
* Test/Mono.Options/BaseRocksFixture.cs,
Test/Mono.Options/CollectionContract.cs,
Test/Mono.Options/ListContract.cs: Added; interface contract tests
from Cadenza.
svn path=/trunk/mcs/; revision=158750
KeyedCollection.InsertItem() exception safe, so that if the index is
invalid (negative or too large) we don't add the entry to the
underlying Dictionary.
* Test/System.Collections.ObjectModel/KeyedCollectionTest.cs: Verify
exception safety of Insert().
svn path=/trunk/mcs/; revision=158748
to obtain the maximum number of desired values. This better supports
e.g. DOS paths in multi-value values, e.g. '-DPATH=C:\tmp' would now
create the values {"PATH", "C:\tmp"} instead of {"PATH", "C", "\tmp"}.
* Test/Mono.Options/OptionSetTest.cs: Add tests for constrained value
splitting.
svn path=/trunk/mcs/; revision=158672
so that:
- it properly obeys the 'count' parameter; Fixes#601772.
- "...".Split(new[]{"."}, 2, StringSplitOptions.RemoveEmptyEntries).Length==0
- "A..".Split (new String[] { "." }, 2, StringSplitOptions.RemoveEmptyEntries) == new[]{"A"}
- Remove duplicative array handling code by using List<String>.
* Test/System/StringTest.cs: Add tests for #601772 (i.e. take
SplitStringChars(), change all the chars to Strings, and things
should work).
svn path=/trunk/mcs/; revision=158670
* liveness.c (visit_bb): Make the component vregs of long vars volatile as well.
Fixes#612206.
* exceptions.cs: Add a test.
svn path=/trunk/mono/; revision=158668
NotSupportedException.
* IsolatedStorageFileStream.cs: Implement Flush by calling the base impl.
2010-06-07 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=158612
error found in our System.IO classes as IsolatedStorageException.
2010-06-07 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=158593
* IsolatedStorageFileTest.cs: Update our tests to catch/report the new
exceptions fired in 4.0, as well as a new test to assert that
GetDirectoryNames fires an ArgumentException if '..' is passed as part
of the path.
svn path=/trunk/mcs/; revision=158590
* IsolatedStorageFile.cs: Update the exceptions we are firing in 4.0
for CreateDirectory, GetFileNames and GetDirectoryNames.
svn path=/trunk/mcs/; revision=158589
* mini.c (mono_jit_runtime_invoke): Initialize *exc to NULL before calling the wrapper,
so it doesn't have to do it.
svn path=/trunk/mono/; revision=158569
* IsolatedStorageFileTest.cs: Include check for paths outside our
storage root in our tests for MoveFile, MoveDirectory and CopyFile.
svn path=/trunk/mcs/; revision=158567
* IsolatedStorageFile.cs: Our 4.0 methods receiving a path should
either return false or throw an IsolatedStorageException if the path
refers to a directory outside the storage root.
svn path=/trunk/mcs/; revision=158566
* helpers.c (mono_disassemble_code): Flush stdout, so the output from the spawned
process does not mix with ours.
svn path=/trunk/mono/; revision=158553
* mini-llvm.c method-to-ir.c ir-emit.h: When using the llvm mono branch, allow
loads/stores which can throw exceptions inside clauses.
svn path=/trunk/mono/; revision=158550
* mini-llvm.c (mono_llvm_emit_method): Fix support for finally clauses with more than
one ENDFINALLY.
* mini.c (mini_init): Register mono_resume_unwind as an icall.
svn path=/trunk/mono/; revision=158547
* sgen-gc.c, sgen-los.c: New LOS allocator that allocates large
segments of memory at once, to reduce the number of mmap/munmap
calls.
svn path=/trunk/mono/; revision=158529
* sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c: Make degraded
allocations count toward major collections and trigger major
collections from degraded allocations if appropriate.
svn path=/trunk/mono/; revision=158527
* sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c: Have only one
major heap allowance for minor collections, instead of two
separate ones for small and large objects. This reduces the
number of major collections.
svn path=/trunk/mono/; revision=158498
* PageRouteHandler.cs: implemented
2010-06-05 Marek Habersack <[email protected]>
* UrlRoutingModule.cs: 4.0 doesn't do the UrlRouting.axd magic, it
simply remaps the current handler to the one obtained from the
route.
2010-06-05 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: expression evaluation results are
wrapped in a Convert.ConvertTo* call or a typecast.
* RouteValueExpressionBuilder.cs: implemented
* RouteUrlExpressionBuilder.cs: added missing custom attributes
svn path=/trunk/mcs/; revision=158497
* mono-dl.c (mono_dl_build_path): modify the logic to try the
use the passed name to build the path without suffix on the first
run (handles situations like "somelib.so.1.0" ->
"libsomelib.so.1.0") and, on subsequent run, append the platform
suffix(es) (handles situations like "libsomething" ->
"libsomething.so"). Fixes bugs #588143 and #610009
svn path=/trunk/mono/; revision=158490
* IsolatedStorageFile.cs: In CheckOpen check that the directory for
the current storage is still valid, and throw an exception if needed.
Also, in the static Remove method call Directory.Delete only if the
directory exists, to avoid throwing an exception there.
svn path=/trunk/mcs/; revision=158478
* StackFrame.cs (GetVisibleVariables): New method to return the set of variables
visible at the current stack frame.
svn path=/trunk/mcs/; revision=158474
* membercache.cs, convert.cs, nullable.cs, expression.cs: Optimize
user defined conversion probing and simplify user conversion for
nullabe types. Fixes#610940.
svn path=/trunk/mcs/; revision=158467
* CallbackBehaviorAttributeTest.cs : test recent changes on operation
descriptions, message directions, client operations and so on.
svn path=/trunk/mcs/; revision=158457
* OperationDescription.cs : add contract origin flags to identify
which operation should be used for client operations (and dispatch
too in the future).
* MessageDescription.cs : add IsRequest flag to indicate if it is
for request or not.
* ServiceContractGenerator.cs, ContractDescriptionGenerator.cs :
make use of above changes.
* ContractDescription.cs : don't create extraneous ClientOperations
in irrelevant message direction.
* EndpointDispatcher.cs, BaseMessagesFormatter.cs:
Now MessageDescription.Direction is differentiated from "IsRequest"
property, to precisely identify request/reply in callbacks. Also
now we don't have to create extraneous ContractDescription for
callbacks.
* DuplexClientRuntimeChannel.cs : do not create and use extraneous
ContractDescription for callback contract. Non-callback ones now
works fine.
This fixes service part of bug #567672, IsOneWay = true case.
svn path=/trunk/mcs/; revision=158454
msbuild extension paths. Paths can be specified via the environment
variable - $MSBuildExtensionsPath . ~/.config/xbuild/tasks is also
checked for extensions, besides the default location.
This explicitly looks for a "$(MSBuildExtensionsPath)" in the import
expression and tries to replace that with possible paths, till it
finds the file. In rest of the project, the property would resolve
to its single default value.
svn path=/trunk/mcs/; revision=158433
* dwarfwriter.c: Update after the mono_debug_lookup_locals () changes.
* debugger-agent.c (method_commands_internal): Ditto. Return scope information for
locals.
svn path=/trunk/mono/; revision=158421
* debug-mono-symfile.c (mono_debug_symfile_lookup_locals): Rewrite this so it returns
all information in a single structure. Return information about scopes as well.
* mono-debug.c (mono_debug_lookup_locals): Ditto.
svn path=/trunk/mono/; revision=158420
In class/System/System.Collections.Concurrent/:
* ConcurrentBag.cs: Add a add hint cache for faster steal retrieval.
Initialize lazily the underlying CyclicDeque.
In class/corlib/Test/System.Collections.Concurrent/:
* CollectionStressTestHelper.cs: Bump remove test repeat to 1000.
Use a local variable for tracking status and only update the global one
at the end.
svn path=/trunk/mcs/; revision=158417
* ContractDescriptionGenerator.cs : Now callback contract methods are
also reflected into OperationDescription as well as those from non-
callback contract. Callback methods have reverse MessageDirection,
so adjust them.
* ContractDescription.cs, ServiceEndpoint.cs, TypedMessageConverter.cs :
A bit of renaming / reflect method call changes.
* EndpointDispatcher.cs, DispatchRuntime.cs, ClientRuntime.cs :
now Callback[Dispatch|Client]Runtime properties are always filled
so that users can configure the callback runtimes (not sure such
configured runtimes work fine yet, but it is a required step).
* InputOrReplyRequestProcessor.cs : instead of HasCallbackRuntime
hack, use CallbackClientRuntime.CallbackContractType for checking
callback existence.
* ClientProxyGenerator.cs : CreateProxyType now carefully considers
requested proxy type, contract type and callback contract type.
i.e. now the resulting proxy has implemented methods for callbacks
that are also filled at ContractDescription.
* ClientRuntimeChannel.cs : reflect some method call changes.
svn path=/trunk/mcs/; revision=158412
* Engine.cs (GetLoadedProject): Return null if project not found.
Based on a patch by Dale Ragan <[email protected]> .
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* EngineTest.cs (TestGetLoadedProject1):
Patch by Dale Ragan <[email protected]> .
svn path=/trunk/mcs/; revision=158400
A fix for bug #610919
* parameter.cs, property.cs, cs-parser.jay: Use independent implicit
parameters for explicit event accessors. Anonymous method capturing
won't otherwise work for event implicit parameter.
svn path=/trunk/mcs/; revision=158383
* appdomain.c: If we are running with IOMAP we might
have been provided a string that isn't case-aware for our file-
system, so we need to use io-portability to check if the file
exists, rather than a simple glib test.
Fixes#608849
svn path=/trunk/mono/; revision=158366
A fix for bug #610088
* nullable.cs, expression.cs, statement.cs, method.cs, ecore.cs:
Ignore overrides for base overload resolution as for non-base
expressions and convert the best candidate to closest override
afterwards.
svn path=/trunk/mcs/; revision=158357
* IsolatedStorageFile.cs: Check for empty paths and existing paths in
both MoveFile and MoveDirectory, just as we do in CopyFile. Finally
cover our IO calls with a try-catch block, so all the IOException
instances are reported as IsolatedStorageException.
svn path=/trunk/mcs/; revision=158355
* verify.c (is_compatible_boxed_valuetype): Constaints
must be recursively checked if one generic argument
has a constraint on another.
Fixes#610625.
svn path=/trunk/mono/; revision=158341
* method-to-ir.c (set_rgctx_arg): New helper function to remove some duplicate code.
Use a separate generic class init trampoline for llvm, since it needs a different
signature.
* unwind.c (mono_unwind_decode_fde): Make this decode the mono specific LSDA which
includes the location of this/rgctx.
* mini-llvm.c aot-runtime.c: Enable generic sharing for llvm if using the LLVM mono
branch.
svn path=/trunk/mono/; revision=158309
* HtmlHead.cs: added code to render description and keywords metas
if the corresponding HtmlMeta controls aren't found and the user
set either Description or Keywords properties.
2010-06-01 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added new virtual method,
AddStatementsToInitMethodBottom and renamed
AddStatementsToInitMethod to AddStatementsToInitMethodTop.
* PageCompiler.cs: code to set Meta{Description,Keywords}
properties, if present.
2010-06-01 Marek Habersack <[email protected]>
* PageParser.cs: added support for MetaDescription and
MetaKeywords main directive attributes
* Page.cs: implemented MetaDescription and MetaKeywords
4.0 properties.
svn path=/trunk/mcs/; revision=158303
* HttpUtility.cs: moved chunks of code to the new
System.Web.Util.HttpEncoder class.
* HttpResponseHeader.cs: encode header names and values using
HttpEncoder.
* HttpRequest.cs: added internal method Validate, to validate the
request in 4.0 profile.
* HttpHeaderCollection.cs: added. A helper class to encode header
names/values on add.
* HttpApplication.cs: Pipeline () validates request by calling
HttpRequest.Validate in the 4.0 profile.
2010-06-01 Marek Habersack <[email protected]>
* HttpEncoder.cs: added. A 4.0 type but also used in 2.0 profile,
internally.
2010-06-01 Marek Habersack <[email protected]>
* HttpRuntimeSection.cs: added 4.0 properties
MaxQueryLengthString, MaxUrlLength, EncoderType and
RelaxedUrlToFileSystemMapping.
svn path=/trunk/mcs/; revision=158300
* statement.cs: Handle nullable types and type parameters in using
statement, avoid boxing value types. Also fixes#571010
svn path=/trunk/mcs/; revision=158275
2010-05-31 Martin Baulig <[email protected]>
Fix#608271.
* debugger-agent.c (breakpoints_cleanup): Iterate over `event_requests', call
clear_breakpoint() on all breakpoint events and remove them from the list.
svn path=/trunk/mono/; revision=158262
* mini.c (mini_method_compile): Enable llvm+exceptions on LLVM SVN.
* mini-llvm.c (emit_cond_system_exception): Disable llvm when this occurs in a
clause.
svn path=/trunk/mono/; revision=158240
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
linker entry on some systems (Android/Bionic based libc's)
svn path=/trunk/mono/; revision=158239
* console-unix.c (terminal_get_dimensions): Fix my previous
botched commit and return the actual value obtained from the ioctl.
svn path=/trunk/mono/; revision=158227
* unwind.c (mono_unwind_decode_fde): The FDE only has an augmention if the CIE
says so.
* aot-runtime.c (decode_eh_frame): Fix an assert condition.
svn path=/trunk/mono/; revision=158226
* IsolatedStorageTest.cs:
* IsolatedStorageFileTest.cs: New tests for AvailableFreeSpace, Quota,
UsedSize and IncreaseQuotaTo.
svn path=/trunk/mcs/; revision=158224
* configure.in: Windows: mcs_topdir_from_srcdir must not be
converted to a Win32 path unless it's already a cygwin path.
Fixes --with-mcs-docs for in-tree mcs builds.
svn path=/trunk/mono/; revision=158211
Merge the MonoTouch Linker branch.
* Mono.Linker/TypeParser.cs: add a type parser.
* Mono.Linker.Steps/MarkStep.cs: properly mark types used
with typeof in custom attributes
* Mono.Linker/LinkContext.cs: remove dead code.
* monolinker.exe.sources: add TypeParser.cs
svn path=/trunk/mcs/; revision=158209
* SerializationMap.cs, XmlFormatterSerializer.cs,
DataContractSerializer.cs :
support DataContractSerializer.PreserveObjectReferences. z:Ref
attributes are used not only for objects with IsReference=true.
Fixed bug #610036.
* XmlObjectSerializerTest.cs : test PreserveObjectReferences too.
svn path=/trunk/mcs/; revision=158201
* SerializationMap.cs, KnownTypeCollection.cs : contract namespace
should be still considered even if contract (local) name is null.
Fix crash for generic derived type of dictionary. Fixed the
primary (crasher) part of bug #610036.
* XmlObjectSerializerTest.cs : add test for bug #610036.
svn path=/trunk/mcs/; revision=158197
* pinvoke2.cs (test_0_calli_dynamic): Use the cdecl version
of mono_test_marshal_inout_array. Fixes the test when compiled
with MSC (and GCC where it worked by accident).
* libtest.c (mono_test_marshal_inout_array_cdecl):
New. cdecl wrapper for the function with the same name.
svn path=/trunk/mono/; revision=158175
* exceptions-amd64.c (get_throw_trampoline): Fix the xdebug name of the corlib
trampoline.
* exceptions-x86.c (mono_arch_exceptions_init): Create an llvm rethrow trampoline too.
* mini-llvm.c (mono_llvm_emit_method): Implement OP_RETHROW.
* method-to-ir.c (mono_method_to_ir): Emit a OP_NOT_REACHED after a rethrow.
svn path=/trunk/mono/; revision=158170
2010-05-29 Robert Jordan <[email protected]>
* IpcChannelTest.cs: Add test for bug #609381.
In System.Runtime.Remoting.Channels.Ipc.Win32:
2010-05-29 Robert Jordan <[email protected]>
* IpcChannelHelper.cs (copy): Take into account that the remoting
stack is internally using MemoryStreams all over the place.
Fixes bug #609381 as a side effect.
* IpcChannel.cs (.ctor): Create an IpcClientChannel as well.
svn path=/trunk/mcs/; revision=158161
* sgen-gc.c: Always use DESC_TYPE_RUN_LENGTH for objects without
references so that we don't have to do the cache-cold fetch of the
class in copy_object_no_checks().
svn path=/trunk/mono/; revision=158137
* libtest.c: Implement and use marshal_strdup () as a g_strdup ()
replacement under Windows. Fixes memory allocation mismatches.
svn path=/trunk/mono/; revision=158125
in a directory.
* AssemblyResolver.cs (FindInDirectory): Add a 'specific_version'
parameter. Look for reference.{dll|exe} instead of checking all
files in the directory. Compare assembly names only if
specific_version is true.
(ResolveHintPathReference): Extract code to check and compare assembly
names to ..
(ResolvedReferenceFromPath): .. this.
(AssemblyNamesCompatible): Change default value of @specificVersion to
true.
Track api changes.
* ResolveAssemblyReference.cs (ResolveReference): Specify
'specific_version' in case of SearchPath.Directory.
(TryGetSpecificVersionValue): msbuild seems to look only for ',' in
the reference, instead of checking whether the assembly is strong
named.
(TryGetResolvedReferenceByAssemblyName): Track api changes.
svn path=/trunk/mcs/; revision=158123
* sgen-gc.c: Change default nursery size to 4MB, because it
improves performance on many applications and benchmarks.
svn path=/trunk/mono/; revision=158122
* library.make: Don't sort source input files on windows to
build metadata compatible assemblies on all platforms.
svn path=/trunk/mcs/; revision=158115
* System.Xml.Linq_test.dll.sources :
add System.Xml.Schema/ExtensionsTest.cs.
* ExtensionsTest.cs :
New tests (not working yet), by Stefan Prutianu.
svn path=/trunk/mcs/; revision=158106
* ContractDescription.cs : fill ClientOperation.Formatter here.
(It is hacky, see additional comment.)
* ClientRuntimeChannel.cs : replace GetFormatter() with Formatter.
* ClientOperation.cs : do the same for client side too.
svn path=/trunk/mcs/; revision=158083
* DispatchOperation.cs : on callback channels ChannelDispatcher is
not available. Wait for something like ClientRuntime.ChannelFactory.
svn path=/trunk/mcs/; revision=158082
* DirectoryScanner.cs (ProcessInclude): Set %(RecursiveDir) only if
the '**' wildcard was found in the original Include.
svn path=/trunk/mcs/; revision=158081
* sgen-gc.c, sgen-scan-object.h: Value types in arrays are not
always aligned to ALLOC_ALIGN. To handle this, shift the size in
the GC descriptor by one bit, and don't encode the size for value
types not containing references. Also get rid of
DESC_TYPE_STRING.
svn path=/trunk/mono/; revision=158079
* sgen-gc.c (sort_addresses): Use heap sort since it has better
performance.
This helps programs with lots of threads or thread with big stacks
since the bottleneck the pin queue can get quite big.
svn path=/trunk/mono/; revision=158069
* Makefile, *.dll.sources: disambiguate between Mvc and Mvc2
by using a distinct LIBRARY. Needed because the current
build system does not pay attention to LIBRARY_COMPAT
while building *.reponse and *.makefrag.
svn path=/trunk/mcs/; revision=158066
2010-05-27 Martin Baulig <[email protected]>
Fix#605698.
* debugger-agent.c (method_commands, type_commands): Temporarily
set the appdomain while executing this method; do all metadata
calls in the debuggee's appdomain where user assemblies are loaded.
svn path=/trunk/mono/; revision=158052
* IsolatedStorageFile.cs: Implement GetCreationTime, GetLastAccessTime
and GetLastWriteTime, as well as creating a single method to check for
the closed/disposed fields.
svn path=/trunk/mcs/; revision=158030
* sgen-gc.c (search_fragment_for_size): Move fragment setup into
a separate function called setup_fragment.
* sgen-gc.c (search_fragment_for_size_range): Variant of
search_fragment_for_size that does search for a secondary smaller
size.
* sgen-gc.c (mono_gc_alloc_obj_nolock): Use search_fragment_for_size_range
for tlab allocation so small fragments are used.
This patch uses small fragments for tlab allocation when possible in order
to improve nursery utilization. With a fixed size tlab this patch is not very
usefull but once size gets dynamically adjusted, this will be invaluable.
Performance under pystone 500k is unchanged. Nursery utilization improves by
3.5% and 18 more fragments are used per minor GC.
Performance under modified binary-tree is unchanged. Nursery utilization
improves by 0.5% and 3 more fragments are used per minor GC.
These numbers make sense since as more pinning happens, more fragments are
created and so are the chances of having a bunch of small ones.
svn path=/trunk/mono/; revision=157998
* sgen-gc.c (mono_gc_alloc_obj_nolock): Avoid wasting space
* from
the current fragment when allocating a TLAB.
Reduces number of pystone 500k minor collections by 7%.
svn path=/trunk/mono/; revision=157997
* IsolatedStorageFileStreamTest.cs: New test cases for constructor
obtaining a closed/disposed IsolatedStorageFile.
svn path=/trunk/mcs/; revision=157969
* method-to-ir.c: Instead of freeing method headers immediately, save them in a list in
MonoCompile, and free them in mono_destroy_compile (), since the MonoType's in them could
be referenced even after the header is freed.
svn path=/trunk/mono/; revision=157962
* TcpDuplexSessionChannel.cs, TcpReplyChannel.cs : do not set RelatesTo
here. If the contract is not one-way (IsOneWay = false) and there is
a callback, the callback message sent to the client should *not* be
assigned RelatesTo header here. Just do it in the request-reply
context. Do it in OperationInvokerHandler.
* OperationInvokerHandler.cs : assign RelatesTo header item here.
svn path=/trunk/mcs/; revision=157950
* genmdesc.c: Added support for nacl: key on the machine
description files to support the extra space required by Google
Native Client.
svn path=/trunk/mono/; revision=157881
2010-05-25 Martin Baulig <[email protected]>
Applying a patch from Lucas Meijer <[email protected]>.
* debug-mono-symfile.c: Release memory from symfiles that were
loaded from memory.
svn path=/trunk/mono/; revision=157865
2010-05-24 Martin Baulig <[email protected]>
* Connection.cs (VersionInfo): Make this public.
* VirtualMachine.cs (Version): New public property.
svn path=/trunk/mcs/; revision=157862
* context.cs, expression.cs, cs-parser.jay: Don't store current
block in This expression (it's too early for linq blocks).
svn path=/trunk/mcs/; revision=157834
for diposed first, and for closed on second place.
* IsolatedStorageFile.cs: Add Obsolete to CurrentSize and MaximumSize,
as part of 4.0.
2010-05-24 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=157816
* IsolatedStorageFileStream.cs: When creating our instance check that
the IsolatedStorageFile is not closed/disposed.
* IsolatedStorageFile.cs: Expose closed/disposed info as internal
properties, as well as implement 4.0 MoveDirectory/MoveFile, CreateFile
and OpenFile methods.
svn path=/trunk/mcs/; revision=157801
* JsonQueryStringConverter.cs : objects are regarded serializable as
long as they are public here, with some exceptions (not implemented).
* JsonQueryStringConverterTest.cs : add more tests for CanConvert()
and reorganized some classes to make tests rational.
svn path=/trunk/mcs/; revision=157795
* Uri.cs : do not reject relative URIs that contain ':' and
any non-scheme characters preceding it.
* UriTest.cs : more URI tests, for relative URIs with ':'.
svn path=/trunk/mcs/; revision=157789
* IsolatedStorageFile.cs: Implement FileExists and DirectoryExists, as
well as adding fields to detect that Close/Dispose have been called
and fire the proper exceptions.
svn path=/trunk/mcs/; revision=157784
* marshal.c (mono_marshal_get_runtime_invoke): Simplify the code computing the
target class and remove some dead code.
svn path=/trunk/mono/; revision=157765
* marshal.c (mono_marshal_get_generic_array_helper): Make these wrappers dynamic and
free them when their parent method is freed.
svn path=/trunk/mono/; revision=157763
* metadata.c: Add a 'transient' argument to the MonoType creation functions, so
the MonoTypes inside method headers can be freed when the header is freed.
svn path=/trunk/mono/; revision=157762
* AsyncOperation.cs: Add checks for null delegates
* BackgroundWorker.cs: Ensure ProgressChanged can be called before
starting the work but not after its complete
svn path=/trunk/mcs/; revision=157698
* DefaultValueAttributeTest.cs: Change test case to compare the
hash code of two DVA created with null (instead of comparing to 0)
svn path=/trunk/mcs/; revision=157697
* ChannelDispatcher.cs : disable slottling again :( It still fails
to process concurrent requests if there is service metadata channel
and MaxConcurrentSessions > 1 on non-ASP.NET channels.
svn path=/trunk/mcs/; revision=157670
* WebScriptServiceHostFactory.cs : similarly to ServiceDebugBehavior
and ServiceMetadataBehavior in ServiceHostBase, it must *prepend*
WebScriptEnablingBehavior to apply all other behaviors subsequently.
svn path=/trunk/mcs/; revision=157667
* ServiceHostBase.cs : ServiceMetadataBehavior and ServiceDebugBehavior
are special. They must be applied in prior to other behaviors so that
newly populated ChannelDispatchers are applied behaviors accordingly.
svn path=/trunk/mcs/; revision=157666
* ChannelDispatcher.cs : enable throttling again. Though issues
regarding parallel request is not here (multiple dispatchers
can accept a channels for each), and HTTP channels do not accept
more than one channel at a time anyways.
svn path=/trunk/mcs/; revision=157662
* HttpChannelListener.cs : do not accept more than one channel at a
time. Remove extra fields. Add CancelAsync() implementation.
svn path=/trunk/mcs/; revision=157659
* HttpListenerManager.cs : add a workaround for Func<>.BeginInvoke()
problem that blocked ASP.NET channels working.
svn path=/trunk/mcs/; revision=157658
* configure.in: drop again the pkg.m4 dependency and for eglib
cases (and not-Windows) make it entirely optional.
svn path=/trunk/mono/; revision=157656
* FileStream.cs: when running on Windows and a path with Unix
directory separator chars is passed (including an UNC share), get
the canonical form of the path before attempting to retrieve its
directory name. Fixes bug #607502
* Path.cs: typo fix
svn path=/trunk/mcs/; revision=157650
* DefaultValueAttribute.cs: Two instances where DefaultValue ==
null are equal so they *must* return the same hash code
svn path=/trunk/mcs/; revision=157646
* marshal.c (mono_marshal_init): Register mono_gchandle_get_target
icall.
* marshal.c (mono_delegate_to_ftnptr): Use a gchandle instead of
gc tracked memory.
* marshal.c (mono_marshal_emit_managed_wrapper): Retrieve the first
argument from a gchandle.
* marshal.c: Get rid of the delegate_target_locations hash table.
Fixes#605295.
svn path=/trunk/mono/; revision=157589
* aot-runtime.c (decode_resolve_method_ref): Rename this from decode_method_ref_2.
(make_writable): Remove this unused function.
svn path=/trunk/mono/; revision=157588
* aot-compiler.c: Collect all information about a PLT entry into a separate MonoPltEntry
structure. Make the labels to plt entries local symbols instead of assembler local
labels, since tha latter causes problems for the iphone linker.
svn path=/trunk/mono/; revision=157576
* Enumerable.cs: fix GroupBy to deal with a null key for the last
group entry. Also fix GroupBy to properly throw ArgumentNullException.
svn path=/trunk/mcs/; revision=157558
* ServiceSettingsResponseInfo.cs
RegisterResponseInfo.cs
RefreshResponseInfo.cs
ResolveInfo.cs
UpdateInfo.cs
RegisterInfo.cs
UnregisterInfo.cs
RefreshInfo.cs
ResolveResponseInfo.cs : they don't have field initialization at
constructor now, for FormatterServices.GetUninitializedObject().
Fix regression with related to serialization changes.
* PeerResolverSerializationTest.cs :
verify deserialized address count too.
svn path=/trunk/mcs/; revision=157532
* XmlFormatterDeserializer.cs : Array of something with non-default
namespace should be deserialized as well. Required for fixing
PeerResolvers ResolveResponseInfo serialization test case.
svn path=/trunk/mcs/; revision=157531
empty message and return that.
Note: the ws-mc protocol defines that the service returns an
200 response with an empty body on first connection, this
adds support for that (fixes part of #599667)
svn path=/trunk/mcs/; revision=157525
DataMemberInfo objects being matched against the xml don't have
a set namespace because they were created from
DefaultTypeMap.GetDataMembers(), so only use the namespace for
comparison if it's not null (fixes part of #599667)
svn path=/trunk/mcs/; revision=157523
* PageParser.cs: handle several main directive attributes
specially, as they can have expressions as their values. Fixes bug
#603532
* MainDirectiveAttribute.cs: added - helper class to handle
directive attributes which can take either a value or an
expression.
* BaseParser.cs: IsDirective, IsExpression and IsDataBound methods
moved to here from TemplateControlCompiler.
2010-05-19 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: IsDirective, IsExpression and
IsDataBound methods moved to System.Web.UI.BaseParser.
Made CompileExpression and GetFieldOrProperty methods internal.
* PageCompiler.cs: check several of the Page directive attributes
for expressions. Fixes bug #603532
* AspGenerator.cs, TagAttributes.cs: use IDictionary instead of
Hashtable
svn path=/trunk/mcs/; revision=157519
* FtpDataStream.cs:
* FtpWebRequest.cs: properly close the data connection even when
nothing is read from it. Refixes bug #598908.
svn path=/trunk/mcs/; revision=157506
A fix for bug #594905
* convert.cs, constant.cs, expression.cs, literal.cs, ecore.cs:
Typed null can be used as a source for expression methods.
svn path=/trunk/mcs/; revision=157502
* ServiceHostBase.cs : do not arbitrarily add ServiceDebugBehavior
on all configuration-based services. .NET doesn't do that.
svn path=/trunk/mcs/; revision=157485
* ListView.cs: if data source has pageable data, get total count
from the source's DataSourceCount property. Fixes bug #604053
svn path=/trunk/mcs/; revision=157470
* TabControl.cs: Properly implement ItemSize, which should depend on
Font and ImageList -if available-, instead of having a fixed height.
Setting ImageList should cause a Redraw also.
Fixes#599950.
svn path=/trunk/mcs/; revision=157467
* sgen-gc.c (global_remset_cache_test): New function that
implements a 2 element LRU cache for just added remsets.
It is used to avoid adding duplicate ones.
* sgen-gc.c (add_to_global_remset): Check cache before
adding new entry.
* sgen-gc.c (scan_from_remsets): Ditto.
A 2 element LRU cache was chosen by profiling IronPython 2.6
pytones with 1M passes and corlib compilation.
For the ipy test duplication was originally 940.92, measured
by "Store remsets" divided by "Unique store remsets".
With a 2-element LRU, duplication went to 1.007. Without the
check in scan_from_remsets 1.438.
With a 16-elements LRU, duplication reduction was negligibe.
A single element cache was basically of no use.
With corlib compilation duplication went from 1.4 to 1.02.
Performance results is a 20% time decrease for ipy and 2%
with corlib.
svn path=/trunk/mono/; revision=157460
* XamlWriterStateManager.cs : on object writer, reject more write
namespace order. (I should really unuse it for object writer.)
* XamlObjectWriter.cs : result is set at end object. Do not reject
non-collection in this writer. I'm totally no idea why it should
not do so though.
* XamlObjectWriterTest.cs : fix and enable some tests.
svn path=/trunk/mcs/; revision=157446
* HttpApplicationFactory.cs: pre-application start methods must be
called even before App_Code is compiled.
2010-05-17 Marek Habersack <[email protected]>
* BuildProvider.cs: made the Extension property case-insensitive
2010-05-17 Marek Habersack <[email protected]>
* BuildProvider.cs: implemented a 4.0 method RegisterBuildProvider
* BuildManager.cs: separated dynamically registered assemblies
store from the referenced assemblies cache.
svn path=/trunk/mcs/; revision=157435
* TabControlPainter.cs: When drawing the contents of our tabs use
TabControl.Padding instead of BorderThickness and FocusRectSpacing.
* CheckBoxPainter.cs, RadioButtonPainter.cs: Added.
svn path=/trunk/mcs/; revision=157428
* typespec.cs, expression.cs, statement.cs, ecore.cs, complete.cs,
delegate.cs: Member instance is resolved after member overload
definitely resolves static/instance property of member expression.
Fixes#545047, #358848, #456605, #460016, #603299
svn path=/trunk/mcs/; revision=157424
to calculate the interior rectangle to draw the tab contents, as
TabControl.Padding is enough - we had been ignoring it. This make
should our tab look more like that one in .net.
2010-05-17 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=157423
* TabControlPainter.cs: When drawing tabs, use TabControl.Padding into
account for the interior rectangle for the text/image contents.
Fixes the remaining bits of #604034.
svn path=/trunk/mcs/; revision=157419
* Enum.cs : TryParse() should raise ArgumentException when the
type parameter is not an enum. Fixed bug #604134
* EnumTest.cs : add test for bug #604134.
svn path=/trunk/mcs/; revision=157416
* method-to-ir.c (mono_method_to_ir): Use fast generic virtual method invocation
if gshared is enabled, to avoid asserts in the trampoline code.
* mini-ia64.c (mono_arch_build_imt_thunk): Implement generalized imt thunks
on ia64.
svn path=/trunk/mono/; revision=157408
* TabControlPainter.cs: The text for our tabs should always be
vertically centered, and it should be horizontally centered if the
size mode is Fixed. Patch from Thomas Goldstein ([email protected]).
Fixes part of #599841.
svn path=/trunk/mcs/; revision=157406
* BuildManager.cs: do not cache referenced assemblies until it's
safe.
2010-05-16 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: let BuildManager know when it's safe
to cache referenced assemblies.
svn path=/trunk/mcs/; revision=157391
* AssemblyInfo.cs: this assembly should be signed with winfx.pub
2010-05-15 Marek Habersack <[email protected]>
* HttpResponse.cs: added internal Context property
* HttpRequest.cs: added a setter to the internal Context property
* HttpContext.cs: set request and response Context properties to
'this' in the constructor.
2010-05-15 Marek Habersack <[email protected]>
* Control.cs: implemented 4.0 GetRouteUrl overloads and
GetUniqueIDRelativeTo
2010-05-15 Marek Habersack <[email protected]>
* RouteValueExpressionBuilder.cs: added
* RouteUrlExpressionBuilder.cs: implemented
svn path=/trunk/mcs/; revision=157378
* TabControl.cs: ItemSize should include the padding value.
Update the retrieval of this info in SizeTab as well.
Fixes part of #604034.
svn path=/trunk/mcs/; revision=157373
* DuplexChannelBase.cs
ReplyChannelBase.cs
TcpChannelListener.cs
ChannelListenerBase_1.cs
PeerChannelListener.cs
HttpChannelListener.cs
NamedPipeChannelListener.cs:
do the same for channel listener,reply channels and
duplex channels.
svn path=/trunk/mcs/; revision=157368
* ChannelFactoryBase.cs, RequestChannelBase.cs : support
MessageVersion in GetProperty<T>() for many transport channels.
svn path=/trunk/mcs/; revision=157367
* HttpChannelFactory.cs
TcpChannelFactory.cs
ChannelFactoryBase.cs
NamedPipeChannelFactory.cs
PeerChannelFactory.cs
RequestChannelBase.cs : commonize MessageEncoder.
(Commented out GetPrpoerty<T>() for MessageVersion as it is
in doubt yet.)
svn path=/trunk/mcs/; revision=157366
* MessageImpl.cs : do not use maxBufferSize for initialSize argument
for MessageHeaders. Fix OutOfMemoryException for certain usage.
svn path=/trunk/mcs/; revision=157363
* FlashCrossDomainPolicy.cs: Reverse conditions order on secure=true
since we're currently too severe. Fix DRT668
svn path=/trunk/mcs/; revision=157359
* WebHeaderCollection_2_1.cs: Hide the internal Dictionary and
provide methods to use it properly.
* HttpWebRequest_2_1.cs: Use internal Clear method
svn path=/trunk/mcs/; revision=157358
* BindingContext.cs : actually clone is needed everywhere else too.
* CustomBinding.cs : remove extra field.
* BindingContextTest.cs : add a couple of tests with related to
RemainingBindingElements use. Some tests by Andreia Gaita.
svn path=/trunk/mcs/; revision=157350
* BindingContext.cs: Copy elements from the original binding only when
creating it, never when cloning it. This way, CanBuildInnerChannel can
work recursively as it should.
2010-05-14 Atsushi Enomoto <[email protected]>
* CustomBinding.cs : return clone collection.
* BindingContext.cs :
Simply use RemainingBindingElements in builder methods.
Clone() should be deep copying (as documented).
* BinaryMessageEncodingBindingElement.cs
MtomMessageEncodingBindingElement.cs
TextMessageEncodingBindingElement.cs
HttpCookieContainerBindingElement.cs :
do not add itself to RemainingBindingElements.
* HttpChannelFactory.cs
HttpChannelListener.cs
TcpChannelFactory.cs
TcpChannelListener.cs
MsmqChannelFactory.cs
MsmqChannelListener.cs
NamedPipeChannelFactory.cs
NamedPipeChannelListener.cs
PeerChannelFactory.cs
PeerChannelListener.cs : do not iterate RemainingBindingElements.
Instead, iterate all binding elements in the CustomBinding.
svn path=/trunk/mcs/; revision=157345
* class.c (mono_class_create_from_typedef): Only return
the class if no exceptions were detected.
* class.c (mono_class_create_from_typedef): Don't remove
broken classes from class_cache. Just set failure and
bail out.
This fixes a memory a memory leak where resolving the same
broken class multiple times resulted in a memory leak.
The right behavior would be to actually return the class
a let the caller figure it out.
svn path=/trunk/mono/; revision=157330
* typeload-unaligned.cs: Move the reference to the broken type
to an inner function since mono now detects the brokenness earlier.
svn path=/trunk/mono/; revision=157329
* exceptions-x86.c (mono_arch_handle_exception): Resume from the signal handler
and do most of the work on the normal stack.
(mono_x86_get_signal_exception_trampoline): New x86 specific trampoline function.
svn path=/trunk/mono/; revision=157327
* exceptions-arm.c (mono_arch_handle_exception): Resume from the signal handler
and do most of the work on the normal stack.
svn path=/trunk/mono/; revision=157291
* Makefile.am: Add mono-ptr-array.h.
* mono-ptr-array.h: New header that implements
a GC tracked equivalent of g_ptr_array.
svn path=/trunk/mono/; revision=157286
* exceptions-amd64.c (mono_arch_handle_exception): Resume from the signal handler
and do most of the work on the normal stack even if sigaltstack is disabled.
svn path=/trunk/mono/; revision=157282
A fix for bug #604981
* generic.cs, decl.cs, anonymous.cs: Reset more type arguments
details for nested anonymous methods stories.
svn path=/trunk/mcs/; revision=157251
* HttpServerUtility.cs: Execute checks whether
IAsyncResult.AsyncWaitHandle is not null before attempting to use
it. Fixes bug #604502
svn path=/trunk/mcs/; revision=157221
* exceptions-amd64.c (mono_arch_sigctx_to_monoctx): Simplify this now that
UCONTEXT_REG_ constants are available on linux as well.
(mono_arch_monoctx_to_sigctx): Ditto.
(mono_arch_ip_from_context): Ditto.
svn path=/trunk/mono/; revision=157196
* ConditionalWeakTable.cs: Implement simple open addressing
hash table with linear probing. We use a prime sized table
for an easy hashing and a target load capacity of 70%.
On a synthetic benchmark, a load factor of 70% did not cause
significant performance degradation over 60% as would be
expected.
svn path=/trunk/mcs/; revision=157174
* appdomain.c (create_exceptions): Rename to
create_domain_objects. Create the ephemeron tombstone object.
* domains-internals.h (MonoDomain): Add new field for the
ephemeron tombstone.
* domain.c (mono_domain_free): Set ephemeron_tombstone to
NULL.
svn path=/trunk/mono/; revision=157152
2010-05-11 Martin Baulig <[email protected]>
* debug-mono-symfile.c
(mono_debug_symfile_get_line_numbers): Fallback to the first
non-hidden source file in the method if the line number table ends
with a hidden line.
Fixes#604879.
svn path=/trunk/mono/; revision=157148
* console-unix.c: Signal handlers now save and restore errno. We
have never had a bug report about this, ioctl does change errno.
Hide the unused method.
Remove internal declarations from public headers.
Document what the signal handler is doing
svn path=/trunk/mono/; revision=157132
* class.c (mono_class_alloc): New helper function to centralize memory allocation
for classes, allocates either from the image mempool or from the heap.
* class.c: Use mono_class_alloc to allocate memory owned by classes.
* metadata.c (free_generic_class_dependents): Free more items belonging to
generic classes.
svn path=/trunk/mono/; revision=157130
* sgen-gc.c (mono_gc_clear_domain): Both ephemerons
and dislinks must be processed before LOS since they
could end up with pointers to memory returned to the
OS.
svn path=/trunk/mono/; revision=157129
* ScrollableControl.cs: It seems .Net is creating DockPadding lazyly,
which means that *any* padding for children controls is not applied
*until* DockPadding is accesed using its getter.
* FlowLayoutPanel.cs:
* TableLayoutPanel.cs:
* Form.cs: These children classes need to have the DockPadding
property available *always*, so create it for them in their respective
constructors.
Fixes#599506.
svn path=/trunk/mcs/; revision=157115
* Makefile.am : do not try to build test on windows (fails).
* src/glib.h : fix mingw build breakage; do not include unistd.h.
svn path=/trunk/mono/; revision=157089
* class.c (mono_class_alloc): New helper function to centralize memory allocation
for classes, allocates either from the image mempool or from the heap.
* class.c: Use mono_class_alloc to allocate memory owned by classes.
* metadata.c (free_generic_class_dependents): Free more items belonging to
generic classes.
svn path=/trunk/mono/; revision=157074
Allow parts required to enable SSL to be built with
In .:
2010-05-10 Sebastien Pouliot <[email protected]>
* moonlight_bootstrap_System.dll.sources: Minimal build for
bootstrap. Does not depend on corlib's internals
* moonlight_raw_System.dll.sources: Full raw (pre-tuned) build
for Moonlight - includes SSL code
* moonlight_shared_System.dll.sources: New. Parts that are both
needed for bootstrap and raw builds
svn path=/trunk/mcs/; revision=157066
* SslStream.cs: Allow Moonlight to build the non-server part
of SslStream
* RemoteCertificateValidationCallback.cs: Adjust visibility for
Moonlight build
svn path=/trunk/mcs/; revision=157065
* AsnEncodedData.cs:
* OidCollection.cs:
* Oid.cs:
* OidEnumerator.cs:
Allow parts required to enable SSL to be builtt with
the moonlight profile.
svn path=/trunk/mcs/; revision=157063
* CipherSuite.cs:
* DebugHelper.cs:
* RecordProtocol.cs:
* SslClientStream.cs:
Let them compile for Moonlight (where the files are
compiled inside System.dll)
svn path=/trunk/mcs/; revision=157060
* ExtendedKeyUsageExtension.cs:
* NetscapeCertTypeExtension.cs:
* SubjectAltNameExtension.cs:
Keep them public for Moonlight. Other types in other
assemblies needs it and the linker will eventually
internalize everything.
svn path=/trunk/mcs/; revision=157059
* X509CertificateCollection.cs:
* X509Certificate.cs:
* X509Extension.cs:
* X509Extensions.cs:
Keep them public for Moonlight. Other types in other
assemblies needs it and the linker will eventually
internalize everything.
svn path=/trunk/mcs/; revision=157057
* ASN1.cs: Keep it public for Moonlight. Other types in other
assemblies needs it and the linker will eventually internalize
everything.
svn path=/trunk/mcs/; revision=157056
* DES.cs:
* DESCryptoServiceProvider.cs:
* RC2.cs:
* RC2CryptoServiceProvider.cs:
* TripleDES.cs:
* TripleDESCryptoServiceProvider.cs:
Remove !MOONLIGHT check since we need those for SSL
svn path=/trunk/mcs/; revision=157053
* ListView.cs: Properly adjust SmallChange and LargeChange values for
our scrollbars depending on the view. Also, update the maximum allowed
value when setting the values from SetScrollValue to use the already
available information contained within them.
Fixes the remaining bits of #543785.
svn path=/trunk/mcs/; revision=156985
* debugger-agent.c (insert_breakpoint): Print a more descriptive error message
if a breakpoint cannot be inserted.
svn path=/trunk/mono/; revision=156983
* Mono.CSharp.csproj: add double quotes around path directives
in the prebuild event for jay to support
compile locations with spaces in path.
svn path=/trunk/mcs/; revision=156967
* metadata-verify.c: MS doesn't mind duplicates in the
typeref table. Move it to full verification.
Fixes#600508.
svn path=/trunk/mono/; revision=156948
* HttpResponse.cs:
Output property no longer lazily creates a writer object - it's
created in the internal constructors. If a user sets it to null,
it remains null for good or bad.
Added Output setter for 4.0+
svn path=/trunk/mcs/; revision=156934
* HttpResponse.cs: implemented the following 4.0 methods:
RedirectPermanent, RedirectToRoute, RedirectToRoutePermanent and
RemoveOutputCacheItem.
2010-05-06 Marek Habersack <[email protected]>
* RouteCollection.cs: GetVirtualPath throws ArgumentException
when named route is not found in the collection.
2010-05-06 Marek Habersack <[email protected]>
* OutputCacheModule.cs: added a 2.0 internal property to return
the internal provider used in this profile.
* OutputCache.cs: added internal RemoveFromProvider method to
remove items from the indicated provider.
svn path=/trunk/mcs/; revision=156933
* Path.cs: vararg overload of Combine now correctly concatenates
segments.
The 3 and 4 argument overloads of Combine check whether the passed
segments are null or not.
2010-05-08 Marek Habersack <[email protected]>
* PathTest.cs: added tests for the 4.0 Combine overloads.
svn path=/trunk/mcs/; revision=156928
* appdomain.c (mono_domain_has_type_resolve): Check for
NULL domain objects to make pedump happy.
* object.c (mono_field_get_value): Assert on NULL object.
It's the caller resposibility to check for this.
* object.c (mono_field_get_value_object): Ditto.
Fixes#601384.
svn path=/trunk/mono/; revision=156924
* icall.c (ves_icall_type_is_subtype_of): Non iface subtype
checks can avoid doing a mono_class_init.
* icall.c: Remove mono_class_init from a bunch of icalls that
don't need it.
Hopefully we're now lazy enough to fix most victims of #601431.
svn path=/trunk/mono/; revision=156922
* debugger-agent.c (frame_commands): Return an error instead of asserting if
no JIT info is found for the method.
svn path=/trunk/mono/; revision=156914
* culture-info-tables.h: updated to include en-TT culture. Fixes
bug #594035
2010-05-07 Marek Habersack <[email protected]>
* Makefile.am (lang-data, locale-data): updated URLs for the icu
tarballs - they now live on go-mono.com
svn path=/trunk/mono/; revision=156903
* Mono.Math/BigInteger.cs: If the BigInteger is instantiated with a
zero length array, replace it with an array of length 1 so we don't
hit inexplicable IndexOutOfRange exceptions later on. Fixes#556533.
svn path=/trunk/mcs/; revision=156878
Move mono_class_init from mono_type_get_object to icalls.
This causes massive memory savings for Assembly::GetTypes () and
make it fail a lot less due to missing dependencies.
This is a conservative, naive change as it doesn't remove some
mono_class_init from places that might not need them. Carefull
review of those should follow.
* reflection.c (mono_type_get_object): Don't mono_class_init the
returning type.
* reflection.c:
* cominterop.c:
* icall.c:
* marshal.c: Call mono_class_init in functions receiving a MonoType
object.
First step into fixing #601431.
svn path=/trunk/mono/; revision=156867
* ConditionalWeakTable.cs: Discard old broken version. New
version user proper runtime support. Currently it performs
linear search over the keys, which is dog slow but it's a
good start.
svn path=/trunk/mcs/; revision=156851
* gc-internal.h: Add new functions required for ephemeron support.
* gc.c: Implement ves_icall_System_GC_register_ephemeron_array.
* icall-def.h: Add GC::register_ephemeron_array.
* object.c (compute_class_bitmap): sys.rt.cs.Ephemeronis an opaque type
under sgen. Its fields must not be marked.
* sgen-gc.c (mono_gc_clear_domain): Call cleanup function for ephemerons.
* sgen-gc.c (finish_gray_stack): Mark all reachable ephemerons before
handling finalizable objects. Clean dead ones after all finalizable
handling.
* sgen-gc.c (dump_heap): Add new kind of internal memory.
* sgen-gc.c (null_ephemerons_for_domain): Remove from the list ephemeron
arrays from the dead domain.
* sgen-gc.c (clear_unreachable_ephemerons): Clear dead ephemerons entries.
* sgen-gc.c (mark_ephemerons_in_range): Mark/Copy all ephemeron values
whose keys are reachable.
* sgen-gc.c (mono_gc_ephemeron_array_add): Register the array into the
list of live ephemeron arrays.
svn path=/trunk/mono/; revision=156847
* ListView.cs: When calculating the scrollbars, take into account the
height of the horizontal scrollbar (if visible) to assign the maximum
value for our vertical one.
Fixes#543785.
svn path=/trunk/mcs/; revision=156789
local vars in Add and AddSorted, so we have better readibility.
Patch from Thomas Goldstein ([email protected]).
2010-05-06 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156785
* TreeNodeCollectionTest.cs: New test for the return value of Add with
sorting applied.
Patch from Thomas Goldstein ([email protected]).
svn path=/trunk/mcs/; revision=156784
position of that node instead of returning the count.
Patch from Thomas Goldstein ([email protected]).
2010-05-06 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156783
* TreeNodeCollection.cs: In SetupNode remove the redundant check,
since we only need to have a valid tree view to call UpdateBelow.
Patch from Thomas Goldstein ([email protected]).
svn path=/trunk/mcs/; revision=156778
* class.c (mono_class_layout_fields): Don't perform alignment
if align is zero.
* class.c (mono_class_layout_fields): Init field related
* information
to sane defaults.
svn path=/trunk/mono/; revision=156764
* class.cs (TypeContainer.DefineBaseTypes)
(TypeContainer.CheckRecursiveDefinition): check for the iface not
being null, as we could have failed resolution and crashed;
Fixes#442144
svn path=/trunk/mcs/; revision=156759
* cs-parser.jay: Productions to catch common mistakes when other
punctuation operators are used instead of comma. Fixes 571702
svn path=/trunk/mcs/; revision=156757
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Protect against a NULL sigctx
in debug printf.
2010-05-05 Jonathan Chambers <[email protected]>
* mono-semaphore.c: Implement alertable wait on Windows similar to
other platforms. Always be alertable, but only return from wait if
user requested alertable state. Fixes soft debugger on Windows.
Code contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=156752
* mini-amd64.c (mono_arch_get_trampolines): New arch specific function returning
a list of arch specific trampolines.
* aot-compiler.c (emit_trampolines): Use it.
svn path=/trunk/mono/; revision=156728
* tramp-<ARCH>.c exceptions-<ARCH>.c mini-trampolines.c mini-exceptions.c
aot-compiler.c: Use the _full trampoline creation functions on all platforms,
get rid of the _full from their name.
svn path=/trunk/mono/; revision=156726
In class/System.Core/System.Linq/:
* ParallelEnumerable.cs: Some operators weren't declared
as extension methods. Fixed.
svn path=/trunk/mcs/; revision=156723
* CollectionBuilder.cs: if a type has more than on indexer, check
all of them for type compliance in GetChildControlType. Fixes bug
#601290. Patch from Kalyanov Dmitry <[email protected]>,
thanks!
svn path=/trunk/mcs/; revision=156714
* RouteValueDictionary.cs: do not process type fields in
RouteValueDictionary (object)
* RouteCollection.cs: GetRouteData throws an exception if Request
is null in the passed context.
Added Ignore* and MapPageRoute* 4.0 APIs
* RequestContext.cs: 4.0 API update
* PatternParser.cs: match parser rewrite to encompass 4.0 bug
fixes. We don't emulate some of the pre-4.0 routing bugs anymore.
svn path=/trunk/mcs/; revision=156695
* ListView.cs: Just as we did with TreeView, start the drag
computation in MouseDown instead of MouseMove, in order to avoid
firing the ItemDrag event more than one time per clicked item.
svn path=/trunk/mcs/; revision=156691
is enabled. Don't set HideSelection since it's preventing us
from correctly hide the selection when needed. Finally connect a
handler in case our parent ComboBox gets its Enabled state changed.
Fixes#600433.
2010-05-03 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156650
position from MouseDown to MouseMove - we need to make sure
that the OnItemDragged event is fired only *one* time per element
clicked.
Fixes#551734.
2010-05-03 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156643
* TreeNodeCollection.cs: Instead of Sorting from SetupNode, do it
directly from Add (which uses AddSorted for this purpose) and Insert.
This way we first avoid a double sort, take advantage of our fast
version of Add for the default sorting, and also supress the call to Sort
when using our indexer setter (.Net ignores the sorting in this case).
svn path=/trunk/mcs/; revision=156602
any previous collection. Even if this seems a little buggy, this is
what .Net does.
Fixes#601766.
2010-05-02 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156595
* src/glib.h: Include unistd.h on !windows for pid_t.
* gspawn.c: Add an extern define for environ on !apple platforms.
svn path=/trunk/mono/; revision=156594
* StatusStrip.cs: In SetDisplayedItems call ClearInternal on
displayed_items instead of Clear, since this is only an internal
collection and we don't want to have our items have their Parent/Owner
modified.
Fixes the remaining bits of #590100.
svn path=/trunk/mcs/; revision=156593
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Unify
major_do_collection() across the two major collectors.
svn path=/trunk/mono/; revision=156591
* DataGridViewCell.cs: Avoid a NRE in GetValue if the cell doesn't
have a DataGridView associated yet.
[Fixes bug #600786]
svn path=/trunk/mcs/; revision=156588
* mini-amd64.c (mono_arch_emit_load_aotconst): New arch-specific function.
* tramp-amd64.c: Use emit_load_aotconst to remove some code duplication.
svn path=/trunk/mono/; revision=156579
* aot-runtime.c (init_plt): Make the default entries point to the AOT trampoline,
there is no need to jump through the first plt entry.
svn path=/trunk/mono/; revision=156577
* aot-runtime.c (mono_aot_get_plt_entry): Move the arch specific parts to an
arch-specific function.
(mono_aot_get_plt_info_offset): Ditto.
svn path=/trunk/mono/; revision=156575
* aot-runtime.c (mono_aot_register_jit_icall): New helper function called from
mono_arch_init () to register jit icalls called from full-aot trampolines.
(load_function): Get rid of the arch specific #ifdefs, move the relevant code
to mini-<ARCH>.c.
svn path=/trunk/mono/; revision=156574
* exceptions-amd64.c (mono_arch_get_throw_corlib_exception_full): Get rid of
the specialized throw corlib exception trampoline, use a variant of the normal
trampoline along with a new C function which does the call to
mono_exception_from_token (), just like on x86.
svn path=/trunk/mono/; revision=156573
* mini-trampolines.c aot-compiler.c tramp-<ARCH>.c exceptions-<ARCH>.c:
Reorganize the full aot trampoline creation functions, instead of taking a bunch
of out arguments, they will now take a MonoTrampInfo** out argument. Simplify
some code in aot-compiler.c because of this. Remove the non-full aot trampoline
creation functions on architectures which have the full-aot ones.
svn path=/trunk/mono/; revision=156572
* ToolStripItemCollection.cs: When calling Clear set Owner and Parent
properties to null for each of the items in the collection, just as
Remove/RemoveAt do. Implement a ClearInternal method that clears the
collection without modifying the mentioned properties.
* ToolStrip.cs:
* ToolStripOverflow.cs: Call ToolStripItemCollection.ClearInternal
for our internal collections.
This should fix#590100, which producing a race when the garbage
collector was calling ToolStripItem.Dispose, which in turn was firing
a Layout in the ToolStrip.
svn path=/trunk/mcs/; revision=156564
* mini-ppc.c (mono_arch_emit_exceptions): Initialize exc_throw_pos/found
explicitly, this seems to be required by some gcc versions at -O2.
* mini-arm.c: Ditto.
svn path=/trunk/mono/; revision=156562
* mini.h (MonoAotTrampInfo): Rename this to MonoTrampInfo, add patches/unwind
info fields.
* aot-compiler.c (mono_aot_tramp_info_create): Rename to mono_tramp_info_create,
add patches/unwind info arguments, move to mini.c.
* mini-<ARCH>.c aot-compiler.c: Update after the above changes.
svn path=/trunk/mono/; revision=156553
* debugger-agent.c (type_commands): Add a new CMD_TYPE_GET_SOURCE_FILES_2
command which returns full path names.
svn path=/trunk/mono/; revision=156535
* generics.cs, delegate.cs: Implement output type inference of
methodgroup now when the specification was cleared at least little
bit.
svn path=/trunk/mcs/; revision=156523
Minus L M is
Explicit mathematics -
Abelian group?
-- Andreas F.
Mac OS X has math functions in libSystem.dylib and a libm.dylib symlink.
Haiku has them in libroot.so and no libm.so, like BeOS and Zeta.
The use of -lm seems almost Lipschitz-continuous, let's constrain it
to its domain of definition.
* configure.in: Check for -lm necessity.
Fixes linking on Haiku.
v1 -> v2:
* Use autoconf check instead of platform-based switch
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed unter the CC Attribution 3.0 license.
svn path=/trunk/mono/; revision=156468
* mini-x86.c (mono_arch_emit_prolog): Remove a disable_aot which is not needed.
(mono_arch_cpu_optimizazions): Make this a no-op when running with full aot.
(mono_arch_cpu_enumerate_simd_versions): Ditto.
svn path=/trunk/mono/; revision=156453
In class/System.Core/System.Linq/:
* ParallelQueryEnumerator.cs: Use new non-blocking collection
for storing indexed elements.
In class/System.Core/System.Linq/Internal/:
* OrderingEnumerator.cs: Use new non-blocking collection
for storing indexed elements.
svn path=/trunk/mcs/; revision=156433
A fix for bug #421737
* convert.cs, expression.cs: A boxing conversion exists from a
nullable-type to a reference type, if a boxing conversion exists
from the underlying non-nullable-value-type to the reference type.
svn path=/trunk/mcs/; revision=156429
* AppResourcesAssemblyBuilder.cs: when running on windows,
SetAlPath must return al.exe path with a trailing space, or
otherwise the process won't start. Fixes bug #600691
svn path=/trunk/mcs/; revision=156382
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Have separate
blocks for objects without references in mark&sweep, to improve
performance.
svn path=/trunk/mono/; revision=156377
A fix for bug #566511
* anonymous.cs: Always get inflated version of hoisted variable
on generic type definition.
svn path=/trunk/mcs/; revision=156355
* CheckBoxListTest.cs: added test for bug #600415
2010-04-28 Marek Habersack <[email protected]>
* CheckBoxList.cs: do not modify list item status in LoadPostData
when the list control is disabled.
If an item is selected and it was unchecked by the user, deselect
it. Fixes bug #600415
svn path=/trunk/mcs/; revision=156312
* XmlInputStream.cs : minimize initial buffer size so that it does
not mostly block some readers. Fixed bug #591291.
svn path=/trunk/mcs/; revision=156280
* XmlDocument.cs : it seems .net does allow Load() with such an xml
reader positioned in the middle of the document. Fixed bug #598953.
* XmlDocumentTests.cs : add test for bug #598953.
svn path=/trunk/mcs/; revision=156278
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* KeyedList.cs: do not implement IStateManager in 4.0
2010-04-28 Marek Habersack <[email protected]>
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (common_dirs): added System.Web.ApplicationServices
2010-04-28 Marek Habersack <[email protected]>
* RolePrincipal.cs: class is not sealed in 4.0
* MembershipUser.cs: type forwarded to
System.Web.ApplicationServices in 4.0.
In the 4.0 profile, a MembershipHelper instance is created using
reflection, so that the Membership class and password
encryption/decryption services can be accessed without referencing
System.Web
* MembershipProvider.cs: type forwarded to
System.Web.ApplicationServices in 4.0.
{Encrypt,Decrypt}Password implementations moved to
MembershipHelper.
Added new EncryptPassword overload for 4.0
* MembershipHelper.cs: a helper class to handle password
encryption/decryption and to forward requests for certain
Membership properties in 4.0. It is used also in 2.0 to keep code
cleaner. System.Web.ApplicationServices uses it to access the
Membership class without having to reference System.Web
* MembershipCreateStatus.cs, MembershipCreateUserException.cs,
MembershipPasswordException.cs, MembershipPasswordFormat.cs,
MembershipProviderCollection.cs, MembershipUserCollection.cs,
MembershipValidatePasswordEventHandler.cs, RoleProvider.cs,
ValidatePasswordEventArgs.cs:
types forwarded to System.Web.ApplicationServices in 4.0
* FormsIdentity.cs: class is not sealed in 4.0
svn path=/trunk/mcs/; revision=156264
* dwarfwriter.c (emit_line_number_info): Get rid of the usage of GArray, so
line number support works with eglib.
svn path=/trunk/mono/; revision=156258
* load-missing.il: Make BrokenClass inherit from a class in t, not mscorlib, so
mcs can load load-missing.dll as a reference.
svn path=/trunk/mono/; revision=156256
* Makefile.am (DISABLED_TESTS): Add gc-altstack.exe since it randomly fails
under Boehm, which can't handle threads which are executing on an altstack during
stack marking.
svn path=/trunk/mono/; revision=156255
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Support
heap-dump for mark&sweep.
2010-04-27 Mark Probst <[email protected]>
* scripts/mono-heapviz: If the major sections are too small, use a
larger width.
svn path=/trunk/mono/; revision=156249
* driver.c, mini.c: Since linking with LLVM makes the default Mono
dirty an extra 70kb pages on startup we are now going to choose a
different strategy: ship mono and mono-llvm binaries, with the
second being the one that links with LLVM and defaults to LLVM
being enabled.
svn path=/trunk/mono/; revision=156193
* loader.c (mono_method_get_header): Move the is_inflated case before the
wrapper case, as a method can be both.
svn path=/trunk/mono/; revision=156187
* tramp-x86.c exceptions-x86.c mini-x86.c aot-compiler.c aot-runtime.c:
Implement full-aot support on x86.
* method-to-ir.c: Always use a got var on x86 too, just like on ppc, because the
trampolines depend on it. Use MONO_ARCH_GOT_REG as the got register, instead of
the first register returned by get_global_int_regs ().
* cpu-x86.md: Fix the length of insertx_u1_slow.
* iltests.il.in: Disable tail call tests when running with full-aot.
svn path=/trunk/mono/; revision=156186
* *.cs: Major rewrite of compiler internals to better work with
unmodified System.Reflection.Emit. Some of the key changes are
- TypeSpec replaces reflection specific System.Type.
- All Type(TypeSpec) operations are now done in compiler therefore
no dependency on SRE to inflate generic members and types or to
query unclosed types.
- MemberCache is now the only and full hierarchical topology.
- Generic constraints are implemented properly.
- And as a bonus compilation is on average 30% faster.
svn path=/trunk/mcs/; revision=156161
* ToolStripSplitButton.cs:
* ToolStripDropDownItem.cs:
* ToolStripMenuItem.cs: Update overrides.
* ToolStripItem.cs: Pass the number of clicks to HandleClick when
firing OnMouseUp, so we can later fire either OnClick or
OnDoubleClick.
Fixes#558632.
svn path=/trunk/mcs/; revision=156160
* RichTextBox.cs: When emitting the complete RTF value escape chars
above 0x80, at .Net seems to do. This way we are able to make
round-trip assignations between the setter and getter of the
RichTextBox.Rtf property.
Fixes part of #586901.
svn path=/trunk/mcs/; revision=156156
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Don't do a
separate pass to scan pinned and large object but use the gray
queue like for regular objects.
svn path=/trunk/mono/; revision=156151
* HttpException.cs: implemented 4.0 property WebEventCode, also
made it available in the 2.0 profile as internal.
Added a method with several overloads, NewWithCode, which creates
an instance of HttpException and sets the web error code.
* HttpApplication.cs, HttpRequest.cs, HttpRuntime.cs: use
HttpException.NewWithCode for some exceptions.
svn path=/trunk/mcs/; revision=156150
* DataGridView.cs: Handle all possible cases for when a new column is
added and there are existing rows with existing cells both in the
non-databound and the databound scenario.
[Fixes bug #583387]
svn path=/trunk/mcs/; revision=156146
* IProcess.cs:
* VirtualMachine.cs:
* VirtualMachineManager.cs:
Added new IProcess interface which wraps the debugged process.
This abstraction makes it easier to support debugging processes
for which we don't have a direct Process reference (for example,
if the process is remote).
svn path=/trunk/mcs/; revision=156112
* configure.in: Applied patch from Robert Nagy ([email protected]). Add
sys/param.h dependencies to a few checks.
svn path=/trunk/mono/; revision=156097
* boehm-gc.c: Applied patch from Robert Nagy ([email protected]). Include
string.h for memmove.
socket-io.c: Applied patch from Robert Nagy ([email protected]).
ipaddress_to_struct_in6_addr() is only needed when
defined(HAVE_STRUCT_IP_MREQN) || defined(HAVE_STRUCT_IP_MREQ).
svn path=/trunk/mono/; revision=156093
* XamlObjectReader.cs : now it can look into values and pick up
more required namespace prefixes.
* XamlObjectReaderTest.cs : enable working tests.
* XamlTypeTest.cs : added a test for GetAliasedProperty().
svn path=/trunk/mcs/; revision=156080
* XplatUIX11.cs: When retrieving data from the x11 clipboard and we
are using either XA_STRING or OEMTEXT try to detect if we have escaped
unicode chars, and unescape them as needed. This us used by some
(gnome) applications to pass unicode chars in a non-unicode context.
Fixes#596402.
svn path=/trunk/mcs/; revision=156075
names within EcmaHelpSource.MakeOperatorSignature() (where "full" is
"whatever is included in ECMA-335 §10.3.1 through §10.3.3").
Fixes InvalidOperationException reported to mono-docs-list.
svn path=/trunk/mcs/; revision=156071
* configure.ac: The iconv function may be libiconv_open.
Fixes linking with GNU libiconv.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=156061
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Properly
separate copy_object functions for major vs nursery. Allows us to
get rid of a few checks and the start and end parameters for many
functions.
svn path=/trunk/mono/; revision=156057
* sgen-marksweep.c, sgen-gc.c, sgen-major-copying.c,
sgen-protocol.c, sgen-protocol.h, Makefile.am: Major Mark&Sweep
collector.
2010-04-25 Mark Probst <[email protected]>
* tools/sgen/sgen-grep-binprot.c: Support for major Mark&Sweep
collector.
svn path=/trunk/mono/; revision=156056
* class.c (mono_class_create_from_typedef): Initialize class->nested_in after
calling setup_mono_type () since the nested parent could recursively reference
the nested class using generic constraints. Fixes#599469.
svn path=/trunk/mono/; revision=156052
* DataGridViewColumnCollection.cs: When adding a column also
set the DisplayIndex if its now set by the user already.
* DataGridViewColumnCollectionTest.cs: Add tests for bug #583387.
[Fixes bug #583387]
svn path=/trunk/mcs/; revision=156050
* mini.c: Use MONO_USE_LLVM as an environment flag to turn the use
of LLVM on by default. Used for buildbots and other setups.
svn path=/trunk/mono/; revision=156035
* MemoryCacheTest.cs, ObjectCacheTest.cs: added
* HostFileChangeMonitorTest.cs: added more tests.
2010-04-24 Marek Habersack <[email protected]>
* AppDomainTools.cs, AssertExtensions.cs, PokerChangeMonitor.cs,
PokerMemoryCache.cs, PokerObjectCache.cs,
TestNotificationSystem.cs: added
2010-04-24 Marek Habersack <[email protected]>
* ObjectCache.cs: implemented all the non-abstract methods.
* MemoryCacheContainer.cs, MemoryCacheEntry.cs,
MemoryCacheEntryChangeMonitor.cs,
MemoryCacheEntryPriorityQueue.cs,
MemoryCachePerformanceCounters.cs: added
* MemoryCache.cs: implemented physical memory size detection, item
expiration timer, indexer, reading of configuration values from
config files, cache memory limit calculation, the
AddOrGetExisting, Set, Get, Contains,
CreateCacheEntryChangeMonitor, Dispose, GetCacheItem, GetCount,
GetEnumerator, GetValues, Remove and Trim methods.
Implemented support for per-cpu item containers.
Modified parameters of several methods to match .NET 4.0 release.
* HostFileChangeMonitor.cs: implemented according to tests.
* Helpers.cs: added new properties, StringComparer and Is64bit
* FileChangeNotificationSystemEntry.cs: added
* FileChangeNotificationSystem.cs: implemented
* ChangeMonitor.cs: NotifyOnChanged now properly throws an
exception if it was called more than once.
* CacheEntryRemovedReason.cs: renamed from
CacheEntryRemoveReason.cs
* CacheEntryChangeMonitor.cs: renamed from CacheEntryMonitor.cs
2010-04-24 Marek Habersack <[email protected]>
* MemoryCacheSettingsCollection.cs: added and implemented methods
which appeared in .NET 4.0 final.
svn path=/trunk/mcs/; revision=156032
* FtpDataStream.cs:
* FtpWebRequest.cs: use streams instead of sockets as soon as
possible. Correctly initialize the control connection when SSL
is used.
Fixes bug #598908.
svn path=/trunk/mcs/; revision=156028
* Context.cs:
* SslStreamBase.cs:
* RecordProtocol.cs: differentiate a received 'CloseNotify' alert from
one that we sent. Disposing the stream will try to send the
'CloseNotify' alert, if it hasn't already, and ignore any errors. This
is needed for FTPS to work.
svn path=/trunk/mcs/; revision=156027
* domain.c (get_runtime_by_version): renamed to
mono_get_runtime_by_version.
* domain-internals.h: expose mono_get_runtime_by_version as
an internal function.
* assembly.c (mono_assembly_load_from_full): check if the image
references a newer runtime than the current executing one, and
mark it as invalid if it's the case.
svn path=/trunk/mono/; revision=156014
* threadpool.c: patch from Robert Nagy that fixes a nullref and
uses mono_sem_wait instead of mono_sem_timedwait for openbsd.
svn path=/trunk/mono/; revision=156012
* HttpListenerManager.cs : fixed the issue that mex_info is never
retrieved from the latest channel listener (which could be other
listener than the one which was set mex info).
* ServiceMetadataExtension.cs : raise an error if it failed to set
mex info. (Make it safer.)
svn path=/trunk/mcs/; revision=155991
2010-04-23 Rolf Bjarne Kvinge <[email protected]>
* moonlight_raw_System.Core.dll.sources: Include Lazy.cs and
LazyThreadSafetyMode.cs from corlib in here.
In class/corlib:
2010-04-23 Rolf Bjarne Kvinge <[email protected]>
* moonlight_raw_corlib.dll.sources: Don't include Lazy.cs here. It's in
System.Core.dll.
In class/corlib/System.Threading:
2010-04-23 Rolf Bjarne Kvinge <[email protected]>
* LazyThreadSafetyMode.cs: Include in Moonlight build.
In class/corlib/System:
2010-04-23 Rolf Bjarne Kvinge <[email protected]>
* Lazy.cs: Include in Moonlight build.
svn path=/trunk/mcs/; revision=155983
* HttpChannelListener.cs, HttpListenerManager.cs :
actually it should be ChannelDispatcher-to-HttpChannelListener,
to identify which dispatcher to send reqs.
* ServiceHostBase.cs: (ditto)
svn path=/trunk/mcs/; revision=155982
* ServiceHostBase.cs : add host-to-http-listener mapping so that
they can be managed per host.
* HttpTransportBindingElement.cs,
HttpChannelListener.cs,
HttpListenerManager.cs : add host-to-http-listener mapping so that
they can be managed per host.
* ServiceMetadataExtension.cs : reflect DispatcherBuilder change.
svn path=/trunk/mcs/; revision=155974
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: Really apply canonical reordering "recursively."
Before this, a sequence of code points with the combining
classes (22, 33, 11) would be reordered to (22, 11, 33) instead of
the correct (11, 22, 33). This is because the 'i--' would be
directly cancelled by the 'i++' in the for loop.
svn path=/trunk/mcs/; revision=155966
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: The correct "checkType" argument to
Decompose() is NKD or NKFD when normalizing to NKC resp. NKFC.
* StringTest.cs: More NFC test cases.
svn path=/trunk/mcs/; revision=155965
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: Implement algorithmic Hangul composition.
Calling Normalize(NormalizationForm.FormC) on Korean characters
now works properly (bnc#480152).
* StringTest.cs: Add test cases for Hangul composition.
svn path=/trunk/mcs/; revision=155964
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: Follow the spec when checking composition pairs.
Figure 7 in section 1.3 of http://unicode.org/reports/tr15/ shows
how when doing composition, one has to examine the successive
(starter, candidate) pairs, and combine if a matching canonical
decomposition exists.
The original algorithm was, instead, iterating on canonical
decompositions, and, for each one, trying to match a sequence
of (starter, non-starter, ...). This, however, does not produce
the same results as it is violating some implicit ordering
constraints in the Unicode tables.
E.g., when composing the following sequence of codepoints, the
original algorithm was picking:
03B7 0313 0300 0345
^^^^ ^^^^
1F74 0313 0345
^^^^ ^^^^
1FC2 0313
and would stop at 1FC2 0313 as there is no decomposition matching
it. The new algorithm, which follows the guidance of the pretty
figure 7, ends up doing:
03B7 0313 0300 0345
^^^^ ^^^^
1F20 0300 0345
^^^^ ^^^^
1F22 0345
^^^^ ^^^^
1F92
resulting in the correct 1F92.
svn path=/trunk/mcs/; revision=155963
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: Recursively apply the Unicode decomposition mapping.
According to http://www.unicode.org/reports/tr15/tr15-31.html,
section 1.3:
"To transform a Unicode string into a given Unicode Normalization
Form, the first step is to fully decompose the string. [...] Full
decomposition involves recursive application of the
Decomposition_Mapping values, because in some cases a complex
composite character may have a Decomposition_Mapping into a
sequence of characters, one of which may also have its own
non-trivial Decomposition_Mapping value."
svn path=/trunk/mcs/; revision=155962
* TimeSpan.cs: The final 4.0 release removed the restriction of
preceding zeroes when parsing, and it also added 't' and 'T' as valid
formats equivalent to 'c' (default).
svn path=/trunk/mcs/; revision=155955
* XamlMemberInvoker.cs : make sure GetValue() is not supported
on directives.
* XamlMemberInvokerTest.cs : make sure GetValue() is not supported
on directives.
svn path=/trunk/mcs/; revision=155946
* XamlObjectReader.cs, TypeExtensionMethods.cs : now it can return
Type name correctly, with INamespacePrefixLookup implementation.
* XamlObjectReaderTest.cs : enabled working tests. Add decent
namespace declaration node assertions in the next tests.
svn path=/trunk/mcs/; revision=155945
* XamlObjectReader.cs, TypeExtensionMethods.cs : handle System.Type
as predefined type that returns Value instead of StartObject.
Rename some member getter methods to explicitly limit the scope to
object readers so far.
svn path=/trunk/mcs/; revision=155942
* XamlMemberInvokerTest.cs : make sure that the invoker returns Type
for Type member here. (XamlObjectReader returns string for some
cases, so I wanted to make sure it is *not* here.)
svn path=/trunk/mcs/; revision=155941
* BindingContext.cs : require a TransportBindingElement when
building a channel listener.
* CustomBindingTest.cs : enable BuildChannelListener test for no-
transport case. Test CanBuildChannelListener too.
svn path=/trunk/mcs/; revision=155857
* XDocument.cs : don't prohibit DTD.
* XNodeNavigator.cs : do not return true in MoveToFirstChild()
when there is no child node. Fixed bug #594877.
* XNodeNavigatorTest.cs : added test for bug #594877. Enable and fix
tests that were commented out.
svn path=/trunk/mcs/; revision=155854
* XmlTextReader.cs, DTDReader.cs : 0xFFFF was treated as if it were
0x10000. (It is invalid and should be rejected by decent
XmlReaders usage though.) Fixed bug #594628.
svn path=/trunk/mcs/; revision=155853
* HttpApplication.cs: update to fix for bug #572469 - ProcessError
clears the error after handler return only if stop_processing is
true. Also, stop_processing is never set before calling ProcessError
Also added two more tests for the issue.
svn path=/trunk/mcs/; revision=155841
* reflection.c (mono_custom_attrs_from_index): Use right function
to free 'list' (i.e. g_list_free) if the verifier fails.
svn path=/trunk/mono/; revision=155834
* TypeBuilder.cs (CreateType): Move default constructor
and createTypeCalled assignment to before the parent checks.
* TypeBuilder.cs (is_created): Return true even if creation
fails.
Fixes#331126
svn path=/trunk/mcs/; revision=155832
* Binder.cs (SelectMethod): Exact matching must check
all entries because if two of them match, we must use
the slow path.
* Binder.cs (GetBetterMethod): Don't give generic method
definition special treatment.
Fixes#325306.
svn path=/trunk/mcs/; revision=155828
* configure.in: Check for the asm/sigcontext.h header.
* mono/mini/exceptions-arm.c: Remove platform checks in favor of
configure checks.
* mono/io-layer/collection.c: Cleanup platform checks around
pthread_attr_setstacksize(), and instead always use
MAX(65536, PTHREAD_STACK_MIN) as the stack size.
* mono/io-layer/mono-mutex.c: Remove near duplicate
pthread_mutex_timedlock() declarations, and merge via a CONST_NEEDED
intermediate #define.
svn path=/trunk/mono/; revision=155826
It's unnecessary (for !target_win32, pthreads are checked again
later in configure.in), and it breaks Android (which doesn't have
libpthread, but DOES have pthreads in libc).
svn path=/trunk/mono/; revision=155800
* TypeExtensionMethods.cs : add IsContentValue() for member and
return true for "_Initialization".
* XamlObjectReader.cs : use above.
* XamlObjectReaderTest.cs : added a bunch of read detail tests (lots
on not-working ones).
svn path=/trunk/mcs/; revision=155798
* OperationInvokerHandler.cs : workaround NRE issue in AsyncCallTest.
The original code was worse than this workaround.
svn path=/trunk/mcs/; revision=155788
* verify.c: Handle the case where mono_type_get_underlying_type_any
returns NULL. Remove duplicated code between MONO_TYPE_GENERICINST
and MONO_TYPE_VALUETYPE in those case.
Based on a slightly modified patch by Sebastien Pouliot <[email protected]>
Hopefully Fixes#564253.
svn path=/trunk/mono/; revision=155771
* domain-internals.h: made threadpool_jobs volatile.
* mono-wsq.c: add an assert to verify that the threadpool cleaned up
all local jobs.
* threadpool.c:
-When two threads try to initialize the socket IO pool,
the second one waits until the intialization is finished
instead of continuing right away.
-Add checks for domain unload: no items added in this case.
-Only measure the time every 10 elements added to the queue.
This is an experiment since linux x86 gettimeofday() sucks.
-Create new thread if there are none waiting for work items.
-There was a missing decrement of the busy threads.
-Make sure the local queue is cleaned up before exiting the
thread when the program ends.
svn path=/trunk/mono/; revision=155767
terms of g_critical() instead of printf, and turn g_printerr() into
an actual function instead of a macro.
* src/goutput.c: Add Android support, sending g_print(), g_printerr(),
and g_log() messages to the Android system log.
svn path=/trunk/mono/; revision=155763
just blindly linking to -lpthread, as Android includes pthread
support within libc and doesn't provide a separate libpthread.
Android's <string.h> pulls in <malloc.h> (unlike glibc), resulting
in a build error in mono/utils/mono-codeman.c due to
`struct mallinfo` re-declaration. Define HAVE_USR_INCLUDE_MALLOC_H
if /usr/include/malloc.h is present to avoid this.
* mono/io-layer/collection.c, mono-mutex.c: Add Android support.
* mono/mini/exceptions-arm.c: Add Android support for sigcontext
structure.
svn path=/trunk/mono/; revision=155759
Android doesn't provide all the headers, structure members, and
functions that a "full" Linux distro includes.
* support/dirent.c, support/grp.c, support/macros.c, support/pwd.c,
support/signal.c, support/sys-statvfs.c, support/sys-time.c,
support/unistd.c: Add #if HAVE_XXX checks for functions which aren't
provided on Android.
svn path=/trunk/mono/; revision=155753
* reflection.c (mono_type_get_object): Normalize generics types
as to how managed code expect them to be. A generic instance
over
the GTD arguments must have the same mirror as the GTD itself.
Fixes#473289.
svn path=/trunk/mono/; revision=155750
don't use glibc, and uses `environ` instead of `__environ`.
* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
just blindly linking to -lpthread, as Android includes pthread
support within libc and doesn't provide a separate libpthread.
svn path=/trunk/mono/; revision=155747
* Theme.cs:
* ThemeWin32Classic.cs: Add a HideBalloonWindow method to force to
close an active balloon window.
* XplatUIX11.cs: When removing from the system tray try to close
the balloon window. This is important when we hide a NotifyIcon and
thus need to close its related balloon window as well.
Fixes bits of #590093.
2010-04-19 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=155713
* XplatUIX11.cs: When adding a NotifyIcon to the system tray, mark its
Hwnd.mapped as true, since its handle is going to be mapped later by
the tray (not us), but we need to know it's alive and can later properly unmap
it.
Fixes part of #590093.
svn path=/trunk/mcs/; revision=155705
* HttpReplyChannel.cs : use local var to hold wait handle to avoid
possible NRE on field. Based on the patch by Matt Dargavel.
svn path=/trunk/mcs/; revision=155692
* XamlType.cs : do not return index property.
* TypeExtensionMethods.cs : return Initialization only for value nodes.
* XamlObjectReader.cs : member content can be either a value or a new
object. Fix certain EndObject transition to become EndMember, not
EndObject twice.
* XamlObjectReaderTest.cs : enable working test.
svn path=/trunk/mcs/; revision=155685
* XamlObjectReader.cs, XamlSchemaContext.cs, XamlLanguage.cs:
collect namespace declarations first. Remove extra [XmlnsPrefix]
on the assembly, and handle it specially in GetPreferredPrefix(),
svn path=/trunk/mcs/; revision=155682
* XamlType.cs : ignore ReferenceConverter which is used for IList<T>.
* XamlObjectReaderTest.cs : add simple read tests for some types.
svn path=/trunk/mcs/; revision=155680
* System/Uri.cs (CompactEscaped): New. Check if scheme allows escaped
path characters are compacted (list of schemes obtained from MSDN).
(Reduce): Add argument that is set if escaped characters need to
be compacted.
* Tests/System/UriTest.cs (FtpRootPath): New. Check that ftp root paths are
unmolested.
svn path=/trunk/mcs/; revision=155670
* mini.c (mono_jit_compile_method_inner): Implement the check for native func
wrappers correctly now that their wrapper info is NULL.
svn path=/trunk/mono/; revision=155659
* TreeNodeCollection.cs: When adding/inserting/setting a new node call
TreeView.Sort if needed, and update/recalculate this entire
collection in that case.
* TreeView.cs: Make 'sorted' internal, instead of directly using
Sorted, as this one could trigger a complete Sort() operation.
svn path=/trunk/mcs/; revision=155655
build/profiles/net_4_0_bootstrap.make (PROFILE_MCS_HAS_BOOTSTRAP_FALLBACK):
New. Can be set if we have BOOTSTRAP_PROFILE listed in the
MONO_PATH of MCS, and the profile's System.dll depends features
the profile's mscorlib.dll.
class/System/Makefile (LIBRARY_COMPILE) [USE_BOOT_COMPILE]:
Don't override if the profile says it isn't necessary by setting
PROFILE_MCS_HAS_BOOTSTRAP_FALLBACK.
cleanup and generalize r155638
svn path=/trunk/mcs/; revision=155646
* Directory.cs: Ensure elevated trust when calling on
Moonlight.
* DirectoryInfo.cs: Ensure elevated trust when calling a .ctor
on Moonlight.
* File.cs: Ensure elevated trust when calling a .ctor on
Moonlight.
* FileInfo.cs: Ensure elevated trust when calling a .ctor on
Moonlight.
* FileStream.cs: Ensure elevated trust when calling a .ctor on
Moonlight. Name property returns "[Unknown]" unless a Moonlight
application is executed with elevated trust.
* Path.cs: Ensure elevated trust when calling a GetTempPath,
GetTempFileName or GetFullPath on Moonlight. Add a shared
internal method to validate paths to reduce code duplication.
svn path=/trunk/mcs/; revision=155643
* Mono.Documentation/webdoc.cs: Allow .source files to be provided to
'mdoc export-html-webdoc', which will cause the .source files to be
read and all referenced .tree/.zip files to be processed.
svn path=/trunk/mcs/; revision=155641
* XamlType.cs : cache member lookup.
* XamlMemberTest.cs, XamlXmlReaderTest.cs :
a few correction and additions on member equality.
svn path=/trunk/mcs/; revision=155639
* SecurityManager.cs: Add stub for new methods (so code compiles
correctly under other profiles)
* SecurityManager_2_1.cs: Implement [Check|Ensure]ElevatedPermissions
for Moonlight Elevated Trust
svn path=/trunk/mcs/; revision=155633
* icall-def.h: Add get_RequiresElevatedPermissions icall to
System.Security.SecurityManager - used only by Moonlight
* security-core-clr.c|h: Add Elevated Trust/Permission support
for CoreCLR / Moonlight
svn path=/trunk/mono/; revision=155632
* Actions.cs: Forward Action() to mscorlib.dll and add the new
Action<...T16> delegates
* Funcs.cs: Add the new Func<...T16> delegates
* TimeZoneInfo.cs: Forward to mscorlib.dll
svn path=/trunk/mcs/; revision=155630
* Action.cs: SL4 moved some Action in mscorlib
* Funcs.cs: SL4 moved some Func<> in mscorlib
* String.cs: Make IsNullOrWhiteSpace available, internally,
before NET_4_0 (or SL4) since it's proving useful.
svn path=/trunk/mcs/; revision=155629
* XamlMember.cs : cosmetic equivalence change.
* XamlMemberTest.cs, XamlXmlReaderTest.cs : some member equivalence
tests. Commented out some assertions that won't work for a while.
svn path=/trunk/mcs/; revision=155620
* XamlXmlReader.cs : Resolve generic type names. Process attribute
members.
* XamlLanguage.cs : add XamlTypeName-to-ClrType method.
* XmlSchemaContext.cs : extracted special type name handling to above.
* XamlXmlReaderTest.cs : add more detailed read tests, and more
file-based tests (not working yet).
* Dictionary_Int32_String.xml, Dictionary_String_Type.xml :
add more test files (not working though).
svn path=/trunk/mcs/; revision=155619
* boehm-gc.c (mono_gc_base_init): Applied patch from Robert Nagy
([email protected]). Fix GC_stackbottom calculation on OpenBSD.
svn path=/trunk/mono/; revision=155615
* genmdesc.c (inst_name): Define this as a copy of mono_inst_name in helpers.c,
so the latter can be #ifndef DISABLE_JIT-ed.
* helpers.c: Comment out the opstr array if DISABLE_JIT is set.
svn path=/trunk/mono/; revision=155608
* HttpWebRequest.cs: set content length to -1 on redirect. Reset
'FinishedReading' on redirects. Fixes bug #593596.
svn path=/trunk/mcs/; revision=155604
In class/System.Core/Test/System.Linq/:
* ParallelEnumerableTests.cs: Tweak Skip unit test to avoid deadlocking for now
svn path=/trunk/mcs/; revision=155542
* loader.c (mono_method_get_signature_full): Use new function
inflate_generic_signature_checked to check for errors.
Fixes#560839.
svn path=/trunk/mono/; revision=155528
* class.c (mono_class_setup_vtable_general): Use error checking
version of mono_class_inflate_generic_method_full.
Fixes#596975.
svn path=/trunk/mono/; revision=155524
Mono_Posix_RuntimeIsShuttingDown delegate, so that we can prevent an
infinite loop while shutting the process down. Fixes#592981.
svn path=/trunk/mcs/; revision=155521
mentioned that it's unacceptable for MonoPosixHelper to link against
libmono (e.g. when embedding mono, there might not be a libmono).
* map.h: Flush updated Mono_Unix_UnixSignal_SignalInfo prototype.
* signal.c: Don't use mono_runtime_is_shutting_down(). Instead, change
Mono_Unix_UnixSignal_WaitAny() to accept a function pointer argument,
which will return Environment.HasShutdownStarted in managed code (the
moral equivalent of mono_runtime_is_shutting_down()). This allows
us to avoid a libmono dependency w/o lots of rewriting. Fixes#592981.
svn path=/trunk/mono/; revision=155520
* XamlXmlReader.cs : handle types in clr-namespace.
* XamlType.cs : replaced Type-to-typename hack with better-working one.
* XamlLanguage,cs : add internal clr type name resolver method.
* XamlXmlWriter.cs : for Initialization, value is passed as a string,
so don't try to verify it with the object type.
* XamlXmlReaderTest.cs : enable DateTime tests.
* XamlSchemaContextTest.cs : add a type name resolver test.
svn path=/trunk/mcs/; revision=155516
* XamlXmlReader.cs : ongoing bugfixes to pass start object.
* XamlXmlReaderTest.cs : added a couple more of read and load tests.
svn path=/trunk/mcs/; revision=155491
* XamlObjectReader.cs, TypeExtensionMethods.cs :
Value serialization improvements. Improved namespace handling.
Remove unused code.
* XamlObjectReaderTest.cs : add more read tests (lots of them are
not fully working yet).
* DateTime.xml : new test file. (not working though)
svn path=/trunk/mcs/; revision=155479
* reflection.c (_mono_reflection_parse_type): MS supports
non-assembly-qualified types in a generic type parameter list
when enclosed in '[]' (which signals that they should be a fqn).
This breaks ECMA specs for how type names are encoded in cattr
blobs but F# does it.
Fixes#576342.
svn path=/trunk/mono/; revision=155438
* configure.in: turn the AC_MSG_ERROR into a AC_MSG_WARN since in
Andrew's configuration this aborts the build:
host=i686-pc-linux-gnu != target=i586-suse-linux
And I no longer remember why I added that error in the first
place (we need to determine perhaps the arch/OS but it is
difficult with those strings).
svn path=/trunk/mono/; revision=155422
* XamlXmlWriter.cs : use TypeConverter to get string value to write.
(TimeSpan shows the difference; the type's ValueSerializer is null,
while TypeConverter is not, and gives the expected non-xsd output.)
* XamlXmlReaderTest.cs : add primitive TimeSpan reader test.
* TimeSpan.xml : new test file.
svn path=/trunk/mcs/; revision=155418
* XamlSchemaContext.cs, TypeExtensionMethods.cs : reimplement some
GetXamlType() overloads. Protected one should be the actual
implementation.
svn path=/trunk/mcs/; revision=155415
* MemoryMappedViewAccessor.cs
* MemoryMappedFile.cs
* MemoryMappedViewStream.cs:
Properly retrieve the size of the mmapped file. Fixes the
unit tests.
svn path=/trunk/mcs/; revision=155407
*always*, since it is used recursively, so checking for a number of
top level nodes is useless. This should fix a case where we were not
sorting any node with a single root node.
2010-04-14 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=155391
* XamlObjectReader.cs : Type is consumed as TypeExtension.
* XamlObjectReaderTest.cs
XamlSchemaContextTest.cs
XamlTypeTest.cs : a couple of Type/TypeExtension-related tests.
svn path=/trunk/mcs/; revision=155375
at the beginning, to let handlers draw on top of us.
Fixes the remaining bits of #587563.
2010-04-14 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=155367
* ToolStripItem.cs: Separate the background rendering from the Paint
routine, so we can both make sure the background stuff is done first,
and we also let our items fire the OnPaint event handlers before or
after their own routines.
* ToolStripLabel.cs: Move the base call to OnPaint to the end, so any
user's Paint handler can draw on top of us, like .Net does.
Fixes#587563.
svn path=/trunk/mcs/; revision=155366
* method-to-ir.c (handle_box_inst): Merge into handle_box, simplify the merged
version.
* (handle_alloc): Ditto.
(mono_method_to_ir): Remove the constrained call restriction added by a previous
change, its not needed anymore.
svn path=/trunk/mono/; revision=155350
* metadata-verify.c: Implement structural verification
of custom attributes. This check requires access to the
loader since to resolve the size of an enum we have to
look it up.
We don't check if named argumenments are encoded in a
compatible fashion to their underlying field/prop.
Maybe we should?
* verify-internals.h: Add two new cattr verification API.
svn path=/trunk/mono/; revision=155344
* method-to-ir.c (mono_method_to_ir): Disable generic sharing for constrained
calls where the constrained class needs a context. Fixes#595863.
* iltests.il.in: Add a test.
svn path=/trunk/mono/; revision=155329
when beginning Type generation. This prevents "invalid"
`#endregion`s; if the CodeGenerator instance is reused for multiple
types, the last member of the first type has an EndDirective, then
the EndDirectvies will be generated before any members of the 2nd
type. Don't do that.
* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing
for CodeRegionDirectives.
svn path=/trunk/mcs/; revision=155321
* XplatUIX11.cs: When checking for the values returned by
_NET_WORKAREA, use current_desktop+1 instead of current_desktop, since
we need the actual value, instead of the index (which is 0 based, and
is not working in this case). Patch by Andy Stühr
([email protected]).
Fixes#494234.
svn path=/trunk/mcs/; revision=155318
* CrossDomainPolicyManager.cs: Fix previous change since it
breaks several valid cases (e.g. text/*, text/xml; charset=utf-8)
and does not completely covers the application/xml case.
Avoid possible ArgumentException while adding policies since it
confuse the logs.
svn path=/trunk/mcs/; revision=155309
* XamlXmlWriter.cs :
Do not write element or attribute for Initialization.
* XamlXmlWriterTest.cs : enable WriteNode() tests.
svn path=/trunk/mcs/; revision=155308
* reflection.c: maintain the invariants required by
mono_class_layout_fields() also in typebuilder_setup_fields ().
svn path=/trunk/mono/; revision=155301
* XamlType.cs : IsArray, IsCollection and IsGeneric are based on
LookupCollectionKind(). Removed buggy documented behavior from the
lookup method too.
* XamlTypeTest.cs : assert that dictionary types are *not* collection.
* XamlTypeInvoker.cs : implement CreateInstance() for object writer.
svn path=/trunk/mcs/; revision=155298
* CrossDomainPolicyManager.cs: make the contentType detection
look for /xml at the end, it's more reliable
(fixes olympics for moonlight)
svn path=/trunk/mcs/; revision=155283
* TimeSpanTest.cs: Remove "NotWorking" from our custom formats parse
methods, as well as augmenting the test with some new assertions, and
changing a pair to properly reflect what they are testing.
svn path=/trunk/mcs/; revision=155282
* TimeSpan.cs: Implement support for custom formats parsing. This
should as well include the bits required to easily implement the same
for ToString methods, when the final release fixes the mess we found
in the latest beta.
svn path=/trunk/mcs/; revision=155281
* Enumerable.cs: Jumbo patch that inlines code, mainly for the AOT
scenario where we our compiler cant infer the extra layer of
indirection of a lambda function.
But additionally, since we lack support for our JIT to inline
intermediate delegate calls, it should save memory and run
faster.
svn path=/trunk/mcs/; revision=155280
* mini.c (mini_method_compile): Disable llvm+methods with clauses again, llvm
2.6/SVN seems to have broken support for them.
svn path=/trunk/mono/; revision=155279
* ImageField.cs, CheckBoxField.cs: OnDataBindField must expect
sender to be something else than DataControlFieldCell. Fixes bug
#595568
2010-04-13 Marek Habersack <[email protected]>
* CheckBoxFieldTest.cs: added test for bug #595568
svn path=/trunk/mcs/; revision=155270
* PageCompiler.cs: if EnableViewStateMac is set in the page
source, generate relevant code.
2010-04-12 Marek Habersack <[email protected]>
* PageParser.cs: if EnableViewStateMac option is present in the
directive, remember it for later use by the compiler.
* Page.cs: initialize EnableViewStateMac with the default read
from the config.
svn path=/trunk/mcs/; revision=155262
* XamlWriterStateManager.cs, XamlXmlWriter.cs : extracted former
from latter, to reuse it in XamlObjectWriter too.
* System.Xaml.dll.sources : add new internal type.
svn path=/trunk/mcs/; revision=155248
* XamlSchemaContext.cs
TypeExtensionMethods.cs
XamlType.cs : implement type lookup by name in schema context.
* XamlSchemaContextTest.cs, XamlTypeTest.cs : more type system tests.
svn path=/trunk/mcs/; revision=155246
* XamlType.cs : make implementation a bit cleaner.
* TypeExtension.cs, StaticExtension.cs : add [TypeConverter].
* XamlTypeTest.cs : add a few more TypeConverter assertions.
svn path=/trunk/mcs/; revision=155227
* XamlLanguage.cs : implement namespaces properties.
* XamlType.cs : implement member lookup methods and IsConstructible.
* XamlMember.cs : do not use PropertyInfo's CanRead and CanWrite
which both return True for private getter and setter.
* TypeExtensionMethods.cs : add member retriever method that convers
Initialization (for XamlXmlWriter).
* XamlObjectReader.cs : use above.
* XamlLanguageTest.cs : add member lookup tests and properties tests
on those members.
* XamlTypeTest.cs : add GetAllAttachableMembers() test.
Enable IsConstructible().
svn path=/trunk/mcs/; revision=155226
** Fixes#591443
* DataColumn.cs (Clone): Use propert to clone Expression as it
* builds
compiled expression also, if any.
svn path=/trunk/mcs/; revision=155216
Math is beautiful
A universal language
Libraries differ
-- Andreas F.
Haiku neither has libm nor libdl. On Mac OS X, libm.dylib is just a symlink
to libSystem.dylib.
Introduce autoconf checks for these libraries.
* configure.ac: Add checks for libm and libdl.
* {src,test}/Makefile.am: Remove hardcoded library dependencies.
Fixes compilation on Haiku.
v1 -> v2:
* Add checks for libm and libdl.
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.
svn path=/trunk/mono/; revision=155195
* GetFrameworkPath.cs (FrameworkVersion40Path): New.
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Move to 2.0, 3.5 and 4.0 .
The 4.0 copy gets the framework path for 4.0 .
* Makefile: Update for the above change.
* xbuild_targets.make: Likewise.
svn path=/trunk/mcs/; revision=155193
Haiku has neither makedev nor /proc. Enumerate processes, process modules
and retrieve the process name via Kernel Kit. Fixes build on Haiku.
Adjust _WAPI_PROCESS_UNHANDLED_PID_MASK to cope with Haiku's 32-bit pid_t.
Fixes exception trying to obtain the ProcessName of pids >= 2^15.
Be did not have /proc
For Mono to build without
Resort to Be's root
-- Andreas F.
* processes.c (EnumProcesses, load_modules): Add implementations
for Haiku. Fixes build on Haiku.
(OpenProcess, EnumProcessModules, get_process_name_from_proc):
Tweak implementations for Haiku.
* process-private.h: Fix _WAPI_PROCESS_UNHANDLED_PID_MASK for
32-bit pids (Haiku).
* ChangeLog: Fix UTF-8 encoding
v4 -> v5:
* Resolve conflicts with more OpenBSD changes.
v3 -> v4:
* Rebase against OpenBSD changes.
v2 -> v3:
* Fix get_process_name_from_proc implementation to use get_next_image_info.
* Add new implementation of EnumProcesses.
* Fix OpenProcess' check whether pid is available.
* Fix _WAPI_PROCESS_UNHANDLED_PID_MASK to handle Haiku's 32-bit pid_t.
* Fix module addresses in load_modules by considering the text segment, too.
Suggested by Ingo Weinhold.
* Add ChangeLog entry, fix file encoding.
v1 -> v2:
* Instead of providing a dummy makedev macro, avoid its use.
* Don't try to parse /proc.
* Add new implementations of load_modules and get_process_name_from_proc
based on libroot's Kernel Kit, suggested by François Revol.
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.
svn path=/trunk/mono/; revision=155191
* debugger-agent.c (thread_commands): Add a GET_ID command to get the
MonoInternalThread belonging to the thread.
svn path=/trunk/mono/; revision=155173
* verify.c (mono_method_verify): A switch op don't empty
the stack for the next one. Fixes a bug when running fsi
under --verify-all.
svn path=/trunk/mono/; revision=155154
* System.Collections.Generic/SortedSet.cs (SortedSubSet.count): Remove.
(SortedSubSet..ctor): Move counting loop ...
(SortedSubSet.Count): ... here.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update to changes.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Likewise. Use bounds
to determine if the view is empty, rather than the count.
* Test/System.Collections.Generic/SortedSetTest.cs (ViewCount):
Test that count reflects changes in underlying set.
svn path=/trunk/mcs/; revision=155125
* Type.cs: Add ResolveInternal virtual call that
resolves a given type to it's concrete type.
2010-04-08 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement ResolveInternal.
2010-04-08 Rodrigo Kumpera <[email protected]>
* EnumBuilder.cs:
* GenericTypeParameterBuilder.cs:
* DerivedTypes.cs:
* TypeBuilder.cs: Add ResolveInternal virtual call that
resolves a given type to it's concrete type.
* TypeBuilder.cs (DefineDefaultConstructor): Use
ResolveInternal on parent to do the lookup on a
finished type.
Fixes#591225.
svn path=/trunk/mcs/; revision=155115
* icall.c (ves_icall_MonoField_GetValueInternal): This function
is a near identical copy of mono_field_get_value_object. So
simply call it.
* object.c (mono_field_get_value_object): Handle literal fields
on open generic classes.
Fixes#594942.
svn path=/trunk/mono/; revision=155111
* reflection.c (mono_reflection_create_runtime_class): Setup
parent/supertype information again since it can be changed
without notice.
svn path=/trunk/mono/; revision=155110
will configure mono to only build moonlight-specific stuff and
nothing else. --with-moonlight=yes now just adds the moon profile to
the build
* Makefile.am: Add moonlight-specific rules that only build what
moon needs. These are called directly from moon, to do fast
moon+mono+mcs builds
* runtime/Makefile.am: Change the build rules to have a moonlight-only
build configuration, as well as a normal build that optionally includes
it
svn path=/trunk/mono/; revision=155093
* AssemblyBuilder.cs (GenericInstanceKey): Precalculate
GenericInstanceKey hash code since this can cause infinite
recursion when inflating "Foo<T> : Bar<Foo<T>>" parent.
* TypeBuilder.cs (IsSubclassOf): Don't delegate to base class
since the unmanaged information can be out of sync.
* TypeBuilder.cs (UnderlyingSystemType): Invert the test order
since IsEnum now is potentialy more expensive.
Fixes#594728.
svn path=/trunk/mcs/; revision=155053
* SubjectAltNameExtensionTest.cs: Add unit tests for multiple
DNSNames entries (#594110 and #591516 certificate test case)
svn path=/trunk/mcs/; revision=155046
* verify.c (verify_type_compatibility_full): Properly handle
stores between arrays of primitives.
Fixes the verifier side of #555950.
svn path=/trunk/mono/; revision=155018
* DeflateStream.cs: always use Cdecl, since the library is compiled
using that calling convention in windows too.
svn path=/trunk/mcs/; revision=155017
class.c (mono_bounded_array_class_get): Properly init
cast_class to take the fact that uint[] and int[] can be
casted between each other.
Fixes#555950.
svn path=/trunk/mono/; revision=155012
* icall.c (ves_icall_System_Environment_Exit): Shutdown the threadpool before
waiting for all threads to suspend, as those threads can't be suspended.
svn path=/trunk/mono/; revision=155005
* Enum.cs (GetInfo): Don't use isinst tests as they can
return true for both signed and unsigned version of a
primitive type.
* Enum.cs (FindPosition): Ditto.
svn path=/trunk/mcs/; revision=155002
* zlib-helper.c: now that we don't use Z_SYNC_FLUSH, there might be
unflushed input in zstream, so always call Z_FINISH.
svn path=/trunk/mono/; revision=154995
* xbuild/Microsoft.VisualBasic.targets(CoreCompile): Fix Outputs
to use @(IntermediateAssembly) instead of $(IntermediateAssembly).
Patch suggested by Eli Bishop ([email protected]).
svn path=/trunk/mcs/; revision=154983
* RBTree.cs (Bound): New. Returns the greatest lower bound and
least upper bound of the given key.
(GetSuffixEnumerator): New. Returns an enumerator that starts at
the given key.
(NodeEnumerator): Provide suffix enumerator functionality.
* SortedSet.cs (GetEnumerator): Delegate to ...
(TryGetEnumerator): ... this. New virtual function.
(Enumerator): Provide subset enumeration using RBTree's suffix enumerators.
(SortedSubSet.count): New.
(SortedSubSet.GetCount): Use it.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update count.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Use RBTree.Bound().
(SortedSubSet.GetEnumerator): Remove.
(SortedSubSet.TryGetEnumerator): New. Use ranged enumerators.
* SortedSetTest.cs: Update to test more view functionality,
including set comparison operators.
svn path=/trunk/mcs/; revision=154974
* BaseDomainPolicy.cs: Abstract-fy IsAllowed(WebRequest) and
remove abstract IsAllowed(Uri,string[]) since it cannot provide
enough information for the client access policy.
* ClientAccessPolicy.cs: Replace IsAllowed(Uri,string[]) with
IsAllowed(WebRequest) and add logic for AllowAnyMethod
* ClientAccessPolicyParser.cs: Read "http-methods" attribute (new
in SL3) and set the new AllowAnyMethod property if the value is
"*" (the only legal value if the attribute is present).
* FlashCrossDomainPolicy.cs: Add IsAllowed(WebRequest) since it's
not part of BaseDomainPolicy anymore.
svn path=/trunk/mcs/; revision=154949
* Control.cs: control cache must be filled using the local
_controls collection instead of the virtual Controls
property. Fixes bug #594238
Check if _controls isn't null before using it.
2010-04-07 Marek Habersack <[email protected]>
* ControlTest.cs: added test for bug #594238
2010-04-07 Marek Habersack <[email protected]>
* Makefile: moved App_* test resources to separate variables -
whatever is contained in those variables is preprocessed before
embedding as resource to include appropriate resource name prefix
(App_Code/, App_GlobalResources/ for now). This is used in WebTest
to automatically populate the relevant directories when running
the test suite.
2010-04-07 Marek Habersack <[email protected]>
* WebTest.cs: introduced concept of prefixed resources and added
an API which handles them - CopyPrefixedResources. All the
manifest resource names are checked for match with the given
prefix, and all the matching ones are copied to the specified
subdirectory of the test directory.
svn path=/trunk/mcs/; revision=154948
* ConsoleLogger.cs: Dump items and properties when a project starts
to build. Useful for debugging.
* Engine.cs (LogProjectStarted): Set the properties and items also,
for the project started event.
* Project.cs (EvaluatedPropertiesAsDictionaryEntries): New.
(EvaluatedItemsByNameAsDictionaryEntries): New. Required for
ProjectStartedEvent .
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* MSBuild.cs: Emit global properties, if any. Sort the property
list.
svn path=/trunk/mcs/; revision=154929
* build/Makefile (DISTFILES): Add gensources.sh.
* build/gensources.sh: New, improved version of tools/gensources.sh.
* build/library.make ($(sourcefile)): Use the new gensources.sh.
($(makefrag)): Update to handle the optional makefrag generated by
gensources.sh.
* tools/Makefile (DISTFILES): Remove gensources.sh.
* tools/gensources.sh: Remove.
svn path=/trunk/mcs/; revision=154909
* FormParameter.cs, CookieParameter.cs, ProfileParameter.cs,
QueryStringParameter.cs, SessionParameter.cs: implemented
constructor overloads which take DbType as one of the arguments.
svn path=/trunk/mcs/; revision=154894
* class.c (print_implemented_interfaces): Print proper type name.
* class.c (mono_class_setup_vtable): Don't try that hard to produce
the override map for generic instances since it later ignored.
* class.c (mono_class_implement_interface_slow): Don't break for
dynamic generic instances.
* object.c (mono_runtime_invoke_array): Add an assert for allocation.
* reflection.c (mono_reflection_method_get_handle): New method that
resolves a method handle.
* reflection.c (mono_reflection_get_dynamic_overrides): Handle the
case when we override methods from a dynamic generic instance interface.
Fixes#575941.
svn path=/trunk/mono/; revision=154886
* ClientAccessPolicyParser.cs: Catch extra attributes that
leads to an invalid (no-access) policy. Fix parts of DRT#666
* CrossDomainPolicyManager.cs: Ignore policies sent with a
Content-Type different than "text/*". Fix DRT#667
* FlashCrossDomainPolicyParser.cs: Catch extra attributes and
the case where a second policy is present (invalid xml). Fix
parts of DRT#666
svn path=/trunk/mcs/; revision=154862
source can be found, if not on ./mcs or ../mcs
only touch the mcs and/or olive dirs and config files if we're
actually building them
svn path=/trunk/mono/; revision=154858
* wthreads.c (TlsSetValue): Don't take locks here. We trust
* pthread_setspecific
return value to tell if we tried to store to an invalid slot.
svn path=/trunk/mono/; revision=154856
* TimeSpanTest.cs: Augment our ParseExactCustomFormats test - still
marked as NotWorking for now, but committing now in order to have the
tests ready.
svn path=/trunk/mcs/; revision=154848
for 3.5 and 4.0 profiles.
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Process tools/xbuild for 3.5 also.
In class/Microsoft.Build.Engine:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Use the correct assembly name for MS.Build.Utilities*
for 3.5 and 4.0 profiles. Copy the .config files for the test
assembly.
Import tools/xbuild/xbuild_targets.make, which copies the target
and tasks file in the correct place, to allow running tests
with different toolsversion.
* Microsoft.Build.Engine.dll.sources: Add LogExtensions.cs,
Toolset.cs, ToolsetDefinitionLocations.cs and ToolsetCollection.cs .
* Test/test-config-file-net-3.5: New.
* Test/test-config-file-net-4.0: New.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2010-04-03 Ankit Jain <[email protected]>
* BuildEngine.cs: Implement IBuildEngine2 instead of
IBuildEngine.
* BuildTasks.cs: Use the new extension methods for logging.
(InitializeTask): Emit a message informing about the assembly
from which the task is being loaded. Emit a useful debug message
incase of a InvalidCastException.
* Engine.cs: Add missing methods, constructors and properties related
to ToolsVersion support. Setup a default set of Toolsets.
Keep separate taskdbs' per ToolsVersion. The common tasks
would come from different *.tasks file, and use different
task assemblies.
(DefaultToolsVersion): Correctly set this based on the profile.
* LogExtensions.cs: New. Extension methods on Engine, for logging.
* Project.cs: Add missing methods/contructors/properties related
to ToolsVersion support. Add reserved properties -
MSBuildToolsPath and MSBuildToolsVersion .
* Toolset.cs: New.
* ToolsetCollection.cs: New.
* ToolsetDefinitionLocations.cs: New.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-04-06 Ankit Jain <[email protected]>
* Consts.cs (ToolsVersionString): New.
(GetTasksAsmPath): New.
* EngineTest.cs: Use the direct path to the tasks assembly
in the UsingTasks.
* ProjectTest.cs: Set ToolsVersion to the current profile.
In class/Microsoft.Build.Framework:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion.
* Microsoft.Build.Framework.dll.sources: Add IBuildEngine2.cs .
In class/Microsoft.Build.Framework/Microsoft.Build.Framework:
2010-04-03 Ankit Jain <[email protected]>
* IBuildEngine2.cs: New.
In class/Microsoft.Build.Tasks:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion. Copy the config file for the
test assembly. Clean the generated test.dll .
Use the correct target assembly name for 4.0 profile
(ms.build.tasks.v4.0.dll), and for Utilities assembly.
* Microsoft.Build.Tasks_test.dll.sources: Use Consts.cs from Engine
instead of maintaining a copy here.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2010-04-03 Ankit Jain <[email protected]>
* Csc.cs: Use dmcs as the compiler for 4.0 profile.
* MSBuild.cs (ToolsVersion): New.
Use toolsVersion for building.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2010-04-06 Ankit Jain <[email protected]>
* Consts.cs: Remove.
* AssignProjectConfigurationTest.cs:
* CreateCSharpManifestResourceNameTest.cs:
* CreateVisualBasicManifestResourceNameTest.cs:
* CreateItemTest.cs:
* FindAppConfigFileTest.cs:
* RemoveDuplicatesTest.cs:
* TaskBatchingTest.cs:
* WriteLinesToFileTest.cs:
Set the ToolsVersion to match the profile. Use the
full path to the tasks assembly for UsingTasks.
In class/Microsoft.Build.Utilities:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion.
Use the correct target assembly name for 4.0 profile.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2010-04-03 Ankit Jain <[email protected]>
* TargetDotNetFrameworkVersion.cs: Add Version40 .
* Task.cs (BuildEngine2): New.
* ToolLocationHelper.cs: Use class/linet_* as the path
for the assemblies and targets when running tests.
Environment variable TESTING_MONO is set for testing.
This allows a 4.0 xbuild to build 2.0/3.5 projects.
In tools:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Move xbuild from net_4_0_dirs to per_profile_dirs.
In tools/xbuild:
2010-04-03 Ankit Jain <[email protected]>
* Main.cs (Execute): If toolsversion is specified on the command line,
then use that.
* Parameters.cs: Read toolsversion from the command line ('/tv:..') .
* SolutionParser.cs: Infer ToolsVersion from the sln version.
Set ToolsVersion property of the MSBuild tasks, in the generated
.sln.proj file, for building the projects.
* xbuild/Microsoft.Common.tasks: Move to ..
* xbuild/2.0/Microsoft.Common.tasks: .. here.
* xbuild/3.5/Microsoft.Common.tasks: New.
* xbuild/4.0/Microsoft.Common.tasks: New.
Use the corresponding 3.5/4.0 tasks assembly.
* xbuild_targets.make: Copies the target and tasks file in the correct
place, to allow running tests with different toolsversion.
* Makefile: Import xbuild_targets.make . Use correct assembly names for
Utilities assembly, for 3.5/4.0 profiles.
Install the correct Microsoft.Common.tasks file for the profile.
Copy xbuild.exe to class/li$(PROFILE), so that it can find other
profile dirs as relative path.
(EXTRA_DISTFILES): Add the new Microsoft.Common.tasks files.
svn path=/trunk/mcs/; revision=154835
* threadpool.c: if there are no waiting threads, try to start a new
one. This fixes the not-so-random hangs in System.ServiceModel tests.
No need to use InterlockedCompareExchange to read volatile variables.
svn path=/trunk/mono/; revision=154811
* verify.c (verify_type_compatibility_full): Fail mixed
* valuetype
and reference types that point to the same class.
Fixes#565598.
svn path=/trunk/mono/; revision=154801
* EndpointAddressMessageFilter.cs : check null arg. Return false for
no To header case and do not result in NRE.f
* EndpointAddressMessageFilterTest.cs :
Add null arg case. Enable working test.
svn path=/trunk/mcs/; revision=154787
* DataContractExporter-new.cs : do not expect contract attribute on
dictionary map. Non-contract type also uses this.
svn path=/trunk/mcs/; revision=154785
* BaseMessagesFormatter.cs : hasParameter check is incorrectly
restrictive to reject some kinds of pairs.
* CustomPeerResolverServiceTest.cs : enabled all disabled tests.
svn path=/trunk/mcs/; revision=154781
The x86 soft debugger depends on siginfo_t outside Windows. So if we're
neither building for Windows nor using SA_SIGINFO-style signal handlers,
don't enable the soft debugger. Fixes the build on Haiku.
So soft it might break
Be Open for Berkeley
But not for poets
-- Andreas F.
* mini-x86.h: Only enable soft debugger when using sigaction or on
Windows. Fixes build on Haiku (lacks siginfo_t).
v2 -> v3:
* Enable the soft debugger for Windows as well (uses different code path).
Pointed out by Zoltan Varga.
v1 -> v2:
* Instead of disabling siginfo_t code inside the soft debugger,
disable the soft debugger itself.
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.
svn path=/trunk/mono/; revision=154778
* ToolTip.cs: Make TipState internal.
* ToolStrip.cs: Use the same idea of ToolTip'state to have our
internal timer close the tooltip window after a delay, instead of
waiting for the mouse to move to a different item. Also, hide the
tooltip window when the handle is destroyed, and also when the control
is getting hidden.
Fixes#581273.
svn path=/trunk/mcs/; revision=154774
Make configure display "Moon Profile: no".
* configure.in: Set default for with_moonlight to fix
"Moon Profile:" output.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=154765
* configure.in: TARGET_WIN32 is defined when cross-compiling with
MinGW
* build-mingw32.sh: include the 4.0 profile in the zip.
Remove cross-compilation environment bin path from PATH before
compiling native Mono.
Remove autotools cache directory before each compilation phase.
2010-04-03 Marek Habersack <[email protected]>
* process.c: when compiling with MinGW, force GetProcessId lookup
using GetProcessAddress.
svn path=/trunk/mono/; revision=154743
* SafeHandle.cs: Use refcount == -1 to indicate that the handle
had been closed.
The problem here is that we have no records of why the code that
threw a ObjectDisposedException inside the do { } while block on
DangerousAddRef was added. It seems it was added in response to
Close() methods being called and the need to throw that exception
on further calls to ObjectDisposedException.
Sadly, we have no test suites for that.
svn path=/trunk/mcs/; revision=154741
* sgen-gc.c, sgen-gray.c: Macros for gray_object_enqueue() and
gray_object_dequeue(), to make sure they're inlined.
svn path=/trunk/mono/; revision=154737
* sgen-gc.c, sgen-gray.c: Fix a few debug levels, put a few
asserts in inner loops into DEBUG and lower MAX_DEBUG_LEVEL.
svn path=/trunk/mono/; revision=154736
against libmono.so, for mono_runtime_is_shutting_down().
* signal.c: Only continue retrying system calls if Mono is NOT
attempting to shut down. Fixes#592981.
svn path=/trunk/mono/; revision=154731
* XContainer.cs : create snapshot copy first before removal of nodes.
Fixed bug #592435.
* XElementTest.cs : added test for bug #592435.
svn path=/trunk/mcs/; revision=154729
Haiku does not support SA_SIGINFO-style signal handlers but supports
a BeOS extension to signal handlers.
POSIX is diverse
Long road to Real Time Signals
Unique Be's handlers
-- Andreas F.
* mini.h, mini-x86.h: Suppress sigaction for Haiku, add support for
BeOS-style signal handlers.
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.
svn path=/trunk/mono/; revision=154716
* ClientRuntimeChannel.cs :
use DataContractSerializer.IsStartObject() to check if the fault
detail reader is for the fault contract, in addition to Action.
* FaultContractInfo.cs : add serializer property.
svn path=/trunk/mcs/; revision=154712
* ContractDescriptionGenerator.cs : fill FaultDescription action,
name and namespace as expected.
* FaultDescriptionTest.cs : add new test.
* FaultContractAttributeTest.cs : new test.
* System.ServiceModel_test.dll.sources : add some new fault tests.
svn path=/trunk/mcs/; revision=154698
* ClientRuntimeChannel.cs : use FaultContractInfos to create custom
FaultException<T>. (It's not picking the expected FCI yet.)
svn path=/trunk/mcs/; revision=154696
* MessageFault.cs : when created from XmlReader, it should not
deserialize fault details immediately. This class itself should
not do that. Strongly typed FaultContractInfo may want to use the
reader (GetReaderAtDetailContents()) for its own deserialization.
svn path=/trunk/mcs/; revision=154695
* FaultDescription.cs : fill Action.
* ContractDescriptionGenerator.cs : do not fill Faults from service
impl. method. Do this from contract method instead.
* OperationDescription.cs : remove extra TODOs.
svn path=/trunk/mcs/; revision=154691
* EndpointDispatcher.cs : fill FaultContractInfos.
* DispatchOperation.cs : do not fill them dynamically/automatically.
* ErrorProcessingHandler.cs : added some FIXME notes.
svn path=/trunk/mcs/; revision=154690
* configure.in: include -lkernel32 in LDFLAGS when cross-compiling
with MINGW or compiling on Cygwin.
* build-mingw32.sh: some changes to make the compilation work
better on non-SuSE systems.
svn path=/trunk/mono/; revision=154683
* HttpException.cs: handle situations when current exception is an
instance of a class derived from HttpException and there's no
InnerException.
* HttpApplication.cs: ProcessError must call ClearError on the
current context after the handler returns without error. Fixes bug
#572469
2010-04-02 Marek Habersack <[email protected]>
* Unhandled_Exception_Global_Asax.cs: added - tests for bug
#572469
svn path=/trunk/mcs/; revision=154672
* Module.cs (GetMethod): Check for null 'types' argument.
* MonoModule.cs (GetMethodImpl): Special case when 'types'
is null and call Type::GetMethod(string) directly.
This is ok since proper checking of the 'types' overload
is done by callers.
svn path=/trunk/mcs/; revision=154660
* sgen-gc.c: Make the nursery size adjustable by the
MONO_GC_PARAMS environment variable.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=154648
* method-to-ir.c (ensure_method_is_allowed_to_[access_field|
call_method]): Delegate the actual work in security-core-clr.c
to ease code sharing.
svn path=/trunk/mono/; revision=154638
* exception.c|metadata-internals.h: Add new mono_get_exception_
field_access_msg and mono_get_exception_method_access_msg
functions that accept a const char* parameter to provide more
details when the exception is thrown.
* security-core-clr.c|h: Rework code to allow logging exceptions
(export MONO_LOG_MASK="security") and to supply more details in
[TypeLoad|MethodAccess|FieldAccess]Exception thrown. Also added
mono_security_core_clr_is_field_access_allowed and
mono_security_core_clr_is_call_allowed to return an exception,
with messages and logging, that can be emitted by method-to-ir.c
svn path=/trunk/mono/; revision=154637
* FormView.cs: do not show the pager if PagerSettings.Visible is
false. Fixes bug #578863
2010-04-01 Marek Habersack <[email protected]>
* FormViewTest.cs: added test for bug #578863
svn path=/trunk/mcs/; revision=154631
* HttpTransportBindingElement.cs, HttpsTransportBindingElement.cs:
implement HttpsTransportBindingElement.GetProperty<T>(). Extend the
properties type from HTTP.
* HttpsTransportBindingElementTest.cs :
added test for GetProperty<T>().
svn path=/trunk/mcs/; revision=154621
* sgen-gc.c, sgen-pinning-stats.c: In the heap-dump, dump each
pinned object.
2010-04-01 Mark Probst <[email protected]>
* scripts/mono-heapviz: Process and output detailed pinning
statistics.
svn path=/trunk/mono/; revision=154620
* JsonValue.cs: We need to use Convert.ToXXXX for numbers as we
always end up reporting the value JsonType.Number regardless of
the underlying storage (int, long or decimal). The parser
picks the best storage suitable for the data, and can end up using
"ints" for values that sometimes use longs.
This causes problems when derefercing the data for example, if you
have an int and try to get it out as a long you end up with an
invalid cast exception.
svn path=/trunk/mcs/; revision=154613
* FaultConverter.cs : use addressing version from the message.
* ServiceHostBaseTest.cs : enable RunDestinationUnreachableTest()
and add another case for different addressing version.
svn path=/trunk/mcs/; revision=154608
* config-default.make (LIBRARY_FLAGS): Applied patch from Laurent Etiemble
([email protected]). Use CFLAGS in the environment if defined.
svn path=/trunk/mcs/; revision=154606
* appdomain.c (mono_domain_assembly_postload_search): Avoid a crash/assert if
the assembly name is not well formed utf8. Fixes#567882.
svn path=/trunk/mono/; revision=154604
* reflection.c (mono_reflection_create_generic_class): Set the flags field of
the generic parameters from the builder. Fixes#473298.
svn path=/trunk/mono/; revision=154602
* decompose.c (mono_decompose_opcode): Set the cfg exception if the unsupported
float conv.ovf.un opcodes are encountered, instead of asserting later.
Fixes#566296.
svn path=/trunk/mono/; revision=154599
* Module.cs: Make it a partial class under !v4.
* MonoModule.cs: New type that exists only under
v4. Under v2 it is a part of Module.
This is the initial setup to make v4 Module an
abstract type where all methods raise exceptions.
svn path=/trunk/mcs/; revision=154586
* mini-amd64.c (mono_arch_emit_call): Fail compilation if an argument is too
large. Fixes#567040.
* method-to-ir.c: Call CHECK_CFG_EXCEPTION after emitting a call.
svn path=/trunk/mono/; revision=154583
* mono-semaphore.h: Use Windows semaphores on Windows, patch
contributed by Vincent Povirk from bugzilla #531767
svn path=/trunk/mono/; revision=154573
* ListView.cs: Selection should be available after the first time the
handle has been created, even if later the handle is destroyed or
temporary invalidated.
Fixes#584070.
svn path=/trunk/mcs/; revision=154567
* UInt32.cs, Int64.cs, UInt64.cs: cope with the case that the
IFormatProvider is not a NumberFormatInfo, preventing a crash.
This was already handled by Int32.cs, but these other routines
were never properly updated.
Fixes#588356
svn path=/trunk/mcs/; revision=154532
* moonlight_raw_corlib.dll.sources: Fix Moonlight since these
types now reside in mscorlib (not System.Coe) for NET_4_0 and
also for SL4
2010-03-26 Sebastien Pouliot <[email protected]>
* moonlight_raw_corlib.dll.sources: Add MonoAssembly to ML build
since it contains parts of the Assembly features (partial class)
svn path=/trunk/mcs/; revision=154531
* mini-trampolines.c: Surround mono_handler_block_guard_trampoline and
mono_create_handler_block_trampoline with the proper #ifdef so that it
compiles on amd64.
svn path=/trunk/mono/; revision=154524
* mini-exceptions.c: Introduce mono_walk_stack_full, which
allows to select if it's new or old context that is passed to
the callback.
* mini-exceptions.c (mono_handle_exception_internal): Handle the
case when executing a guarded handler from the EH machinery.
* mini-exceptions.c (mono_install_handler_block_guard): New function
responsible for checking for handler blocks, installing the guard and
clearing abort state.
* mini-posix.c (sigusr1_signal_handler): Call mono_install_handler_block_guard
to check for handler blocks and skip interruption logic if one was found.
* mini-trampolines.c (mono_handler_block_guard_trampoline): Function called
by the handler block guard trampoline. Resumes interruption by raising the
pending ThreadAbortException.
* mini.c (create_jit_info): Calculate the end address of a finally block.
* mini-x86.c (mono_arch_install_handler_block_guard): Patch the return address
of a finally block to a specified address and return the old one.
* tramp-x86.c (mono_arch_create_handler_block_trampoline): The handler block
trampoline patches the original return address and calls the trampoline function.
svn path=/trunk/mono/; revision=154495
* domain-internals.h (MonoJitExceptionInfo): Add new field
handler_end to the data union. To be used to point the end
of a finally block.
svn path=/trunk/mono/; revision=154494
* System.Web.UI/PageParser.cs:
* System.Web.UI/Page.cs:
* System.Web.Compilation/PageCompiler.cs: default for
EnableViewStateMac is true. Allow setting it from a @Page
directive.
svn path=/trunk/mcs/; revision=154493
* ModuleBuilder.cs (DefinedType): Lookup inside the name_cache before creating
the TypeBuilder since the runtime code can't handle a duplicate type name.
svn path=/trunk/mcs/; revision=154486
* class.c (mono_class_init): Postpone coreclr inheritance check
until the end of the initialization (so we can check up the
default ctor manually for the core-clr inheritance rules).
* security-core-clr.c: Add the missing (undocumented) checks on
default constructors when verifying inheritance rules.
svn path=/trunk/mono/; revision=154485
* mini-trampolines.c (mono_aot_trampoline): Remove some dead code.
* aot-runtime.c (mono_aot_patch_plt_entry): New helper function, which only
does the patching if the callee is in the same domain.
* aot-runtime.c mini-trampolines.c: Call mono_aot_patch_plt_entry instead
of mono_arch_patch_plt_entry ().
svn path=/trunk/mono/; revision=154483
* mini.c (create_jit_info): Emit saner debug spew. Now it doesn't
duplicate information and print offsets instead of absolute addresses.
svn path=/trunk/mono/; revision=154481
* reflection.c: Add support for new v4 type
System.Reflection.MonoModule that is the concrete version
of Module which is abstract unver v4.
svn path=/trunk/mono/; revision=154480
Allow using "haiku" as OS in dllmap.
Light as a feather
Beautiful thy name Haiku
Poetry in files
-- Andreas F.
* mono-config.c: Add support for OS "haiku"
* ChangeLog: Fix UTF-8 encoding
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.
svn path=/trunk/mono/; revision=154466
* Binder.cs (BindToMethod): fix the case where we bind to a method
with only one params parameter and that no args are given.
svn path=/trunk/mcs/; revision=154452
2010-03-30 Jb Evain <[email protected]>
* MonoType.cs: let the binder reorder arguments when invoking
params methods.
* Activator.cs (CreateInstance): use BindToMethod instead of
SelectMethod to make sure that params constructors are properly called.
Fixes#591877
in System.Reflection:
2010-03-30 Jb Evain <[email protected]>
* Binder.cs: when invoking a params method, pack the params
arguments before doing the actual invocation.
Fixes#591877
svn path=/trunk/mcs/; revision=154449
* ChannelDispatcher.cs : differentiate EndpointNotFound and
ActionNotSupported so that FaultConverter can create appropriate
fault messages. Removed extra filter condition on null To item.
And create fault messages on *any* server side error, do not let
request client infinitely wait for the response until timeout.
(RunDestinationUnreachableTest() is still not working but it works
when it is SOAP 1.2.)
svn path=/trunk/mcs/; revision=154439
* get.c (field_flags_map): Add empty entries for
HAS_FIELD_MARSHAL, HAS_DEFAULT and HAS_FIELD_RVA.
* main.c (method_flags_map): Add empty entry for HAS_SECURITY.
* util.c (flags): Remove known flags from 'code' in loop. Any
leftover flags are printed as "unknown-flag-xx".
svn path=/trunk/mono/; revision=154432
* ChannelDispatcher.cs : for faults, use fault namespace, not that of
ReplyAction. Added FIXME comment regarding dispatcher.
svn path=/trunk/mcs/; revision=154427
* CustomAttributeBuilder.cs: Fix the calls to IsValidType, some were passing
in DeclaringType instead of PropertyType/FieldType.
* CustomAttributeType.cs (IsValidType): Implement proper checking for reference
types. Fixes#591788.
svn path=/trunk/mcs/; revision=154423
* CustomAttributeBuilder.cs (IsValidType): Call Enum.GetUnderlyingType () for
dynamic enums to avoid crashes in the unmanaged code. Fixes#591800.
svn path=/trunk/mcs/; revision=154419
* TimeSpan.cs: Implement all the overloads of both TryParseExact and
ParseExact methods, by detecting the specific semantic changes in the
parse process, so we can properly re-utilize our new approach. This
included indicating our parser its culture sensitiveness, usage of colon as
day separator fallback or as a precise separator, and other minor bits.
We are only missing composite parsing right now.
svn path=/trunk/mcs/; revision=154415
* AppDomainSetup.cs: Add new (FX4 and SL4) SetCompatibilitySwitches
method (empty is good enough for moonlight testing)
* Environment.cs: Expose MyVideos in Moonlight build
svn path=/trunk/mcs/; revision=154400
Not Just For Monkeys
Common Runtime Is Purpose
For Mono To Be
-- Andreas F.
* configure.in: Add support for Haiku
v1 -> v2:
* Don't set have_visibility_hidden=no (pointed out by Ingo Weinhold)
* Update platform_win32=no -> host_win32=no
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.
svn path=/trunk/mono/; revision=154390
* GridView.cs: main table must be created and added to the
controls collection before any OnRowCreated event is fired.
svn path=/trunk/mcs/; revision=154386
* DirectoryInfo.cs, FileInfo.cs: Moonlight needs the default ctor
to decorate them with [SecuritySafeCritical] for corclr
inheritance rules
svn path=/trunk/mcs/; revision=154364
* gc-internal.h, sgen-gc.c, threads.c, utils/mono-hash.c:
fix the user defined mark interface to pass a pointer
to the object location and not the object itself.
svn path=/trunk/mono/; revision=154357
* HttpWebRequest.cs: when PreAuthenticate is true, don't remove the
existing authorization related headers until we know we have a
replacement. Fixes bug #591633.
svn path=/trunk/mcs/; revision=154348
* reflection.c (mono_method_body_get_object): Release
the method header before the call to CACHE_OBJECT since
this is a macro that returns.
svn path=/trunk/mono/; revision=154343
* TimeSpanTest.cs: New assertion in our exception order test, to
assert that int32 overflow error has higher precedence in both 2.0 and
4.0 profiles.
svn path=/trunk/mcs/; revision=154337
* TimeSpan.cs: We always give higher precedence to the first found
error, but for versions before 4.0 we need to give a higher one to
per-element overflow *specifically* (as opposed to int32 overflow,
which remains the same). This is not needed for 4.0, so report
per-element overflow as a normal error.
This should fix a compatibility case, as well as simplifying the code.
svn path=/trunk/mcs/; revision=154335
* verify.c: Remove old table verification code that has
been superseeded by the new metadata verifier.
* verify.h: Remove mono_image_verify_tables from the public
API.
* pedump.c: Fix for removed bits.
svn path=/trunk/mono/; revision=154332
* invalid_branch_in_between_prefix_and_instruction.il:
* invalid_empty_filter_block.il:
* make_endfilter_test.sh
* make_endfinally_test.sh: Silence which when gsed is not found.
svn path=/trunk/mono/; revision=154331
* verify.c: Allocate stack slows lazily to reduce stack usage
in case of methods with huge stacks. Reduces memory consumption
for mcs yyparse from 459Mb to 1.8Mb.
svn path=/trunk/mono/; revision=154330
* threadpool.c: spin while the threadpool initializes.
* mono-wsq.c: if the WSQ has not been initialized or has been shut
down, don't do anything.
svn path=/trunk/mono/; revision=154321
* ServicePointManager.cs: errors parsing the certificate don't prevent
calling the callback now. Exceptions thrown parsing the certificate
are printed to stderr in case they are library errors.
svn path=/trunk/mcs/; revision=154316
* Makefile.am, mono-hash.c: removed mono-hash.c, since now
mono-ehash.c is GC-aware it doesn't make sense to keep two
implementations.
svn path=/trunk/mono/; revision=154305
* sgen-gc.c: make copy_object () take the address of the
slot holding the reference. This allows saving memory stores
when not needed and it allows keeping track of oldspace->nursery
references for the card table code.
svn path=/trunk/mono/; revision=154303
* MessageFault.cs : Write Subcode element correctly and fix wrong
Code/Value/Subcode element relationship. Give better error message.
svn path=/trunk/mcs/; revision=154279
* XmlReader.cs, XmlQualifiedName.cs : ReadElementContentAs() when
used for qname, treats non-prefixed name as in default namespace.
* XmlReaderCommonTests.cs : added test for ReadElementContentAs() for
qname, with default namespace.
svn path=/trunk/mcs/; revision=154272
** Fixes #564833/580736
* DbDataAdapter.cs (*Command): Fix for .NET compatibility which
supports both type of adapters with/without discrete command
instances.
svn path=/trunk/mcs/; revision=154270
* moonlight_raw_corlib.dll.sources: Add MonoAssembly to ML build
since it contains parts of the Assembly features (partial class)
svn path=/trunk/mcs/; revision=154263
When working on a Git repository that was cloned from a git-svn repo,
such as git://repo.or.cz/mono/afaerber.git, the version is currently
displayed as "tarball" in `mono -V`.
The method used to obtain the revision info from git since r134435 -
searching the log - is independent of git-svn, so no need to check
for .git/svn directory.
* Makefile.am (version.h): Check for pure .git directory only,
fixes SVN revision when using git without git-svn.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=154256
* AssemblyBuilder.cs: Implement v4 GetType.
2010-03-25 Rodrigo Kumpera <[email protected]>
* AssemblyBuilderTest.cs: Add test for v4 GetType and
fix other test to not be broken.
svn path=/trunk/mcs/; revision=154231
* Assembly.cs:
* MonoAssembly.cs: Move a dozen methods from Assembly.cs
to MonoAssembly.cs, so they can either be the concrete impl
on v4 of the only impl on v2.
Add to Assembly.cs versions that throws NotImplementedException.
Mask Assembly.cs as abstract.
svn path=/trunk/mcs/; revision=154229
* mono-semaphore.[hc]: make sure the semaphore calls are restarted if
interrupted. Return 0 on success and -1 on failure on windows.
svn path=/trunk/mono/; revision=154219
* AppDomain.cs: Add new properties that are in both FX4 and SL4
since Moonlight needs them (for testing purpose).
* Environment.cs: FailFast overloads are present in SL4 (and also
needed for testing Moonlight)
svn path=/trunk/mcs/; revision=154209
* gc-internal.h, sgen-gc.c, sgen-gc.h, boehm-gc.c, null-gc.c: New
function mono_gc_invoke_with_gc_lock() which invokes a function
with the guarantee that no collection will occur during its execution.
2010-03-25 Mark Probst <[email protected]>
* mono-hash.c, mono-ehash.c: Fix rehashing with regard to moving
GC. Register root for ehash.
svn path=/trunk/mono/; revision=154207
* Directory.cs: a directory named ":" is legal in unix.
This gets rid of the annoying ":" folder when running
corlib tests.
svn path=/trunk/mcs/; revision=154189
* Assembly.cs: Make it a partial class under !v4.
* MonoAssembly.cs: New type that exists only under
v4. Under v2 it is a part of Assembly.
This is the initial setup to make v4 Assembly an
abstract type where all methods raise exceptions.
svn path=/trunk/mcs/; revision=154179
* reflection.c: Add support for new v4 type
System.Reflection.MonoAssembly that is the concrete version
of Assembly which is abstract unver v4.
svn path=/trunk/mono/; revision=154175
* mini-exceptions.c (get_exception_catch_class): Non catch
clausesdon't have an exception class, so don't decode it. This would
crash with filter clauses.
svn path=/trunk/mono/; revision=154172
* AppDomain.cs: Change default value from null to false for new
(NET_4_0 and SL4) IsCompatibilitySwitchSet. Not sure when (or even
if) it can return null (at least not when testing SL4 RC).
Fix DRT198
svn path=/trunk/mcs/; revision=154170
In class/corlib/System.Collections.Concurrent/:
* ConcurrentDictionary.cs: Enable tracking on SpinLock
* ConcurrentSkipList.cs: Use Spinlock instead of Monitor and
refactor to use a saner lock acquiring scheme.
In class/corlib/Test/System.Collections.Concurrent/:
* ConcurrentDictionaryTests.cs: Renaming in Assert
svn path=/trunk/mcs/; revision=154165
Make sure that trunk builds with DISABLE_JIT, an update to the
PlayStation 3 port.
* mini.c (mini_get_shared_method): this code seems to be necessary
regardless of whether DISABLE_JIT has been defined.
(mono_jit_compile_method_inner): it seems that this method is
required even in full AOT mode, so ifdef out only the pieces that
try to genrate code (the body of code that applies patches to the
code).
(mini_method_compile): do not compile when using DISABLE_JIT.
* mini-ppc.c (mono_arch_get_allocatable_int_vars)
(mono_arch_output_basic_block, mono-arch_emit_exceptions): Do not
compile when DISABLE_JIT is set. 2010-03-24 U-anarquia\miguel <miguel@anarquia>
* reflection.c (mono_reflection_get_custom_attrs_info): Protect
code that uses System.Reflection.Emit in DISABLE_REFLECTION_EMIT.
Expose a few macros that are needed for SR but not SRE to the
world (previous inside the SRE ifdef)
svn path=/trunk/mono/; revision=154158
* SortSequenceContext.cs: Fix OrderByDescending stability.
Based on a patch by Richard Kiene <[email protected]>.
svn path=/trunk/mcs/; revision=154154
* mono-dl.c: (mono_dl_build_path) Take in account the suffix
variable assigned wrt the prefix comparison to concat the final
path for dlopen. Fixes BNC#588143. r:vargaz
svn path=/trunk/mono/; revision=154147
In class/corlib/System.Collections.Concurrent/:
* ConcurrentDictionary.cs: Use SpinLock instead of Monitor
for basket locking
In class/corlib/Test/System.Collections.Concurrent/:
* ConcurrentDictionaryTests.cs: Update behavior of TryAddDuplicateTest
The method returns false and doesn't throw exception anymore
svn path=/trunk/mcs/; revision=154138
* HttpListenerManager.cs : remove consumed HttpListenerContext from
the pending queue. Compare "wsdl" request in case insensitive
manner. Patch by Matt Dargavel.
svn path=/trunk/mcs/; revision=154120
* ChannelDispatcher.cs : return EndpointDispatcher at initializing
for internal use. Add some locks. Patch by Matt Dargavel.
* ServiceHostBase.cs : if there is an existing ChannelDispatcher
for the same endpoint URI, reuse it. Patch by Matt Dargavel.
svn path=/trunk/mcs/; revision=154114
* TransportSecurityBindingElementTest.cs : new test.
* System.ServiceModel.dll.sources : move back all the Features tests
that were once disabled (now we can handle mannerless tests).
svn path=/trunk/mcs/; revision=154113
* HttpRequestContext.cs : apply the patch by Matt Dargavel, which is
supposed to provide detailed 400 error message.
svn path=/trunk/mcs/; revision=154112
* ChannelListenerBase.cs, TransactionFlowBindingElement.cs: fix
GetProperty<T>() bug that fails to retrieve properties. (This may
be rewritten later if an ongoing change proposal is to take place.)
svn path=/trunk/mcs/; revision=154107
* SecurityManager_2_1.cs: Add an internal HasElevatedPermissions
property to mscorlib since the "real" (i.e. visible) one in
System.Windows.dll is not accessible by most code.
svn path=/trunk/mcs/; revision=154099
* Makefile.am (BASE_TEST_CS_SRC): Remove make-imt-test.cs, it is not a test.
* test-runner.cs: Add an option to run the tests with different optimization
sets.
* Makefile.am: Make it possible to run the normal+gshared tests using the managed
test runner by passing the M=1 option to make.
svn path=/trunk/mono/; revision=154068
* mono-semaphore.h: MONO_SEM_WAIT() return value inverted when using
the windows API.
* mono-semaphore.c: handle INFINITE timeout.
svn path=/trunk/mono/; revision=154035
* TimeSpanTest.cs: It seems somebody forgot to actually mark the
TestParse method with TestAttribute. Also, add a bunch of asserions
to reflect the new behaviour for 4.0 in the needed test cases.
svn path=/trunk/mcs/; revision=154034
the first 7 digits, and more than that would cause a FormatException -
starting in 4.0 we need to throw an OverflowException, however. Also,
for hours/minutes/seconds, two or more preceding zeroes will cause an
OverflowException as well.
2010-03-22 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=154033
* thread-types.h: Add mono_thread_resume_interruption.
* threads.c: Add mono_thread_resume_interruption, this
function should be called after the last protected handler
found at interruption time has finished.
svn path=/trunk/mono/; revision=154032
* threads.c (ves_icall_System_Threading_Thread_ResetAbort):
Check MonoInternalThread's ::state instead of ::abort_exc
since the later can be lazily created.
This is specially problematic when running a finally block
under AbortRequested state. ResetAbort must work, but the
abort_exc object has not been created because interruption
has not began.
svn path=/trunk/mono/; revision=154031
* threads.h: Add wapi_self_interrupt.
* wthreads.c: Add wapi_self_interrupt which puts the current
thread in interrupted state.
* wthreads.c (wapi_thread_clear_wait_handle): Previous handle
can possibly be NULL if an async interrupt cleared it.
This is safe because it is only async cleared if running inside
a handler block.
svn path=/trunk/mono/; revision=154030
SIGIO is not part of POSIX, and Haiku does not support it.
map.c contains checks to handle this, but old-map.c doesn't.
Its generator make-map no longer exists, so let's insert the
check manually.
2010-03-23 Andreas Faerber <[email protected]>
* old-map.c (map_Mono_Posix_Signals): Fix build for platforms where
SIGIO is not defined (Haiku).
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=154029
* method-to-ir.c (mono_method_to_ir): Handle the failure of
mono_method_signature ().
* mini-trampolines.c (mono_delegate_trampoline): Ditto.
* mini.c (mini_method_compile): Get the signature of cfg->method early with
error checking, so later calls do not need error checking.
svn path=/trunk/mono/; revision=154028
* exceptions-amd64.c: Add support for OpenBSD which has no UCONTEXT_GREGS.
* mini-amd64.h: Enable MONO_ARCH_USE_SIGACTION on OpenBSD as well.
svn path=/trunk/mono/; revision=154018
* mini-exceptions.c (mono_handle_exception_internal): Don't
check try_end for archs different than s390.
* mini.c (create_jit_info): Don't crash if the finallt block is
* the last one.
svn path=/trunk/mono/; revision=154014
* driver.c (mono_main): Don't free global codeman under linux
* since glic now peeks at code on stack for more archs than just amd64.
svn path=/trunk/mono/; revision=154013
* locales.c: Its possible for CFStringGetCStringPtr
to return null and not convert encodings. Use
CFStringGetCString instead.
svn path=/trunk/mono/; revision=154012
* TimeSpan.cs: Create a new Parser.Execute method for 4.0 -and use the
previous impl for 2.0-, to handle the new semantics gracefully -
specifically the new 'dd:hh:mm:ss' format and related bits, instead of
of a ton of #ifdef blocks. Remove any 4.0 bits from the previous
version as well, to keep it clean.
svn path=/trunk/mcs/; revision=154005
* class-internals.h, class.c, object.c: introduce compressed
interface bitmaps (for now only under small config): this saves
about 600 KB of runtime memory on gmcs bootstraps or monodevelop
startups.
svn path=/trunk/mono/; revision=154002
* mono-debug.c: don't try to get the emthod ehader, it causes a
deadlock and it is not used for anything anymore.
svn path=/trunk/mono/; revision=153983
* Directory.cs, DirectoryInfo.cs: Disble new NET_4_0 API used in
SL4 until we have elevated trust working correctly (since they
are *not* decorated as [SecurityCritical])
svn path=/trunk/mcs/; revision=153968
AF_SNA, AF_DECnet and SOCK_RDM are not part of POSIX, and Haiku does not
supply them.
Check for their presence before using them, as already done for AF_IPX.
2010-03-21 Andreas Faerber <[email protected]>
* socket-io.c: Don't depend on AF_SNA, AF_DECnet,
SOCK_RDM.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=153961
* WebClient.cs: fix handling of query string, whether it comes from
the address used or is part of the QueryString.
svn path=/trunk/mcs/; revision=153960
* mini-ppc.c (mono_arch_emit_exceptions): Avoid an assert in ppc_patch () for
some large methods with lots of exception handlers. Fixes#440924.
svn path=/trunk/mono/; revision=153953
* SiteMapNode.cs: avoid calling ChildNodes twice in HasChildNodes.
Cache child nodes in the ChildNodes property.
2010-03-20 Marek Habersack <[email protected]>
* XmlSiteMapProviderTest.cs: AreEqual should have expected result first
and actual next - swapped parameters in RootNode_2_OnLoad
svn path=/trunk/mcs/; revision=153937
2010-03-19 Sebastien Pouliot <[email protected]>
* Timer.cs: Removed old NET_2_0 defines and added some new
MOONLIGHT defines (needed for the client stack)
In System.Net:
2010-03-19 Sebastien Pouliot <[email protected]>
* AuthenticationManager.cs: Internal type for Moonlight.
Add BasicClient, DigestClient, NtlmClient for NET_2_1 since
this applies to both monotouch and moonlight (client stack).
Removed unneeded NET_2_0 defines
* CookieContainer.cs: For Moonlight it needs to be internal in
System.dll and public in System.Net.dll. Removed unneeded NET_2_0
defines
* HttpContinueDelegate.cs: Internal type for Moonlight.
* HttpRequestCreator.cs: Remove a MOONLIGHT define
* HttpStatusCode.cs: For Moonlight it needs to be internal in
System.dll and public in System.Net.dll
* HttpWebRequest.cs: Internal type for Moonlight. Change S.Config
to NET_2_1 defines (applies to both monotouch and moonlight).
Removed unneeded NET_2_0 and NET_1_1 defines
* HttpWebResponse.cs: Internal type for Moonlight. Removed
unneeded NET_2_0 defines
* IAuthenticationModule.cs: Internal type for Moonlight.
* ICertificatePolicy.cs: Internal type for Moonlight.
* ICredentialPolicy.cs: Internal type for Moonlight. Removed
unneeded NET_2_0 defines
* IWebRequestCreate.cs: For Moonlight it needs to be internal in
System.dll and public in System.Net.dll
* ServicePoint.cs: Internal type for Moonlight. Change S.Config
to NET_2_1 defines (applies to both monotouch and moonlight)
* ServicePointManager.cs: Remove a MOONLIGHT define
* WebException.cs: For Moonlight it needs to be internal in
System.dll and public in System.Net.dll. Removed unneeded NET_2_0
defines
* WebHeaderCollection.cs: Internal type for Moonlight. Removed
unneeded NET_2_0 defines
* WebRequest.cs: Internal type for Moonlight. Change S.Config
to NET_2_1 defines (applies to both monotouch and moonlight)
* WebResponse.cs: Internal type for Moonlight. Removed unneeded
NET_2_0 defines
In System.Net.Sockets:
2010-03-19 Sebastien Pouliot <[email protected]>
* Socket.cs: Remove some NET_2_0 defines (using) and add a few
MOONLIGHT defines needed to reuse Socket in the client http stack
* Socket_2_1.cs: Remove some MOONLIGHT defines
* SocketAsyncEventArgs.cs: For Moonlight check policy if outside
System.dll (the client stack use sockets with it's own web
xdomain policy)
In System:
2010-03-19 Sebastien Pouliot <[email protected]>
* Uri.cs: Remove some MOONLIGHT defines
In .:
2010-03-19 Sebastien Pouliot <[email protected]>
* moonlight_*_System.dll.sources: Bring extra types so we can
build a full, managed, internal HTTP stack to be reused for SL3+
* Makefile: Add a INSIDE_SYSTEM define when compiling System.dll
to makes it possible to rebuild the same types in System.Net.dll
svn path=/trunk/mcs/; revision=153916
2010-03-19 Sebastien Pouliot <[email protected]>
* CollectionDebuggerView.cs: Change to internal so we can avoid
a duplicating the type in assemblies that have [InternalsVisibleTo]
In System.Collections.Generic:
2010-03-19 Sebastien Pouliot <[email protected]>
* CollectionDebuggerView.cs: Change to internal so we can avoid
a duplicating the type in assemblies that have [InternalsVisibleTo]
svn path=/trunk/mcs/; revision=153915
* TimeSpan.cs: Move the error detection code to a separate method.
This way depending on the version we decide what error takes
precedence: OverlowException in 2.0, and FormatException in 4.0. This
also lets us keep the Execute() code cleaner and easier to understand.
svn path=/trunk/mcs/; revision=153911
* class.c: setup_interface_offsets() refactor to not call
mono_class_get_implemented_interfaces () more times than needed and
to reduce the runtime memory requirements to be O(num_interfaces)
instead of O(max_interface_id).
svn path=/trunk/mono/; revision=153908
* mini-trampolines.c (common_call_trampoline): Remove the condition guarding the
call site patching code, it doesn't appear to be needed.
svn path=/trunk/mono/; revision=153893
* mini-generic-sharing.c: Add infrastructure for partial sharing, ie.
sharing generic methods whose type arguments are a mix of reference and
non-reference types. Not yet turned on.
* mini.c (mini_get_shared_method): New helper function to return
the method which will be compiled/registered in the JIT tables when doing
generic sharing.
(mono_domain_lookup_shared_generic): Moved to mini.c from mini-generic-sharing.c,
use mini_get_shared_method ().
* mini.c (mini_method_compile): Register the same method which is compiled when
doing generic sharing.
* mini.c aot-compiler.c aot-runtime.c: Add support for partial sharing.
* generics.cs: Add partial sharing tests.
svn path=/trunk/mono/; revision=153888
* HttpWebRequest_2_1.cs: AllowWriteStreamBuffering getter/setter
throws NIE by default (must be overridden). Revert Accept and
ContentType behavior to SL2 (identical to SL4 but different from
SL3).
* WebClient_2_1.cs: Initialize UseDefaultCredentials to true. Set
the properties when creating a new WebRequest
svn path=/trunk/mcs/; revision=153884
* WebHttpBehavior.cs : set FilterPriority to make it in higher
priority than conflicting endpoints (such as mex endpoint).
svn path=/trunk/mcs/; revision=153876
* mini.h : Changed the SIMD_VERSION* enum values to match those in Mono.Simd.AccelMode.
Add an enum value that or's all possable values together. Add an enum value
that marks the end of the used bit indexes.
* mini-amd64.c : Make changes to match the changes in mini.h
* mini-x86.c : Make changes to match the changes in mini.h
* simd-intrinsics.c : Reorder the SimdIntrinsc struct to add more bits to
simd_version to support more simd versions. Changed the name of
simd_version to simd_version_flags to make it more intuitive that
it now contains bit flags. Reordered the *_intrinsics arrays to
match the changes above. Changed emit_intrinsics() to use the new
setup mentioned above.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=153875
* TimeSpan.cs: Put the error info in a single field, to make it easier
to preserve the very first error we get while parsing, and discard the
next ones. This will help us in a pair of cases where we were
overriding the previous error and reporting the wrong exception.
svn path=/trunk/mcs/; revision=153849
2010-03-18 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Add TypeForwardTo for Aes on NET_4_0
In System.Security.Cryptography:
2010-03-18 Sebastien Pouliot <[email protected]>
* Aes.cs: Build here before NET_4_0 (or MOONLIGHT) otherwise
build only if compiled from mscorlib.dll
svn path=/trunk/mcs/; revision=153840
* ConditionalWeakTable.cs:
* ReferenceAssemblyAttribute.cs:
* TypeForwardedFromAttribute.cs:
Build them into Moonlight too (SL4)
svn path=/trunk/mcs/; revision=153839
* FtpWebResponse.cs:
* FtpWebRequest.cs: for non-data operations, make sure we send the
QUIT command upon completion when KeepAlive is false.
Fixes bug #589305.
svn path=/trunk/mcs/; revision=153825
* StreamReaderTest.cs: test for bug 589236. The detected encoding is
different from the one provided in the ctor.
svn path=/trunk/mcs/; revision=153802
* StreamReader.cs: if the detected encoding is different from the
provided to the constructor, adjust the decoded buffer size if
needed. Fixes bug #589236.
svn path=/trunk/mcs/; revision=153799
* mini-*.c (mono_arch_output_basic_block): Record try block
* holes on all remaining archs. Alpha and hppa maintainers, please stand up.
svn path=/trunk/mono/; revision=153780
* mini-ppc.c (mono_arch_build_imt_thunk): Always save and restore r11 since it
is needed even when fail_tramp!=NULL.
svn path=/trunk/mono/; revision=153768
* WsdlExporter.cs : allow identical contract while exporting a set
of endpoints, while reject identical ones when calling
ExportEndpoint() individually.
svn path=/trunk/mcs/; revision=153763
* MetadataExchangeBindings.cs : use WSHttpBinding (it works if other
parts gets fixed).
* MetadataExchangeBindingsTest.cs : new test.
* System.ServiceModel_test.dll.sources :
add MetadataExchangeBindingsTest.cs.
svn path=/trunk/mcs/; revision=153762
* ServiceHostBase.cs : use namespace for mex binding comparison, to
cover other bindings than http (such as https).
* WSHttpBindingBase.cs : add some comment.
svn path=/trunk/mcs/; revision=153724
* ConfigUtil.cs, StandardBindingCollectionElement.cs,
MexHttpsBindingCollectionElement.cs,
MexHttpBindingCollectionElement.cs : use GetDefault() in
BindingCollectionElement to create a Binding, instead of activator
immediately. And for mex bindings, use MetadataExchangeBindings.
svn path=/trunk/mcs/; revision=153723
* XmlTextWriter2.cs : fix cosmetic 2.0 compatibility issue in
WriteStartAttribute() which allows "" for prefixed xmlns and brings
incompatibility with XmlTextWriter class.
svn path=/trunk/mcs/; revision=153709
* TimeSpan.cs: In 4.0 the Parse/TryParse methods always try to use its
associated CultureInfo.NumberFormat.NumberDecimalSeparator value, as well as
providing backwards compatibility by also supporting '.' as the
separator.
svn path=/trunk/mcs/; revision=153693
* mini.h (MonoBasicBlock): Add native_length field.
* mini.h (MonoCompile): Add try_block_holes field.
* mini.h (MonoInst): Add exception_clause pointer to
the data union.
* mini.c (mono_codegen): Calculate MonoBasicBlock::native_length.
* mini.c (mono_cfg_add_try_hole): New function to register possible
holes in try blocks.
* mini.c (create_jit_info): Fill in the holes information.
* mini-exceptions.c: Verify for holes when checking if an IP is covered
by a try block.
* method-to-ir.c: Add the EH clause to the CALL_HANDLE instruction.
svn path=/trunk/mono/; revision=153686
* domain-internals.h: Add MonoTryBlockHoleJitInfo struct and
associated changes to support holes in the protected range of a
try block.
* domain.c: Add mono_jit_info_get_try_block_hole_table_info, which
retrieves the holes table from a given MonoJitInfo.
svn path=/trunk/mono/; revision=153685
2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* Makefile: Add System.Xml.Serialization to the Moonlight build.
In class/System.Xml.Serialization/Assembly:
2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* AssemblyInfo.cs: Added.
In class/System.Xml.Serialization:
2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* Makefile:
* System.Xml.Serialization.dll.sources:
* moonlight_raw_System.Xml.Serialization.dll.sources: Added.
In class/System.Xml.Serialization/System.Xml.Serialization:
2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* XmlMapping.cs:
* XmlAttributes.cs:
* XmlSerializer.cs:
* XmlTypeMapping.cs:
* XmlAttributeOverrides.cs:
* XmlSerializationWriter.cs:
* XmlSerializationReader.cs:
* XmlSerializerNamespaces.cs:
* XmlSerializationGeneratedCode.cs: Added a partially stubbed out version of
System.Xml.Serialization.dll, required for the Silverlight test suite to
compile. A real implementation based on the same classes in System.Xml should
eventually be done.
svn path=/trunk/mcs/; revision=153674
* object.h, object-internals.h, object.c, icall.c, gc-internal.h,
debug-helpers.c, cominterop.c, process.c, sgen-gc.c, socket-io.c:
hide the contents of the MonoString and MonoArray structs from the
public API. Change the accessor macros to accessors functions where
needed. Adjusted the array API to allow for pointer-sized lengths and
starting positions, so 64 bit arrays can be optionally provided in an
API compatible way if needed on 64 bit systems.
svn path=/trunk/mono/; revision=153665
* class-internals.h, class.c, loader.c, marshal.c, metadata.c,
reflection.c: the MonoMethodNormal struct is now unused, so remove it.
svn path=/trunk/mono/; revision=153643
* debugger-agent.c: Simplify the way breakpoints are processed by removing
the 'pending' flag. This fixes support for appdomains too.
svn path=/trunk/mono/; revision=153629
range -this is, 23-, then it is processed as days instead - opposed to
2.0, where we are throwing an OverflowException.
2010-03-15 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=153617
* TimeSpan.cs: Make the colon parsing optional -and adjust the name to
reflect it-, so we can properly parse the case where we only have the
hours and minutes. This subtle bug was hidden before, since a string
such "10:12" would be parsed correctly, but "10:12 " (trailing white
space) was getting a FormatException.
svn path=/trunk/mcs/; revision=153611
* class-internals.h: remove the method header from MonoMethod since
from now on it will be transient. We have a header pointer for method
wrappers, since in that case we need to keep track of it. For this
reason, all the Reflection.Emit generated methods use MonoMethodWrapper
structs now. The same happens with MonoMethodInflated.
* class.c: reset the sre_method flag for inflated method structures:
this makes the code that cares look at the header in the MonoMethodInflated
structure.
* loader.c: lookup the method header in the appropriate field now that
it is removed from MonoMethod.
* metadata-internals.h: add a flag to the method header to know if it
can be freed inside mono_metadata_free_mh ().
* method-builder.c: updates after moving the header field from
MonoMethod to MonoMethodWrapper.
* reflection.c: MonoMethods generated from Reflection.Emit use
MonoMethodWrapper structs if they need a method header now (later take
advantage of this and remove all the current unsafe uses of method_aux_hash).
* metadata.c: make method header parsing not leak when verification
fails. Alloc it with g_malloc() and free it in mono_metadata_free_mh().
These changes save a few hundred KB of runtime memory in a mcs
bootstrap or a monodevelop startup.
svn path=/trunk/mono/; revision=153600
* ServiceEndpointCollection.cs : those overrides are rather to check
null arguments, not to skip contract duplicates.
svn path=/trunk/mcs/; revision=153589
* ServiceHostBase.cs : do not reject endpoints with an identical
contract to existing ones but with different binding, address or
listen URI.
svn path=/trunk/mcs/; revision=153584
* net_4_0_System.ServiceModel.dll.sources:
more types from Sys.SM.Web.dll in 4.0 profile here.
* net_2_0_System.ServiceModel.Web.dll.sources,
common_System.ServiceModel.Web.dll.sources : UriTemplates are
moved to Sys.SM.dll in 4.0 profile.
svn path=/trunk/mcs/; revision=153562
* XmlSchemaComplexType.cs : quick fix for bug #584664. Fill base
content type particles in prior to filling its own.
* XmlSchemaValidatorTests.cs : added test for bug #584664.
* 584664b.xsd, 584664a.xml, 584664b.xml, 584664a.xsd: new test files
by Florian Haag.
svn path=/trunk/mcs/; revision=153559
* WebClient_2_1.cs: Directly set 'progress' delegate field
* WebRequest_2_1.cs: Avoid using reflection (since it was not
really needed anyway)
svn path=/trunk/mcs/; revision=153521
2010-03-12 Sebastien Pouliot <[email protected]>
* Tuple.cs, Tuples.cs: Add them to NET_2_1 since they are parts
of SL4
In System.Collections:
2010-03-12 Sebastien Pouliot <[email protected]>
* IStructuralComparable.cs, IStructuralEquatable.cs: Add them to
NET_2_1 since they are parts of SL4
In System.IO:
2010-03-12 Sebastien Pouliot <[email protected]>
* File.cs: Enable some NET_4_0 features in NET_2_1 since they are
part of SL4. Throw a SecurityException in Moonlight in non-debug
builds until we're ready for elevated trust.
svn path=/trunk/mcs/; revision=153506
* BaseMessagesFormatter.cs : add internal OperationFormatter type
for moonlight/silverlight-sdk compatibility. It mostly wraps
the existing the return value by BaseMessagesFormatter.Create().
* DispatchOperation.cs, ClientOperation.cs, EndpointDispatcher.cs:
use above new type.
svn path=/trunk/mcs/; revision=153493
* simd-intrinsics.c (simd_intrinsic_emit_getter): Don't emit shuffle opcodes
when using LLVM, LLVM generates it itself when needed.
* mini-llvm-cpp.cpp (mono_llvm_build_aligned_load): New helper function.
* mini-llvm.c: Use an unaligned load for OP_LOADX_MEMBASE. Add zero extension
to some OP_EXTRACT_ opcodes. Fix the naming of some sse intrinsics. Fix
OP_ANDNPS/OP_ANDNPD.
svn path=/trunk/mono/; revision=153486
* tramp-x86.c (mono_arch_create_monitor_enter_trampoline_full): Use 'code' for
the pc instead of 'buf'. Fix the call to mono_arch_flush_icache ().
(mono_arch_create_monitor_exit_trampoline_full): Ditto.
svn path=/trunk/mono/; revision=153484
2010-03-11 Sebastien Pouliot <[email protected]>
* Debug_2_1.cs: Change type to static to match SL4
In .:
2010-03-11 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.dll.sources: Add existing files that are
part of SL4
In System.Collections.Generic:
2010-03-11 Sebastien Pouliot <[email protected]>
* ISet.cs: Add NET_2_1 since this is part of SL4
svn path=/trunk/mcs/; revision=153477
* TypeBuilder.cs (GetMethod): Allow type to be the typebuilder
* itself.
Add better error checking to GetConstructor and GetField.
Fixes#587106.
svn path=/trunk/mcs/; revision=153468
2010-03-10 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Remove the use of reflection to check
xdomain poilicy on sockets (since the policy code now resides in
System.Net.dll)
In System.Net:
2010-03-10 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Add types from (new internal)
System.Net.Policy (moved from System.Windows.Browser.dll)
* Makefile: Add reference to System.Xml.dll to parse policies
In System.Net/System.Net.Policy:
2010-03-10 Sebastien Pouliot <[email protected]>
* BaseDomainPolicy.cs, ClientAccessPolicy[Parser].cs,
CrossDomainPolicyManager.cs, FlashCrossDomainPolicy[Parser].cs,
ICrossDomainPolicy.cs, NoAccessPolicy.cs, PolicyDownloadPolicy.cs,
SiteOfOriginPolicy.cs: Moved from System.Net.dll with namespace
and minor build adjustments.
svn path=/trunk/mcs/; revision=153396
in System.ServiceModel.Web:
* JavaScriptReader.cs : moved from Sys.Json/JsonReader.cs.
* net_2_0_System.ServiceModel.Web.dll.sources,
net_2_1_raw_System.ServiceModel.Web.dll.sources :
move JsonReader.cs as Sys.R.S.Json/JavaScriptReader.cs
in System.Json:
* JsonReader.cs : moved to Sys.SM.Web/Sys.R.S.Json.
* System.Json.dll.sources : remove JsonReader.cs.
svn path=/trunk/mcs/; revision=153393
in System.ServiceModel.Web:
* JavaScriptObjectDeserializer.cs : new internal file, which is
used by System.Json (for moonlight compatibility).
* net_2_0_System.ServiceModel.Web.dll.sources,
net_2_1_raw_System.ServiceModel.Web.dll.sources :
add JavaScriptObjectDeserializer.cs and JsonReader in Sys.Json
(which is to be moved later).
* AssemblyInfo.cs: added InternalVisibleTo(System.Json). Also added
dummy 2.0 for easy testing.
in System.Json:
* JsonValue.cs : use Sys.SM.Web.dll's JavaScriptObjectDeserializer
for silverlight sdk / moonlight compatibility.
* JsonReader.cs : renamed to JavaScriptReader (for disambiguation in
Sys.SM.Web.dll). Now it is native-type based and used by the above
deserializer.
* Makefile : reference System.Xml and System.ServiceModel.Web (for
moonlight compatibility).
* AssemblyInfo.cs : use the same pub key in 2.0 (dummy), to ease
testing locally.
svn path=/trunk/mcs/; revision=153392
* object-internals.h (_G_BOOLEAN_EXPR): Fix the definition of this to explicitly
convert to a boolean, recent gcc versions compile this differently.
svn path=/trunk/mono/; revision=153371
2010-03-05 Martin Baulig <[email protected]>
Add support for aborting invocations.
* IInvokeAsyncResult.cs: New file.
(IInvokeAsyncResult): New public interface; derives from
`IAsyncResult' and contains an Abort() method.
* Connection.cs
(Connection.VM_BeginInvokeMethod): Return the `id'.
(Connection.VM_AbortInvoke): New method.
* ObjectMirror.cs
(ObjectMirror.AbortInvoke): New internal static method.
svn path=/trunk/mcs/; revision=153336
2010-03-05 Martin Baulig <[email protected]>
Add support for aborting invocations.
* debugger-agent.c
(InvokeData): Added `InvokeData *last_invoke'.
(DebuggerTlsData): Renamed `invoke' into `pending_invoke' and
added a new `invoke' field to keep the `InvokeData *' throughout
the invocation.
(ErrorCode): Added `ERR_NO_INVOCATION'.
(CmdVM): Added `CMD_VM_ABORT_INVOKE'.
(mono_debugger_agent_handle_exception): Don't report any exception
if an abort was requested.
(invoke_method): Store the `InvokeData *' in `tls->invoke'; reset
a thread abort if necessary.
(vm_commands): Implement `CMD_VM_ABORT_INVOKE'.
svn path=/trunk/mono/; revision=153335
* HttpListenerManager.cs : For ASP.NET, use correct GenericIdentity
type, and use null password unless we find a chance to get password
in ASP.NET HttpContext.
svn path=/trunk/mcs/; revision=153310
* HttpListener.cs:
* HttpListenerRequest.cs:
* ListenerAsyncResult.cs:
* HttpConnection.cs: make sure there is no pending input when reusing
the connection.
svn path=/trunk/mcs/; revision=153300
* HttpListenerContext.cs: split the auth header in 2 parts.
* HttpListener.cs: backported SelectAuthenticationScheme and
added new InternalEndGetContext used for connections that require
authentication.
* ListenerAsyncResult.cs: allow this object to be just a forwarder
when nesting connections for authentication purposes.
Fixes bug #585455.
svn path=/trunk/mcs/; revision=153288
* method-to-ir.c: Store the initial basic block returned by
* mono_basic_block_split
so we can release the whole list and not just the first one.
Free it in more places as well.
svn path=/trunk/mono/; revision=153282
* verify.c: Store the initial basic block returned by
* mono_basic_block_split
so we can release the whole list and not just the first one.
svn path=/trunk/mono/; revision=153281
In class/corlib/:
* corlib_test.dll.sources: Add System.Threading/SpinLockTests.cs
In class/corlib/System.Threading/:
* SpinLock.cs: Update to use ticket spinlock algorithm
In class/corlib/Test/System.Threading/:
* SpinLockTests.cs: Added unit tests for SpinLock
svn path=/trunk/mcs/; revision=153273
* sgen-gc.c (scan_needed_big_objects): Call drain_gray_stack () to avoid
uncontrolled growth of the gray stack.
* sgen-gray.c: Rewrite this so it behaves like a stack, not a queue, so recently
added items are removed first, improving cache locality. Avoid freeing queue
segments in the fast path, use the list of segments as the free list, truncate
it to its max size at the start of collection.
svn path=/trunk/mono/; revision=153264
* method-to-ir.c (mono_method_to_ir): Fix the handling of loader errors in
the delegate ctor optimization when using sgen.
svn path=/trunk/mono/; revision=153263
This reverts commit 4166ce286e8133828521b62d654d8d08ca62e6aa.
Revert this too as the corresponding fix was reverted.
svn path=/trunk/mono/; revision=153256
* branch-opts.c (mono_if_conversion): Disable one of the cases when deadce
is disabled. Fixes#582322.
* iltests.il.in: Add a test.
svn path=/trunk/mono/; revision=153219
* processes.c: made ShellExecuteEx actually work when the file name to
execute is quoted. Display a message intead of blindly ignoring the
result of g_shell_parse_argv(). Fixes bug #385497.
svn path=/trunk/mono/; revision=153208
* monitor.c (mono_monitor_exit): Raise an exception if the object is not locked,
MS does this from net 2.0 onwards.
svn path=/trunk/mono/; revision=153197
* tramp-amd64.c (mono_arch_create_monitor_exit_trampoline_full): Delegate
the handling of obj->synchronization == null and owner != current thread to
mono_monitor_exit ().
svn path=/trunk/mono/; revision=153196
* appdomain.c, domain-internals.h, domain.c, object.c:
make class_vtable_hash into an array to reduce memory usage.
svn path=/trunk/mono/; revision=153194
* mempool.c, class-internals.h, class.c, icall.c, metadata.c,
object-internals.h, object.c, reflection.c, threadpool.c:
reduce resource usage when the small config is selected.
In particular, up to 64K of methods/fields/properties/events
are allowed and "other" methods in events are ignored.
svn path=/trunk/mono/; revision=153185
Author: Marek Habersack <[email protected]>
Date: Sat Mar 6 03:37:53 2010 +0100
2010-03-06 Marek Habersack <[email protected]>
* CompilerCollection.cs: in the 4.0 profile, the latest C#
standard is the compiler's default.
2010-03-06 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: in the 4.0 profile, the latest C#
standard is the default one.
2010-03-06 Marek Habersack <[email protected]>
* RequestValidatorTestGenerated.cs: added
* RequestValidator.cs: added
2010-03-06 Marek Habersack <[email protected]>
* TestWorkerRequest.cs: added overloads of GetRawUrl and
GetUriPath which make sure that the returned paths do not contain
more than one leading / character.
* TestRunItem.cs: added new TestRunData property - to contain
per-appdomain test run data.
* TestCallback.cs: added a TestRunItem parameter.
* StandaloneTest.cs: runner object is created for each test item
now.
Added test progress feedback.
* ITestRunner.cs: added two properties, TestRunData - to return
collected test result data, if any, and Domain which returns the
current AppDomain.
2010-03-06 Marek Habersack <[email protected]>
* RequestValidatorTest.cs: added
2010-03-06 Marek Habersack <[email protected]>
* HttpRequest.cs: cache RawUrl value.
Added new internal property, PathNoValidation, which returns
request path without validating it.
Implemented 4.0 extensible validation.
* HttpApplication.cs: Pipeline () validates the request path, if
new validation mode is enabled, before doing anything else.
Added a generic LoadType overload which checks whether the loaded
type, if any, derives from the type specified in the method's
specialization.
2010-03-06 Marek Habersack <[email protected]>
* RequestValidator.cs: added
* RequestValidationSource.cs: added
2010-03-06 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: do not use Request.Path - it may
fail because of invalid web.config file, use
Request.PathNoValidation instead.
* VersionConverter.cs: added
* PropertyHelper.cs: added a Version converter helper.
* HttpRuntimeSection.cs: added 4.0 properties -
RequestPathInvalidCharacters, RequestValidationType and
RequestValidationMode.
svn path=/trunk/mcs/; revision=153172
* XmlDataSource.cs: reload document when one of Data, DataFile,
Transform or TransformFile properties is set. Fixes bug
#585968. Fix based on patch from Jeffrey Alvarez
<[email protected]>, thanks.
svn path=/trunk/mcs/; revision=153167
* TemplateControlCompiler.cs: AssignPropertyForResources localizes
a property even if the Localized attribute is absent. If the
attribute is present, it checks its IsLocalizable property to
decide if localization should be performed. Fixes bug #585933
svn path=/trunk/mcs/; revision=153164
2010-03-05 Martin Baulig <[email protected]>
Add support for aborting invocations.
* IInvokeAsyncResult.cs: New file.
(IInvokeAsyncResult): New public interface; derives from
`IAsyncResult' and contains an Abort() method.
* Connection.cs
(Connection.VM_BeginInvokeMethod): Return the `id'.
(Connection.VM_AbortInvoke): New method.
* ObjectMirror.cs
(ObjectMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
instead of `IAsyncResult'. Connection.VM_BeginInvokeMethod() now
returns its id, store it in `InvokeAsyncResult.ID' because we need
to pass it to VM_AbortInvoke().
(ObjectMirror.AbortInvoke): New internal static method.
* StructMirror.cs
(StructMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
instead of `IAsyncResult'.
* TypeMirror.cs
(TypeMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
instead of `IAsyncResult'.
svn path=/trunk/mcs/; revision=153125
2010-03-05 Martin Baulig <[email protected]>
Add support for aborting invocations.
* debugger-agent.c
(InvokeData): Added `InvokeData *last_invoke'.
(DebuggerTlsData): Renamed `invoke' into `pending_invoke' and
added a new `invoke' field to keep the `InvokeData *' throughout
the invocation.
(ErrorCode): Added `ERR_NO_INVOCATION'.
(CmdVM): Added `CMD_VM_ABORT_INVOKE'.
(mono_debugger_agent_handle_exception): Don't report any exception
if an abort was requested.
(invoke_method): Store the `InvokeData *' in `tls->invoke'; reset
a thread abort if necessary.
(vm_commands): Implement `CMD_VM_ABORT_INVOKE'.
svn path=/trunk/mono/; revision=153124
2010-03-04 David S. Miller <[email protected]>
* include/private/gc_locks.h: Add SPARC implementations of
GC_compare_and_exchange and GC_memory_barrier.
In mono/mini/:
2010-03-04 David S. Miller <[email protected]>
* mini-sparc.h: Always use MONO_ARCH_USE_SIGACTION. Linux kernels
that don't provide the siginfo in the second signal handler argument
are buggy, and this has been fixed for years.
* mini.h (GET_CONTEXT): Remove __sparc__ special case.
(SIG_HANDLER_SIGNATURE, SIG_HANDLER_PARMS): Likewise.
svn path=/trunk/mono/; revision=153114
* ObjRef.cs (GetRealObject): Revert previous patch as it doesn't
cope well with CAD remoting, which doesn't flag well-known types.
svn path=/trunk/mcs/; revision=153105
*BigInteger.cs: The DLR version is close to useless. Replaced
by the initial bits of something that is API compliant.
svn path=/trunk/mcs/; revision=153061
* loader.c: The marshal specs are freed at the end of the call
but it explicitly frees the strings as well as the container,
so we need to dup them too to avoid referencing free'd memory.
svn path=/trunk/mono/; revision=153045
* icall-def.h:
* icall.c: Add a new private internal icall to construct
an object from its type without running the ctor.
svn path=/trunk/mono/; revision=153044
Mono.Options instead (as Mono.GetOptions will be removed).
* Makefile: Remove Mono.GetOptions.dll reference.
* svcutil.exe.sources: Add Options.cs to the build.
svn path=/trunk/mcs/; revision=153039
* BuildManager.cs: do less work in the static constructor
2010-03-04 Marek Habersack <[email protected]>
* RuntimeHelpers.cs: added. Contains methods moved here from
HttpRuntime, so that initialization sequence of various objects is
independent of HttpRuntime.
2010-03-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: do less work in the static constructor. Most of
the code was moved to System.Web.Util.RuntimeHelpers. Properties
which have been moved: MonoVersion, RunningOnWindows,
CaseInsensitive, IsDebuggingEnabled
Also:
- hushed some compiler warnings
- various classes now use RuntimeHelpers instead of HttpRuntime
svn path=/trunk/mcs/; revision=153038
* src/eglib-remap.h, src/glib.h: header file to remap the symbols
so there is no clash with system glib.
* src/Makefile.am: build static lib as well.
svn path=/trunk/mono/; revision=153024
* AssignTargetPathTest.cs (CreateProjectString): Remove the
unnecessary import of ms.common.targets .
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Check for empty invalid
$(OutputPath), and error or warn the user.
svn path=/trunk/mcs/; revision=153019
* Type.cs : Fix for bug #574696: don't recurse into base types
* in GetMember when
getting properties.
Patch by Eberhard Beilharz <[email protected]>
svn path=/trunk/mcs/; revision=153016
* HttpListenerContext.cs : The header line here is already trimmed
"Authorization:" , so do not try to remove it.
svn path=/trunk/mcs/; revision=153012
* BuildEngine.cs (LogErrorEvent): Log as warning, if
ContinueOnError==true, and log a corresponding message.
* TargetBatchingImpl.cs: Refactor to share code between the
batched and unbatched case. If a task fails and
ContinueOnError==true, then ignore the failed state.
In class/Microsoft.Build.Engine/Test/various:
* Build.cs (TestBuildContinueOnError*): New.
svn path=/trunk/mcs/; revision=153005
* SerializationMap.cs : return array instance if the runtime type is
an array (it used to return ArrayList without conveting to array).
* XmlObjectSerializerTest.cs : test for empty array deserialization.
svn path=/trunk/mcs/; revision=153004
A patch by [email protected]
* dynamic.cs, anonymous.cs, rootcontext.cs, class.cs: Don't make
compiler generated classes sealed by default. Emit and close top
level compiler generated classes as well.
* support.cs: Use RuntimeHelpers.GetHashCode.
svn path=/trunk/mcs/; revision=153001
* TypeElement.cs, DeclaredTypeElement.cs,
ParameterElementCollection.cs, DataContractSerializerSection.cs,
ParameterElement.cs :
Looks like MSDN pages are quite incorrect. updated to match what
status page tells.
svn path=/trunk/mcs/; revision=152991
* test/test.c: Fix the build.
* src/glib.h src/goutput.c: Emit asserts through a g_assertion_message ()
function which is decorated with G_GNUC_NORETURN, to fix many warnings when using
the eglib build.
svn path=/trunk/mono/; revision=152983
* gensources.sh: Reverted to plain bash, cygwin/make seems to end up confused
with path separators with the managed version.
svn path=/trunk/mcs/; revision=152970
* method-to-ir.c (mono_method_to_ir): Don't create a runtime
* vtable
to check for errors, it's enough to create the metadata open.
Fixes#562150
svn path=/trunk/mono/; revision=152957
* Decimal.cs: Disable the fast double2decimal code, and go back
* to
string parsing as there is a rounding/precision bug.
//
// We cant use the double2decimal method
// because it incorrectly turns the floating point
// value 1.23456789E-25F which should be:
// 0.0000000000000000000000001235
// into the incorrect:
// 0.0000000000000000000000001234
//
// The code currently parses the double value 0.6 as
// 0.600000000000000
//
// And we have a patch for that called (trim
svn path=/trunk/mcs/; revision=152956
* mono-mmap.c: apparently kill() can return ENOMEM. Also use signal 0
which is the documented way of testing for the existence of a PID.
Thanks to Cal Page.
svn path=/trunk/mono/; revision=152954
* decimal.c (mono_double2decimal): Add support for reducing the
scale of a decimal. It turns the 0.6000000000000 into 0.6 as
expected.
svn path=/trunk/mono/; revision=152952
* Methods.cs: In BuildResponseReflectionMembers, use the operation
name as base name for the response element. Don't use the request
name as base, since it may have been customized using the RequestElementName
property. Fixes bug #548988.
svn path=/trunk/mcs/; revision=152950
* ServiceDescriptionCollection.cs: When looking for bindings and other
items, look in the list instead of the namespace table, since the
collection may have several description documents with the same
namespace.
* ProtocolImporter.cs: Same as above. A schemas collection can have
more than one schema with the same name, so we can use the namespace
indexer to find schemas.
* BasicProfileChecker.cs: Added null check.
svn path=/trunk/mcs/; revision=152948
* HttpReplyChannel.cs, AspNetReplyChannel.cs, HttpChannelListener.cs,
HttpListenerManager.cs : ongoing authentication support. It returns
401 as expected, but somehow fails to retrieve user info.
svn path=/trunk/mcs/; revision=152941
* mono-config.c (mono_config_parse_assembly_bindings): added -
parses assembly binding redirections from appdomain's config
file.
* metadata-internals.h: added definition of a new function -
mono_config_parse_assembly_bindings - to support parsing assembly
binding redirections defined in appdomain's config file.
* domain-internals.h: added two new fields to _MonoDomain - a list
of assembly bindings and a flag to parse the config file only
once.
* assembly.c (assembly_binding_maps_name): empty culture name and
NULL culture name are considered equal.
(mono_assembly_apply_binding): added support for domain specific
assembly binding redirections, read from the appdomain's
configuration file. Fixes bug #580185
svn path=/trunk/mono/; revision=152931
2010-03-03 Rolf Bjarne Kvinge <[email protected]>
* Makefile: Make basic the bootstrapping profile for net_2_1_bootstrap.
In build:
2010-03-03 Rolf Bjarne Kvinge <[email protected]>
* profiles/net_2_1_bootstrap.make: Make 'basic' the bootstrapping
profile for net_2_1_bootstrap.
In mcs:
2010-03-03 Rolf Bjarne Kvinge <[email protected]>
* Makefile: We need to use the internal bootstrapping gmcs for
net_2_1_bootstrap too now.
svn path=/trunk/mcs/; revision=152911
* trace.c: We need to parse exclude tokens ('-') before string tokens,
since the exclude token is a valid string character.
svn path=/trunk/mono/; revision=152906
* InternalWebRequestStreamWrapper.cs: don't add a newline to the
request data, whatever uses the data should be the one adding
newlines if they need it (i.e., moon's ff bridge needs it, the
curl bridge doesn't)
svn path=/trunk/mcs/; revision=152898
* reflection.c (mono_image_get_memberref_token): Extract
* mono_image_add_memberef_row
from this function. The new function receive the parent token
instead of a type.
* reflection.c
* (mono_image_get_methodref_token_for_methodbuilder):
* reflection.c (mono_image_get_ctorbuilder_token): Use new
* function to encode
typebuilders. This make it possible to properly encode generic
type builders since
their unmanaged type don't have generics data while unfinished.
Fixes#583655.
svn path=/trunk/mono/; revision=152887
In class/System/:
* System_test.dll.sources: Add System.Threading/BarrierTest.cs
In class/System/System.Threading/:
* Barrier.cs: Remove dead comments
In class/System/Test/System.Threading/:
* BarrierTest.cs: Add BarrierTest.
In class/corlib/:
* corlib_test.dll.sources: Add System.Threading.Tasks/TaskFactoryTest.cs
In class/corlib/System.Threading.Tasks/:
* Task.cs: If we add a continuation when the Task is already finished
forces its schedule as a Task instead of executing on the calling thread.
* TaskFactory.cs: Add ContinueWhenAny implementation when returning Task
In class/corlib/Test/System.Threading.Tasks/:
* TaskFactoryTest.cs: Add TaskFactoryTests
* TaskTest.cs: Re-enable TastTest
svn path=/trunk/mcs/; revision=152884
* Makefile.am:
* mono/Makefile.am: Only build some subdirs when configured for
moonlight.
* configure.in: If configured --with-moonlight=yes, define MOONLIGHT and
use that variable instead of INSTALL_2_1.
* runtime/Makefile.am: If configured for moonlight, only build
net_2_1_raw.
svn path=/trunk/mono/; revision=152880
* sgen-gc.c, sgen-protocol.c, sgen-protocol.h: New facility for
writing binary log files (can be enabled by #define'ing
BINARY_PROTOCOL) for better debugging of timing-dependent bugs or
bugs in longer running programs.
2010-03-02 Mark Probst <[email protected]>
* tools/sgen-grep-binprot.c: Tool for searching through the binary
protocol files generated by SGen.
svn path=/trunk/mono/; revision=152864
* method-to-ir.c: Emit dummy_use for stored reference after write
barriers to make sure the object is pinned if the GC interrupts
before the write barrier is done.
svn path=/trunk/mono/; revision=152844
Merge the MonoTouch Linker branch.
* Mono.Linker/LinkContext.cs:
Allow creation with a custom resolver.
* Mono.Linker/AssemblyResolver.cs:
Allow creation with a custom assembly cache.
* Mono.Linker.Steps/ResolveFromAssemblyStep.cs:
- Mark fields for copied assemblied.
- Now can take an assembly directly.
* Mono.Linker.Steps/SweepStep.cs
* Mono.Linker.Steps/CleanStep.cs:
Optimizations.
svn path=/trunk/mcs/; revision=152840
* EncodingConverter.cs, WebHttpBindingElement.cs,
WebHttpSecurityElement.cs : implement OnApplyConfiguration(), fill
some TypeConverters, and fix BindingElementType, based on the patch
by Sander Rijken.
2010-03-01 Sander Rijken <[email protected]>
* webHttpBinding, webHttpBinding.config : new test files.
2010-03-01 Sander Rijken <[email protected]>
* WebHttpBindingElementTest.cs : new test.
2010-03-02 Atsushi Enomoto <[email protected]>
* System.ServiceModel.Web_test.dll.sources : add new test.
* Makefile : add new extra dist.
svn path=/trunk/mcs/; revision=152807
if it has one or more nodes - just as .net does.
Fixes#578079.
2010-03-01 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=152804
take into account the case where the buffer used in XLookupString is
not empty, but filled with garbage.
2010-03-01 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=152802
* X11Keyboard.cs: When handling the key events, sometimes calling
either Xutf8LookupString or XLookupString with special chars (such
backspace and enter) can result in a buffer filled with garbage, or
empty - thus re-use the value returned by the same functions to fill
the gap.
Fixes#582691.
svn path=/trunk/mcs/; revision=152796
* TypeSpec.cs: New file. Managed code implementation of type
* name
parsing.
* Type.cs: Implement new v4 overloads of GetType.
svn path=/trunk/mcs/; revision=152785
* VirtualMachine.cs: Allow working with runtimes implementing a different
minor version of the debugger protocol.
svn path=/trunk/mcs/; revision=152757
* debugger-agent.c: Add a new command to communicate the protocol version used
by the client. This could be used to allow newer runtimes to communicate with
older clients.
svn path=/trunk/mono/; revision=152753
* Win32Resources.cs: Prevent infinite loops if the resource that
we are reading is invalid. Fixes the mscorlib part of #327500
svn path=/trunk/mcs/; revision=152739
* WebHeaderCollection.cs: Apply 2 year old patch from Yves Bastide that fixes the keys
casing in the collection; Fixes 325491
svn path=/trunk/mcs/; revision=152734
* DateTime.cs (DoParse): patch from Tom Philpot, while using
TryParse if s is null, we should return false, not crash.
svn path=/trunk/mcs/; revision=152708
2010-03-01 Martin Baulig <[email protected]>
* abort-invoke.cs: Add a test for my latest patch regarding thread
aborts while running a class .cctor.
svn path=/trunk/mono/; revision=152699
* mini-arm.c: make the arm cpu arch configurable with the
MONO_CPU_ARCH env var (for example: "armv4 thumb").
Bug #584198.
svn path=/trunk/mono/; revision=152692
* System.Net/WebConnection.cs: attach a validation callback to the new
event in Mono.Security.
* System.Net/ServicePointManager.cs: added a new ValidationHelper
class that takes care of building the certificate chain and perform
all the check that were done in Mono.Security before. This way the 2.0
server certificate validation callback can get all the data it needs.
* System.Net.Security/SslStream.cs: don't do anything if a chain
element has no error.
Fixes bug #584050.
svn path=/trunk/mcs/; revision=152654
* Mono.Security.Protocol.Tls/HttpsClientStream.cs: use Address instead
of RequestUri to get the right host name when the request is
redirected.
* Mono.Security.Protocol.Tls/SslStreamBase.cs:
* Mono.Security.Protocol.Tls/SslClientStream.cs:
* Mono.Security.Protocol.Tls/SslServerStream.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
added a new callback for certificate validation that gets all the
certificates received from the server/client. The callee should
build the chain and validate it.
svn path=/trunk/mcs/; revision=152652
* class-internals.h (MonoClass): Get rid of the reflection_info field, add
a GC handle instead. This is a bit slower to access, but avoids burdening the
GC with 100s of individual roots.
* reflection.c (mono_class_get_ref_info):
(mono_class_set_ref_info):
(mono_class_free_ref_info): New internal helper fuctions.
* reflection.c appdomain.c icall.c class.c: Use the new helper functions instead
of accessing klass->reflection_info directly.
* sgen-gc.c (alloc_complex_descriptor): Fix the computation of the number of
words.
* gc.c (alloc_handle): Create a GC descriptor for the 'entries' array, free
the previous array.
svn path=/trunk/mono/; revision=152649
* Decimal.cs: Enabling the unmanaged double to decimal and float
to decimal conversions code again as I am unable to find any
regressions in corlib, System.Data, the Silverlight test suite or
Rotor's test suite.
I am enabling it hoping that we can find the original problem that
lead us to use the slow path.
svn path=/trunk/mcs/; revision=152632
that 'mdoc export-html-webdoc' will use the system-installed sources
in addition to any -r'd sources (which was the behavior 2 commits
ago).
svn path=/trunk/mcs/; revision=152623
2010-02-28 Robert Jordan <[email protected]>
* RealProxy.cs (PrivateInvoke): BeginInvoke return messages
do not have out args (by design). The issue has existed for many
years but it was invisible because mono_delegate_begin_invoke ()
has swallowed exceptions, which was fixed by Gonzalo in r141856.
Fixes a couple of disabled remoting tests (#576618).
In System.Runtime.Remoting/Test:
2010-02-28 Robert Jordan <[email protected]>
* BaseCalls.cs: Enable tests again. See bug #576618.
svn path=/trunk/mcs/; revision=152616
* HttpRuntime.cs: added internal property DomainUnloading.
* HttpApplication.cs: when app domain is unloading, catch
ThreadAbortExceptions and reset the abort.
2010-02-27 Marek Habersack <[email protected]>
* BuildManager.cs: count only builds of updated files before
unloading the app domain. Fixes bug #581459
svn path=/trunk/mcs/; revision=152600
'--format' logic, specifically 'mdoc export-html-webdoc'.
* Mono.Documentation/webdoc.cs: Allow it to be more "stand-alone".
Previously, it would depend upon the system-wide .source files.
This is bad, because you might want to generate the 'cache'
directory for a different installation, with a different set of
.tree/.zip/.source files, and you might not want to replace your own
and/or you often forget, as is the case with me. Instead, allow a
format to be specified for .tree files, and allow additional .source
files to be referenced so that extension methods will be found within
the specified sources. This allows for a "stand-alone" method of
operation w/o depending upon the system-wide .source files.
svn path=/trunk/mcs/; revision=152590
resource.
* Monodoc/provider.cs: Add a
RootTree.LoadTree(string,XmlDocument,IEnumerable<string>) method.
This is so 'mdoc export-html-webdoc' doesn't need to rely on the
system-wide .source files (allowing execution w/o changing/replacing
the system-wide .source files) and so MonoDevelop can support
multiple .source files spread throughout the system sanely.
* Monodoc/ecma-provider.cs: Always add the extension methods contained
in the current EcmaHelpSource, instead of implicitly requiring that
the current EcmaHelpSource also be contained within
RootTree.HelpSources. This simplifies logic in 'mdoc'.
svn path=/trunk/mcs/; revision=152587
* generic-sharing.c: Removed, moved its contents to mini/mini-generic-sharing.c,
so all generic sharing code is in one place.
svn path=/trunk/mono/; revision=152583
* class.c (get_implicit_generic_array_interfaces): Fix the last change so
we don't call setup_interface_offsets () for unfinished types.
svn path=/trunk/mono/; revision=152580
* ObjectReader.cs (ReadType, GetDeserializationType):
Add throwOnError parameter that specifies whether to throw an
exception if the type/assembly is not found.
* ObjectReader.cs (ReadTypeMetadata): Ignore unresolvable
types while reading the type info. Fixes#430583.
* ObjectReader.cs (GetDeserializationType): Rethrow caught
exceptions as SerializationExceptions.
svn path=/trunk/mcs/; revision=152579
* image.c: Add an unload hook which is called before an image is unloaded.
* generic-sharing.c: Use the unload hook to unregister per-image data, to avoid
metadata.c having to depend on generic sharing.
svn path=/trunk/mono/; revision=152575
* ComInteropProxy.cs: Don't add proxy if it has already been added.
Instread increment ref_count. Fixes bug #572043.
svn path=/trunk/mcs/; revision=152571
2010-02-26 Martin Baulig <[email protected]>
* class-internals.h (MonoVTable): Added `init_aborted'.
* object.c
(mono_runtime_class_init_full): Set `vtable->init_aborted' in
addition to `vtable->init_failed' if we hit a `ThreadAbortException'
while running the class .cctor and reset `init_failed' next time
we're called.
svn path=/trunk/mono/; revision=152558
2010-02-26 Martin Baulig <[email protected]>
* debug-debugger.c (MonoDebuggerInfo): Added `abort_runtime_invoke'.
* debug-mini.c
(MonoDebuggerThreadInfo): Added `internal_flags'.
(MonoDebuggerInternalThreadFlags): New enum.
(_mono_debugger_throw_exception): Don't signal the debugger if a
type abort was requested.
(_mono_debugger_unhandled_exception): Likewise.
(mono_debugger_abort_runtime_invoke): New method to abort an invocation.
(mono_debugger_runtime_invoke): If the debugger requested a thread
abort during the invocation, reset it here.
svn path=/trunk/mono/; revision=152557
* ServiceRuntimeChannel.cs, ServiceProxyGenerator.cs:
make them public and add Contract property for service callback
proxies too for the same reason.
* InputOrReplyRequestProcessor.cs : now ServiceRuntimeChannel is
moved to fake public namespace.
svn path=/trunk/mcs/; revision=152523
* class.c (get_implicit_generic_array_interfaces): Call
mono_class_setup_interface_offsets () before accessing
eclass->interface_offsets_count. This only shows up on platforms without IMT for
some reason.
svn path=/trunk/mono/; revision=152521
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs:
Add disabled code, enabled by -d:USE_OD_REFERENCE_IN_PROXY:
In generated proxy, avoid using GetCurrentMethod() and pass
interface methods to the base ClientRuntimeChannel.
(Disabled by default for breakage at
CallbackBehaviorAttributeTest.CallbackExample1.)
svn path=/trunk/mcs/; revision=152519
* Connection.cs: Throw a NotSupportedException if the protocol version doesn't
support the caught/uncaught flags in an exception modifier.
svn path=/trunk/mcs/; revision=152514
* ServiceRuntimeChannel.cs, DuplexChannelFactory.cs,
DuplexClientRuntimeChannel.cs, ClientRuntimeChannel.cs,
ClientProxyGenerator.cs, ClientBase.cs : add workaround fix for
bug #571907, making [Duplex]ClientRuntimeChannel public.
Generated proxy type must be stored to not get GCed.
svn path=/trunk/mcs/; revision=152513
* wait.c: If any of our handles are shared, we need to do
a polling wait so we're notified of the signal change.
svn path=/trunk/mono/; revision=152511
In class/System/System.Threading/:
* Barrier.cs: Fix NRE with postPhaseAction delegate
Fix possible deadlock when removing participant(s)
svn path=/trunk/mcs/; revision=152503
* Control.cs: ControllCollaction IList implementation wasn't calling the
Add implementation causing ParentChanged and all sorts of other events not to
get fired.
[Fixes bug #580042]
svn path=/trunk/mcs/; revision=152483
* DataGridView.cs: If we are setting a new data source and it is
data bindable clear DataMember before binding.
[Fixes bug #554296]
svn path=/trunk/mcs/; revision=152478
* mono-logger.h, Makefile.am: expose in the API the ability to
set trace mask and level.
* mono-logger-internal.h: new header for mono internal use.
* mono-logger.c: fixed mono_trace_set_mask_string() to not change
the passed string argument.
svn path=/trunk/mono/; revision=152444
* aot-runtime.c (mono_aot_find_jit_info): Use a merge sort for sorting the
code offsets table, as it is mostly sorted.
svn path=/trunk/mono/; revision=152431
* Makefile.am: build the new ABI version of the libmono library.
* debugger-agent.c, mini.c: fix warnings with the new API.
* jit.h: don't depend on glib.h being included.
svn path=/trunk/mono/; revision=152360
* reflection.h: the MonoTypeNameParse guts are internal now.
* assembly.c, assembly.h, image.h: the MonoAssemblyName guts
are internal now, provide accessors as needed.
* metadata.h, metadata-internals.h: the MonoMethodSignature
guts are internal now.
* Makefile.am: mempool.h is an internal header now.
* *.h, *.c: remove glib.h usage from the public headers.
svn path=/trunk/mono/; revision=152357
* mono-publib.h, mono-publib.c: new public header file to allow
the removal of gli from the other public headers.
* Makefile.am: install only the public header mono-publib.h.
svn path=/trunk/mono/; revision=152355
* debugger-agent.c (notify_thread): Skip terminated threads, since their tls
data is not freed yet. Fixes#582460.
svn path=/trunk/mono/; revision=152324
In class/corlib/System.Threading.Tasks/:
* Task.cs: Fix for continuation processing not happening
in case of Faulted or Canceled.
svn path=/trunk/mcs/; revision=152290
* HttpWebRequest_2_1.cs: Accept and ContentType properties do not
behave like Silverlight 2.0 (not related to browser/client stacks)
* WebHeaderCollection_2_1.cs: Range is now accepted in SL3 (not
related to browser/client stacks)
* WebRequest_2_1.cs: Fix registration to work on domains (new)
and scheme (more correctly wrt new unit tests).
svn path=/trunk/mcs/; revision=152275
* serial.cs: Add 921600 to the list of possible baud rates, and
use it only if defined, as is not available in all the unix systems.
Fixes#445520.
svn path=/trunk/mono/; revision=152262
2010-02-23 Carlos Alberto Cortez <[email protected]>
* System.IO.Ports: New test directory.
In System.IO.Ports:
2010-02-23 Carlos Alberto Cortez <[email protected]>
* SerialPortTest.cs: New file.
svn path=/trunk/mcs/; revision=152255
* SerialPort.cs: DiscardNull should *not* report any error if the port
is not open. We haven't implemented it yet, but added the needed
comment in case we forget when actually implementing it.
Fixes#512244.
svn path=/trunk/mcs/; revision=152254
* debugger-agent.c: Add support for the caught/uncaught flags on exception
event requests. Bump protocol minor version.
svn path=/trunk/mono/; revision=152233
* MemoryStream.cs: When setting Capacity, don't create a new buffer if
the new expected value is the same as the current one.
svn path=/trunk/mcs/; revision=152217
* mini.c (mono_method_check_inlining): Use
* !mono_method_get_header_summary
instead of mono_method_get_header as it doesn't decode locals
so the called method can have unresolved dependencies that will
only be satisfied after the current method is JIT'd.
Fixes#550968.
svn path=/trunk/mono/; revision=152205
* metadata.c: Add mono_method_get_header_summary which returns
* minimal
information about the header of a method. This is the
information used
by the inline oracle to reject methods.
This method doesn't decode local variables and doesn't cache
it's result,
so it should cause a minimal reduction in memory usage.
* metadata-internals.h: Add MonoMethodHeaderSummary structure
* and
mono_method_get_header_summary.
svn path=/trunk/mono/; revision=152204
* obj_map.c (GC_add_map_entry): Speed this up for the common case where
GC_register_displacement () was never called.
svn path=/trunk/mono/; revision=152155
* Makefile.am: Add CoreFoundation linkage on darwin to properly get the current
locale.
* locaes.c: When running on darwin, try to get the local from CoreFoundation
before falling back to the posix lookup.
svn path=/trunk/mono/; revision=152152
* unwind.c (mono_unwind_get_cie_program): New function, moved here from
aot-compiler.c, so it can be found even if DISABLE_JIT is set.
* aot-compiler.c xdebug.c: Update callers of mono_arch_unwind_get_cie_program ().
* mini-amd64.c: Fix DISABLE_JIT support.
svn path=/trunk/mono/; revision=152123
* VirtualMachine.cs (CreateExceptionRequest): Add an overload taking two
booleans which specify whenever to report caught/uncaught exceptions.
* ExceptionRequest.cs: Add public properties for them.
* Connections.cs: Pass the caught/uncaught flags to the debuggee. Bump protocol
minor version.
svn path=/trunk/mcs/; revision=152110
* debugger-agent.c (mono_debugger_agent_handle_exception): Receive two contexts,
one for the throw and one for the catch. Mark uncaught exceptions by a NULL
CATCH_TXT. Send normal exception events for unhandled exceptions too.
(mono_debugger_agent_handle_unhandled_exception): Remove this, merged into
handle_exception.
svn path=/trunk/mono/; revision=152108
* mono-semaphore.h: enable the #defines when io-layer is in use.
* Makefile.am: added new file.
* mono-semaphore.c: new mono_sem_timedwait() function.
svn path=/trunk/mono/; revision=152100
* domain.c: Remove old v1 version strings. Let the runtime
default to 2.0 instead of failing because it can't find a
working 1.0 instalation.
svn path=/trunk/mono/; revision=152098
* Makefile: enable USE_DATA_CONTRACT_IMPORTER as
memorabilia.hardrock now works. (Will be removed when I remove
relevant code.)
svn path=/trunk/mcs/; revision=152080
* DataContractSerializerMessageContractImporter.cs :
Pick correct elements to import. Not wrapper elements but each
parameter and return value elements.
svn path=/trunk/mcs/; revision=152078
* Parameters.cs (ParseArguments): When no project file is specified,
if the cur dir has a single sln and >1 project files, and all the
project files are referenced by the sln, the pick the sln.
svn path=/trunk/mcs/; revision=152069
* BuildItem.cs: Track api changes.
(SetMetadata): Allow RecursiveDir to be set, this is set by
DirectoryScanner.
* DirectoryScanner.cs (ProcessInclude): Set RecursiveDir metadata.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs (TestItemsWithWildcards): Check for RecursiveDir metadata also.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
* TaskItem.cs: Track api changes.
In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:
* ReservedNameUtils.cs (GetReservedMetadata): Add dictionary param
@metadata. Use this to check for existing value of "RecursiveDir"
metadata, use that if present.
svn path=/trunk/mcs/; revision=152067
* ServiceContractGenerator.cs, MessagePartDescription.cs,
DataContractSerializerMessageContractImporter.cs :
add alternative implementation to use XsdDataContractImporter
instead of XmlSchemaImporter hack.
It requires -d:USE_DATA_CONTRACT_IMPORTER and not enabled yet, as
it breaks some WSDL imports (such as memorabilia.hardrock.com).
svn path=/trunk/mcs/; revision=152048
* TemplateControlCompiler.cs: GetConverterForMember now completely
relies on TypeDescriptor and description providers to retrieve
converter for a property. Fixes bug #578586
If UrlPropertyAttribute is found for a member,
GetExpressionFromString uses the preconverted value, if any, as
parameter to HandleUrlProperty.
svn path=/trunk/mcs/; revision=152040
* Normalization.cs: Implement algorithmic Hangul decomposition; Calling
string.Normalize on Korean characters now works properly (bnc#480152).
This reduces the number of errors in 'make test' from 27k to 4.8k.
* StringNormalizationTestSource.cs:
* Makefile: Use the local, working copy of Normalization etc,so as to make
modifying Normalization.cs and then testing your changes with 'make test'
possible. Also, fix building/running of tests, patch by Alexander
Kojevnikov.
svn path=/trunk/mcs/; revision=152039
* exceptions-x86.c (mono_arch_get_restore_context): Changes this so it restores
edx/ecx too. This is needed to support OP_SEQ_POINT.
svn path=/trunk/mono/; revision=152032
* HostingEnvironment.cs: removed SetHostingId and added internal
setters to the SiteName and IsHosted properties.
* ApplicationManager.cs: CreateHost doesn't have to call set
HostingEnvironment.IsHosted, it is done in
ApplicationHost.CreateApplicationHost.
* ApplicationHost.cs: set the ".appId" item in the new appdomain's
data, so that HttpRuntime.AppDomainAppId returns a non-null
value.
Set HostingEnvironment.{IsHosted, SiteName} in the new appdomain
instead of the original one.
All of the above fix bug #578880
2010-02-18 Marek Habersack <[email protected]>
* HostingEnvironmentTest.cs: added a test for HostEnvironment
property values both in hosted and non-hosted environments. Patch
contributed by Tiaan Geldenhuys <[email protected]>, thanks!
svn path=/trunk/mcs/; revision=151983
* HttpFileCollectionWrapperTest.cs: added
2010-02-18 Marek Habersack <[email protected]>
* HttpFileCollectionWrapper.cs: Get (string) and this [string]
don't throw ArgumentNullException for non-existing entries. Fixes
bug #579241. Patch from Peter Johanson <[email protected]>,
thanks!
svn path=/trunk/mcs/; revision=151978
* XsdDataContractImporter-new.cs : output [KnownType] to expose
base/derived type relationship.
* ns-readme.txt : another line of note.
svn path=/trunk/mcs/; revision=151973
* TreeViewTest.cs: added test for bug #580692
2010-02-18 Marek Habersack <[email protected]>
* TreeView.cs: RegisterStyle must copy CssClass in addition to
other style properties. Fixes bug #580692
svn path=/trunk/mcs/; revision=151964
* ChannelDispatcher.cs : revert previous change - it could result
in blocking some threads and block nunit completion.
svn path=/trunk/mcs/; revision=151960
* JsonReader.cs : line endings after a value should not result in
a parse error.
* JsonObject.cs : duplicate object key "SHOULD" not be used, but
they are not rejected. So, make it a bit sloppy.
svn path=/trunk/mcs/; revision=151953
* class.c (mono_class_get_cctor): Fix support for dynamic classes, which doesn't
have has_cctor set. Fixes#575946.
svn path=/trunk/mono/; revision=151948
* RichTextBox.cs: When retrieving SelectedRtf/Rtf properly escape any
RTF reserved char, so we don't end up messing around the actual rtf
values.
Fixes part of #575731.
svn path=/trunk/mcs/; revision=151906
* XsdDataContractImporter-new.cs : refresh implementation that is
not based on xml serialization. Not enabled yet.
* KnownTypeCollection.cs : add cosmetic comment.
* ns0,xsd ... ns27.xsd : new test files.
* ns-readme.txt : description.
* XsdDataContractImporterTest.cs : added a bunch of tests for new
implementation. Disable yet.
svn path=/trunk/mcs/; revision=151902
* appdomain.c: display a warning if the parsing the config file
produces any error.
Skip the BOM in UTF-8 files.
Copy the AppDomainSetup before setting the privateBinPath so that the
correct configuration file is read.
svn path=/trunk/mono/; revision=151893
* Line.cs: When setting the Text property, if the new text is larger
than the previous one, call Grow to update our internal 'widths'
array, to be properly in sync with the new text.
Fixes#569530.
svn path=/trunk/mcs/; revision=151805
* WebClient_2_1.cs: Keep a copy of 'userToken' since we need to
supply it when calling OnDownloadProgressChanged
* WebRequest_2_1.cs (SetupProgressDelegate): Simplify signature
svn path=/trunk/mcs/; revision=151800
* CustomizableLocalFileSettingsProvider.cs: When saving the
properties, ignore the properties marked with
ApplicationScopedSettingAttribute, as they are not serialized in .net
by FileSettingsProvider (the default class used to save the config,
and the one using the class we are modifying).
Fixes#468658.
svn path=/trunk/mcs/; revision=151798
* StreamWriter.cs:
* FileStream.cs: if flushing fails when disposing the stream, make
sure it is closed before throwing the exception. Fixes bug #579146.
svn path=/trunk/mcs/; revision=151761
* SmtpClient.cs: generate correct MIME when there are text and html
linked resources. Fixes bug #579984. Patch by Ásgeir Halldórsson.
svn path=/trunk/mcs/; revision=151758
* SoapDocumentationHandler.cs: use IndexOf() instead of LastIndexOf()
when removing the querystring from the url.
svn path=/trunk/mcs/; revision=151754
* object.c: Instead of using one vtable trampoline, allow the JIT to use one
vtable trampoline per vtable slot index. Not used yet.
svn path=/trunk/mono/; revision=151733
* Test/System.Collections.Generic/HashSetTest.cs:
* System.Collections.Generic/HashSet.cs: fix and test for bug #579791.
Patch from Tiaan Geldenhuys.
svn path=/trunk/mcs/; revision=151705
* mono-profiler-aot.c (output_image): Emit method names instead of tokens so
the info can be used for different versions of the same assembly. Don't append
the assembly guid to the file names.
svn path=/trunk/mono/; revision=151701
* mini.c (mono_jit_compile_method_inner): Avoid passing icall wrappers to
mono_profiler_method_end_jit, since the profiler has no way to process wrappers.
* aot-runtime.c mini.c: Resurrect the aot pagefault profiling stuff, it is useful
for mtouch.
svn path=/trunk/mono/; revision=151694
* debugger-agent.c: handle incomplete reads and EINTR in
recv()/send(). This could have been causing random
disconnections.
svn path=/trunk/mono/; revision=151687
* mini-arm.c (mono_arch_allocate_vars): Allocate the seq point related vars first
so they have small offsets. Fixes#566311.
svn path=/trunk/mono/; revision=151681
* XStreamingElement.cs: Avoid an extra indirect call, by calling
the target methods directly.
* XDocument.cs, XElement.cs, XStreamingElement.cs: Fix the
setting of the Indent flag, since this is an enumeration, testing
against SaveOptions.None was incorrect. Check on the actual flag.
* XElement.cs, XDocument.cs, XStreamingElement.cs: Add support for
the new .NET 4.0 Save methods and the new OmitDuplicateNamespaces
flag to SaveOptions.
* XElement.cs, XDocument.cs, XNamespace.cs: Sprinkle
CLSCompliantAttribute to match the compare page.
* SaveOptions.cs: New setting for 4.0 OmitDuplicateNamespaces.
svn path=/trunk/mcs/; revision=151627
* CustomizableLocalFileSettingsProvider.cs: The name of the child
class of Settings should be 'normalized' by replacing the chars that
are invalid in a xml element name with their corresponding hexadecimal
values. This is specially visible when using classes container in
other classes.
Fixes#471289.
svn path=/trunk/mcs/; revision=151607
* DataContractSerializerMessageContractImporter.cs : handle duration
and guid which s.w.svc does not handle. Fix part of bug #579011.
svn path=/trunk/mcs/; revision=151593
* reflection.c (ensure_complete_type): Check that reflection_info
is set, too. Fixes crash of corlib testsuite with -O=-all.
svn path=/trunk/mono/; revision=151570
* ActivationTests.cs: Disable TestCreateHttpWkoSingleCall and
TestCreateHttpWkoSingleton due to sporadic failures.
Filed as bug #579277.
svn path=/trunk/mcs/; revision=151549
* AppResourcesCompiler.cs: explicitly dispose all the streams and
readers+writers in CompileResource.
2010-02-11 Marek Habersack <[email protected]>
* Web.config, Web.mono.config: added test role manager
definition.
2010-02-11 Marek Habersack <[email protected]>
* RolesTest.cs: added a test for IsUserInRole. Patch from Tiaan
Geldenhuys <[email protected]>, thanks!
2010-02-11 Marek Habersack <[email protected]>
* Roles.cs: IsUserInRole checks if username is null or empty
before attempting to use it. Patch from Tiaan Geldenhuys
<[email protected]>. thanks!
2010-02-11 Marek Habersack <[email protected]>
* System.Web_test.dll.sources: added
mainsoft/NunitWeb/NunitWeb/TestRoleProvider.cs
2010-02-11 Marek Habersack <[email protected]>
* WebTest.cs: test environment setup enhancements. Contributed by
Tiaan Geldenhuys <[email protected]>, thanks!
* TestRoleProvider.cs: added. Contributed by Tiaan Geldenhuys
<[email protected]>, thanks!
svn path=/trunk/mcs/; revision=151519
* mini-amd64.c: Remove the special casing of byref in a few places now that
mini_type_get_underlying_type () handles it.
svn path=/trunk/mono/; revision=151516
* mini-generic-sharing.c (mini_type_get_underlying_type): Handle byref as well
by returning native int. Fixes#577984.
svn path=/trunk/mono/; revision=151514
* ConstructorInfo.cs, EventInfo.cs, FieldInfo.cs: fix 4.0 equality
and inequality operators by casting the passed parameters to
object. Failing to do so leads to infinite recursion calling the
operator.
svn path=/trunk/mcs/; revision=151513
* CP1250.cs CP1252.cs: Move the '--charCount' line to the beginning of the loop,
since it can be skipped in case of HandleFallback. Add brances around the
call to HandleFallback so the 'continue' call is only done if it is called.
Should fix#573682.
svn path=/trunk/mcs/; revision=151280
* sgen-gc.c: Don't consider it a missing remset if the target
object is pinned - we might have done the store but not added the
remset yet.
svn path=/trunk/mono/; revision=151255
* sgen-gc.c: When checking for missing remsets, don't assert on
the first one, but print them all and then assert.
svn path=/trunk/mono/; revision=151254
* main.c (dis_method_list): Show method implementation flags as
well when calling --method.
get.c: Moved some code here from main.c so it could be reused by
dump.c
svn path=/trunk/mono/; revision=151251
* console-unix.c: On OSX Control-Y is assigned to
VDSUSP (non-Posix), the
suspend-program-next-time-it-tries-to-read-input command (this is
different than C-z, which suspends immediately).
Do the same thing that bash does and ignore this setting,
making our repl/getline support pasting.
svn path=/trunk/mono/; revision=151247
* reflection.c: Export mono_get_object_from_blob.
* object-internals.h: Ditto.
* icall.c: New icall property_info_get_default_value to get the default
value of a property. Since using this is not common, no caching is done.
* icall-def.h: Add new icall.
svn path=/trunk/mono/; revision=151231
for source file.
Don't build if the target is newer than the source file.
(Execute): Continue building all the resources, even if there
are failures for some files.
svn path=/trunk/mcs/; revision=151222
* GenerateResource (Resgen): New. Internal task to run resgen
with MONO_IOMAP=drive .
(Execute): Use the new Resgen task to compile the resources.
svn path=/trunk/mcs/; revision=151210
ProcessStringDictionary instead of StringDictionary.
ProcessStringDictionary retains the case of the keys (env vars
here).
* ToolTask.cs (environmentOverride): Likewise.
svn path=/trunk/mcs/; revision=151209
Standard*LoggingImportance, instead of the underlying field.
(LogEventsFromTextOutput): Use @importance argument for LogMessage.
(LogToolCommand): Remove MonoTODO.
svn path=/trunk/mcs/; revision=151208
* XmlSchemaDataImporter.cs: the <connections> element might be
empty - make sure FirstChild of the element is not null before
attempting to use it. Fixes bug #578587
svn path=/trunk/mcs/; revision=151201
* ClientRuntimeChannel.cs : and "To" header is also automatically
added if AddressingVersion is WSA1. This likely fixes bug #577139.
svn path=/trunk/mcs/; revision=151200
* MessageHeader.cs, MessageHeaders.cs: MessageHeader does not treat
EndpointAddress as a special case. Instead, each MessageHeaders
property should convert it to appropriate serializable objects.
(Our DataContractSerializer fails to reject EndpointAddress as
serializable type, so it's rather a preparation step.)
svn path=/trunk/mcs/; revision=151196
* MessageHeader.cs, Message.cs : use dictionary string whenever
applicable. The binary output on #577139 is getting closer (no
idea if it is really about binary output though).
svn path=/trunk/mcs/; revision=151194
* BinaryMessageEncoder.cs : moved soap_dictionary to Constants.
* Constants.cs : moved SoapDictionary from BinaryMessageEncoder.
svn path=/trunk/mcs/; revision=151193
* XmlDictionaryWriter.cs : try to lookup dictionary string in
WriteNode(). This is part of #577139 fix (probably).
svn path=/trunk/mcs/; revision=151191
* TabControl.cs: When calculating the layout for the tab pages, take
into account the ImageList size info if it exists, even if it is
empty.
svn path=/trunk/mcs/; revision=151188
2010-02-09 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Mono.CompilerServices.SymbolWriter does not
need to access mscorlib.dll internals anymore (ArrayList and
Hashtable)
In .:
2010-02-09 Sebastien Pouliot <[email protected]>
* net_2_1_raw_corlib.dll.sources: Add Mono.CompilerServices.
SymbolWriter source files directly into mscorlib 2.1
In System.Reflection.Emit:
2010-02-09 Sebastien Pouliot <[email protected]>
* ModuleBuilder.cs: Do not use reflection to create SymbolWriterImpl
for Moonlight since the code is bundled inside mscorlib.dll to avoid
having a non-platform assembly poking the internals of mscorlib.dll
svn path=/trunk/mcs/; revision=151176
* XmlBinaryDictionaryWriter.cs : for text '0' and '1', write 0x82 and
0x84 instead of 0x99 [0x30|0x31]. This cosmetic fix gives identical
writer output for #577139 (and yet it still doesn't work).
svn path=/trunk/mcs/; revision=151173
* icall.c (param_info_get_type_modifiers): Handle the case when the member object is a
property. This happens which instances returned by PropertyInfo::GetIndexParameters ().
* reflection.c (mono_reflection_get_custom_attrs_info): Ditto.
* object-internals.h: Export mono_class_is_reflection_method_or_constructor as part of
the internal API.
Fixes#574434.
svn path=/trunk/mono/; revision=151093
* ClientRuntimeChannel.cs : when WSAddressing10 is used, set ReplyTo
and MessageID. (found while fixing #577139).
svn path=/trunk/mcs/; revision=151092
* DataContractSerializerMessageContractImporter.cs,
ServiceContractGenerator.cs: ArrayOfXxx does not exist in the type
definition code. Use Xxx[] directly instead.
* WsdlImporterTest.cs : added test for processing ArrayOfXxx types.
* service1.wsdl, schema1.xsd, schema2.xsd : new test files (small
repro for bug #577139).
svn path=/trunk/mcs/; revision=151087
* UnixRegistryApi.cs: When retrieving the registry keys from file in a
unix system, if the value returned by a SecurityElement is null,
use String.Empty, since at this point we know that this registry key
*exists* and *cannot* have a null value, as specified in the public
api.
Fixes#543206.
svn path=/trunk/mcs/; revision=151070
* aot-compiler.c (emit_code): Don't add the llvm label prefix to 'methods', since
it is not an LLVM generated symbol.
svn path=/trunk/mono/; revision=151049
* method-to-ir.c (handle_castclass): Turn off the more efficient isinst/castclass
implementation in gshared mode because it causes regressions.
svn path=/trunk/mono/; revision=151043
* mini-exceptions.c (mini_jit_info_table_find): Search the root domain as well,
since mono_jit_info_table_find () doesn't do it anymore.
* mini-generic-sharing.c debugger-agent.c: Call mini_jit_info_table_find ()
instead of mono_jit_info_table_find ().
svn path=/trunk/mono/; revision=151032
* domain.c (mono_jit_info_table_find): Avoid looking in the root domain, since
the caller has no way of knowing the domain which owns the returned MonoJitInfo.
* appdomain.c (create_exceptions): Call mono_thread_push/popappdomain_ref ().
svn path=/trunk/mono/; revision=151031
* XsdDataContractImporter.cs : do not add primitive ArrayOfxxx types.
* XsdDataContractImporterTest.cs : add test that ArrayOfxxx type
is not added.
* schema1.xsd, schema2.xsd : new test files.
svn path=/trunk/mcs/; revision=151021
* marshal.c (mono_marshal_get_wrapper_info): Rename from
mono_marshal_wrapper_info_from_wrapper.
* marshal.c (mono_marshal_set_wrapper_info): Rename from
mono_marshal_method_set_wrapper_data, and export.
* boehm-gc.c sgen-gc.c null-gc.c: Get rid of mono_gc_get_allocator_type, store
the allocator type in a AllocatorWrapperInfo structure instead, which is accesible
by calling mono_marshal_get_wrapper_info ().
svn path=/trunk/mono/; revision=150990
* sgen-gc.c (mono_gc_get_managed_allocator): Add a specialized allocator for
small objects which does no size checks.
svn path=/trunk/mono/; revision=150987
* method-to-ir.c (handle_castclass): Use the icall for classes with variant
generic params as well.
(handle_isinst): Ditto.
svn path=/trunk/mono/; revision=150980
* method-to-ir.c: Make isninst/castclass checks in gshared code more efficient
instead of always calling an icall.
svn path=/trunk/mono/; revision=150979
* eval.cs (CompileBlock): Also undo if there are problems during
semantic analysis, fixes various cases where invalid C# code would
be reported, but the internal changes would not be undone.
svn path=/trunk/mcs/; revision=150974
* aot-compiler.c (emit_code): Change the way the 'methods' symbol is emitted
when using LLVM. Instead of emitting it as an LLVM method, emit it using
the assembly directive '.set' so it points to the first LLVM emitted method.
svn path=/trunk/mono/; revision=150964
* MethodInfoTest.cs: New test for GetParameters() returning the
* interned array.
* PropertyInfoTest.cs: New tests for GetIndexParameters().
svn path=/trunk/mcs/; revision=150946
* MonoMethod.cs (GetParameters): Must return a copy instead of
* the interned array.
* MonoMethod.cs (Invoke): Skip array clone in GetParameters.
* MonoProperty.cs (GetIndexParameters): Properly handle
* write-only indexed properties.
Return a ParameterInfo object bound to the properly and not to
the method.
* ParameterInfo.cs: Add new constructor that copies all fields
* but Member.
* ParameterInfo.cs (MetadataToken): Properly handle tokens of
* non-method members.
svn path=/trunk/mcs/; revision=150945
* MaskedTextProvider.cs: In ToString() if we are a password, use the
prompt char in the places where no char has been filled in yet, instead of
putting the password char.
Fixes#360407.
svn path=/trunk/mcs/; revision=150926
* RemotingServices.cs (InternalExecuteMessage): Properly
handle generic methods. We can't call MakeGenericMethod on
a non GMD method.
svn path=/trunk/mcs/; revision=150925
Fix bug #576579.
* CreateManifestResourceName.cs: Use TargetPath metadata, as the link
name.
* CreateCSharpManifestResourceName.cs:
* CreateVisualBasicManifestResourceName.cs: Prefer linkname over
filename, if available.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateCSharpManifestResourceNameTest.cs:
* CreateVisualBasicManifestResourceNameTest.cs:
Add new tests for TargetPath metadata.
In class/Microsoft.Build.Tasks/Test/resources:
* junk.txt: New.
svn path=/trunk/mcs/; revision=150924
* method-to-ir.c (mono_method_to_ir): Use the new basic block formation pass
to avoid JIT'ng dead basic blocks. This is the same behavior as the
runtime MS verifier.
svn path=/trunk/mono/; revision=150889
* verify.c (mono_method_verify): Use the new basic block formation pass
to avoid verifying dead basic blocks. This is the same behavior as the
runtime MS verifier.
svn path=/trunk/mono/; revision=150888
* mono-basic-block.c:
* mono-basic-block.h: New implementation of a basic block formation pass.
The formation pass does static liveness analysis as well to detect dead
basic blocks.
svn path=/trunk/mono/; revision=150887
current build files to list of previous build files.
(_GetCleanFileWrites): Rename items to be obvious of the contents.
(CoreClean): Delete the file list also.
svn path=/trunk/mcs/; revision=150874
* Microsoft.Build.Tasks_test.dll.sources: Added
WriteLinesToFileTest.cs
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* WriteLinesToFile.cs: Delete the file if there is nothing to
be written and overwrite==true.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* WriteLinesToFileTest.cs: New.
svn path=/trunk/mcs/; revision=150873
* Dummy.cs, net_2_1_raw_System.ServiceModel.dll.sources : add some
classes out of dummy, for monotouch (hidden in 2.1 profile).
* ClientCredentials.cs, ContractDescription.cs,
IEndpointBehavior.cs, IOperationBehavior.cs : add monotouch support
for client behavior.
svn path=/trunk/mcs/; revision=150863
* driver.cs: Change the --fatal flag to allow a number to be
passed, this ignores the first N fatal errors. Useful to debug
errors that do not happen on the first hit.
* cs-parser.jay (invocation_expression): accept both the
CLOSE_PARENS and COMPLETE_COMPLETION, this allows completions
inside an invocation.
* driver.cs: Expose FatalErrors.
* eval.cs: Initialize the printer's Fatal property from the
Driver's FatalError flag, this allows csharp --fatal to work
again.
Add support for calling Describe (typeof (TYPE)) if the expression
entered is a TYPE.
svn path=/trunk/mcs/; revision=150857
* AssemblyInfo.cs: added back InternalsVisibleTo for the test
assembly - it's needed to access CacheItemPriorityQueue
2010-02-03 Marek Habersack <[email protected]>
* OutputCache.cs: DefaultProviderName checks if there was any
provider configured and, if not, returns a built-in provider's
name.
* SqlCacheDependencyAdmin.cs: added
* OutputCacheProviderCollection.cs: added
* OutputCacheProvider.cs: added
* OutputCacheModule.cs: uses the 4.0 extensible output cache
provider model now (also internally in the 2.0 profile)
OutputCacheProvider is retrieved on every request using
HttpApplication.GetOutputCacheProviderName (4.0+). In the 2.0
profile an instance of InMemoryOutputCacheProvider is always
returned.
* InMemoryOutputCacheProvider.cs: default output cache provider
for ASP.NET 4.0, also used internally in the 2.0 profile.
* CachedVaryBy.cs: made the generated key shorter
* CacheItemPriorityQueueDebug.cs: debugging support for
CacheItemPriorityQueue. Most of the code is compiled only when the
DEBUG macro is defined. Debugging support includes recording of
the queue operations sequence which is output to an XML file on
appdomain shutdown. The recorded sequence files can be used to
generate NUnit test cases for the priority queue (see
../Test/tools/README)
* CacheItemPriorityQueue.cs: rewritten using an array based heap
instead of a binary tree based one - implementation is simpler,
faster and more elegant. Heap is initially 32 entries long and
its size is doubled every time it fills up. After reaching a
threshold (8192 entries currently) it is shrunk to the number of
items + 1/3 of item count in order to preserve memory.
* CacheItem.cs: added a Guid field to easier distinguish items
(mostly for debugging purposes)
* CacheDependency.cs: minor performance improvements
* Cache.cs: better handling of timer periods
2010-02-03 Marek Habersack <[email protected]>
* HttpApplication.cs: GetOutputCacheProviderName returns the value
of OutputCache.DefaultProviderName
* HttpRuntime.cs: internal cache is used to hold the dependencies
now.
2010-02-03 Marek Habersack <[email protected]>
* CacheItemPriorityQueueTest_generated.cs: added
* CacheItemPriorityQueueTest.cs: added
2010-02-04 Marek Habersack <[email protected]>
* Helpers.cs: added a helper method for checking of HTML mentions
any .NET exceptions.
2010-02-03 Marek Habersack <[email protected]>
* Makefile: added targets to compile cache priority queue tests
generator and to generate the tests themselves
svn path=/trunk/mcs/; revision=150855
* ChannelDispatcher.cs : now I can enable service throttling to
handle more than one concurrent channels as ASP.NET reply channel
got fixed.
* HTTP_listener_notes.txt: Fixed some wrong description, simplified
some, and updated some.
svn path=/trunk/mcs/; revision=150851
* SvcHttpHandler.cs : a wait handle could be used for more than one
requests and hence it sometimes blocked one reply channel. Now
it creates a wait handle for each ASP.NET request so that such
multiple use should not occur. This should fix blocking on
concurrent requests (it indeed fixes as long as I can see).
* HTTP_listener_notes.txt: some notes updated.
svn path=/trunk/mcs/; revision=150850
* StatusStrip.cs:
* XplatX11.cs:
* X11Structs: Implement the new BeginMoveResize method, designed to
instruct the window manager to init a resize operation on a top level
form. This is used by StatusStrip.
* XplatUI.cs:
* XplatUIDriver.cs:
* XplatUIWin32.cs:
* XplatUICarbon.cs: Fill the gaps by creating stubs and updating the
method calls.
Fixes#573299.
svn path=/trunk/mcs/; revision=150833
* VirtualMachine.cs (CreateEnumMirror): New method to create an EnumMirror.
* AppDomainMirror.cs (GetCorrespondingType): New method to return a TypeMirror
corresponding to a primitive type.
* TypeMirror.cs (IsEnum): Implement.
* EnumMirror.cs (.ctor): New internal constructor called from CreateEnumMirror
which does lots of error checking.
svn path=/trunk/mcs/; revision=150813
* image-writer.c: Reduce the amount of #ifdefs a bit.
* aot-compiler.c: Reduce the amount of #ifdefs. Add beginnings of support for
llvm on darwin/arm.
svn path=/trunk/mono/; revision=150806
* PreservationFile.cs: updated the BuildResulTypeCode enum
* BuildManager.cs: LoadCompiled now adds all the assemblies built
from the App_Code directory to the BuildManager.CodeAssemblies
collection. Fixes bug #576810
svn path=/trunk/mcs/; revision=150802
* BaseMachine.cs (Split): Don't add empty strings if they don't
* come from
the first capture group. Fixes#566117.
svn path=/trunk/mcs/; revision=150786
* HTTP_listener_notes.txt: I couldn't help but write about it to
not keep myself confused by this complicated stuff.
svn path=/trunk/mcs/; revision=150764
In class/corlib/System.Threading.Tasks/:
* Task.cs: Fix autocomplete mistake (s/Exception/exception/).
Let continuation processing happens at the right moment when
task has child.
svn path=/trunk/mcs/; revision=150728
In class/corlib/:
* corlib.dll.sources: Add System.Threading.Tasks/SimpleConcurrentBag.cs
and System.Threading.Tasks/UnobservedTaskExceptionEventArgs.cs
In class/corlib/System.Collections.Concurrent/:
* ConcurrentDictionary.cs:
* ConcurrentQueue.cs:
* ConcurrentStack.cs:
* Partitioner.cs: Port to .NET 4 beta 2 API
* ConcurrentSkipList.cs: Use Monitor for locking
In class/corlib/System.Threading.Tasks/:
* Future.cs:
* Parallel.cs:
* ParallelLoopState.cs:
* Task.cs:
* TaskCompletionSource.cs:
* TaskContinuationOptions.cs:
* TaskCreationOptions.cs:
* TaskFactory.cs:
* TaskScheduler.cs:
* UnobservedTaskExceptionEventArgs.cs: Port to .NET 4 beta 2 API
* SimpleConcurrentBag.cs: Add a simpler implementation of ConcurrentBag
for use with parallel loops as ConcurrentBag was moved to System
In class/corlib/System.Threading/:
* CancellationToken.cs:
* CancellationTokenSource.cs:
* ManualResetEventSlim.cs:
* SemaphoreSlim.cs:
* SpinLock.cs:
* SpinWait.cs:
* ThreadLocal.cs: Port to .NET 4 beta 2 API
In class/corlib/System/:
* AggregateException.cs:
* OperationCanceledException.cs: Port to .NET 4 beta 2 API
In class/corlib/Test/System.Collections.Concurrent/:
* CollectionStressTestHelper.cs:
* ConcurrentBagTests.cs:
* ConcurrentDictionaryTests.cs:
* ConcurrentQueueTests.cs:
* ConcurrentSkipListTests.cs:
* ConcurrentStackTests.cs:
* ParallelConcurrentQueueTests.cs:
* ParallelConcurrentStackTests.cs: Update namespaces and tested methods
In class/corlib/Test/System.Threading.Tasks/:
* FutureTests.cs:
* ParallelTestHelper.cs:
* ParallelTests.cs:
* SnziTests.cs:
* TaskCompletionSourceTests.cs:
* TaskTest.cs: Update namespace and tested methods
In class/corlib/Test/System.Threading/:
* CancellationTokenTests.cs:
* LazyInitTests.cs:
* ThreadLazyTests.cs: Update namespace and tested methods
svn path=/trunk/mcs/; revision=150716
* mini-trampolines.c (common_call_trampoline): Fix a problem where the callsite
was not patched if the callee needed an rgctx trampoline.
svn path=/trunk/mono/; revision=150692
* ScriptManager.cs: adjusted script rendering to match .NET
formatting.
* ScriptComponentDescriptor.cs: GetScript adds ID value (if
present) to the set of properties.
GetScript rewritten to use StringBuilder.
* ScriptBehaviorDescriptor.cs: GetScript adds Name, if present and
set by the user, to the descriptor's set of properties. The name
must be rendered to the client.
2010-02-02 Marek Habersack <[email protected]>
* ScriptBehaviorDescriptorTest.cs,
ScriptComponentDescriptorTest.cs: added tests for rendering of the
Name and ID properties.
svn path=/trunk/mcs/; revision=150684
* object.c, domain.c: When using SGen, we must register
vtable->type as a root if it's not a MonoType, because then it
wasn't pin-alloced.
svn path=/trunk/mono/; revision=150665
* sgen-gc.c: Reset to_space_bumper to to_space_section->next_data
at the start of nursery collections, because we might have had
degraded allocations which changed next_data.
svn path=/trunk/mono/; revision=150646
* method-to-ir.c (mini_emit_ldelema_1_ins): Avoid emitting an OP_SEXT_I4 when
using LLVM, its not needed, and abcrem can't handle it.
svn path=/trunk/mono/; revision=150642
* genmdesc.c, genmdesc.pl, cpu-x86.md: introduced templates to make
it easier to group instructions and reduce duplication.
svn path=/trunk/mono/; revision=150635
* ComboBox.cs: When creating DrawItemEventArgs pass the fore color and
back color arguments depending on the higlight/focus state, just like
.net.
Fixes#572643.
svn path=/trunk/mcs/; revision=150623
* decompose.c: Move the array/soft float decompose routines here from
method-to-ir.c.
* method-to-ir.c: Export a few functions so they can be used from decompose.c.
svn path=/trunk/mono/; revision=150613
* mini-llvm.c (mono_llvm_emit_method): Add a call to llvm.invariant.start
to tell LLVM that the got is constant, not used yet.
* aot-compiler.c: Pass more optimization flags to llvm's 'opt'.
svn path=/trunk/mono/; revision=150601
* CustomAttributeBuilder.cs (Initialize): Add more argument checking to avoid
assertions in the runtime. Fixes#574353.
svn path=/trunk/mcs/; revision=150597
* NetworkStream.cs: Our explicit impl of IDisposable.Dispose belongs
to 1.0/1.1 only. Also move the call to GC.SupressFinalize to
Dispose(bool), as expected and as done by other Stream children
implementing a destructor.
Fixes#564637.
svn path=/trunk/mcs/; revision=150590
* aot-compiler.c (add_wrappers): Commit the hack which generates
native-to-managed wrappers for methods decorated with the MonoPInvokeCallback
custom attribute.
svn path=/trunk/mono/; revision=150588
* marshal.c (mono_marshal_get_managed_wrapper): Avoid constructing the
custom attr so this function works in cross-compiling mode.
svn path=/trunk/mono/; revision=150587
* mini.h (MONO_INST_FAULT): New instruction flag for loads which can cause
a fault, only used by the LLVM backend.
* ir-emit.h: Add _FAULT variants of the LOAD_MEMBASE macros. Mark
OP_CHECK_THIS with OP_IMPLICIT_EXCEPTION.
* method-to-ir.c: Use the new LOAD_MEMBASE_FAULT opcodes, get rid of the
calls to MONO_EMIT_NULL_CHECK which is automatically done by the new macros.
* mini-llvm.c: Only generate volatile loads from load instructions which have
the MONO_INST_FAULT flag set.
svn path=/trunk/mono/; revision=150534
* WebClient_2_1.cs: Ensure the WriteStreamClosed event is emitted on
the correct thread (by using the stored SynchronizationContext).
* InternalWebRequestStreamWrapper.cs: Add a WebClientData field which
is passed to the WriteStreamClosedCallback.
svn path=/trunk/mcs/; revision=150512
* debugger-agent.c (mono_debugger_agent_init): Call appdomain_unload at the
end of the appdomain unload process, after assemblies have been unloaded.
Fixes#574842.
svn path=/trunk/mono/; revision=150456
* WebClient_2_1.cs: The async events must be invoked on a threadpool
thread if the async method wasn't executed on the main thread, so save
the synchronization context when the async method is called, and post
the event to that synchronization context when done. This is also
required when the async methods are executed on the main thread, since
HttpWebRequest callbacks are now always executed on a threadpool thread.
svn path=/trunk/mcs/; revision=150370
2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* Assembly.cs: GetSatelliteAssembly: Ask LoadSatellite to not throw
exceptions, since we ignore them anyway.
In class/corlib/System:
2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* AppDomain.cs: LoadSatellite: add a boolean parameter specifiying
whether we should throw on exceptions or not.
svn path=/trunk/mcs/; revision=150366
* Driver.cs, MoonlightChannelBaseExtension.cs, CommandLineOptions.cs:
Now that ServiceContractGenerator generates both sync and async
methods, it has to explicitly remove sync methods from moonlight
proxies since they are not supported.
Also now we can generate sync proxies for monotouch, so
differentiate them again to support sync proxy generation (if you
don't want to generate sync methods, just use -moonlight).
svn path=/trunk/mcs/; revision=150364
* ServiceContractGenerator.cs : when Options.AsynchronousMethods is
specified, generate async methods *as well as* sync methods (i.e.
not exclusively).
In moonlight proxy generator (svcutil -moonlight) mode, sync
methods will be removed at svcutil itself.
This fix brings sync proxy methods back to monotouch.
* ServiceContractGeneratorTest.cs : add test for async method
generation option to generate sync methods as well.
svn path=/trunk/mcs/; revision=150363
* XmlReaderBinarySupport.cs : eliminate possible extra buffer
storing of zeros. Fixed bug #543332.
* XmlReaderCommonTests.cs : added test for bug #543332.
svn path=/trunk/mcs/; revision=150347
* Makefile, *.sh, *.il: Change status of a bunch of a tests to reflect the metadata
verifier. First pass into making the test suite works under OSX.
svn path=/trunk/mono/; revision=150305
* verify.c (verify_class_for_overlapping_reference_fields): Properly verify
overlapping fields now that we're called before has_references is set.
* pedump.c (dump_verify_info): Clear any loader error before verifying another
method. Otherwise all sort of weird stuff happens.
svn path=/trunk/mono/; revision=150303
* JsonReader.cs : It seems it can either return int, long or decimal
depending on the value. Users cannot really predict what type of
the primitive value can be returned and casts to specific types
very likely fail. doh.
svn path=/trunk/mcs/; revision=150285
* Uri.cs: In IsWellFormedOriginalString(), call to our internal
EscapeString() method since we need to tell it to *not* escape '#'
(hex). Fixes#549135.
svn path=/trunk/mcs/; revision=150282
* XmlAtomicValue.cs: handle Decimal here to process xs:decimal as
a valid base type for simple types. patch by Luke Ravitch,
Fixed bug #557452.
* XmlSchemaValidatorTests.cs : added test for bug #557452, by
Luke Ravitch.
svn path=/trunk/mcs/; revision=150280
* DataContractJsonSerializer.cs : KnownTypes does not include root
type. Fixed bug #573689.
* DataContractJsonSerializerTest.cs :
enable TypeIsNotPartsOfKnownTypes(), and add more related tests.
svn path=/trunk/mcs/; revision=150279
* DataContractJsonSerializerTest.cs : make some tests narrow down
possible cause of errors to detect expected errors more precisely.
svn path=/trunk/mcs/; revision=150278
* JsonSerializationReader.cs : "null" for string should be read as
null, not String.Empty. Fixed bug #573690.
* DataContractJsonSerializerTest.cs : null-string case is working.
svn path=/trunk/mcs/; revision=150276
* JsonReader.cs : use decimal instead of int to parse decimal part
of numeric value. It can parse bigger value than int now (like
tweet id).
svn path=/trunk/mcs/; revision=150268
* DataContractJsonSerializer_2_1.cs: Don't hide [Field|Method]
AccessException inside a SerializationException but in a
SecurityException.
svn path=/trunk/mcs/; revision=150219
* monotouch_System.ServiceModel.Web.dll.sources: Don't inherit from
net_2_1_raw*.sources when you require a superset of moonlight API
svn path=/trunk/mcs/; revision=150214
* net_2_1_raw_corlib.dll.sources: added System.IO/SearchOption.cs
to fix the build.
2010-01-26 Marek Habersack <[email protected]>
* SearchOption.cs: included in 2.1 build as internal to fix
the build.
svn path=/trunk/mcs/; revision=150207
* XmlReflectionImporter.cs, SerializationCodeGenerator.cs,
XmlSerializationWriterInterpreter.cs: XmlAnyElementAttribute can be
still used for non-XmlNode (object) array. It only fails when it
tries to serialize non-XmlNode object at run-time.
Fixed bug #553032.
* XmlSerializerTests.cs : added test for bug #553032.
svn path=/trunk/mcs/; revision=150197
* XmlSchemaComplexType.cs : validate base type first and then
validate particle. Patch by Jonas Larsson, fixed bug #502251.
svn path=/trunk/mcs/; revision=150194
* XmlSchemaSet.cs : when adding a schema with "", it seems treated
as if it were null. Fixed bug #571650.
* XmlSchemaSetTests.cs : added test for bug #571650.
svn path=/trunk/mcs/; revision=150187
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Use custom
version of DataContractJsonSerializer for Moonlight
svn path=/trunk/mcs/; revision=150153
* DataContractJsonSerializerTest.cs: Add non-working test cases
for null-string, known types and handling floating point special
values
svn path=/trunk/mcs/; revision=150151
* DataContractJsonSerializer_2_1.cs: New. Simpler version for
Moonlight since it does not inherit from the same base type nor
does it overrides any base methods.
svn path=/trunk/mcs/; revision=150149
A fix for bug #573312
* constant.cs, expression.cs, ecore.cs: Emit correct offset for
pointer index of unknown size types greater than 2.
svn path=/trunk/mcs/; revision=150137
* SerialPortStream.cs: Read was returning requested count instead
of actual bytes read. Thanks to Thad Thompson for spotting this.
svn path=/trunk/mcs/; revision=150134
* SerializationMap.cs : allow readonly field as data member.
Fixed bug #560155.
* XmlObjectSerializerTest.cs : added test for bug #560155.
svn path=/trunk/mcs/; revision=150119
* ChannelDispatcher.cs : actually instance context provider could be
null through the entire service run.
Fixed all current nunit failures!
svn path=/trunk/mcs/; revision=150110
* ChannelFactory_1.cs, ChannelFactory.cs : fix default constructor
handling and ensure service endpoint at opening the factory.
* ChannelFactory_1Test.cs : added a couple of error check tests for
constructors and CreateChannel() overloads.
svn path=/trunk/mcs/; revision=150109
* mini.c (mini_method_compile): Improve the processing MONO_VERBOSE_METHOD so
it supports class names as well.
* mini.h (MonoCompile): Add a few flags to control JIT behavior which are
needed by the GC map code.
* mini.c (mini_method_compile): Call a function in mini-gc.c to set the new
flags if needed.
* method-to-ir.c (mono_method_to_ir): Emit initialization code for ref variables
if cfg->init_ref_vars is set.
* liveness.c (optimize_initlocals): Disable the initlocals opt for ref vars if
cfg->disable_initlocals_op_refs is set.
* method-to-ir.c (mono_spill_global_vars): Compute more precise live ranges
using liveness info if cfg->compute_precise_live_ranges is set.
* mini-gc.c: Ongoing work. Improve logging and debugging support. Handle
volatile variables correctly. Add comments about the live ranges. Not enabled
yet.
svn path=/trunk/mono/; revision=150097
* StreamReader.cs: When detecting the encoding we usually check the
four first bytes looking for either UTF32 or UTF8 BOM, since they share
the first two bytes, but if we happen to have less than 4 bytes at
detection time, just check for Unicode and use it as the current
encoding - this is exactly what .Net does, and it is specially visible
with NetworkStream.
Fixes#534137.
svn path=/trunk/mcs/; revision=150090
2010-01-24 Robert Jordan <[email protected]>
* Dictionary.cs: Fix deserialization compatibility with MS.NET.
Fixes bug #474009.
In Test/System.Collections.Generic:
2010-01-24 Robert Jordan <[email protected]>
* DictionaryTest.cs: Add test case for bug #474009.
svn path=/trunk/mcs/; revision=150089
* mini.h (MonoDebugOptions): Add an option to init stack frames by writing
0x2a into them in method prologs.
* mini-amd64.c (mono_arch_emit_prolog): Implement it.
svn path=/trunk/mono/; revision=150088
* ServiceHostBase.cs : fix complicated IMetadataExchange handling to
pass nunit tests (treat mex binding as special case).
* ServiceMetadataBehaviorTest.cs : check name constant (MSDN is
wrong here).
* ServiceHostTest.cs : add a few more comments.
svn path=/trunk/mcs/; revision=150066
* configure.in: Check whenever g++ is installed, since libtool requires it
even if no c++ files will be compiled.
svn path=/trunk/mono/; revision=150055
* TcpDuplexSessionChannel.cs : added a workaround receiver delay
that somehow makes callback client to not cause infinite loop.
* CallbackBehaviorAttributeTest.cs : enable the test again.
svn path=/trunk/mcs/; revision=150052
* mini-llvm-cpp.cpp: Remove uses of dynamic_cast, it no longer works with llvm
classes, since llvm is compiled with -fno-rtti.
svn path=/trunk/mono/; revision=150050
* mini.h (COMPILE_SOFT_FLOAT): New macro, similar to COMPILE_LLVM.
* method-to-ir.c ir-emit.h: Use if (COMPILE_SOFT_FLOAT) in a few places since
llvm does not require it.
* aot-runtime.c (load_method): Print the full name of the last aot method.
svn path=/trunk/mono/; revision=150049
* DuplexClientRuntimeChannel.cs : do not try to iterate channel
acceptor when it is being closed.
* ChannelDispatcher.cs : do not try to iterate channel acceptor when
it is being closed.
svn path=/trunk/mcs/; revision=150047
* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
DuplexChannelBase.cs : Receive() should rather use TryReceive().
It should not be in reverse order.
svn path=/trunk/mcs/; revision=150040
* Activator.cs: When calling CreateInstance() and no default .ctor is
found for the type, don't pass the member argument to the
MissingMethodException, to have a better and simpler error message.
Fixes#396986.
svn path=/trunk/mcs/; revision=150039
* HttpReplyChannel.cs, HttpListenerManager.cs :
Implement async cancellation in the expected manner (though with
some hack). This mostly removed nunit blockers.
* NetTcpBindingTest.cs : enabled connection tests again, as they
got working again (and more importantly, they don't block).
* CallbackBehaviorAttributeTest.cs : on the other hand, disabled
a test so far. It is the only active test && the blocker now.
svn path=/trunk/mcs/; revision=150037
* IPEndPoint.cs: When throwing an ArgumentException in Create()
because of a mismatch in the address family, use a more informative
message. Patch by Juho Vähä-Herttu<[email protected]>.
Fixes#505105.
svn path=/trunk/mcs/; revision=150031
* reflection.c (typebuilder_setup_fields): Pretend field setup already
happened before starting to encode the actual fields. This avoid ciclic
dependencies and eventual crashes.
Fixes#572660.
svn path=/trunk/mono/; revision=150008
* sgen-gc.c, gc-internal.h, object.c: Make string allocation
atomic and remove the half-constructed hack in SGen.
svn path=/trunk/mono/; revision=150005
* driver.c: Do not abort if LLVM is not supported, print a
warning and add the information to the Mono JIT information.
svn path=/trunk/mono/; revision=149988
* SmtpClient.cs: rethrow inner exception so that
AsyncCompletedEventArgs.Error gets the right value on error. Patch
by Dimitar Dobrev.
svn path=/trunk/mcs/; revision=149983
2010-01-21 Sebastien Pouliot <[email protected]>
* CookieContainerTest.cs: Additional test cases from Tom Philpot
In System.Net:
2010-01-21 Sebastien Pouliot <[email protected]>
* CookieContainer.cs: Fix to cloning and expiration. Patch
by Tom Philpot <[email protected]>
svn path=/trunk/mcs/; revision=149976
* metadata-verify.c (parse_generic_inst): Fail a type signature if it
has a recursive reference to itself.
Fixes#571863.
svn path=/trunk/mono/; revision=149969
* Dictionary.cs: Always create the keys, fixes compatibility
between Mono and .NET. Patch from John Lenz <[email protected]>
svn path=/trunk/mcs/; revision=149947
that the auto complete list -if any- is closed as well, instead of
stay open without need.
2010-01-20 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=149942
2010-01-20 Rolf Bjarne Kvinge <[email protected]>
* Makefile: Specify the path to Mono.Cecil.dll when referencing it.
In tools/linker:
2010-01-20 Rolf Bjarne Kvinge <[email protected]>
* Makefile: Fetch Mono.Cecil.dll from whatever profile we happen to be
building in.
svn path=/trunk/mcs/; revision=149941
* icall.c: don't raise AppDomain.TypeResolve when the type is loaded
from the current assembly or mscorlib. Fixes bug #322957.
svn path=/trunk/mono/; revision=149921
* ObjectStateFormatter.cs: implemented support for IndexedString
on top of the existing StringFormatter.
* IndexedString.cs: implemented
svn path=/trunk/mcs/; revision=149919
* aot-compiler.c (encode_method_ref): Use mono_marshal_wrapper_info_from_wrapper
() in one place.
(mono_aot_wrapper_name): Remove the special handling of delegate invoke wrappers,
its no longer needed.
svn path=/trunk/mono/; revision=149887
* TextBox.cs: When showing the autocomplete listbox, make sure it's on
top, by calling the raw XplatUI.SetZOrder for it, since we can't
properly call BringToFront on it as it is parentless. This fixes an
issue when using this feature with ComboBox's own parentless listbox.
Fixes the remaining bits of #489339.
svn path=/trunk/mcs/; revision=149877
* exceptions-<ARCH>.c: Introduce a MONO_ARCH_HAVE_THROW_EXCEPTION_BY_NAME
define for platforms still using it (s390). Get rid of the
mono_arch_get_throw_exception_by_name () routines on all other platforms.
svn path=/trunk/mono/; revision=149873
* exceptions-x86.c: Rework the throw trampolines so there is only one function
which can generate throw/rethrow/corlib trampolines for llvm/not llvm code.
svn path=/trunk/mono/; revision=149871
* exceptions-x86.c: Add LLVM specific throw trampolines which doesn't assume
the caller pushed the arguments.
* mini-llvm.c: Enable throwing exceptions on x86.
* mini-posix.c (SIG_HANDLER_SIGNATURE): Avoid
"Thread (nil) may have been prematurely finalized" messages if this is called
on a thread not registered with the runtime.
* mini-exceptions.c (mono_handle_native_sigsegv): Ditto.
svn path=/trunk/mono/; revision=149869
* XplatUI.cs:
* XplatUIDriver:
* XplatUICarbon:
* XplatUIWin32:
* XplatUIX11.cs:
* XplatUIStructs: Implement support for different kind of audible
alerts in Windows, and update the requiered classes.
* MessageBox.cs:
* TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
Fixes#473725.
svn path=/trunk/mcs/; revision=149868
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/App_GlobalResources/Resource1.resx
and
Test/mainsoft/NunitWebResources/TagWithExpressionWithinAttribute.aspx
2010-01-19 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #568631
2010-01-19 Marek Habersack <[email protected]>
* AspGenerator.cs: modified the runatServer regex to correctly
match embedded server tags which end in a sequence like: "%>"/>
Fixes bug #568631
svn path=/trunk/mcs/; revision=149855
* StaticSiteMapProvider.cs: AddNode checks the url of node
returned by FindSiteMapNode to see if it indeed was a
duplicate. It is necessary if application derives from
StaticSiteMapProvider and overrides FindSiteMapNode to return
RootNode if rawUrl doesn't match any existing node. Fixes bug
#570194
2010-01-19 Marek Habersack <[email protected]>
* TestRunner.cs: Run makes sure Uri parser is passed a full url,
or otherwise it won't be parsed correctly (will not parse the
query part if an URL similar to '/file.html?query=value' is
passed)
* Helpers.cs: added a simple and naive method to extract query
from WebResource.axd URLs. This is necessary because the query
will be different each time the test is ran.
2010-01-19 Marek Habersack <[email protected]>
* standalone-runner.cs: reformatted summary message to match
NUnit's more closely.
svn path=/trunk/mcs/; revision=149842
* jit-icalls.c (mono_array_new_3): New jit icall.
* aot-compiler.c aot-runtime.c: Add support for ElementAddr wrappers.
* arrays.cs: Add a test for 3 dimensional arrays.
svn path=/trunk/mono/; revision=149834
* marshal.c (mono_marshal_wrapper_info_from_wrapper): New helper function to
return a point to a wrapper specific info structure describing the wrapper.
(mono_marshal_get_array_address): Store the rank+elem_size in the wrapper info.
svn path=/trunk/mono/; revision=149833
* security-core-clr.c (mono_security_core_clr_can_access_internals):
Handle the case where 'basedir' can be NULL (e.g. SRE assemblies)
svn path=/trunk/mono/; revision=149823
* cominterop.c marshal.c: Added support for marshalling in, in/byref,
in/out, in/out/byref parameters of type SAFEARRAY[VARIANT].
* cominterop.cs libtest.c: Added tests for marshalling
in, in/byref, in/out, in/out/byref parameters of type
SAFEARRAY[VARIANT].
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=149817
* BufferedStream.cs: Patch by Tom Philpot to optimise ReadByte
* and
WriteByte significantly by making them fulfill their request by
directly reading from the buffer.
svn path=/trunk/mcs/; revision=149799
* CommunicationObject.cs : when process state changes, lock the
object to make sure the state transition is valid.
Change OnClosed/OnClosing to do the way OnOpened/OnOpening does.
* ChannelDispatcher.cs : another error audit.
svn path=/trunk/mcs/; revision=149793
MaxDropDownHeight property - also rename our field 'count' to
'visible_items_count' to avoid confusion as much as possible.
Fixes an issue with several items, showing an incorrect layout.
2010-01-18 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=149786
* ServiceAuthorizationBehavior.cs : implement (it does almost
nothing though).
* ServiceAuthorizationBehaviorTest.cs : it's updated and enabled.
Added some more tests.
svn path=/trunk/mcs/; revision=149785
* exceptions-x86.c (mono_arch_get_throw_corlib_exception): Emit xdebug info.
(mono_arch_find_jit_info_ext): Disable the popping of arguments when LLVM is
used.
* mini-llvm.c (emit_cond_system_exception): Abort when an implicit exception is
thrown on x86.
svn path=/trunk/mono/; revision=149783
* unwind.c (mono_unwind_decode_fde): Fix an assert on x86.
* mini-x86.h (MONO_CONTEXT_SET_LLVM_EXC_REG): Define this for x86.
* mini-llvm.c: Disable OP_THROW on x86, it doesn't work yet.
svn path=/trunk/mono/; revision=149782
* sgen-gc.c: Make minor collection section allowance adaptive,
depending on the amount of memory reclaimed in the last major
collection. If more memory was reclaimed (i.e. more garbage
produced), do the next collection earlier.
svn path=/trunk/mono/; revision=149781
* Parameter.cs: added missing 3.5 APIs - constructors taking
DbType as one of the parameters, ConvertDbTypeToTypeCode,
ConvertTypeCodeToDbType and GetDatabaseType. Fixes bug #567850
2010-01-18 Marek Habersack <[email protected]>
* ParameterTest.cs: added tests for ConvertDbTypeToTypeCode,
ConvertTypeCodeToDbType and constructors taking DbType as one of
the parameters.
svn path=/trunk/mcs/; revision=149778
* metadata-verify.c (parse_type): Fail a type signature if it has a recursive reference
to itself.
* metadata-verify.c (mono_verifier_verify_typespec_signature): Change signature to take
the token as parameter.
* verify-internals.h: Ditto.
* metadata.c (mono_type_create_from_typespec): Pass token to verifier.
Fixes#571460.
svn path=/trunk/mono/; revision=149776
* libmono.vcproj : Adding a link to Mswsock.lib and adding files
mono-error and debugger-agent.
* debugger-agent.c : Changing the PLATFORM_WIN32 preprocessor check to
HOST_WIN32. Also including winsock2. to define struct in_addr.
* mini-amd64.h : Changing the PLATFORM_WIN32 preprocessor check to HOST_WIN32.
* mini-x86.h : Changing the PLATFORM_WIN32 preprocessor check to HOST_WIN32.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=149774
* RichTextBox.cs: SelectedText should set Modified to true. Observe
that this is happening just here, not for the Text property, and
neither for the TextBoxBase impl.
Fixes#569950.
svn path=/trunk/mcs/; revision=149772
* LogicalTypeInfo.cs: partial revert of r146546. The 'd' wrapper
(and thus the JsonResult class) is needed after all. Fixes bug
#571365
svn path=/trunk/mcs/; revision=149756
* mini.h (MonoCompile): Add 'disable_out_of_line_bblocks' flag.
* branch-opts.c (mono_optimize_branches): Honor the new flag.
* mini.c (mini_method_compile): Set the new flag when running under the
debugger.
svn path=/trunk/mono/; revision=149754
* mini-gc.c: Change the GC map to use a ref/noref/pin value instead of just
a ref/noref value + a global pin flag, so parts of stack frames can still be
precisely marked even if they include stuff which needs pinning. Improve logging.
Fix many bugs. Not enabled yet.
* gc-test.cs: Add a few tests.
svn path=/trunk/mono/; revision=149748
* liveness.c (mono_analyze_liveness): Make the debug output controllable by
the normal -v options. Avoid propagating liveness information through bblocks
which end with a NOT_REACHED opcode.
svn path=/trunk/mono/; revision=149747
* UInt64.cs: Implement a lightweight version of the Parse method for
the overload that does not take IFormatProvider/NumberStyle
parameters - this gets us a nice speed up, just like we do for the
other number types.
Fixes#338022.
svn path=/trunk/mcs/; revision=149722
* sgen-gc.c (mono_gc_base_init): Add 'conservative_stack_mark' option to turn
off precise marking if it is available.
(mono_gc_get_bitmap_for_descr): Fix the handling of run length descriptors.
svn path=/trunk/mono/; revision=149720
* sgen-pinning.c (evacuate_pin_staging_area): Don't assert if there are no
pinned objects.
* sgen-gc.c (create_allocator): Add the missing n > MONO_ARRAY_MAX_INDEX check
to the array allocator.
svn path=/trunk/mono/; revision=149705
* branch-opts.c (mono_branch_optimize_exception_target): Stop the optimization
if a clause is skipped because it uses the exception object, since it could
have caught the exception.
* exceptions.cs: Add a test.
svn path=/trunk/mono/; revision=149704
* generic-sharing.c (instantiate_other_info): Don't create ftnptr's from the
result of mono_compile_method (), it already includes an ftnptr.
svn path=/trunk/mono/; revision=149690
* mini-amd64.c (emit_call_body): Always use near calls when AOTing even if
NOMAP32BIT or optimize_for_xen is set.
svn path=/trunk/mono/; revision=149671
* Int32.cs: In Parse() cast the parsed value to long *before* changing
its sign - this way we preserve the original value, instead of
accidentally changing it. This was happening parsing _exactly_
MaxValue + 1.
Fixes#475815.
svn path=/trunk/mcs/; revision=149646
* ChangePassword.cs: BaseChangePasswordContainer forwards
EnsureChildControls call to its owner, so that finding controls in
the container works correctly.
2010-01-15 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ChangePasswordContainer_FindControl.aspx
2010-01-15 Marek Habersack <[email protected]>
* ChangePasswordTest.cs: added test for looking for controls in
ChangePassword template containers.
svn path=/trunk/mcs/; revision=149631
* XmlConvert.cs : Do not ignore ticks which are less than a
millisecond. Remove trailing zeros for milliseconds and ticks.
* XmlConvertTests.cs : add test for ToString(TimeSpan) with small
ticks.
svn path=/trunk/mcs/; revision=149618
* XmlConvert.cs : trim spaces when parsing TimeSpan.
* XmlConvertTests.cs : add test for ToTimeSpan() with spaces.
svn path=/trunk/mcs/; revision=149617
* DateTime.cs : In AddMilliseconds(), it seems fractional
milliseconds are first rounded and then added.
* DateTimeTest.cs : added test for rounding milliseconds.
svn path=/trunk/mcs/; revision=149614
* XmlConvert.cs : DateTimeOffset parse is sloppy.
* XmlConvertTests.cs : add test for ToDateTimeOffset() with date
string with spaces.
svn path=/trunk/mcs/; revision=149609
* System.ServiceModel.dll.sources: add SL config loader here
for easy debugging under 2.0 profile.
* SilverlightClientConfigLoader.cs : add another loop blocker.
Do not reject binding configuration with no basic http binding.
In SL3 it may be custom and such configuration should be valid.
svn path=/trunk/mcs/; revision=149606
* metadata.c (mono_metadata_str_hash): New helper function to compute a stable
hash value which doesn't depend on glib/eglib versions.
(mono_metadata_type_hash): Use it.
* object.c (mono_method_get_imt_slot): Ditto.
svn path=/trunk/mono/; revision=149601
* aot-runtime.c (mono_aot_plt_resolve): Reenable the previous assert for
ftnptrs created by us, handle RGCTX_FETCH correctly.
(mono_aot_get_lazy_fetch_trampoline): Add an ftnptr.
* mini-trampolines.c (mono_create_generic_class_init_trampoline): Remove the
ftnptr added by mono_aot_get_named_code ().
svn path=/trunk/mono/; revision=149600
* profiles/net_4_0_bootstrap.make : MCS also needs MONO_PATH to
net_2_0 to load System.Core.dll. Fix build (mostly for windows).
svn path=/trunk/mcs/; revision=149598
* scripts/get-cygwin-deps.sh: New file. Contains a script to download and setup
the dependencies needed for compiling mono on cygwin.
svn path=/trunk/mono/; revision=149582
* class.c (mono_type_has_exceptions): Check the generic instance. It can fail
independently of the GTD.
* class.c (mono_class_setup_fields): Fail if field has negative offset.
* class.c (mono_class_setup_fields): Fail if valuetype has zero size. Add sizeof(MonoObject)
to the upper limit since instance_size includes this amount.
* class.c (mono_class_layout_fields): Check if the types of the static fields have failed.
Fixes#569544.
svn path=/trunk/mono/; revision=149575
by having EcmaHelpSource.GetTextFromUrl() look for cached contents.
This greatly speeds up type member listings (e.g. T:...List`1/*),
e.g. from ~2.0s to 0.06s.
svn path=/trunk/mcs/; revision=149531
* Helpers.cs, ITestCase.cs, ITestRunner.cs, StandaloneTest.cs,
TestCallback.cs, TestCaseAttribute.cs,
TestCaseFailureException.cs, TestRunItem.cs, TestRunner.cs,
TestWorkerRequest.cs: added
2010-01-14 Marek Habersack <[email protected]>
* System.Web_standalone_test.dll.sources,
standalone-runner-support.dll.sources: added
* Makefile: Added targets to build and run standalone tests.
Added standalone tests and test tools to EXTRA_DISTFILES
2010-01-14 Marek Habersack <[email protected]>
* Consts.cs.in, Locations.cs: added
2010-01-14 Marek Habersack <[email protected]>
* standalone-runner.cs: added
* Makefile: added build targets for standalone-runner.exe
2010-01-14 Marek Habersack <[email protected]>
* NunitWebTest.cs: added new overload of GetControlFromPageHtml
which takes begin and end markers as parameters.
2010-01-14 Marek Habersack <[email protected]>
* ApplicationManager.cs: implemented a missing CreateObject
overload
2010-01-14 Marek Habersack <[email protected]>
* executable.make, library.make, rules.make: quote file name
wherever referenced in dist* targets, so that files with spaces in
name work fine.
svn path=/trunk/mcs/; revision=149522
* HttpWebRequest.cs: when the server returns several different
authentication methods, pick the one that works.
Fixes bug #562043.
svn path=/trunk/mcs/; revision=149500
wasn't adding extension methods which matched *interfaces* of base
classes. Result: Mono.Options.OptionSet (which inherits
System.Collections.ObjectModel.KeyedCollection`2 which inherits from
System.Collections.ObjectModel.Collection`1 which implements
System.Collections.Generic.IEnumerable`1) wasn't getting any of the
LINQ extension methods (which is bad). Fix this.
svn path=/trunk/mcs/; revision=149496
commit adding GetLinkTargetHtml(). The problem was that when
running within ASP.NET/monodoc ~all extension method links would be
'javascript:alert("...")M:Foo.Method(...)', which is clearly wrong.
This occurred because $linkid's generation would always call
GetLinkTargetHtml() with a $cref value of '', thus the monodoc
GetLinkTarget() would return '', so GetLinkTargetHtml() would return
the javascript "not found" alert. Thus, we can't expect
GetLinkTargetHtml() with $cref='' to work under monodoc, but it's
~required to work sanely under 'mdoc export-html'.
Solution is to not call GetLinkTargetHtml() here UNLESS we're doing
'mdoc export-html' generation, which we assume to be the case if
$html-anchor is true.
svn path=/trunk/mcs/; revision=149492
* HttpWebRequest_2_1.cs: Throw for CookieContainer. It is
implemented only in the client http stack (and for a limited
time in the browser stack too ;-)
* InternalWebRequestStreamWrapper.cs: Keep the MemoryStream data
available after closing/disposing (by user) since our own code
will need it later (e.g. when posting like DRT287)
* WebHeaderCollection_2_1.cs: Provide an argument to
ArgumentException. Found by Gendarme's ArgumentException
InstantiateArgumentExceptionCorrectlyRule
svn path=/trunk/mcs/; revision=149484
* jit.h, method-to-ir.c: added ability to set the policy for
inserting breakpoints from the break IL instruction or the
Debugger.Break () API call.
svn path=/trunk/mono/; revision=149472
* aot-runtime.c (load_aot_module): Add more comments to explain why referenced
assemblies need to be eagerly loaded.
svn path=/trunk/mono/; revision=149469
* ExceptionDetail.cs : uncomment DataMember (likely commented out due
to missing default serialization in the past).
svn path=/trunk/mcs/; revision=149450
* WebRequest_2_1.cs: Rework registration wrt the two, browser
and client, stacks offered in SL3. Only global works now.
svn path=/trunk/mcs/; revision=149423
* class.c (mono_class_get_implemented_interfaces): Now take a MonoError argument.
* class.c:
* cominterop.c:
* icall.c:
* object.c:
* class-internals.h: Adjust for new signature of mono_class_get_implemented_interfaces.
svn path=/trunk/mono/; revision=149414
* class.c (mono_class_setup_interfaces): Now take a MonoError argument and
it can fail loading the type.
* class.c: Add mono_class_inflate_generic_class_checked.
* class.c:
* verify.c:
* class-internals.h: Adjust for new signature of mono_class_setup_interfaces.
svn path=/trunk/mono/; revision=149413
* XmlConvertTests.cs : added commented-out tests for the remaining
parse tests by Tiaan Geldenhuys for XLinq, with the reason why.
svn path=/trunk/mcs/; revision=149388
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().
* XmlConvertTests.cs : float parse should do the same. Fix NaN test.
svn path=/trunk/mcs/; revision=149386
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
with whitespace allowed.
* XmlConvertTests.cs : another double parse test for string with
spaces, for string constants such as NaN.
svn path=/trunk/mcs/; revision=149385
* Double.cs : AllowLeading/TrailingWhite should also check those
surrounding string constants such as "NaN".
* DoubleTest.cs : add test for AllowLeading/TrailingSpace flags.
svn path=/trunk/mcs/; revision=149383
* XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
whitespaces.
* XUtil.cs : to create an XNode from an object, do not use ToString()
directly. Handle TimeSpan in xsd manner.
svn path=/trunk/mcs/; revision=149382
* XUtil.cs, XElement.cs, XAttribute.cs : unlike XmlConvert, casts to
DateTime seem also support general conversion (parse) from strings.
svn path=/trunk/mcs/; revision=149378
* valgrind.h, memcheck.h: Add guards to prevent the gcc features
from being included in non-GCC builds like the Windows build.
svn path=/trunk/mono/; revision=149374
* XmlWriter.cs : handle a corner case for empty string handling
difference between XmlTextWriter and XmlWriter.Create().
* XmlWriterTests.cs : added a corner case test for empty string handling
difference between XmlTextWriter and XmlWriter.Create().
svn path=/trunk/mcs/; revision=149368
* assembly.c (mono_set_rootdir): Support finding the mono paths on OS X
at runtime in the same way as on Windows, which yields a relocatable
Mono. Uses dyld's _NSGetExecutablePath and realpath to resolve the path
of the running mono process.
On TARGET_ARM, fallback () will always be executed.
svn path=/trunk/mono/; revision=149298
* debugger-agent.c (mono_debugger_agent_parse_options): Allow onthrow without
an argument which matches any exception.
svn path=/trunk/mono/; revision=149296
* ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
place and synchronize the events properly. Fixes a lack of
coordination between the events - which should be fired together.
svn path=/trunk/mcs/; revision=149289
* method-to-ir.c (mono_emit_method_call_full): Avoid the virt->nonvirt
optimization if the called method is gshared and marshalbyref, since gshared
methods can' have wrappers. Fixes#569390.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=149286
* SilverlightClientConfigLoader.cs : uncomment binary message
encoding element which was internal-only in SL2 but public in SL3.
svn path=/trunk/mcs/; revision=149278
* debugger-agent.c (transport_connect): comment out freeaddrinfo calls under win32,
since it is not supported in win2000.
svn path=/trunk/mono/; revision=149274
* TrackBar.cs: Move our events code to a single method, allowing it to
optionally fire the Scroll event. This way we both avoid the
duplicated calls to OnScroll and also will be able to fire Scroll
*before* OnValueChanged in other places.
Fixes#568026.
svn path=/trunk/mcs/; revision=149268
* WebConfigurationManager.cs: GetSection properly handles looking
up and caching of <location> instances. Part of fix for bug
#568441
* WebConfigurationHost.cs: GetConfigPathFromLocationSubPath
calculatesthe path relative to the current config file path. Part
of fix for bug #568441
2010-01-09 Marek Habersack <[email protected]>
* VirtualPathUtility.cs: small optimizations for GetDirectory
2010-01-09 Marek Habersack <[email protected]>
* ConfigurationLocation.cs: trailing / characters are removed from
the path.
* Configuration.cs: instances created for locations inherit
ConfigPath from their containing document.
Host.GetConfigPathFromLocationSubPath must be called with current
instance's configPath, not LocationConfigPath.
Locations are sought for using paths relative to the current
instance's configPath, not to the root path.
All of the above is part of fix for bug #568441
svn path=/trunk/mcs/; revision=149262
* aot-runtime.c (load_image): Add a SET_ERROR argument to set the loader
error if loading an assembly fails.
(mono_aot_plt_resolve): Return NULL instead of asserting if loading fails.
* mini-trampolines.c (mono_aot_plt_trampoline): Throw a pending loader error
if exists.
svn path=/trunk/mono/; revision=149258
mdoc 2.4 moved to Cecil and stopped building monodocer1, rendering
the check meaningless, and current trunk doesn't build the 1.0
profile anyway, making the check more meaningless.
svn path=/trunk/mcs/; revision=149251
* Expression.cs (Call): properly deal with zero length array
of type arguments for non generic methods. Fixes#568989.
svn path=/trunk/mcs/; revision=149240
* ContractDescriptionGenerator.cs : fix GetCallbackContract() to
correctly retrieve ServiceContractAttribute from the service type,
not the callback type. This ended up to get the bug #567672 sample
working (but it will break at some stage as it involves some
non-implemented classes).
* EndpointDispatcher.cs, InputOrReplyRequestProcessor.cs :
Pass service type to correctly retrieve ServiceContractAttribute
from the service type, not callback type.
* ServiceProxyGenerator.cs, ServiceRuntimeChannel.cs :
Pass service type to correctly retrieve ServiceContractAttribute
from the service type, not callback type.
* CallbackBehaviorAttributeTest.cs : added callback example from
bug #567672.
svn path=/trunk/mcs/; revision=149226
* ClientRuntimeChannel.cs : to open duplex callback channel, it must
ensure to open the channel itself (not only its inner channel).
svn path=/trunk/mcs/; revision=149222
* mini-llvm.c (mono_llvm_emit_method): Add some comments about why aot+clauses
is not supported yet.
* unwind.c (DW_EH_PE_absptr): Add more DW_EH_PE_ constants.
svn path=/trunk/mono/; revision=149205
* method-to-ir.c: All types with variant arguments must fallback to the
slow path. This makes cast of variant delegates work.
* mini-trampolines.c (mono_get_vcall_slot_addr): Add new variance_used out
argument that is set to TRUE is the returned vtable slot is for a variant
interface. Changed a g_print + g_assert_not_reached to a g_error.
* mini-trampilines.c (common_call_trampoline): Handle variant interfaces in
a similar fashion of generic virtual methods.
2010-01-07 Rodrigo Kumpera <[email protected]>
* object.c (add_imt_builder_entry): Improve DEBUG_IMT spew.
* object.c (build_imt_slots): Interfaces with variant generic arguments use the
fallback trampoline as well.
* class.c (mono_class_interface_offset_with_variance): Add new non_exact_match
out argument that is set to TRUE if the match was direct.
* class.c (mono_class_is_assignable_from): Delegates require variance testing as well.
* class-internal.h: Update prototype of mono_class_interface_offset_with_variance.
svn path=/trunk/mono/; revision=149198
* helpers.c (mono_disassemble_code): Fix a g_hash_table warning
when cfg is null.
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Convert a given
method using a variance aware function.
* mini-x86.c: Add support for dumping IMT thunks if DEBUG_IMT is defined.
svn path=/trunk/mono/; revision=149197
* class.c: Add mono_class_interface_offset_with_variance function that does same
as mono_class_interface_offset but takes variance into account.
* class-internal.h: Export mono_class_interface_offset_with_variance.
* object.c: Fix and improve DEBUG_IMT. Added an assert for IMT thunk building.
svn path=/trunk/mono/; revision=149196
* object.c:
* icall.c:
* class.c: Add some FIXME for due to variant generic arguments.
object.c (mono_object_isinst_mbyref): Interfaces with variant generic arguments
can't use the simple bitfield check, so call mono_class_is_assignable_from if
the bitfield check fails.
svn path=/trunk/mono/; revision=149194
* class.c (mono_class_is_assignable_from): Rework the generics variance code
to be easier to read and fix bugs in the case a non generic type implements a variant
interface.
* class.c (mono_class_has_variant_generic_params): Make non static.
* class-internals.h: Export mono_class_has_variant_generic_params as part of
the private API.
svn path=/trunk/mono/; revision=149193
2010-01-07 Jb Evain <[email protected]>
* MonoType.cs (.MemberType): return the proper member type
for generic parameters.
in Test/System/
2010-01-07 Jb Evain <[email protected]>
* TypeTest.cs: add test for the MemberType of
a generic parameter.
svn path=/trunk/mcs/; revision=149175
2010-01-07 Sebastien Pouliot <[email protected]>
* Convert.cs: Fix line endings in ToBase64String (bug #568778)
and also the default line length. Code changed to not require
a BinaryReader over a MemoryStream to reduce memory requirements.
In Test/System:
2010-01-07 Sebastien Pouliot <[email protected]>
* ConvertTest.cs: Add test case for #568778 and the default
line length.
In System.Security.Cryptography:
2010-01-07 Sebastien Pouliot <[email protected]>
* ToBase64Transform.cs: Static-ify some methods to make it easier
to use from System.Convert
svn path=/trunk/mcs/; revision=149171
* TcpBinaryFrameManager.cs : treat EOF as interrupted stream too (it
does not happen when communicating with .NET client but happens with
mono). Seealso FIXME comment.
* TcpDuplexSessionChannel.cs : do not try to close session when it
failed to read sized message. The connection is already dead.
Fixed bug #567949.
svn path=/trunk/mcs/; revision=149166
* TcpDuplexSessionChannel.cs :
Write EndRecord only when the connection is available.
Remove hack - do let ChannelDispatcher close the channel.
* TcpBinaryFrameManager.cs :
The socket may be disconnected when trying to read a sized message,
so check some socket exceptions.
In case the client silently shuts down without EndRecord and
reconnects to the server with preamble while expecting a sized
message (which is so lame, but that's what .NET often does), refresh
preamble and continue.
This fixes some cases of bug #567949 but not all.
svn path=/trunk/mcs/; revision=149163
* ChannelDispatcher.cs : make sure to unlock channel acceptor wait
handle when the delegated method resulted in an error.
svn path=/trunk/mcs/; revision=149162
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add an ugly hack to fix#564695.
If LLVM decides to set the code model to Large, reset it to Default.
svn path=/trunk/mono/; revision=149159
* mini-trampolines.c (common_call_trampoline): Add an rgctx trampoline if a shared
method is called from LLVM compiled code, as that code can't pass an rgctx arg.
* mini-llvm.c (mono_llvm_emit_method): Enable calls to methods needing an rgctx
reg.
svn path=/trunk/mono/; revision=149152
from Cadenza for the line wrapping algorithm. (Only fitting as
WrappedLines() came from Mono.Options in the first place!)
Patch thanks to Federico Di Gregorio.
* Test/Mono.Options/OptionSetTest.cs: Update WriteOptionDescriptions()
for new, better-defined line-wrapping semantics.
svn path=/trunk/mcs/; revision=149144
* mini-llvm.c (mono_llvm_emit_method): Pass the info in MonoExceptionClause
as the type info to llvm.eh.selector.
(exception_cb): Use the type info for filling out some fields of
MonoJitExceptionInfo like the flags and the exception class. This is needed
because the LLVM produced exception handling clauses might not match the original
IL clauses, i.e. there might be more than one LLVM clause for one IL clause.
* unwind.c (mono_unwind_decode_fde): Extract the LSDA decoding code into a
separate function. Add an extra argument which returns the type infos
corresponding to the exception clauses.
* mini.c (mini_method_compile): Enable LLVM compilation of methods having
exception handling clauses.
svn path=/trunk/mono/; revision=149125
* CacheItemPriorityQueue.cs: make sure lastParent is never null if
root is not null in Enqueue. Possible fix for bug #567869
svn path=/trunk/mcs/; revision=149118
* SerializationCodeGenerator.cs : enum value identifiers should be
escaped with '@'. Fixed bug #566370.
* XmlSerializerTests.cs : added test for #566370.
svn path=/trunk/mcs/; revision=149104
* BinaryMessageEncoder.cs : enable workaround buffering only when
the argument stream does *not* support seek. This fixes some
net.tcp connection problem.
* BinaryMessageEncodingBindingElementTest.cs : added test for
connection-based tests for both TCP and HTTP (they give difference:
see BinaryMessageEncoder.cs change too).
svn path=/trunk/mcs/; revision=149103
* BuildManager.cs: in GenerateAssembly, if compilation fails for
the requested path and exception thrown is of type
CompilationException, do not wrap it in HttpException, just
rethrow.
* AppResourcesCompiler.cs: the culture files dictionary is
case-insensitive now. Otherwise culture files with culture name
cased differently will cause overlapped i/o on response files
while building satellite assemblies and, in effect, compilation
will fail.
svn path=/trunk/mcs/; revision=149077
* RadioButton.cs: When drawing, if Appearance is Button use the old
normal routine in the theme engine, instead of using the one in 2.0,
since this last one doesn't support proper rendering of the control as
a button.
Fixes#567904.
svn path=/trunk/mcs/; revision=149073
* verify.c (mono_verifier_verify_class): Properly check for broken parent. Ignore
types that are meant to not have a parent.
2010-01-04 Rodrigo Kumpera <[email protected]>
* mini.c (mono_compile_is_broken): Skip methods from serialization's
internal assembly.
svn path=/trunk/mono/; revision=149053
* marshal.c (mono_marshal_get_runtime_invoke): Make a copy of the signature
from the image mempool, so it is not leaked.
svn path=/trunk/mono/; revision=149052
* mini.c (mini_method_compile): Verify the method before calling
mono_compile_create_vars as this might crash since it uses method
information.
Fixes#560196.
svn path=/trunk/mono/; revision=149045
* pedump.c: Run code verifier even if image verification fails
due to a failed type we. This allows more errors to be shown.
svn path=/trunk/mono/; revision=149044
* class.c (mono_class_init): Do class verification at the beginning. Add
some asserts to avoid tripping into invalid memory.
* object.c (compute_class_bitmap): Replace a g_assert_not_reached with a
g_error and a decent message.
* verify.c (mono_verifier_verify_class): Verify for invalid super type.
Fixes#567548.
svn path=/trunk/mono/; revision=149028
* method-to-ir.c (mono_method_to_ir): Avoid calling mono_class_vtable () in
one case if AOTing, since the class might not be a concrete class.
svn path=/trunk/mono/; revision=149027
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs:
Do not include in both mscorlib and System.Core for a NET_2_1 profile.
svn path=/trunk/mcs/; revision=149020
* GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
text of the group box if it is disabled.
Fixes#567847.
svn path=/trunk/mcs/; revision=149010
* MemoryStream.cs: Don't clear the bytes beyond Length when shrinking
it. Instead just save the related information for it and do it when
Length grows and touchs that dirty region. Refactor the code where
needed to avoid duplication as well.
Fixes#327053.
svn path=/trunk/mcs/; revision=148995
* mini-codegen.c abcremoval.c: Remove the duplicate g_slist_append_mempool
functions which are now defined in mempool-internals.h.
svn path=/trunk/mono/; revision=148994
* mempool-internals.h (g_list_prepend_mempool): Define this and related functions
as inline functions instead of defining them in mempool.c.
svn path=/trunk/mono/; revision=148993
* metadata-internals.h (MonoImageSet): New structure representing a set of
MonoImages, which own a collection of generic instances.
* metadata.c: Get rid of the global generic caches, instead assign each generic
instance to the image set which consists of all the images referenced by the
instance. This greatly speeds up mono_metadata_clean_for_image (), and allows
the memory used by generic instances to be allocated from a per image-set mempool
later.
svn path=/trunk/mono/; revision=148992
* locales.c (construct_culture_from_specific_name): Applied patch from
José Antonio Sánchez Lázaro <[email protected]>. Fix a crash if a culture was
not found. Fixes#567900.
svn path=/trunk/mono/; revision=148968
* loader.c (mono_method_get_signature_full): Remove two asserts.
Return NULL instead so that the verifier can handle both cases
gracefully.
svn path=/trunk/mono/; revision=148951
* class.c (mono_class_setup_methods): Use checked version of mono_class_inflate_generic_method_full
so we can properly fail types instead of crashing.
Fixes#567676.
svn path=/trunk/mono/; revision=148948
* verify.c (init_stack_with_value_at_exception_boundary): Do stack overflow checking here
as max stack might be zero.
Fixes#562320.
svn path=/trunk/mono/; revision=148910
* monitor.c (ves_icall_System_Threading_Monitor_Monitor_wait): Don't close the
wait handle if the wait is interrupted, since it is still in mon->wait_list, and
we can't remove it from it since we don't hold the lock.
(mon_new): Free the orphaned events here when a mon structure is added to the
freelist. Fixes#561239. Thanks to Mike Rieker <[email protected]> for tracking
this down.
svn path=/trunk/mono/; revision=148908
Rework all uses of mono_class_setup_methods to accept that it can fail now.
* class.c (mono_class_setup_methods): This function now can fail the class. Do so for generic
instances if the GTD did.
* class.c (mono_class_setup_properties): Ditto.
* class.c (mono_class_setup_events): Ditto.
* class.c (mono_class_setup_vtable): Fail early if the type is already broken.
* class.c (mono_class_setup_vtable_general): Add a few more missing broken type checks. Sanitize
error setting.
* class.c (mono_class_init): Fail if GTD did.
* cominterop.c:
* generic-sharing.c:
* icall.c:
* loader.c:
* object.c:
* verify.c: Properly handle failure of mono_class_setup_methods.
2009-12-26 Rodrigo Kumpera <[email protected]>
* mini-trampolines.c (common_call_trampoline): Add assert for NULL resolved generic method.
svn path=/trunk/mono/; revision=148905
* class-internals.c: Add mono_class_inflate_generic_method_full_checked and make
mono_class_inflate_generic_method_full internal.
* class.c (inflate_generic_context): Now takes a MonoError argument.
* class.c (mono_class_inflate_generic_method_full): Now calls the _checked and abort on
errors.
svn path=/trunk/mono/; revision=148904
* TcpBinaryFrameManager.cs : If preamble byte is not available from
the client stream, detect it to close the reply or input channel.
* TcpRequestChannel.cs : send preamble at each request time.
It differentiates communication behavior on such cases that involve
single open and multiple requests.
* TcpReplyChannel.cs : close the channel only when the channel is
oeprated to close i.e. do not close the socket every time.
Process preambles on each request (the same as request channel).
svn path=/trunk/mcs/; revision=148901
* TcpBinaryFrameManager.cs : unsized envelope record may have more
than one data block, so consume them accordingly. This should fix
large buffer consumption.
svn path=/trunk/mcs/; revision=148900
* mini-trampolines.c: Use mono_arch_get_this_arg_from_call () to avoid the slow
mono_get_generic_context_from_code () call.
* mini-<ARCH>.c: Get rid of mono_arch_find_this_arg (), it is no longer used.
svn path=/trunk/mono/; revision=148897
2009-12-24 Sebastien Pouliot <[email protected]>
* CookieContainerTest.cs: Split many tests into smaller test
cases. Add test cases for DefaultPerDomainCookieLimit and
DefaultCookieLimit. Remove all [Category ("NotWorking")] since
everything works now.
In System.Net:
2009-12-24 Sebastien Pouliot <[email protected]>
* Cookie.cs: Re-work ToString to be useable in more cases. Fix
some issues found by Gendarme.
* CookieContainer.cs: Fix all NonWorking (and new) unit tests.
Implement removing oldest cookies when limits are reached.
* CookieCollection.cs: Move to generics internally. Fix sort to
be closer to MS implementation (but still not 100% identical).
Fix some issues found by Gendarme.
svn path=/trunk/mcs/; revision=148891
* metadata-internals.h, reflection.c: Use the
MonoDynamicImage.handleref hash table only with unmanaged keys,
and add a managed hash table handleref_managed for managed keys.
svn path=/trunk/mono/; revision=148886
* docs/specs/Makefile: Use compiled Mono, not system Mono (fixes broken build on systems without Mono already installed)
svn path=/trunk/mcs/; revision=148856
* debugger-agent.c (ss_start): Implement step over for the last sequence
point in methods.
* mini.c (mono_save_seq_point_info): Don't link sequence points which don't
have the STEP_LOC flag set.
svn path=/trunk/mono/; revision=148853
* HtmlForm.cs: RenderChildren is slightly more efficient now.
2009-12-22 Marek Habersack <[email protected]>
* Page.cs: form javascript declaration block is rendered only if
necessary. Fixes bug #566541
* ClientScriptManager.cs: added internal property ScriptsPresent
used to determine if it is necessary to render form javascript
declaration block.
Hidden fields block is output without indenting the controls and
without rendering trailing empty line.
Made Write{Begin,End}ScriptBlock slightly faster.
svn path=/trunk/mcs/; revision=148840
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Fix bug #565849.
* DirectoryScanner.cs (Excludes): Change from string to ITaskItem[] .
* BuildItem.cs: Track api changes.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs (TestItemsWithWildcards): Add Exclude also, update
test accordingly.
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks.dll.sources: Add DirectoryScanner.cs
from Build.Engine, required by CreateItem.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
Fix bug #565849.
* CreateItem.cs: Use DirectoryScanner to handle wildcards.
(IsExcluded): Remove.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateItemTest.cs (TestItemsWithWildcards): New.
svn path=/trunk/mcs/; revision=148839
* loader.c (mono_method_get_signature_full): Check if the returned signature is compatible
with the one from the original method.
* metadata-verify.c (mono_verifier_is_sig_compatible): New function to verify signature
compatibility.
* verify-internals.h: Add new function to the internal API.
svn path=/trunk/mono/; revision=148828
* mini.c (mono_add_seq_point): New helper function.
(mono_save_seq_point_info): New function to save sequence point info, extracted
from mini_method_compile ().
* mini-<ARCH>.c: Call mono_add_seq_point to remember sequence points.
* mini.h (MonoSeqPointInfo): New structure containing information about
the sequence points of a JITted method.
(MonoBasicBlock): Add 'seq_points' and 'last_seq_point' fields. Remove unused
'bucket' field.
* mini.c debugger-agent.c aot-compiler.c aot-runtime.c: Change the way sequence
point information is stored, use a MonoSeqPointInfo structure instead of a
GPtrArray. For each seq point, compute a list of successor seq points.
* debugger-agent.c: Use the successor list to implement step-over more
efficiently: instead of single stepping until a different line/IL offset is
reached, place breakpoints into all successor seq points.
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=148820
* mini-x86.c (mono_arch_get_argument_info): Allocate memory for CallInfo using
alloca as g_malloc is not signal safe.
svn path=/trunk/mono/; revision=148811
* MessageFault.cs : support EnvelopeVersion.None as well, as almost
the same as SOAP12.
* MessageFaultTest.cs : add CreateFault test with MessageVersion.None.
svn path=/trunk/mcs/; revision=148797
2009-12-19 Zoltan Varga <[email protected]>
* String.cs: Fix the various IndexOf and LastIndexOf methods so they handle
"" and a non-zero startIndex correctly. Fixes#566106.
In Test/System:
2009-12-19 Zoltan Varga <[email protected]>
* StringTest.cs: Add tests for IndexOf ("", startIndex, count).
svn path=/trunk/mcs/; revision=148789
2009-12-18 Dimitar Dobrev <[email protected]>
* culture-info-tables.h: regenerated it to include the Georgian culture.
In tools/locale-builder:
2009-12-18 Dimitar Dobrev <[email protected]>
* langs/ka.xml: added a file with the settings of the neutral
Georgian culture
* locales/ka-GE.xml: added a file with the settings of the
specific Georgian culture
* supp/ka-GE.xml: added a file with the date and time formats
of the Georgian culture
* lcids.xml: added entries for the neutral and specific
Georgian culture
* Makefile.am: included supp/ka-GE.xml in the build and dist the new
we're not downloading from primates.ximian.com.
[Fixes bug 564910].
svn path=/trunk/mono/; revision=148776
* configure.in: Remove the check for valgrind/memcheck.h, we include the file
in our sources now.
In mono/utils:
* valgrind.h memcheck.h: New files containing the BSD licensed valgrind
headers so we can use the valgrind user requests even if mono is compiled on
a system where they are not installed.
In mono/metadata:
* sgen-gc.c: Include mono/utils/memcheck.h.
In mono/mini:
* *.c: Include mono/utils/memcheck.h, and remove #ifdef HAVE_VALGRIND_MEMCHECK_H
checks, they are no longer needed.
svn path=/trunk/mono/; revision=148765
* ServiceContractGenerator.cs :
EventArgs are not nested classes.
Result property of EventArgs is not IAsyncResult. It should be
pulled from EndXxx() method, not from BeginXxx().
svn path=/trunk/mcs/; revision=148761
* reflection.c (mono_reflection_get_type_internal_dynamic): Use assembly->domain
instead of the current domain, since the two might not match if this is called
from the debugger.
* metadata-internals.h (MonoDynamicAssembly): Add a 'domain' field to specify the
domain which created this assembly.
svn path=/trunk/mono/; revision=148758
* how-client-proxy-is-created.txt : brief summary of code generation
behavior (it is rather about ServiceContractGenerator, but would
rather fit here).
svn path=/trunk/mcs/; revision=148756
* exceptions-ppc.c (mono_ppc_set_func_into_sigctx): New helper function to set
a function into a sigctx which can handle function pointers.
* mini-ppc.c: Implement soft debugger support on ppc64.
svn path=/trunk/mono/; revision=148750
* MonoGenericClass.cs (GetMethods): When the GTD is not a typebuilder,
calling GetMethods on it will return everything we need so no need to
do the crazy loop.
The returned methods might contains some that are not from a generic type
so we need to guard against this as well.
* MonoGenericClass.cs (GetMethodsInternal): Guard against methods that don't
belong to a GTD as well.
svn path=/trunk/mcs/; revision=148735
* mini.c (mono_get_runtime_build_info): include Mono version in
the returned value.
* driver.c (mono_main): VERSION is now included in the string
returned from mono_get_runtime_build_info()
svn path=/trunk/mono/; revision=148697
* icall.c (ves_icall_Type_GetMethodsByName): Don't pin virtual methods if they are newslot.
A private virtual newslot method is used to implement an interface method without exposing
it to users. When querying for public instance methods, such method would hide a public one
on a parent type.
Fixes#564379.
svn path=/trunk/mono/; revision=148694
* method-to-ir.c (mono_method_to_ir): Add support for CALLI with unmanaged
signatures. Fixes#565143.
* jit-icalls.c (mono_get_native_calli_wrapper): New JIT icall.
svn path=/trunk/mono/; revision=148680
* zlib-helper.c: when finishing uncompressing a buffer, we might need
more than one call to deflate with Z_FINISH since the uncompressed
data can take more space than the allocated buffer.
Fixes the IPY+Chiron test case.
svn path=/trunk/mono/; revision=148592
* class-internals.h (MonoDynamicGenericClass): Kill property and event related fields
as they are no longer used.
* metadata.c (free_generic_class_dependents): Remove reference to previous fields
* reflection.c (mono_reflection_generic_class_initialize): Ditto.
svn path=/trunk/mono/; revision=148589
* reflection.c (mono_type_get_object): If the type is VAR or MVAR check
if the owner class has not been finished before returning reflection_info.
Fixes#565127.
svn path=/trunk/mono/; revision=148575
* reflection.c (mono_custom_attrs_from_param): Avoid a crash if a dynamic
param doesn't have custom attributes. Fixes#565117.
svn path=/trunk/mono/; revision=148560
* BinaryMessageEncoder.cs : added workaround for strange stream
consumption error raised by HttpTransport + Binary encoder example.
* BinaryMessageEncodingBindingElement.cs:
only SOAP 1.2 is allowed for this encoder.
svn path=/trunk/mcs/; revision=148552
* mini-x86.c (mono_arch_allocate_vars): Fail compilation if the frame size is
bigger than MONO_ARCH_MAX_FRAME_SIZE.
* mini-x86.c (mono_arch_emit_prolog): Handle huge frames.
* mini-x86.h: Define MONO_ARCH_MAX_FRAME_SIZE to be 1Mb.
* mini-amd64.c / mini-amd64.h: Same fixes as of above.
* mini.c (mini_method_compile): Check if mono_arch_allocate_vars failed
the compilation.
svn path=/trunk/mono/; revision=148502
* pedump.c: Add partial-md mode that doesn't perform full metadata verification. It does the
same amount done by a core-clr enabled runtime.
svn path=/trunk/mono/; revision=148501
* System.Web.Extensions_test.dll.sources: added
System.Web.UI.WebControls/ListViewPagedDataSourceTest.cs
2009-12-15 Marek Habersack <[email protected]>
* NextPreviousPagerField.cs: HandleEvent doesn't call
DataPager.SetPageProperties with negative start index. Also, if
_totalRowCount is <= 0, new start index is not calculated using
it. Fixes bug #545417
* ListViewPagedDataSource.cs: when server paging is on, data items
are counted from index 0 instead of from the value stored in
StartRowIndex. Fixes bug #545417
* ListView.cs: CreateChildControls doesn't create empty data item
if called with fake data.
When a view reports it can page data, ListViewPagedDataSource
passed to item creation methods has AllowServerPaging set to
true. Fixes bug #545417
When CreateChildControls is called with fake data,
ListViewPagedDataSource has its TotalRowCount property set to the
actual total row count, not zero. Fixes bug #545417
svn path=/trunk/mcs/; revision=148498
* appdomain.c (mono_make_shadow_copy): make sure access mode of
the target files is reset to writable by owner and readable by
everyone else to prevent problems when updating shadow copies of
files whose source is read-only. Fixes bug #556884
svn path=/trunk/mono/; revision=148474
* Control.cs: When changing the cursor and updating it, do update the
cursor immediately even if there's a child control under the current
cursor position - this is exactly what .net does.
Fixes#555780.
svn path=/trunk/mcs/; revision=148447
* class.c (mono_generic_class_get_class): Allocate the generic
class via malloc again, so that it can be freed when any one of
the images of its constituent types is closed.
* metadata.c: When closing an image, don't free generic insts and
generic classes right away, but put them into a list for later
freeing.
* image.c, metadata-internals.h: Store the free list and in the
second pass of closing an image, free it.
svn path=/trunk/mono/; revision=148438
Type.cs (IsCompilerContext): The default implementation now checks if the
type's assembly is under compiler context or not.
2009-12-14 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Remove IsByRef hack.
2009-12-14 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetConstructor/GetMethod): Fail with a NRE if method/ctor
is null.
2009-12-14 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Fix test that checked for old and wrong behavior of mono.
svn path=/trunk/mcs/; revision=148433
support.cs (DynamicType): Assembly property returns the assembly builder.
This is required due to how compiler context works in corlib.
svn path=/trunk/mcs/; revision=148432
* reflection.c (mono_generic_class_get_object): Assert if this is ever called.
* reflection.c (mono_reflection_register_with_runtime): Only register dynamic
types in type_hash.
* reflection.c (resolve_object): Call ensure_complete_type on the inflated field.
svn path=/trunk/mono/; revision=148431
* reflection.c (mono_reflection_type_get_handle): Properly fail in case of a broken
user type.
* reflection.c (mono_reflection_register_with_runtime): Throws in case a bad user type
is used.
svn path=/trunk/mono/; revision=148430
* verify.c (mono_method_verify): The Unused opcodes produce an
InvalidProgramException on .NET
2009-12-14 Miguel de Icaza <[email protected]>
* method-to-ir.c (mono_method_to_ir): CEE_UNUSUED opcodes now
raise an invalid program exception.
For other opcodes that we might not handle use a g_warning and
raise the exception. Beats termination.
Fixes#561724
svn path=/trunk/mono/; revision=148416
* SectionInformation.cs: ConfigSource should never be null, but empty.
Also, the Type property should throw an argument exception if the
new value is null or empty.
Fixes#458185.
svn path=/trunk/mcs/; revision=148408
* AspParser.cs: PlainText should calculate the boundaries of
text using character offset, not line offset. Fixes bug #562286
InternalLineOffset and Internal properties need not exist.
* AspGenerator.cs: AspParser inner parser constructor takes 5
parameters now - accepts character offset of the current outer
parser's position.
2009-12-14 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/NestedParserFileText.aspx
svn path=/trunk/mcs/; revision=148378
(ProcessTarget):
(ProcessProperty): Refactor to use TryProcessMultiOption,
and accept ":" in target name or property name/value pair.
svn path=/trunk/mcs/; revision=148376
* MemoryMappedFile.cs: Make this by default use the native
interface (Mono.Unix.Native.Syscall) to map files and only support
the FileStream.Handle when the user explicitly uses this API.
The reason is that currently the code depends on the io-layer
keeping parity between our handles and Unix file descriptors, this
removes this dependency for most cases.
svn path=/trunk/mcs/; revision=148366
* SafeBuffer.cs: When comparing the end, we only need to compare
source+size being bigger than last_byte, not bigger or equal,
otherwise we can not access the last element.
svn path=/trunk/mcs/; revision=148365
* TypeMap.cs : handle [Serializable] objects such as KeyValuePair<,>
like we do in 2.0. Removed previous workarounds. (Do not serialize
and deserialize nonpublic members in "default" mappings.)
svn path=/trunk/mcs/; revision=148364
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix the LLVM support
by merging the LLVM and !MAP_32BIT cases.
svn path=/trunk/mono/; revision=148362
* SafeMemoryMappedViewHandle.cs (ReleaseHandle): implement.
2009-12-13 Miguel de Icaza <[email protected]>
* MemoryMappedViewAccessor.cs: Derive from
UnmanagedMemoryAccessor, remove explicit IDisposable
inheritance.
(CreatePosix): Call Initialize on the base class to initialize.
(Dispose): Kill methods.
(Flush): Add.
(MapPosix): no need to return out mmap_size, it is always size.
* MemoryMappedFile.cs: Add FlushPosix.
* MemoryMappedViewStream.cs: Update API.
svn path=/trunk/mcs/; revision=148361
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Handle a NULL
sigctx being passed in, as we have no CONTEXT available in the APC.
(mono_debugger_agent_cleanup): Use explicit cond wait implementation
for now.
Code contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=148351
* aot-runtime.c (decode_eh_frame): Initialize the clauses from the info in the
FDE.
* unwind.c (mono_unwind_decode_fde): Implement decoding of a couple more formats.
svn path=/trunk/mono/; revision=148347
* mini-ops.h (OP_IMPLICIT_EXCEPTION): New opcode marking the place where an
implicit exception can occur.
* ir-emit.h (MONO_EMIT_NEW_IMPLICIT_EXCEPTION): New macro to emit an
OP_IMPLICIT_EXCEPTION instruction.
* ir-emit.h (MONO_EMIT_NEW_CHECK_THIS): New macro.
* method-to-ir.c: Use MONO_EMIT_NEW_CHECK_THIS in a few places.
* mini-llvm.c: Handle OP_IMPLICIT_EXCEPTION by disabling llvm if it occurs
inside a protected block.
svn path=/trunk/mono/; revision=148344
* mini-llvm.c: Revert the last change, the signature of monitor entry/exit
trampolines doesn't include the argument.
svn path=/trunk/mono/; revision=148343
* mini.c (mini_method_compile): Add some comments as to why LLVM is currently
disabled for methods with clauses.
* mini-llvm.c: Enable support for catch clauses.
svn path=/trunk/mono/; revision=148341
* mini-exceptions.c (mono_resume_unwind): New function to resume unwinding at the
end of an LLVM compiled finally clause.
(mono_handle_exception_internal): Save the exception handling state in TLS
before calling an LLVM compiled finally clause, so mono_resume_unwind () can
resume unwinding from that point.
* unwind.c (mono_unwind_get_ops_from_fde): Rename this to
mono_unwind_decode_fde, decode the Language Specific Data Area (LSDA) too,
to obtain the addresses of the exception handling regions.
* mini-llvm.c: Add beginnings of support for exception handling, currently only
finally clauses are supported.
* mini.c (mini_method_compile): Add support for LLVM code with exception
handlers.
svn path=/trunk/mono/; revision=148340
* MonoType.cs: Make the GetConstructorImpl machinery available
to be used by others.
* Type.cs (MakeGenericType): Is any of the arguments is not a system
type create an instance of MonoGenericClass instead.
2009-12-12 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Change it to support a non-sre generic type
definition.
2009-12-10 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs (MakeGenericType): Accept a Type as argument.
* ConstructorOnTypeBuilderInst.cs: Change it to support an underlying
non-sre constructor.
* MethodOnTypeBuilderInst.cs: Change it to support an underlying
non-sre method.
* FieldOnTypeBuilderInst.cs: Change it to support an underlying
non-sre field.
* EventOnTypeBuilderInst.cs: Change it to support an underlying
non-sre event.
svn path=/trunk/mcs/; revision=148338
To properly support user types, MonoGenericClass has to be used for regular, non SRE,
types as well since otherwise generic instances would not return UT as arguments but
their undelying system type.
* object-internals.h: Change field types of MonoGenericClass and *OnTypeBuilderInst
to reflect the fact that they can have now multiple different types.
* reflection.c (mono_image_get_field_on_inst_token): Handle MonoField.
* reflection.c (mono_image_get_ctor_on_inst_token): Handle MonoCMethod.
* reflection.c (mono_image_get_method_on_inst_token): Handle MonoMethod.
* reflection.c (mono_reflection_register_with_runtime): Init super types
if the image is not dynamic.
* reflection.c (mono_reflection_bind_generic_parameters): In case of a MonoGenericClass,
check if the generic type definition is a TypeBuilder.
* reflection.c (mono_reflection_generic_class_initialize): If the generic type definition
doesn't belong to a dynamic image, skip initialization.
* reflection.c (resolve_object): Properly handle *OnTypeBuilderInst types where their
base definition is not a dynamic type.
svn path=/trunk/mono/; revision=148336
2009-12-11 Chris Toshok <[email protected]>
* TypeMap.cs (CreateDefaultTypeMap): only include non-public
property info when dealing with KeyValuePair<,>. This is *not*
the way MS handles it, but we emulate things much better with this
hack.
in test/System.Runtime.Serialization.Json/:
2009-12-11 Chris Toshok <[email protected]>
* DataContractJsonSerializerTest.cs: add a test case for
non-public properties.
svn path=/trunk/mcs/; revision=148184
* WebClient_2_1.cs: When creating the request we need to copy over
any headers the user set on us. We also need to wrap
InvalidOperationExceptions in WebExceptions.
svn path=/trunk/mcs/; revision=148182
* driver.c: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
svn path=/trunk/mono/; revision=148123
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
svn path=/trunk/mono/; revision=148122
* mono-io-portability.c: moved all the reporting code to the IOMAP
profiler module.
(mono_portability_find_file_internal): calls mono_profiler_iomap
whenever an adjustement is made.
2009-12-11 Marek Habersack <[email protected]>
* mono-profiler-iomap.c: added
* Makefile.am: added IOMAP profiler
2009-12-11 Marek Habersack <[email protected]>
* method-to-ir.c (mini_redirect_call): do not redirect the
InternalAllocateStr internal call if string profiling is enabled.
2009-12-11 Marek Habersack <[email protected]>
* string-icalls.c (ves_icall_System_String_InternalAllocateStr):
if string profiling is enabled, call
mono_profiler_string_allocation
* profiler.h: added two MonoProfileFlags -
MONO_PROFILE_IOMAP_EVENTS and MONO_PROFILE_STRING_ALLOC as well as
installation functions for the hooks below.
* profiler-private.h, profiler.c: added two hooks:
mono_profiler_string_allocation called whenever a string is
allocated by InternalAllocateStr and mono_profiler_iomap called
whenever IOMAP code performs an adjustement on a file path.
2009-12-11 Marek Habersack <[email protected]>
* mono.1: documented the IOMAP report profiler module
svn path=/trunk/mono/; revision=148108
* JsonReader.cs : e- and e+ was resulting in wrong parse error.
This should fix part of bug #531904.
* JsonReaderTest.cs : another number parse case.
svn path=/trunk/mcs/; revision=148099
* RoutingSection.cs : sorted out most of the configuration stuff.
* FilterElementCollection.cs : added missing indexer.
svn path=/trunk/mcs/; revision=148096
* AssemblyBuilder.cs: Add MakeGenericType method while takes care of doing
generic instance canonicalization under compiler context.
* DerivedTypes.cs: Add ArrayType::GetEffectiveRank to make it possible to
distinguish between [] and [*].
* TypeBuilder.cs: Implement MakeGenericType in managed code.
2009-12-10 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Add new register_with_runtime icall to make
sure that a managed code instantiated MGC will be returned when
the generic instantiation happens in unmanaged code.
This is a temporary workaround while Type::MakeGenericType doesn't
handle user types properly.
svn path=/trunk/mcs/; revision=148083
* MonoGenericClass.cs: Make this class inherit from Type instead of
MonoType. Implement some missing methods and make sure we can still
be used as a byref type.
svn path=/trunk/mcs/; revision=148082
* reflection.c: Add mono_reflection_register_with_runtime icall to
allow a MonoGenericClass to register itself as the managed mirror of
a given generic instance.
This is a temporary workaround until all MGC instantiation happens in
managed code.
* object-internals.h: Ditto.
* icall-def.h: Ditto.
svn path=/trunk/mono/; revision=148080
* sgen-gc.c: Don't access class names in debugging code when
unloading a domain, because they might not be valid anymore.
svn path=/trunk/mono/; revision=148068
* domain.c, domain-internals.h: New function mono_domain_unset().
* appdomain.c (unload_thread_main): Detach the thread again at the
end.
* threads.c: When a thread exists or is detached, unset its domain
so that it's NULL when, for example, a pthread destructor runs.
* sgen-gc.c: Assert that there is no domain set after a thread is
done.
svn path=/trunk/mono/; revision=148065
* class.c (mono_generic_class_get_class),
metadata.c (free_generic_class): Allocate generic MonoClass's from
the image mempool, not via malloc. The problem with malloc is
that when unloading a domain those classes are freed before
clearing the heap and SGen needs the classes. Rewriting the
unloading code to do the free later would be more work and there's
no point in using malloc anyway.
svn path=/trunk/mono/; revision=148064
* ecore.cs: Ignore base imported methods when they are already
in method bag.
* eval.cs: Handle non-existent keys.
* report.cs, driver.cs: Make fatal work with console printer only.
svn path=/trunk/mcs/; revision=148022
* OperationInvokerHandler.cs : fix async operation handling. Since
the entire handler chain is designed to be in synchronous, one
single handler must not leave its work incomplete (async). Just
wait for the async process completion within the handler.
svn path=/trunk/mcs/; revision=148021
* MessageHeaders.cs : null can be set as a WS-Addressing header item.
* MessageHeadersTest.cs : make sure null can be set as a
WS-Addressing header when version is None.
svn path=/trunk/mcs/; revision=148006
* MemoryMappedFile.cs: Updated to the new Beta API, fill in some
blanks, map some new flags, obey some settings, throw some
exceptions.
svn path=/trunk/mcs/; revision=148003
* tramp-x86.c (mono_arch_patch_callsite): Patch the code when using valgrind,
newer valgrind versions seems to handle this fine.
svn path=/trunk/mono/; revision=147989
* metadata-verify.c: Add mono_verifier_verify_string_signature to check
user string blobs.
* verify-internals.h: Add new function to the internal API.
* verify.c (do_ldstr): Call into mono_verifier_verify_string_signature to
check if it's a valid string.
* object.c (mono_ldstr): Ditto.
Fixes#561943.
svn path=/trunk/mono/; revision=147941
* ThreadPool.cs (QueueUserWorkItem): properly throw
an ANE instead of triggering a NRE when being passed a null callback.
svn path=/trunk/mcs/; revision=147934
* icall.c (ves_icall_GetCurrentMethod): Drop all generic arguments
from a method before returning it. This is the expected behavior.
svn path=/trunk/mono/; revision=147910
* TemplateControlCompiler.cs: GetConverterForMember looks up
member type converters using type description providers in
addition to custom attributes.
Result of GenerateInstance isn't cast to the target type if the
type isn't public.
2009-12-08 Marek Habersack <[email protected]>
* TypeDescriptor.cs: AddProvider overloads must refresh the
instance and type when called.
If GetProvider (object) fails to look up provider for the passed
instance, it attempts to look up provider for the instance's
type.
GetProvider (Type) looks for providers using all the parent types
of the passed type if no provider for it is found.
WrappedTypeDescriptionProvider.GetTypeDescriptor chains up to the
wrapped type, if present.
* TypeDescriptionProvider.cs: GetTypeDescriptor properly returns
the value obtained from parent in GetTypeDescriptor.
2009-12-08 Marek Habersack <[email protected]>
* Type.cs: added overloads for the == and != operators (4.0).
svn path=/trunk/mcs/; revision=147889
Backport of r126897.
* method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
convert it to an in32. Fixes#475859.
* arrays.cs: Add a test.
svn path=/branches/mono-2-2/mono/; revision=126899
Backport of 126604.
* branch-opts.c (mono_if_conversion): Handle the case where the merged
basic block fell through to its successor bblock without a branch. Fixes
#474718.
* iltests.il.in: Add a test.
svn path=/branches/mono-2-2/mono/; revision=126605
Backport of r126467.
* mini-x86.c (mono_arch_context_get_int_reg): Handle all registers
individually. Fixes#473482.
2009-02-10 Mark Probst <[email protected]>
Backport of r126467.
* bug-473482.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=126468
Backport of r125887.
* object.c (mono_object_get_virtual_method): Properly inflate
generic methods. Fixes#472692.
2009-02-05 Mark Probst <[email protected]>
Backport of r125887.
* jit-icalls.c (mono_helper_compile_generic_method): Don't inflate
the method we get from mono_object_get_virtual_method() because
that function does it properly, now.
2009-02-05 Mark Probst <[email protected]>
Backport of r125887.
* bug-472692.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=125892
Backport of r125839.
* mini-exceptions.c (ves_icall_get_frame_info): Account for the
fact that mono_find_jit_info() sometimes returns the context
corresponding to the jit info in new_ctx. Fixes#472600.
2009-02-05 Mark Probst <[email protected]>
Backport of r125839.
* bug-472600.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=125846
Backport of r125388.
* generic-sharing.c (lookup_or_register_other_info): Make sure the
loader lock is not taken while the templates lock is held. Fixes
#471089.
svn path=/branches/mono-2-2/mono/; revision=125389
Backport of r125205.
* cpu-arm.md: Increase the size of storer8_membase_reg and
loadr8_membase_reg to 24 bytes to accomodate the extra add.
* mini-arm.c (mono_arch_output_basic_block): Under FPA, when emitting
OP_STORER8_MEMBASE_REG and OP_LOADR8_MEMBASE_REG, add the original
reg to LR otherwise we'll be loading/storing from just the offset.
svn path=/branches/mono-2-2/mono/; revision=125340
Backport of r124712.
* method-to-ir.c (emit_stloc_ir): Only apply the reg-reg move
optimization if the top of stack is the last instruction in the
bblock. Otherwise it might have been used after its definition.
Fixes#469742.
2009-01-27 Mark Probst <[email protected]>
Backport of r124712.
* bug469742.2.il: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124713
* Backport of r123987.
* method-to-ir.c (method-to-ir.c): Add support for the constrained prefix
on type variables in AOTed code.
svn path=/branches/mono-2-2/mono/; revision=124425
Backport of r124022 and r124301.
* metadata.c (mono_metadata_generic_param_equal): Owner as well as
image must match. Only compare the image if the owner is NULL.
Fixes the AOT failures.
svn path=/branches/mono-2-2/mono/; revision=124304
Backport of r124268.
* metadata.c (mono_metadata_load_generic_params): Initialize the
MonoGenericParam structure using memset so the image field is initialized
as well.
svn path=/branches/mono-2-2/mono/; revision=124269
Backport of r124246.
* mini-exceptions.c (ves_icall_get_frame_info): Fetch the generic
info from the (correct) context.
2009-01-22 Mark Probst <[email protected]>
Backport of r124246.
* generic-stack-traces2.2.cs: Another generic sharing test for
stack traces.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124247
Backport of r124059.
* appdomain-unload-callback.cs: New test for the AppDomain::DomainUnload
deadlock.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124078
Backport of r124068.
* appdomain.c (mono_domain_unload): Change the InterlockedIncrement to
a plain store.
2009-01-21 Rodrigo Kumpera <[email protected]>
Backport of r124058.
* domain-internals.h: Add new appdomain state MONO_APPDOMAIN_UNLOADING_START
which signals that the unloading has started but all appdomain services must
remain operational.
* appdomain.c (mono_domain_unload): The initial state for unloading now
is unloading_start and we switch to unloading after the managed call to
AppDomain::DomainUnload has finished.
The new unloading state has to be created because managed code in the
DomainUnload event can depend on things like the threadpool still working.
The domain must remain fully functional while the event executes.
This shown as an issue due to Process::WaitForExit, which waits for
async reads of stdout and stderr to complete. Since those are processed
in the threadpool the code deadlocks because the DomainUnload callback
waits for the async read finished event, which should have been set by a
threadpool job but has been discarded due to the domain been in unload
state.
svn path=/branches/mono-2-2/mono/; revision=124074
Backport of r124065.
* class.c (mono_class_setup_vtable_general): In the generic instance
optimization, set method->slot for abstract virtual methods. Fixes part of
#467834.
svn path=/branches/mono-2-2/mono/; revision=124066
Backport of r124028.
* method-to-ir.c: Only apply exception constructor optimization if
the the method actually belongs to an exception class. Fixes
#467456.
2009-01-21 Mark Probst <[email protected]>
Backport of r124028.
* bug-467456.cs: New test case.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124030
Backport of r124022.
* metadata.c (mono_metadata_generic_param_equal): Owner as well as
image must match.
2009-01-21 Mark Probst <[email protected]>
Backport of r124022.
* generic-unloading.2.cs, generic-unloading-sub.2.cs: Test case
for unloading images whose MonoGenericInst's are still in use.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124024
Backport of r123968.
* freebsd-elf_common.h (struct): Use uint32_t instead of
u_int32_t to fix the build on opensolaris.
svn path=/branches/mono-2-2/mono/; revision=123970
Backport of r123958.
* reflection.c (resolve_object): For fields, inflate the class and
then get the field in the inflated class.
svn path=/branches/mono-2-2/mono/; revision=123960
Backport of r123917.
* method-to-ir.c: Force the vtable variable in shared generic code
for the case that they might show up on a stack trace where they
are needed.
* mini-exceptions.c: Save and use generic sharing info as well as
IP in stack traces to resolve shared generic instantiations.
2009-01-20 Mark Probst <[email protected]>
Backport of r123917.
* class.c (mono_class_has_parent_and_ignore_generics),
class-internals.h: Made non-static.
* object-internals.h (struct _MonoException): Added a comment
explaining the new use of trace_ips.
2009-01-20 Mark Probst <[email protected]>
Backport of r123917.
* generic-stack-traces.2.cs: Generic sharing test for stack
traces.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=123920
* IPAddress.cs: handle sign extension for the high byte when using the
byte[] ctor for an IPv4 address.
Fixes bug #467472.
svn path=/branches/mono-2-2/mcs/; revision=123857
Backport of r123756.
* marshal.c (emit_marshal_custom): Avoid calling MarshalNativeToManaged
for byval arguments without an [Out] attribute. Fixes#467212.
svn path=/branches/mono-2-2/mono/; revision=123803
Backport of r123754.
* mini.c (mini_thread_cleanup): Don't cleanup TLS storage if the
thread been cleaned up is not the same currently in execution.
Fixes appdomain-unload crashes on windows, osx and linux variants
without the __thread keyword.
svn path=/branches/mono-2-2/mono/; revision=123785
Backport of r123258.
* mini.c (SIG_HANDLER_SIGNATURE): Avoid crashes when the current thread or
domain is not set. Fixes#465864.
svn path=/branches/mono-2-2/mono/; revision=123725
Backport of r123612.
* configure.in: Avoid error messages in the quiet code if libgc/Makefile
does not exist yet. Fixes#466814.
svn path=/branches/mono-2-2/mono/; revision=123613
* WebConnectionStream.cs: if the buffer has been killed, return -1 for
its length. Fixes regression in System.Runtime.Remoting.
svn path=/branches/mono-2-2/mcs/; revision=123450
Backport of r123417.
* CILCompiler.cs: Avoid throwing exceptions for a few more unhandled opcodes.
Implement the reverse/ignorecase versions of Reference. Fix the reverse
version of Bitmap. Error out if a Jump opcode jumps outside the current
pc range. This works around #466151.
svn path=/branches/mono-2-2/mcs/; revision=123420
Backport of r123349.
* method-to-ir.c: Handle delegate invocation optimization earlier,
otherwise it would be handled (much more slowly) by the
final/sealed optimization.
svn path=/branches/mono-2-2/mono/; revision=123351
* HttpApplicationFactory.cs: if there are any *.browser files in
App_Data/Mono_Machine_Browsers/, use those instead of the default
machine browser files. This allows app developers to workaround
limitations with Mono's default browser files without causing
incompatibilities with MS's implementation.
++ System.Web.Configuration_2.0/ChangeLog (working copy)
* nBrowser/Node.cs: Fixed compatibility bug where <identification> sections were required
in browser defs.
svn path=/branches/mono-2-2/mcs/; revision=123257
* HttpConnection.cs: we were not writing the headers for 0-length
responses.
* WebConnectionStream.cs: for 204/304 responses with an explicit
content-length of 0, release the socket only once.
Fixes bug #465638.
svn path=/branches/mono-2-2/mcs/; revision=123251
Backport of r123201.
* marshal.c: Avoid setting the exception clauses after a method has been entered
into the wrapper caches. Fixes#465700.
* method-builder.c (mono_mb_set_clauses): New function to set the clauses of the
method builder.
(mono_mb_create_method): Set the clauses from the method builder.
svn path=/branches/mono-2-2/mono/; revision=123203
Backport of r123092.
* marshal.c (mono_marshal_get_synchronized_wrapper): Make the
initialization of the various _method variables thread safe. Fixes
#465377.
svn path=/branches/mono-2-2/mono/; revision=123095
Backport of r122804.
* method-to-ir.c (mono_method_to_ir): Fix the check for the mscorlib ldstr
optimization. Fixes#464520.
svn path=/branches/mono-2-2/mono/; revision=122920
Backport of 122702.
* mini-arm.c (mono_arch_flush_icache): Use __GNUC_PREREQ instead of checking
__GNUC_MINOR__ which can break when the major version changes.
svn path=/branches/mono-2-2/mono/; revision=122704
Backport of r122672 - r122675.
* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Double check the
return value of GetCurrentDirectory to never access unitialized memory.
* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Properly check the
return value of GetCurrentDirectory and expand the buffer if needed.
Fixes#459094.
2009-01-07 Rodrigo Kumpera <[email protected]>
In io-layer:
2009-01-07 Rodrigo Kumpera <[email protected]>
Backport of r122672 - r122675.
* io.c (GetCurrentDirectory): Avoid calling g_get_current_dir straight
away as it doesn't handle ENAMETOOLONG correctly. As a bonus we avoid
allocating memory in the common path.
In tests:
2009-01-07 Rodrigo Kumpera <[email protected]>
Backport of r122672 - r122675.
* bug-459094 .cs: New regression test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=122678
2009-01-07 Rodrigo Kumpera <[email protected]>
Backport of r122579 - r122585.
* verify.c (mono_class_interface_implements_interface): Verify parents as we can't rely on
interfaces_packed here.
Fixes part of #463294.
* verify.c (is_array_type_compatible): Ignore bounds and sizes when checking array compatibility.
Fixes part of #463294.
* verify.c (stack_slot_is_complex_type_not_reference_type): Check if the type
is a boxed complex as well.
Fixes part of #463294.
In tests/verifier:
2009-01-07 Rodrigo Kumpera <[email protected]>
Backport of r122579 - r122585.
* valid_iface_constant_with_parent_implementing_it.il:
Regression test for #461200.
* valid_array_compat_with_bonds_and_sizes.il:
* valid_array_compat_with_bounds.il:
* valid_array_compat_with_sizes.il: Regression tests for
#461200.
* valid_ceq_with_boxed_vt.il: Regression test for #461200.
svn path=/branches/mono-2-2/mono/; revision=122650
* Vector*.cs: Use explicit layout to avoid the runtime
miscalculating the size of vector types.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=122608
Backport of r122392.
* branch-opts.c (mono_if_conversion): Fix an assert introduced by the last
change.
svn path=/branches/mono-2-2/mono/; revision=122393
Backport of r122386.
* branch-opts.c (mono_if_conversion): Use branch->inst_true_bb/inst_false_bb
instead of bblock->out_bb [0]/[1], the two might not be the same. Fixes
#463357.
* iltests.il.in: Add a regression test.
svn path=/branches/mono-2-2/mono/; revision=122387
Backport of r120164.
* marshal.c (mono_string_builder_to_utf8): Fixed a wrong
invocation to g_utf16_to_utf8().
svn path=/branches/mono-2-2/mono/; revision=122373
Backport of r122363.
* mini-ops.h: Add a definition of XPHI.
* mini.h (MONO_IS_PHI): Make is aware of simd instrincs.
* ssa.c (op_phi_to_move): Handle XPHI.
* ssa.c (mono_ssa_compute): Generate a XPHI for simd intrinsics instead of VPHI.
Fixes#462457
svn path=/branches/mono-2-2/mono/; revision=122366
Backport of r122168.
* mini-exceptions.c: Check jit_tls->class_cast_from instead of class_cast_to
since only the former is nulled out after a successful cast. This prevents
crashes with rethrown exceptions when using --debug=casts.
svn path=/branches/mono-2-2/mono/; revision=122169
Backport of r122133.
* class.c (get_implicit_generic_array_interfaces): If the internal
enumerator is an interface inflate System.Object instead of itself.
Fixes#461261.
svn path=/branches/mono-2-2/mono/; revision=122136
Backport of r122086.
* mini.h: New macro for checking whether a method is final,
i.e. whether the method or its class is marked final.
* method-to-ir.c: Use the new macro for all final-checks
consistently. Fixes the crash in the System.ServiceModel tests.
2008-12-24 Mark Probst <[email protected]>
Backport of r122086.
* generic-sealed-virtual.2.cs: Test case for final generic
methods.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=122087
Backport of r122070.
* object.c (mono_runtime_invoke_array): Don't assert with
byref nullable types.
* marshal.c (mono_marshal_get_runtime_invoke): To handle
byref nullables we unbox the object and store it on the
stack.
We can't use the boxed object since it is the T of Nullable<T>
and the boxed representation of a nullable it's underlying type
or null.
We could cheat and create a boxed nullable and use the same
machinery of other byref VTs but this feels like a hack and
using the stack has the bonus of reducing heap pressure.
Fixes#461941.
svn path=/branches/mono-2-2/mono/; revision=122075
Backport of r122034.
* mini-ppc.c (mono_arch_build_imt_thunk): Save and restore r11.
Clobbering it is not allowed because the caller might use it as
the vtable register in the interface call.
svn path=/branches/mono-2-2/mono/; revision=122058
2008-11-30 Ivan N. Zlatev <[email protected]>
* GroupBoxRenderer.cs: Fix when VisualStyles disabled:
- No caption text is drawn because Color.Empty is used.
- Fix top and height off by 1.
[Fixes bug #448764]
svn path=/branches/mono-2-2/mcs/; revision=121993
ConformanceLevel.Fragment while creating the reader as column
values are not really Xml documents. Also, throw
SqlNullValueException when data is null.
(.ctor): Take good care of empty XmlReaders.
svn path=/branches/mono-2-2/mcs/; revision=121959
Backport of r121292.
* method-to-ir.c: Removed an unnecessary assertion.
2008-12-19 Mark Probst <[email protected]>
Backport of r121292.
* metadata/generic-sharing.c: Look for constraints in all type
arguments, not just the first one.
2008-12-19 Mark Probst <[email protected]>
Backport of r121292.
* generic-marshalbyref.2.cs: Test for calls to marshal-by-ref
objects.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=121836
* HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
throw if the client closes.
* HttpListenerResponse.cs: close the connection for 1.0 clients.
Backported from HEAD. Fixes bug #459432.
svn path=/branches/mono-2-2/mcs/; revision=121830
* threadpool.c: Ensure that the io_queue_lock is initialized
in all circumstances, as we always attempt to cleanup against it.
svn path=/branches/mono-2-2/mono/; revision=121724
* icall.c (ves_icall_System_Environment_get_Platform): For
compatibility reasons for existing client code we will keep
returning 4 for a while.
For how long will depend on the documentation being updated, and
for us to give client code a chance to be updated.
This reverts the original decison on #433108 since we did not
catch roughly 33 instances of the broken code in our own source
code base, we did not catch failures on the buildbots, and QA did
not bring this as a problem.
Only today I found some customer's code breaking due to our own
class libraries not being fully updated and tracked it down to
this change. I am reverting it because if we could not even get
our story straight in our own code base, how can we hope that our
end user code be fixed?
As of this morning, our Wiki page that documents how to detect
Unix had not been fixed.
svn path=/branches/mono-2-2/mono/; revision=121716
* Makefile.am, vbnc.1: Remove vbnc.1. It's living in the
mono-basic module now.
[Backport of r121406.]
svn path=/branches/mono-2-2/mono/; revision=121678
Backport of r120438.
* method-to-ir.c (mono_method_to_ir): Disable debugging
information for the init locals block to make the debugger stop
after all locals have been initalized.
svn path=/branches/mono-2-2/mono/; revision=121640
Backport of r120407 from Zoltan Varga.
* mini.c (mini_method_compile): Only run local deadce if MONO_OPT_DEADCE
is enabled.
* method-to-ir.c (mono_method_to_ir): Fix invalid code generated by the
alu->alu imm optimization which only shows if deadce is disabled.
svn path=/branches/mono-2-2/mono/; revision=121638
Backport of r120260.
* mini-exceptions.c (mono_handle_native_sigsegv): Check
mono_debug_using_mono_debugger() in addition to the
`no_gdb_backtrace' flag in the `MonoDebugOptions'.
svn path=/branches/mono-2-2/mono/; revision=121635
Backport of r120389.
* method-to-ir.c (mono_method_to_ir): Set the type of the value pushed on
the stack in CEE_LDFLDA. Fixes#450542.
* generics.cs: Add a new test.
svn path=/branches/mono-2-2/mono/; revision=121564
Backport of r121496.
* liveness.c (mono_analyze_liveness): Avoid eliminating the 'this' var in
gshared code. Fixes#458947.
* generics.cs: Add a test.
svn path=/branches/mono-2-2/mono/; revision=121497
In System.Web.Configuration_2.0:
2008-12-11 Owen Brady <[email protected]>
* nBrowser/File.cs, nBrowser/Identification.cs, nBrowser/Node.cs, nBrowser/NodeTypes.cs,
nBrowser/Result.cs, nBrowser/Build.cs, nBrowser/Exception.cs, CapabilitiesBuild.cs,
CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
* nBrowser/Build.cs: Removed LoadDefaultEmbeddedResource function, the embeded resource
it is referring too was never included in Mono. And was designed for a free standing
browser identification libary.
* nBrowser/Exception.cs: Removed Compile Attributes and related comments which were left
in from the original free standing browser libary.
* CapabilitiesBuild.cs: Removed Header Checksum related coding since it is not required
for the Mono implementation.
* CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
Removed functions which were designed to make use of features of a embeded browser file which
is not present in Mono.
* CapabilitiesChecksum.cs, RandomRoboBotKeywords.txt: Deleted
In .:
2008-12-11 Dean Brettle <[email protected]>
* System.Web.dll.sources: deleted
System.Web.Configuration_2.0/CapabilitiesChecksum.cs
* Makefile (RESOURCE_FILES_2): deleted
System.Web.Configuration_2.0/RandomRoboBotKeywords.txt
svn path=/branches/mono-2-2/mcs/; revision=121384
2008-12-08 Rodrigo Kumpera <[email protected]>
* bug457574.il: New regression test.
* Makefile.am: Test added.
Backported from trunk r121174.
In mini:
2008-12-10 Rodrigo Kumpera <[email protected]>
* ssa.c (fold_ins): branch opt can kill dummy switch ops so we can't
expect that an OP_BR_REG will be there.
* branch-opts.c (remove_block_if_useless): Use MONO_IS_BRANCH_OP instead of checking
for the many branch ops. The original check miss OP_BR_REG.
Fixes#457574.
Backported from trunk r121173 and r121175
svn path=/branches/mono-2-2/mono/; revision=121210
Backport of r120999.
* mini-exceptions.c (mono_print_thread_dump): Mark threadpool threads
as such. Fixes#456669.
svn path=/branches/mono-2-2/mono/; revision=121000
Backport of r120995.
* SQLite3.cs: Avoid IntPtr.ToInt32 () to convert between IntPtr's and integers
since it is not 64 bit safe. Fixes#457038.
svn path=/branches/mono-2-2/mcs/; revision=120996
* marshal.c (mono_marshal_emit_native_wrapper): Add AOT support for pinvoke
wrappers by emitting the function address using a CEE_MONO_ICALL_ADDR
instruction instead of a pointer constant.
svn path=/branches/mono-2-2/mono/; revision=120750
* typemanager.cs, namespace.cs, driver.cs: Allow ExtensionAttribute
to be imported from any assembly.
svn path=/branches/mono-2-2/mcs/; revision=120629
* UdpClient.cs: don't Poll() in Receive(), the call to ReceiveFrom
will block anyway. Fixes bug #455894.
2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: mark the socket as not connected when there is a pending
error or exception about to be thrown.
Bug #443346 fixed.
svn path=/branches/mono-2-2/mcs/; revision=120602
Backport of r120589.
* method-to-ir.c (mono_method_to_ir): Handle ldtoken of an open
generic type (via a typedef or typeref) correctly.
2008-12-03 Mark Probst <[email protected]>
Backport of r120589.
* generic-typedef.2.cs: New test for ldtoken of open generic
types.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=120595
* mono-property-hash.c (mono_property_hash_destroy): Release
the root hashtable as well.
Backported from trunk.
svn path=/branches/mono-2-2/mono/; revision=120587
* AspParser.cs: reset to the next character in a partial match in case
of failure. Fixes bug #314688.
svn path=/branches/mono-2-2/mcs/; revision=120552
Backport of r120543.
* mini-trampolines.c (mono_magic_trampoline): Add some debugging code to help
diagnose an assertion failure.
svn path=/branches/mono-2-2/mono/; revision=120544
A fix for bug #447027
* anonymous.cs (HoistedVariable): Cache also outer access to deal
with context variables stored as expression instances.
svn path=/branches/mono-2-2/mcs/; revision=119967
* FtpWebRequestTest.cs: the upload test now passes with the MS
runtime. Added another test for download.
svn path=/branches/mono-2-2/mcs/; revision=119913
* FtpDataStream.cs: use the socket for reading until the end of a
stream that wasn't read entirely. Remove unused ManualResetEvent.
* FtpWebRequest.cs: set the file_name when downloading. Update the
response status after every SendCommand. Send a "OPTS utf8 on" as MS
does (the control cnc reader should do something with UTF8)
svn path=/branches/mono-2-2/mcs/; revision=119912
* Form.cs: Don't change min/max size if it is empty.
[Fixes bug #447873]
2008-11-23 Jonathan Pobst <[email protected]>
* FormTest.cs: Add test for bug #447873.
svn path=/branches/mono-2-2/mcs/; revision=119813
* icall.c (mono_method_get_equivalent_method): Make sure
method->klass->methods is inited before looping over it.
Backported from trunk.
svn path=/branches/mono-2-2/mono/; revision=119613
resources, also clone the underlying stream, since it needs to stay
around for the life of the image (gdi doesn't clone the underlying
stream when cloning images, so when the gc disposes the original, it
will also dispose the stream, which invalidates the clone).
* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
clone under win32
* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
clone under win32
[fixes#438886, Backported from r119580]
2008-11-21 Andreia Gaita <[email protected]>
svn path=/branches/mono-2-2/mcs/; revision=119581
* ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
through DroppedDown so the proper events get called and state gets reset.
[Fixes bug #446805]
svn path=/branches/mono-2-2/mcs/; revision=119561
Mono.Mozilla/interfaces/nsIURIContentListener.cs,
Mono.Mozilla/DOM/ContentListener.cs: New class added to listen for load
requests and handle content types
* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: New
NavigationRequested event to catch load requests
[Backported, r118617]
2008-11-20 Andreia Gaita <[email protected]>
svn path=/branches/mono-2-2/mcs/; revision=119492
Backport of r119444.
* arm/Makefile.am (libmonoarch_arm_la_SOURCES): Don't build tramp.c, it is only
used by the interpreter.
svn path=/branches/mono-2-2/mono/; revision=119445
Backport of r119397.
* marshal.c: Add support for MONO_TYPE_GENERICINST to some functions.
Fixes#444715. Fix a warning.
svn path=/branches/mono-2-2/mono/; revision=119399
mono-tool{.tree,.zip} files.
* mono-file-formats.config, mono-tools.config: Alter paths to man
pages so that they're valid for building from mono/docs.
* monoapi.make: Rename to docs.make.
svn path=/branches/mono-2-2/mono/; revision=119260
Backport of 119064 and 119081.
* marshal.h : cominterop_ccw_getfreethreadedmarshaler added to return the
free threaded marshaler when QueryInterface is called on a COM callable
wrapper requesting the IMarshal interface.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-2/mono/; revision=119088
* FieldInfoTest.cs: Test FieldInfo::GetValue on a constant of an open
generic type.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=119079
* MonoField.cs (GetValue): Don't check for open generic types if the field
is a constant.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=119078
A fix for bug #444673
* ecore.cs: Ignore open generic types when used as generic type
instance fields.
svn path=/branches/mono-2-2/mcs/; revision=119016
Merge r118977 from HEAD.
* mini-amd64.h: Change the monitor fastpath defines to check for
!PLATFORM_WIN32 so they work on *bsd too.
svn path=/branches/mono-2-2/mono/; revision=118978
* DefaultWsdlHelpGenerator.aspx: use javascript instead of
HttpWebRequest to avoid a deadlock if the web service uses Session.
Bug #444343 fixed.
re: miguel
svn path=/branches/mono-2-2/mono/; revision=118834
Backport of r118724.
* process.h : Adding method declaration for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* process.c : Adding implementation for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* wait.h : Adding method declaration for WaitForInputIdle.
* wait.c : Adding implementation for WaitForInputIdle.
* Process.cs : Adding an implementation for WaitForInputIdle
to call the an internal call. The internal call is only
implemented properly on Windows.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-2/mcs/; revision=118743
Backport of r118724.
* process.h : Adding method declaration for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* process.c : Adding implementation for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* wait.h : Adding method declaration for WaitForInputIdle.
* wait.c : Adding implementation for WaitForInputIdle.
* Process.cs : Adding an implementation for WaitForInputIdle
to call the an internal call. The internal call is only
implemented properly on Windows.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-2/mono/; revision=118743
* Module.cs (ResolveMethod): Use internal method
GetMethodFromHandleNoGenericCheck to avoid the generic type
limitation of GetMethodFromHandle.
Fixes#443763.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=118544
* ConstructorOnTypeBuilderInstTest.cs: Add test for
MetadataToken under compilation context.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=118519
* ConstructorOnTypeBuilderInst.cs (MetadataToken): Make this
* property
work under compiler context. Same hack as the one applied to
MethodOnTypeBuilderInst.
Fixes#442610.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=118517
/// <param name="useNames">If set to false, the function will not use known entities name. Default is true.</param>
/// <param name="entitizeQuotAmpAndLtGt">If set to true, the [quote], [ampersand], [lower than] and [greather than] characters will be entitized.</param>
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
publicoverridestringXmlLang
{
get
{
InternalTrace(null);
return_nametable.GetOrAdd(string.Empty);
}
}
#endregion
#regionPublicMethods
/// <summary>
/// Creates a new HtmlNavigator positioned at the same node as this HtmlNavigator.
/// </summary>
/// <returns>A new HtmlNavigator object positioned at the same node as the original HtmlNavigator.</returns>
publicoverrideXPathNavigatorClone()
{
InternalTrace(null);
returnnewHtmlNodeNavigator(this);
}
/// <summary>
/// Gets the value of the HTML attribute with the specified LocalName and NamespaceURI.
/// </summary>
/// <param name="localName">The local name of the HTML attribute.</param>
/// <param name="namespaceURI">The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.</param>
/// <returns>The value of the specified HTML attribute. String.Empty or null if a matching attribute is not found or if the navigator is not positioned on an element node.</returns>
/// Moves to the first sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the first sibling node, false if there is no first sibling or if the navigator is currently positioned on an attribute node.</returns>
publicoverrideboolMoveToFirst()
{
if(_currentnode.ParentNode==null)
{
InternalTrace(">false");
returnfalse;
}
if(_currentnode.ParentNode.FirstChild==null)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=_currentnode.ParentNode.FirstChild;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves to the first HTML attribute.
/// </summary>
/// <returns>true if the navigator is successful moving to the first HTML attribute, otherwise, false.</returns>
publicoverrideboolMoveToFirstAttribute()
{
if(!HasAttributes)
{
InternalTrace(">false");
returnfalse;
}
_attindex=0;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves to the first child of the current node.
/// </summary>
/// <returns>true if there is a first child node, otherwise false.</returns>
publicoverrideboolMoveToFirstChild()
{
if(!_currentnode.HasChildNodes)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=_currentnode.ChildNodes[0];
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves the XPathNavigator to the first namespace node of the current element.
/// Always returns false for the HtmlNavigator implementation.
/// </summary>
/// <param name="scope">An XPathNamespaceScope value describing the namespace scope.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
/// Moves to the node that has an attribute of type ID whose value matches the specified string.
/// </summary>
/// <param name="id">A string representing the ID value of the node to which you want to move. This argument does not need to be atomized.</param>
/// <returns>true if the move was successful, otherwise false. If false, the position of the navigator is unchanged.</returns>
publicoverrideboolMoveToId(stringid)
{
InternalTrace("id="+id);
HtmlNodenode=_doc.GetElementbyId(id);
if(node==null)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=node;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves the XPathNavigator to the namespace node with the specified local name.
/// Always returns false for the HtmlNavigator implementation.
/// </summary>
/// <param name="name">The local name of the namespace node.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
publicoverrideboolMoveToNamespace(stringname)
{
InternalTrace("name="+name);
returnfalse;
}
/// <summary>
/// Moves to the next sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the next sibling node, false if there are no more siblings or if the navigator is currently positioned on an attribute node. If false, the position of the navigator is unchanged.</returns>
/// <returns>true if there is a parent node, otherwise false.</returns>
publicoverrideboolMoveToParent()
{
if(_currentnode.ParentNode==null)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=_currentnode.ParentNode;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves to the previous sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the previous sibling node, false if there is no previous sibling or if the navigator is currently positioned on an attribute node.</returns>
publicoverrideboolMoveToPrevious()
{
if(_currentnode.PreviousSibling==null)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=_currentnode.PreviousSibling;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves to the root node to which the current node belongs.
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under U.S. copyright law.
A “contribution” is the original software, or any additions or changes to the software.
A “contributor” is any person that distributes its contribution under this license.
“Licensed patents” are a contributor’s patent claims that read directly on its contribution.
2. Grant of Rights
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
3. Conditions and Limitations
(A) No Trademark License- This license does not grant you rights to use any contributors’ name, logo, or trademarks.
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
(E) The software is licensed “as-is.” You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
(F) If you distribute the software or derivative works with programs you develop, you agree to indemnify, defend, and hold harmless all contributors from any claims, including attorneys’ fees, related to the distribution or use of your programs. For clarity, you have no such obligations to a contributor for any claims based solely on the unmodified contributions of that contributor.
(G) If you make any additions or changes to the original software, you may only distribute them under a new namespace. In addition, you will clearly identify your changes or additions as your own.
/// Advances the enumerator to the next element of the collection.
/// </summary>
/// <returns>true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.</returns>
publicboolMoveNext()
{
_index++;
return(_index<_items.Count);
}
/// <summary>
/// Sets the enumerator to its initial position, which is before the first element in the collection.
Loaded 100 of 10747 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.