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
2010-05-28 01:14:31 +00:00
12345 changed files with 644299 additions and 622961 deletions
### AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/scripts/patch-quiet.sh $i; fi; done], [set(shell $SHELL]))
dnl No, you can not replace the call below with a pkg.m4 macro
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
have_glib=false
if test "x$PKG_CONFIG" != "xno"; then
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
fi
fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib)
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
AC_SUBST(GINT_TO_POINTER)
@@ -131,6 +168,12 @@ AC_SUBST(GUINT_TO_POINTER)
AC_SUBST(GSIZE)
AC_SUBST(GSIZE_FORMAT)
AC_SUBST(G_GUINT64_FORMAT)
AC_SUBST(G_GINT64_FORMAT)
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find src test -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
Loaded 100 of 12345 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.