Fixes an issue in Process where "pseudo-handles" for processes with
pids > 16 bits would overflow and start getting treated as normal
handles. This would frequently segfault MonoDevelop on MacOS.
When we are not using SHM we use psuedo handles to return processes from pids,
however we dont guard against pseudo-handles in CloseProcess, which could lead to
calling unref on a fake handle.
Pass the listener as it's own async state so that we avoid potential null derefs in the callback. Also wrap the BeginAccept and EndAccept calls in their own try/catches in case they throw an exception.
Fix possible state corruption in the case where Upgradeable wasn't reactivating its read bit after a downgrade and set events accordingly. Fix possible race where a write process wannabe could step in the middle of Upgradeable actually upgrading to write mode.
Conflicts:
mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs
The patch removes a small race condition where a boolean flag is set after acquiring a lock to
indicate to code executing in the finally {} block that it should release the lock. The boolean
variable is now removed and the lock is released unconditionally. It carries a potential to
throw an exception when the lock is not held, but it's better than to fail to release it and
lead the application to a deadlock.
* AssemblyBuilder.cs (GetTypes): Raise ReflectionTypeLoadException
if any type was not finished.
* AssemblyBuilderTest.cs: Add test for GetTypes () and incomplete
TypeBuilders'.
Fixes#640288
* threads.c (mono_thread_suspend_all_other_threads): wait_data
must not be malloc'd since it holds managed pointers. Alloc
it on stack since the struct is about 512/1024 bytes long.
* threads.c (mono_thread_manage): Ditto.
* threads.c (mono_threads_request_thread_dump): Ditto.
This error was found by Gonzalo when he was looking at another problem
when thread IDs overflowed ints.
Currently we use gpointers in the io-layer for the threadid, but we were
only exposing the value as an int32. The good news is that the code is
not really used right now, but could cause problems in the future as we
extend Process.
* Type.cs (GetTypeCodeImpl): If the type is a TypeBuilder
call into specific code.
* TypeBuilder.cs (GetTypeCodeInternal): New method that
handles enums correctly.
This change is required because calling into the runtime
with incomplete TypeBuilders cause the runtime to crash.
The embedding code looks at the executable name, and builds the embedding profile
from that, however the default install has a /usr/bin/mono symlink pointing to
/Library/Frameworks/Mono.framework. We now resolve the symlink before allowing
the embedding code to proceed.
Android defines a variable called "major" in its headers, lets rename
major -> major_collector to work around the conflict.
Not every architecture/platform has ucontext_t, so lets not strongly
type our contexts to that and let the macros do their job.
when running with SGEN, since SGEN writes to those arrays in:
==29095== at 0x6844E5: add_or_remove_disappearing_link (sgen-gc.c:4143)
==29095== by 0x6845F8: mono_gc_register_disappearing_link (sgen-gc.c:4167)
==29095== by 0x67DE35: clear_domain_process_object (sgen-gc.c:1384)
==29095== by 0x67DEA3: clear_domain_process_major_object_callback (sgen-gc.c:1400)
==29095== by 0x6DE2DC: major_iterate_objects (sgen-marksweep.c:692)
==29095== by 0x67E00B: mono_gc_clear_domain (sgen-gc.c:1459)
* debugger-agent.c: The end_runtime_invoke guard isn't working
on AMD64 as __builtin_frame_address (1) returns NULL. Disable the
behaviour by default, and make it runtime configurable.
svn path=/branches/mono-2-6/mono/; revision=148421
Simplifies the code a little bit by eliminating the in_quote variable,
but also fixes the rules to follow the requirements from the
"Shell Command Language" specification on the Unix03 site:
http://opengroup.org/onlinepubs/007908775/xcu/chap2.html#tag_001_002
In particular, the interpretation of the backslash inside double quotes
is limited to a handful of characters. Notice that this differs from
the glib implementation which is not correct either.
If we are redirecting to a GET from a POST, the Content-Length header
might have stale data and it will be sent. Some servers, instead of
ignoring it, keep waiting for the data to be sent (for a GET!).
Fixes bug #636219.
We were usign teh URL, but that might not be unique among several
requests that need to be authenticated using NTLM. This led to
different requests sharing the same authentication session which fails
miserably.
Bug #631315 fixed.
If there's a POST/PUT request that gets a NTLM 401, we save the data
and don't send it again until after the challenge phase. Ie, instead of
sending all the data 3 times, we only send it at most twice.
The duplicate-element checking algorithm wasn't restricted to just elements;
consequently, an 'invalid token' exception was generated from XPath because we
were trying to call XmlNode.SelectNodes("#text"), and '#' isn't valid. Oops.
Fixes building gendarme from mono-tools.
Previously, in a (misguided) effort to reduce memory requirements, I loaded
the source document into an XDocument, then wrote it piecemeal to an output
XmlWriter.
- Pro: only one document needed to be kept in memory, and additional
memory was only needed to write replacement //Type nodes.
- Con: since the output document isn't kept in memory, we can't do any
post-processing before writing.
Unfortunately, post-processing is what I want to do: I want to order the
//Type elements by //Type/@Name, which means I need the entire document in
memory _anyway_.
Sorting //Type elements is for the next patch; this just migrates to the "do
everything in-memory" logic.
Generate the //Type/AssemblyInfo/AssemblyPublicKey and
//Type/AssemblyInfo/AssemblyCulture elements based on the values stored in
the index.xml file (which is why we updated mdoc-update to store this).
If index.xml doesn't contain the //AssemblyCulture element, input a default
<AssemblyCulture>neutral</AssemblyCulture> element.
With these changes, we can import the .NET 4.0 reference assembly
documentation and validate the output w/o getting any errors.
Yes, this means we now accept several elements that aren't part of the ECMA
standard, but at least the primary source of information for ECMA will sanely
validate...
The //Member/Attributes element would "move" from after //Member/AssemblyInfo
to the last element within //Member when updating properties and events. This
would result in overly large diff's when no other changes occurred, and
results in 'mdoc validate' stating that the file is invalid.
This is so that `mdoc update-ecma-xml` can use this information when
generating the /Library/Types/Type elements, as //AssemblyPublicKey and
//AssemblyCulture are currently missing from `mdoc update-ecma-xml` output.
* method-to-ir.c (emit_write_barrier): If aot-compiling on
an arch with OP_CARD_TABLE_WBARRIER support, fallback to
the IR based cardtable barrier instead of going with the
remset one.
In mcs/class/corlib/System.Reflection.Emit:
* TypeBuilder.cs (DefineDefaultConstructor): If the resolved
type is either typeof (object) or typeof (ValueType) we backout
to the non resolved type as it might be one of the corlib's
typebuilders.
In mcs/mcs:
* rootcontext.cs (CloseTypes): Only apply the enum hack for
corlib here.
* rootcontext.cs (EmitCode): Do the corlib basic type hack
here before types are emitted. This is required since EmitType
produce type initializers, which derive from ValueType and must
be able to see the TypeBuilder version of it.
* mcs/class/System.Net/System.Net/InternalWebRequestStreamWrapper.cs:
Ensure WebClient.WriteStreamClosedCallback is never called more than
once (even if the stream was closed by the caller). Supply the length
of the data that was written to the stream to WebClient.
* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Keep an Uri of
BaseAddress handy since we'll need it later. Ensure OnWriteStreamClosed
is at least called once (inside finally). Emit UploadProgressChanged
(instead of Download*) when uploading.
* mcs/class/System.Net/System.Net/WebRequest_2_1.cs: Change text for
InvalidOperationException when the URI is not absolute (some MS tests
check for, case-sensitive, "URI").
In the latest revision of the framework, ReaderWriterLockSlim is totally fair and thus a call to TryEnterReadLock musn't succeed when writers are waiting to get the lock before them (and when the lock is currently in read mode).
* method-to-ir.c (emit_write_barrier): Amd64 can't use
big immediates (> 32bits) with ALU operations so
we assert if the cardtable ends been allocated in a high
address.
* sgen-cardtable.c: In order to support cardtables with 64bits we
allow cards to overlap each other. Cards are copied to a shadow
cardtable at the beginning of the scanning.
* gc-internals.h: Change signature of mono_gc_get_card_table to
return the card table mask.
* mini.h: Add PAND_IMM.
* method-to-ir.c: Handle card table masks.
* mini-x86.c: Ditto.
* sgen-cardtable.c: Add functions that test if a given
card or range or cards should be scanned. Those function
make sure the card are clear on return.
* sgen-gc.h: Export new functions.
* sgen-los.c: Use to new functions.
* sgen-marksweep.c: Ditto.
* sgen-cardtable.c: Use live block enumeration API
to clean blocks instead of a custom API.
* sgen-los.c: Add los_iterate_live_block_ranges.
* sgen-marksweep.c: Add major_iterate_live_block_ranges.
* sgen-gc.h: Adjust for new function.
First, we refactor out the "overwrite only if content has changed" logic in
monodocer into MdocFile.UpdateFile() so that we can reuse this same logic.
After that, it's primary all about MDocUpdateEcmaXml.UpdateExistingLibraries():
scan through the document looking for libraries we're interested in. If we
encounter one we don't care about, copy directly. If we do, enumerate it's
contents looking for types we care about, and either copy the old version
as-is if we don't care, or copy over the mdoc(5) version if we do.
This is for ECMA support: it's intended to take an existing
CLILibraryTypes.xml file (from the ECMA 335 standard) and update the specified
types within it. If no existing file is specified, it'll generate a new one
based on command-line arguments.
Update support is currently lacking, but it'll generate a new document with:
mono mdoc.exe update-ecma-xml -o - \
--library BCL --type=System.Environment Test/en.expected
Sometimes the predicate was also called multiple time generating exception that weren't caught by the general Task handler and thus swallowed by the runtime causing Thread shutdown and ultimately deadlocks.
Some concurrent collections don't necessarily guarantee that a call to Dequeue/Pop/equivalent will succeed even in the case there are elements in the collection. When one of such operation fail in test, retry it immediately to check for that sort of cases.
Merge token are simply the combined cancellation source of user (i.e. token supplied with PLinq operator WithCancellation) and internal tokens (supplied with WithImplementerToken).
send(2) does not return ETIMEDOUT for a blocking socket with a write
timeout set, which causes the wrong error code to be reported to the
managed world.
Fixes bug #599488.
* HttpWebRequest_2_1.cs: Avoid using AllKeys (unneeded allocations)
* WebClient_2_1.cs: Copy headers to WebRequest (some special cases are
now considered) then clear them. Expose SecurityException (unwrapped)
and closely match SL4 exceptions (including inner exceptions).
* WebHeaderCollection_2_1.cs: Add missing validations on header names
and values (from original WebHeaderCollection.cs + small fix)
in mcs/class/corlib/System.Reflection:
* MonoProperty.cs: Don't share the same field with
DeclaringType and ReflectedType.
in mcs/class/corlib/System:
* Environment.cs: Dump corlib version.
in mono/metadata:
* appdomain.c: Bump corlib version.
* object-internals.h: Add new field to MonoPropertyInfo.
* icall.c (ves_icall_get_property_info): Store the
declaring type into the new field.
Fixes#633671
'gmcs /doc' now properly generates explicitly implemented interface member
//member/@name values, so mdoc-update can now find them for the import. Yay!
The //member/@name for explicitly implemented interface members needs to
contain the fully-qualified interface name, including type parameters (if
necessary), so we need to generate
"M:Container`2.Element.System#ICloneable#Clone", not
"M:Container`2.Element.ICloneable.Clone".
Furthermore, explicitly implemented generic interface methods within a generic
type were always getting the type parameter count appended to them (which
somewhat makes sense, as they're on a generic type...) which is counter to what
CSC generates, e.g. we need to generate
"P:Container`2.System#Collections#Generic#IList<TValue>#Item(System.Int32)"
not "P:Container`2.IList`1.Item``1(System.Int32)".
Our previous inline card table write barrier did not perform
any checks on the pointers, which means that it marked cards
for the major heap even if the references stored there were
not to nursery objects. Doing that is slightly faster in the
mutator but the nursery collections might take a lot longer
because objects might have to scanned unnecessarily.
This patch implements an inline write barrier that also
performs a nursery check. To that end we introduce a new
IL opcode, OP_CARD_TABLE_WBARRIER.
It is currently only implemented on x86. For architectures
that don't support it (yet), we automatically regress to the
old, non-checking write barrier.
There was still an issue with thread-safety of binary protocols: If
the world was stopped while a thread was in the process of using a
binary protocol buffer, the GC would write all buffers to the file and
release the memory, making the thread crash once it restarted.
We fix this here by keeping a count of how many threads currently use
the buffers. If they are in use when we try to save and free them, we
don't. They'll be saved and freed eventually.
* mini.c (create_jit_info): Handle the case where the basic
block right after a try block is dead. For example:
.try {
....
leave ...
}
nop //HERE
.catch {
...
}
The above nop is dead code and the branch opts will nullify it
which caused the code in create_jit_info to assert when
calculating the try block lenght.
This is a very rare case since only obfuscators or broken
compilers would put instruction between the try and handler
blocks.
The fix is to simply iterate over all CIL addresses of the
try block in reverse order looking for the first block which
was not removed.
Fixes 633291
Since the call is also implemented as a simple long load operation in the runtime when on x86-64 there is no need to do the differentiation in managed code.
No mdoc changes, but since 'mdoc update --exceptions=all' scans across
assemblies, and since System.Delegate.Combine() now throws additional
exceptions (according to our IL scanning algorithm), the expected output
differs, leading to false negatives about regressions.
Furthermore, 'gmcs /doc' has been fixed (it used to cause a compilation
error) and improved, so more XML documentation is now imported because gmcs is
generating the correct XML documentation crefs. (Go gmcs, go!)
Fixes#624242
This also allows master 'gmcs /doc' to build OpenTK, gitorious.org/cadenza,
and build the mcs/tools/mdoc unit tests w/o compilation error.
The bug was caused by a NotSupportedException when calling ArrayContainer.Name
within DocUtil.GetSignatureForDoc(TypeSpec). This is directly fixed by
checking explicitly for ArrayContainer.
Another bug fixed was wrt type parameter indexing in nested types, hence
"counting" the number of type parameters declared in all declaring types.
When a server-side control processes its children (in the markup) as properties, it needs to instantiate
an object of the property type and assign it to the appropriate property of the control. Failing to do so
will cause markup which references properties to fail in certain cases (for instance when the control's
property type is a class and it is not instantiated by the control's constructor).
If the card table write barrier is used, emit it inline.
It's a quick address calculation and a single store, so
it's much more efficient than our old write barrier.
This is a direct card table, meaning there is only card table
level, which makes it very simple and efficient. It only works
on 32 bits at this point, and only for Mark&Sweep.
Move the CAS related code out of the
if (rs->ifree_mask & (regmask (dest_sreg))) {
section so it is executed even if the fixed sreg is already assigned.
* ObjectWriter.cs: Make the .ctor take a single BinaryFormatter
parameter and get the information from there. This should make
it easier to do some 4.0 new assignations, instead of adding yet
another parameter (also, ObjectReader is doing exactly what we
are doing here now).
* BinaryFormatter.cs:
* MessageFormatter.cs: Update call sites.
There is a possible crash using this profile if the monotouch.dll
isn't loaded into the process space. We will null guard the
type and only call start_wwan if its present.
QueryCheckerVisitor can then eventually decide if it's pertinent to run the query in parallel and set accordingly a boolean value (though not used by the engine at the moment).
Increase the sizes of the various load/store opcodes in order
to support the expansion when large stack frames (>32k) are
produced. Update prologue and epilogue code to generate the
frame in two steps.
Code contributed under the MIT/X11 license.
Because we were using the wrong handle in SetConsoleMode, newlines were breaking when TreatControlCAsInput was enabled. This no longer happens now that we're setting the correct mode on the input handle instead of the output handle.
If xbuild is unable to resolve a reference, then it dumps details of
why it failed. This adds a env var XBUILD_LOG_REFERENCE_RESOLVER,
which if set, logs those details of why a particular search path
was used to resolve the reference.
Update the man page also.
This is necessary for some PLinq operator that can provide a better optimized version of themselves when there is no ordering constraint whithout having to create yet another query node. Note that the method can be optimized with a more specialized version of the visitor.
Previously the case of Unordered wasn't taken in account and the control flow wasn't properly forwarded to the following nodes in the query# Please enter the commit message for your changes. Lines starting
Using ToArray directly, even though incorrect, was working by a twist of fate in that the mostly-standard partitioner and ToArray operator were based on the same assumptions.
Switch from manually creating result sets to creating them with a Linq query. Replaced some type with var. Split indexed and non indexed call in two different virtual method call.
In some rare case where a ThreadWorker have taken more than one item (and thus there are items to steal) another ThreadWorker that hadn't seen this extra work would go to sleep indefinitely and cause deadlock if the first Task executed was depending on another Task to be launched.
* MonoField.cs (FieldType): Lazy load the field type if
null.
* icall.c (ves_icall_MonoField_ResolveType): New icall
to lazy resolve a field.
* icall-def.h: Ditto.
* reflection.c (mono_field_get_object): Eager load a field's
flags since this simplifies a lot the managed side that doesn't
have to handle loading it if not present.
* class-internals.h: Add mono_field_is_deleted_with_flags
which takes the flag as an argument instead of using the
value on type->attrs.
* reflection.c (mono_field_get_object): Check if field->type
is present before using it.
* icall.c (ves_icall_Type_GetFields_internal): Do things
lazier by not depending on a field's type been loaded.
* class.c (mono_class_get_fields_lazy): Lazy variant
of mono_class_get_fields that returns fields with only
minimal information loaded (name and parent).
* class.c (mono_class_setup_basic_field_info): Loads minimal
info about a field, right now just name.
* class.c (mono_class_setup_fields): Use new functions to
load everything.
* class.c (mono_field_resolve_type): Init the error struct
and set it on case of a class failure.
* class.c (mono_field_get_flags): Since the field type
is lazy loaded we avoid loading it here since some
reflection operations depends on flags but require lazy
loading of type.
* DataGridView.cs: When refreshing the scrolling info,
set the values for the internal scrollbars even if we are forced
to not display them, since they are used to compute the
navigation, which should be available *always*.
* TextBoxBase.cs: In Text property always call
Document.SetSelectionToCaret just like we do in other places
calling Document.Empty(). This way we don't leave our selection
stuff in an inconsistent state.
Instead of a do/while loop, just keep looping until both KeyDown is true, and EventType == 1. It seems that sometimes when EventType == 1, KeyDown wasn't true but it would stop looping anyway. This caused mouse presses, context menu changes, and focus changes to register as key presses. With the new infinite loop, only actual key presses will be registered.
ConcurrentDictionary is now used to store the per-thread CyclicDeque instances instead of maintaining a growing array ourselves. Add hints are still used.
When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.
Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)
__CALLBACKTARGET and __CALLBACKARGUMENT have been renamed to __CALLBACKID and __CALLBACKPARAM, respectively,
recently and this script didn't get update for the change causing callbacks not to work on master.
* icall.c (ves_icall_MonoType_get_Module): Don't mono_class_init
the type as it's not needed.
* icall.c (ves_icall_MonoType_get_Assembly): Ditto.
* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
mono_reflection_get_type can return a non-null type and set a
loader error. Don't leak it.
Fixes#630773
Several method in ConcurrentDictionary do a combination of two actions or two different actions depending on a test. These additional methods to the standard SplitOrderedList operation set are for these.
This data structure is to be used internally by ConcurrentDictionary. Theory from paper "Split-Ordered Lists: Lock-Free Extensible Hash Tables" and "A Pragmatic Implementation of Non-Blocking Linked-Lists".
When GridView auto-generates columns it uses reflection to retrieve list of public properties present
in the item type. Only the properties that have bindable type and are declared directly in the item
type must be considered for column auto-generation.
in mcs/class/corlib/System.Reflection:
* CustomAttributeData.cs: This now receives only the information
required to later load argument data. This information is stored
in a new field that is later discarded.
in mono/mono/metadata:
* icall-def.h: Add new icall from CustomAttributeData.
* object-internals.h: Add new reflection.c function.
* reflection.c (mono_reflection_get_custom_attrs_info): Don't
init the class when retrieving custom attributes since we must
handle broken types.
* reflection.c (create_custom_attr_data): Don't resolve cattr
arguments eagerly. Instead pass enough information to
CustomAttributeData so it can later on create them.
* reflection.c (mono_reflection_resolve_custom_attribute_data):
new icall used to create the cattr data arguments.
This is required to match MS behavior and fix some of the issues
triggered by trying to compile MD.
Fixes#630074
WebConfigurationHost now supports one more parameter passed to it in InitForConfiguration -
a boolean telling whether the configuration being initialized belongs to another app. If it is
true then the virtual path passed to InitForConfiguration is used as the application virtual
path. This has the effect that IsDefinitionAllowed doesn't throw an exception when a configuration
element with the MachineToApplication level is parsed.
WebConfigurationManager.FindWebConfig checks whether the path passed to it belongs to this application
which allows the mechanism described in the first paragraph to work.
When HttpContext.RewritePath is passed a virtual path with more than one leading slash it
results in HttpApplication.GetHandler not being able to locate the appropriate handler.
Patch adds code to convert the passed virtual path to a canonical form.
Additionally, HttpApplication.Pipeline () now throws an exception when no handler can be
determined for the current request.
The bug was caused by the runtime loading two copies of System.Configuration -
one for the 4.0 profile (loaded by xsp4 itself) and another for the 2.0 profile
(loaded as a reference for BlogEngine.Core.dll) and for that reason, the static
class System.Configuration.ConfigurationManager was instantiated twice in the
BlogEngine application's AppDomain which, in effect, led to the exception since
the configuration system wasn't reset from the default one to the system.web-specific
one. The commit makes runtime remap System.Configuration 2.0 to 4.0.
Thanks to Zoltan Varga for catching the issue.
When the in-proc session handler puts items in the internal cache, it prefixes them with the
@@@InProc@ prefix to make sure they don't conflict with other values stored there. The handler
has been failing so far to remove that prefix when triggering the session end event. This commit
fixes the issue.
* Application.cs: At the end of the message loop in RunLoop
don't break the loop if the Form handle has been destroyed already -
which means that we *need* to wait for WM_QUIT and handle it
properly instead, so it doesn't end up affecting other forms.
In the parallel collector, the main GC thread needs to distribute all
remaining entries in the gray queue to the worker threads. Since the
distribution pool is limited in size we need to wait on it, which at
this point is only possible with busy-waiting. Since we don't want to
use up CPU resources and hog the cache lines we wait 2ms between
distribution attempts.
* mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs: Add new internal call to retrieve embedded application config. First
check if an embedded configuration exists before looking up on the
filesystem.
* mono/metadata/icall-def.h: Add entry for retrieving embedded application
configuration.
* mono/metadata/icall.c: Add function to retrieve embedded application
configuration if one has been registered with the runtime.
* Ping.cs: generates a random ICMP Identifier field per Echo to help
match up pings and their responses. Now has valid TTL and timeouts apply to
the correct pings. Also fixed bugs were received Sequence and
Identifier would be corrupt for values >255, and fixed corruption of
the Data field.
Patch by Michael Walsh that fixes bug #627330.
When a postback is made to the server, AsyncPostBackTrigger.HasTriggered must use FindTargetControl (true)
to find the associated control and see if its UniqueID matches the one of the control which originated
the postback. The target control may (and most probably is) outside the control panel and looking for it
only in the collection of child controls will make some sites fail to update content on async postback.
AsyncPostBackTrigger must search for the associated control in the naming containers during intialization
because its ControlID property is initialized with the unique name of the target control.
* ListView.cs: When using Details view re-populate our implicit
control collection to our header control is always on top. We
could try to just use BringToFront but since these controls are
implicit, we are not gracefully handling them.
* ListView.cs: Don't call Dispose for our implicit scrollbars,
as the default Control.Dispose impl is already disposing all the
implicit controls. This was generating extra Layout
events when disposing.
This is a new variant of Mark&Sweep which uses a pre-allocated
fixed-size heap instead of a dynamically grown, segmented one. The
main advantage of this heap organization is that it takes only one
pointer comparison to determine whether an object is on the small
object heap or in the LOS, instead of inspecting the object's size,
which requires three loads. Since that determination is required for
every marked object, speeding it up can improve performance
significantly.
Make the parallel Mark&Sweep collector selectable with the "major"
option of the "MONO_GC_PARAMS" variable as "marksweep-par". The
serial Mark&Sweep collector remains the default as "marksweep".
Previously we used one internal allocator. That was not a problem as
long as SGen was single-threaded. With parallel mark, however, we
needed a lock for the internal allocator to make it work. This patch
makes each worker thread use its own internal allocator instead, so we
don't have to lock anymore.
One problem introduced by this approach is that the allocator from
which a gray queue section was allocated is not known at the point where
the section is freed, because it might have been sent off to a different
worker thread. To solve this we have a "delayed" free function, which
determines the correct internal allocator from the internal allocator
block (which is aligned). The section is then added to a delayed free
queue of that allocator which is processed at some point by that
allocator's worker thread.
Note that the section cannot be freed by the thread that calls the
delayed free function because that would result in the possibility of
the "ABA" problem occuring.
Make the mark phase of the Mark&Sweep collector parallel.
At GC initialization we start a number of worker threads (as much
as the machine has cores) between which the objects in the gray
queue are distributed for marking.
* Microsoft.Win32.SafeHandles/SafeRegistryHandle.cs: Implement
ReleaseHandle by pinvoking RegCloseKey if we are on windows, and
nothing otherwise.
* Microsoft.Win32/Win32RegistryApi.cs:
* Microsoft.Win32/RegistryKey.cs: Don't call SafeHandle.Close
from our public api, and do it instead un the windows layer, as
we only support it there for now.
ASP.NET 4.0 allows one to set base types for Pages, User Controls, Application and PageParserFilter
from the pre-application start method(s). This commit implements support for this mechanism.
* ApplicationFileParser.cs: added override of DefaultBaseType property which checks whether
PageParser.DefaultApplicationBaseType is set and, if yes, uses it to set application base type
if there's no custom Global.asax
* PageParser.cs: implemented the EnableLongStringsAsResources, DefaultPageBaseType, DefaultApplicationBaseType,
DefaultPageParserFilterType and DefaultUserControlBaseType properties.
* TemplateParser.cs: if PageParser.DefaultPageParserFilterType is set, use it as the default type to create instance
of the page parser filter
* Added tests for the new properties.
* Added support in standalone runner for setting custom application domain data on domain creation, just before
the test is ran.
* marshal.c (mono_marshal_get_delegate_invoke): add support for
delegates pointing to instance methods that are closed over null.
Managed side of the feature is in 2ec0ab59fe.
If an app uses e.g. System.Diagnostics.Trace (and the Trace methods are
actually invoked, e.g. by building with -d:TRACE and using Trace.WriteLine()),
at least one System.Configuration.ConfigurationErrorsException was being
generated as part of startup (one from parsing machine.config, and an optional
second exception from parsing AppName.exe.config).
The exception was caught, so it didn't break anything, but it was still
undesirable.
The cause of the exception is as follows: The <system.diagnostics/>
configuration section is processed by DiagnosticsConfigurationHandler, which
is an IConfigurationSectionHandler implementation. In .NET 2.0, configuration
file processing was moved to use System.Configuration.ConfigurationSection
implementations, which would delegate to IConfigurationSectionHandlers if/when
specified.
However, before ConfigurationSection.GetRuntimeObject() calls into
DiagnosticsConfigurationHandler, it would indirectly call
ConfigurationElement.DeserializeElement() to process the e.g.
<system.diagnostics/> element, which would throw as ConfigurationElement was
hitting "unrecognized" XML elements (as ConfigurationElement doesn't know about
DiagnosticsConfigurationHandler-specific XML). This would result in a
ConfigurationErrorsException, which would be caught in GetRuntimeObject(),
then DiagnosticsConfigurationHandler.Create() would be invoked (doing the
"actual" <system.diagnostics/> parsing, allowing Trace to work, etc.
The fix taken here is to avoid calling
ConfigurationElement.DeserializeElement() if there's an
IConfigurationSectionHandler present, as it doesn't make sense to parse the
same section with two different handlers.
Make implementors of IInternalConfigurationHost.OpenStreamForRead return null instead of throwing an exception when there's no usable configuration file and deal with null at the call site.
This adds support for the ProviderName attribute of the OutputCache directive in user controls.
Also implemented missing support for SqlDependency attribute.
* TemplateControlCompiler.cs: StaticPartialCachingControl instantiation now uses the constructor overloads
which accept sqlDependency (2.0+) and providerName (4.0+)
* UserControlCompiler.cs: added code to output PartialCachingAttribute which accepts sqlDependency (2.0+) and
ProviderName (4.0+) arguments
* PartialCachingAttribute.cs added the 4.0 ProviderName property
* StaticPartialCachingControl.cs: implemented two missing constructors (one 2.0 and the other 4.0)
Added a missing BuildCachedControl overload which accepts providerName (4.0)
* TemplateParser.cs: factored out OutputCache attribute processing to a separate internal virtual method.
* UserControlParser.cs: added support for the ProviderName attribute of the OutputCache directive.
This commit implements the ability to programmatically set the name of the output cache provider
to hold cached control data.
* OutputCache.cs: added DefaultProvider internal property to return whatever default provider is
configured.
Added GetProvider() method to return instance of a named provider
* BasePartialCachingControl.cs: cache key and cached data are store in instance fields.
Added 4.0 internal property ProviderName which names the output cache provider to use for storage.
Removed OnInit from 4.0 profile, replaced with an override of Control's InitRecursive. Control is
created only when cached data is not found in the provider.
* Control.cs: made InitRecursive virtual for the benefit of BasePartialCachingControl above.
* ControlCachePolicy.cs: added 4.0 property ProviderName
When doing a rebuild for an already built project, the common
files (CopyLocal) should not be deleted by a project, as
other projects might be depending on them. This becomes a problem
when a common output dir is used.
Since "make dist" should also work from a tarball we must only call
the commit-to-changelog script if there's a git repository present.
If we're already in a disted tree, the script has already run.
The commit-to-changelog script now fails if git fails for whatever
reason. The most important reasons would be that git isn't installed,
and that the script is called without a repository.
* reflection.c (reflection_methodbuilder_to_mono_method):
Handle the case where a method parameter is defined using
a generic argument of another method. The resulting signature
must use the generic arguments of the method it belongs and
not from others.
This fixes one issue found while testing IronRuby 1.1.
* BuildProvider.cs: factored out build provider type retrieval code to a separate method
* BuildProviderCollection.cs: factored out build provider type retrieval code to a separate method
* BuildManagerDirectoryBuilder.cs: system.web/compilation section is not an application section - it can
be defined in web.config on any level.
* metadata-verify.c (mono_method_signature_checked): Change
signature to take a MonoError* instead of a GList** to make
it easier to the runtime to get error messages out of the
metadata verifier.
* verify-internals.h: Change signature.
* loader.c (mono_method_signature_checked): Pass the current
MonoError to mono_method_signature_checked to get better
error messages.
* metadata-verify.c (init_verify_context): Change parameter
from GList** to gboolean so it can be used with functions that
don't receive a GList** argument.
* mini-exceptions.c (mono_install_handler_block_guard): Guard against a
null MonoJitTlsData. This can happens if the thread receives the
interrupt signal before the JIT has time to initialize its
TLS data for the given thread.
When loading projects specified in the solution file, to find
their dependencies, missing imports cause an exception to be
thrown and so the deps are not available in the project instance.
MSBuild task can override properties for a project, and these
should be applied before the project file is loaded. This is to
allow the properties to be available for Imports. Eg.
<Import Project="$(SolutionDir)\foo.targets"/>
$(SolutionDir) is generally set by the MSBuild task in a .sln.proj
file.
Bug reported by JB Evain.
* Microsoft.Build.BuildEngine/Engine.cs:
Apply global properties before the project load.
* Test/*/EngineTest.cs (TestGlobalPropertiesImport*): New tests.
The major collector refactoring left heavy statistics broken. A few
heavy statistics counters are defined in sgen-gc.c but used in the
major collectors. We're now exporting them. Another possibility
would have been to define them in both major collectors, but since
this is only a debug feature that's not normally compiled in, we don't
care.
Make the major collectors define their own versions of
major_scan_object() by including a small header file. This
avoids indirect calls to major_copy_or_mark_object() and
allows inlining.
Instead of using solely SpinWait's SpinOnce method after ManualResetEventSlim's spinCount is reached, it now uses ManualResetEvent's WaitOne method. Various other checks like CancellationToken canceled state are still verified during that time albeit slower.
Instead of shutting down the thread when there is no more work to do, each ThreadWorker will now block on an EventWaitHandler and be awoken later by Scheduler.
* xbuild/xbuild/*/Microsoft.Common.targets: Rename item
@(TargetFrameworkDirectories) to @(_TargetFrameworkDirectories)
to *mark* it as private, and use the new $(TargetFrameworkDirectory)
property instead. Reported by mhutch.
* xbuild/xbuild/*/Microsoft.Silverlight.Common.targets: Update
to track the changes.
2010-08-02 Zoltan Varga <[email protected]>
* tramp-amd64.c (get_vcall_slot): Move mono_arch_get_vcall_slot () here, since it
is only used by this file.
* tramp-x86.c: Ditto.
* mini-trampolines.c mini-<ARCH>.c: Get rid of mono_arch_get_vcall_slot (), all
architectures should support MONO_ARCH_THIS_AS_FIRST_ARG now.
* RegistryKey.cs: Implement Handle, but only for Windows, since
we don't have any unmanaged api to access the registry - and our
unix impl is fully managed anyway. Also rename our internal
Handle property to InternalHandle.
* Win32RegistryApi.cs:
* UnixRegistryApi.cs:
* IRegistryApi.cs: Add a GetHandle method, and update calls to
RegistryKey.Handle to use InternalHandle instead.
* RegistryKey.cs: Implement the simple overloads of OpenBaseKey,
OpenRemoteBaseKey, FromHandle that take a RegistryView
parameter, which we ignore, as well as adding View property.
* Win32RegistryApi.cs:
* RegistryKey.cs: Implement RegistryKey.FromHandle method,
supported only on Windows as there is not any unmanaged
convention to retrieve a handle for a given key.
* Win32ResultCode.cs: Add InvalidHandle code.
* UnixRegistryApi.cs:
* IRegistryApi.cs: Update overloads.
* Makefile.am: added 2 new tests
* threadpool-exceptions6.cs: new thread.abort inside the threadpool
test.
* appdomain-unload.exe.config: this test does not work in .NET without
having the legacy unhandled exception mode enabled.
* RegistryKey.cs: Implement the 4.0 overload of DeleteSubKeyTree
that takes a boolean to throw an exception if the key is not
found. Just expose our already existing method as an internal
overload for 2.0.
This reverts commit 3c53388c59.
The LLVM version which required this change is broken, so revert this change
along with reverting the 'mono' branch in the mono/llvm repo to a working version.
This fixes EOL conversions flagged by git 1.7.1 core.autocrlf=true. At this
point, neither git 1.7.1 nor 1.7.2 show any automatic CRLF normalization.
I think we're ready for another experiment.
There seems to be a difference in the handling of mixed line-ending files
between git 1.7.2 and older versions, when core.autocrlf is set to true.
* mini/debug-debugger.c
(MONO_DEBUGGER__debugger_info): Add 'thread_abort_signal', pointing
to a field store the signal number on startup.
* metadata/mono-debug.h: Bump debugger version to 81.6.
The commits-to-changelog script previously generated ChangeLog entries
with a FIXME if it couldn't find anything applicable for that
particular ChangeLog. Since we want to use the script for "make dist"
it shouldn't do this. Instead it now just inserts the whole commit
message in those ChangeLogs.
When creating a distribution "make dist" now uses the
commits-to-changelog script to automatically update all
ChangeLog files since the last commit marked with the
"last-commit-with-compulsory-changelog-entry" tag.
This script converts git commit messages to ChangeLog entries. That
will hopefully allow us to forego adding ChangeLog entries in our
commits, which always leads to merge conflicts.
* UnixRegistryApi.cs: Move GetSubKeyCount and GetSubKeyNames to
KeyHandler, so we can properly track volatile subkeys there
*without* exposing any impl details.
* mono/tests/threadpool-exceptions[1-4].cs: new tests
* mono/tests/threadpool.cs: fix typo.
* mono/metadata/threadpool.c: starting in .NET 2.0, unhandled exceptions
in the threadpool can cause a crash in a running program. From now on,
we are compatible.
Until now exceptions thrown from a threadpool work item were ignored.
From now on they will propagate to the domain's UnhandledException event
and then to the root AppDomain. If they are not handled, they will cause
the program to abort.
2010-07-29 Rodrigo Kumpera <[email protected]>
Add support for calling vararg methods from SRE code.
This requires storing per-memberref signatures so
the JIT can know how many varargs parameters are
been passed.
* loader.c (mono_method_get_signature_full): If the
image is dynamic call mono_reflection_lookup_signature
to lookup the signature.
* reflection.c (mono_image_create_method_token): Save
the method object into the MonoDynamicImage::tokens.
Create a signature struct for MethodBuilders.
Save the signature into vararg_aux_hash so it can be
retrieved later.
* reflection.c (mono_reflection_lookup_signature): New
function. Check vararg_aux_hash for a signature before
returning method's own signature.
* metadata-internals.h (MonoDynamicImage): Add new
vararg_aux_hash hashtable.
* object-internals.h: Add mono_reflection_lookup_signature.
Fixes#626441
2010-07-28 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): Don't move forward
with verification if a stack overflow is detected for
the ARGLIST opcode.
Fixes#601953
2010-07-28 Rodrigo Kumpera <[email protected]>
* class.c (mono_bounded_array_class_get): Fail arrays
of void or typedbyref. Those two types are not allowed
to be used with arrays. Failing them is easier and less
error prone than returning NULL.
Fixes#603279
2010-07-28 Rodrigo Kumpera <[email protected]>
* object.c (mono_get_delegate_invoke): Don't assert if
the Invoke method is not found. This can happen with
broken types and it's the caller resposibility to deal
with a null return.
Fixes#553403
2010-07-28 Rodrigo Kumpera <[email protected]>
* class.c (mono_assembly_name_from_token): Handle
images with null assembly. This can happen with resource
or broken assemblies.
Fixes#623586.
2010-07-27 Rodrigo Kumpera <[email protected]>
* class.c (concat_two_strings_with_zero): Guard against
null strings.
Modified version of patch by Sebastien Pouliot.
Fixes#623653.
2010-07-27 Rodrigo Kumpera <[email protected]>
* image.c (mono_image_load_module): Handle the case of
module index equal or smaller than zero. It is possible
to embed a valid zero index into metadata so this case
must be explicitly handled.
Patch by Sebastien Pouliot.
Fixes#623581.
2010-07-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (INVALID_IMPLMAP_FLAGS_BITS): Add non standard
bits for best fit on/off (4,5) and throw on unmappable on/off (12/13).
Fixes#622221.
* JsonSerializationReader.cs, JsonSerializationWriter.cs:
Add a special case for IDictionary, since KeyValuePair objects
have private setters and can't be processed via the normal
object code path.
2010-07-27 Rodrigo Kumpera <[email protected]>
* EventLogger.cs: Emit verifiable code. This was blocking the
SWF test suite from running under the verifier.
In metadata:
2010-07-27 Geoff Norton <[email protected]>
* sgen-archdep.h: Ensure we store the registers we actually
need to scan.
In utils:
2010-07-27 Geoff Norton <[email protected]>
* mono-sigcontext.h: Extend the macro's for darwin and linux
to expose r8-r11 as well.
* verify.c (mono_generic_param_is_constraint_compatible): Don't
fail a contraint check even if the candidate has no constraints.
All constraints might resolve to the candidate itself so it can
have none.
Fixes#622225.
* FederatedMessageSecurityOverHttpElement.cs : use correct converter.
* WSFederationHttpBindingCollectionElement.cs : remove extra members.
* WSDualHttpBindingElement.cs, WSFederationHttpBindingElement.cs :
fill base properties expectedly.
* UnixRegistryApi.cs: From the static ctor of KeyHandler remove the
volatile keys directory if the last registered boot time has changed.
This way we *actually* have our volatile keys removed if the system as
rebooted.
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-24 Mark Probst <[email protected]>
* sgen-internal.c, sgen-gc.h, sgen-major-copying.c: Make the
internal allocator fast by keeping free-lists of chunks, not only
within chunks. Align the chunks, so that on freeing we can get
the chunk without searching.
2010-07-24 Mark Probst <[email protected]>
* sgen-internal.c, sgen-gc.c, sgen-gc.h, sgen-gray.c,
sgen-major-copying.c, sgen-marksweep.c, sgen-pinning-stats.c,
sgen-pinning.c: Allocate fixed-size structs without specifying the
size, instead registering it once with its type.
Dynamically-sized need their size specified when being freed.
2010-07-24 Mark Probst <[email protected]>
* sgen-major-copying.c, sgen-internal.c, sgen-gc.c, sgen-gc.h,
sgen-pinning.c: Copying major collector doesn't mess around with
internals of the internal allocator anymore, instead using public
functions.
2010-07-24 Mark Probst <[email protected]>
* sgen-internal.c: Internal allocator in its own module.
* sgen-gc.c, sgen-gc.h, sgen-gray.c, sgen-los.c,
sgen-major-copying.c, sgen-marksweep.c, sgen-pinning.c,
sgen-pinning-stats.c: Remove internal allocator and call the
public functions now.
* Makefile.am: Added new file.
* mini-darwin.c: Having reviewed xnu-1504.7.4 it is safe to call fork directly
here, it seems the old implementation was a hold over from the linux behaviour
This fixed gdb backtrace on amd64 and ppc.
** Fixes#565616 - Based on Patch by Hubert FONGARNAND
* DataContainer.cs (GetContainerData): If typecode is string,
call Convert.ToString() irrespective of whether value is
IConvertible or not.
* ContractAssertTest.cs
ContractAssumeTest.cs
ContractHelperTest.cs
ContractMustUseRewriterTest.cs:
Mark couple of runtime breaking tests (on .NET 4.0) as [Ignore].
** Fixes#565616 - Based on Patch by Hubert FONGARNAND
* DataContainer.cs (GetContainerData): If typecode is string,
call Convert.ToString() irrespective of whether value is
IConvertible or not.
* ContractAssertTest.cs
ContractAssumeTest.cs
ContractHelperTest.cs
ContractMustUseRewriterTest.cs:
Mark couple of runtime breaking tests (on .NET 4.0) as [Ignore].
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
during startup before the loader lock is initialized.
(mono_loader_unlock_if_inited): Ditto.
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
during startup before the loader lock is initialized.
(mono_loader_unlock_if_inited): Ditto.
* MenuRenderingMode.cs: added (4.0)
* Menu.cs: added the IncludeStyleBlock and RenderingMode 4.0
properties (not used in the code yet).
svn path=/trunk/mcs/; revision=160723
* HttpApplication.cs, HttpRuntime.cs, HttpApplicationFactory.cs:
Prepare for the runtime change that will terminate threadpool
svn path=/trunk/mcs/; revision=160700
* Array.cs: Fixes a couple of other cases where we were missing
the handling for null values, fixes a broken case of null
handling.
svn path=/trunk/mcs/; revision=160699
2010-07-21 Sebastien Pouliot <[email protected]>
* Makefile: Ensure SECURITY_DEP gets defined in our moonlight
raw profile
In System.Net:
2010-07-21 Sebastien Pouliot <[email protected]>
* ServicePointManager.cs: Add special validation for Moonlight
* WebConnection.cs: Change a define to NET_2_1
In System.Net.Security:
2010-07-21 Sebastien Pouliot <[email protected]>
* LocalCertificateSelectionCallback.cs:
* SslStream.cs:
Don't use alias in moonlight build (not needed and breaks
compilation otherwise)
svn path=/trunk/mcs/; revision=160675
* Wizard.cs: made rendering 100% compliant with .NET (button IDs,
2.0+)
Implemented LayoutTemplate (4.0+)
* LinkButton.cs: render id first
* CreateUserWizard.cs: CreateUserNavigationContainer.UpdateState
doesn't add a previous button if we're on the first step.
svn path=/trunk/mcs/; revision=160657
* method-to-ir.c (op_to_op_src2_membase): Reorganize the amd64 op->op membase
code, it was missing a few 'break's.
svn path=/trunk/mono/; revision=160633
* parser.cs (ParseEscape): Now parses with some context, whether
we are parsing inside a character range which can not contain
back-references or when we are parsing on a string context which
can contain back references.
This fixes bug #577346 which exposed a bug parsing this:
new Regex("[\\177-\\377]")
svn path=/trunk/mcs/; revision=160626
* NoAccessPolicy.cs: Set default to SecurityException each time
IsAllowed is called since we share a single instance of this type
svn path=/trunk/mcs/; revision=160611
* src/gmisc-win32.c (g_getenv): Distinguish between variable not
found and an empty variable.
This should fix 566152
svn path=/trunk/mono/; revision=160589
* BaseDomainPolicy.cs:
* ICrossDomainPolicy.cs:
* NoAccessPolicy.cs:
* PolicyDownloadPolicy.cs:
* SiteOfOriginPolicy.cs:
Allow throwing something else than a SecurityException
which is pretty rare but we got a DRT for it
svn path=/trunk/mcs/; revision=160586
* UnixRegistryApi.cs: Remove the in-memmory approach to volatile keys,
as it becomes trickier to handle deep hiearchies, subkeys and values
in some scenarios. So for now we keep them in disk, we in an
alternative directory, so we can cleam them properly later.
svn path=/trunk/mcs/; revision=160574
* Array.cs: Fix for bug #622101, this reverts portions of the
broken patch that was introduced as part of the fix for #351638
which was mostly a set of optimizations, but some were just
wrong.
svn path=/trunk/mcs/; revision=160527
* Graphics.cs (CopyFromScreen): Avoid crash if asked for a region
to big for XGetImage to return. Fix bug #582823
svn path=/trunk/mcs/; revision=160507
* FormViewRow.cs: added internal property RenderJustCellContents
which makes the control render only its children (4.0)
* FormView.cs: implemented RenderOuterTable property and the
ModifiedOuterTableStylePropertyName method (4.0)
svn path=/trunk/mcs/; revision=160496
* WebControl.cs: implemented verifying that no inline style
property is set for controls which support the RenderOuterTable
property (4.0)
* IRenderOuterTable.cs: internal helper interface for controls
which support the RenderOuterTable property (for now only
ChangePassword, 3 more to come)
* ChangePassword.cs: implemented RenderOuterTable property and the
corresponding behavior of not rendering surrounding table when the
property is set to false (4.0).
Modified BaseChangePasswordContainer to not inherit from Table
anymore. Table is an instance variable (always used as the
template container in 2.0) which is optionally (and by default)
used to contain the templates.
svn path=/trunk/mcs/; revision=160459
* mini-ia64.c: Change the calling convention to pass this as first as on other
architectures. Remove some dead code from the get_vcall_slot() and the implementation
of the CALL_MEMBASE opcodes as a result.
svn path=/trunk/mono/; revision=160458
* wthreads.c (CreateThread): Avoid an assert if the stack size specified by the
caller is smaller than the system minimum.
svn path=/trunk/mono/; revision=160457
* reflection.c, class-internals.h, class.c, icall.c: support
reflection of default constant value for Re.Emit properties.
svn path=/trunk/mono/; revision=160447
* reflection.c (load_cattr_value): Add support for encoding
DateTime constants into the blob. Turns out that this is
required by .NET, it was only documented post 1.0.
* icall.c (ves_icall_type_GetTypeCodeInternal): Guard test for
System.Decimal and System.DateTime inside a mono_is_corlib_image
call. A sample program showed that we could return the wrong
TypeCode just by creating a class with those names.
* class.c (mono_is_corlib_image): Exposed this to other metadata/
code.
svn path=/trunk/mono/; revision=160402
* DateTime.cs: This is the Retina Display of DateTime structs.
Unlike our previous Chubby DateTime that took 16 bytes of memory,
this slim version of DateTime only uses 8 bytes.
This fixes a couple of bugs 592221 and 622127. Additionally, it
turns out that the original Microsoft documentation did not spell
this out, but newer versions of the docs state that SetConstant on
a FieldBuilder should be capable of serializing DateTimes (which
is where this issue came from).
This is necessary to fix two crashers exposed by the CLR test
suite.
svn path=/trunk/mcs/; revision=160391
* tests.make: Do not run the tests under the verifier until the
verifier bug is fixed so at least we can see what is going on in
our buildbots.
svn path=/trunk/mcs/; revision=160388
* WebMessageEncoder.cs : support Raw message in ReadMessage() too.
Allow null content type.
* WebMessageFormatter.cs : do not depend on WebOperationContext.
add support for Raw format request.
* WebMessageEncodingBindingElementTest.cs : add test for null
content type for ReadMessage() (allowed),
* WebHttpBehaviorTest.cs : add test for deserializing Raw request
message too.
svn path=/trunk/mcs/; revision=160377
* BinaryMessageEncoder.cs, MessageEncoder.cs:
The default content type value is null, not the ContentType value.
* HttpReplyChannel.cs : pass HTTP ContentType header value to
MessageEncoder.ReadMessage().
svn path=/trunk/mcs/; revision=160376
* Menu.cs: fixed skip link rendering (no child controls are added
in the process, writing directly to HtmlTextWriter). Fixes tests
for 4.0
If StaticSubMenuIndent equals Unit.Empty on 4.0, default to using
16px as the value of the margin-left CSS attribute.
Fixed all failing tests (both 2.0 and 4.0)
svn path=/trunk/mcs/; revision=160369
* security-core-clr.c: Don't abort (only warn) if we cannot find
a caller for relfecting code (transparent is assumed). Fix
get_method_access_exception to accept a NULL caller.
svn path=/trunk/mono/; revision=160361
* namespace.cs, import.cs: When importing nested type via type
arguments set their parent type correctly (Fixes#622051).
svn path=/trunk/mcs/; revision=160356
* WebMessageFormatter.cs : add support for Raw format.
* WebMessageEncoder.cs : support Raw message. Fixed bug #619542.
* WebHttpBehaviorTest.cs : add test for bug #619542 (not sure if it
works on mono; run-test is broken in trunk. Verified under .NET).
svn path=/trunk/mcs/; revision=160341
* sgen-gc.c: Versions of safe_object_get_size() and
copy_object_no_checks() that work without the object's vtable
intact, by passing the correct vtable as an argument.
svn path=/trunk/mono/; revision=160316
* BoundField.cs: implemented HtmlEncodeFormatString property
(3.5+) and modified the way FormatDataValue works accordingly.
svn path=/trunk/mcs/; revision=160312
* ListBox.cs, CheckBoxList.cs, ListControl.cs: VerifyMultiSelect
is not part of the official API. MultiSelect capability validation
is performed using an internal virtual method MultiSelectOk ().
* BaseDataList.cs: OnPagePreLoad is not part of the official API
* BaseDataBoundControl.cs, BaseDataList.cs, DataListItem.cs,
ValidationSummary.cs: implemented 4.0 SupportsDisabledAttribute
property.
svn path=/trunk/mcs/; revision=160305
* Control.cs: moved 4.0 ClientID code to a separate method, so
that the ID_SET flag isn't set when necessary.
2010-07-13 Marek Habersack <[email protected]>
* Wizard.cs: wizard table doesn't contain any instances of
HtmlAnchor or Image controls. Moved rendering of the skip link
anchor to the TableCellNamingContainer class, which does that in
RenderChildren by directly writing to the passed writer. Fixes 4.0
rendering and all the failing Wizard tests.
svn path=/trunk/mcs/; revision=160304
* RegistryKey.cs: Call the proper UnixRegistryApi.CreateSubKey overload.
* UnixRegistryApi.cs: Implement basic support for volatile keys, by
storing them in memory instead of disk. We lack the support to have
them available to other processes - and given the fact that a
workaround would be gross, just don't implement that now.
svn path=/trunk/mcs/; revision=160300
** Fixes#569543
* Tds70.cs (ExecPrepared): Revert back to old changes.
* Tds80.cs (ExecPrepared): Override for Tds 8 version that
optimizes network bandwidth.
svn path=/trunk/mcs/; revision=160281
* sgen-gc.c, sgen-gc.h, sgen-los.c, sgen-major-copying.c,
sgen-marksweep.c: Update the heap boundaries thread-safe and lock
free if parallel mark is enabled.
svn path=/trunk/mono/; revision=160279
* sgen-gc.c, sgen-gc.h, sgen-major-copying.c: Lock the internal
allocator if parallel mark (not committed yet) is enabled.
svn path=/trunk/mono/; revision=160278
* reflection.c (inflate_mono_method): Handle dynamic
generic instances that have method.count set but
methods not. Fixes another crash from boo's test suite.
svn path=/trunk/mono/; revision=160277
* icall.c (ves_icall_MonoMethod_get_base_method): If
the method slot is bigger than the class vtable, return
the original method. Makes booc work again.
svn path=/trunk/mono/; revision=160268
* reflection.c (fix_partial_generic_class): Inflate the
generic instance parent in case it was changed after
MonoGenericClass was instantiated.
Fixes one of the issues from #389886.
svn path=/trunk/mono/; revision=160257
2010-07-12 Rolf Bjarne Kvinge <[email protected]>
* mono.1: Document MONO_DEBUG's new reverse-pinvoke-exceptions option.
In mono/mini:
2010-07-12 Rolf Bjarne Kvinge <[email protected]>
* mini.c|h:
* mini-exceptions.c: Add an option to MONO_DEBUG for tracking down exceptions
that reach native code from a reverse pinvoke.
svn path=/trunk/mono/; revision=160250
* InputOrReplyProcessor.cs : remove SecurityHandler. WS-Trust must
be handled before endpoint dispatching (it must not pass contract
filter) and doesn't make sense to be here.
* SecurityHandler.cs : move to old-code.
* SecurityReplyChannel.cs : handle WS-Trust message here.
* SecurityRequestContext.cs : so, do not pass those messages here.
* SslSecurityTokenAuthenticator.cs,
AuthenticatorCommunicationObject.cs,
SecureConversationSecurityTokenAuthenticator.cs :
add timeout argument to negotication requests.
* System.ServiceModel.dll.sources: remove SecurityHandler.cs
svn path=/trunk/mcs/; revision=160244
2010-07-12 Atsushi Enomoto <[email protected]>
* SecurityRequestContext.cs : revert extra and bogus changes I had
locally.
svn path=/trunk/mcs/; revision=160233
* mini-<ARCH>.c (get_call_info): Call mini_type_get_underlying_type () before passing
a type to MONO_TYPE_IS_REFERENCE (), since the latter can't handle VAR/MVAR.
Fixes#620864.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=160206
* mini.c (mono_jit_compile_method_inner): Don't bomb out if we don't
support a given runtime implemented method.
svn path=/trunk/mono/; revision=160205
* RegistryKey.cs: Add 4.0 CreateSubKey overloads taking a RegistryOptions
parameter.
* IRegistryApi.cs: Add a new overload for CreateSubKey for the 4.0
profile. Not nice, but better than to change the signature for each
profile.
* Win32RegistryApi.cs: Properly recognize a handle where a volatile
key is requested.
* UnixRegistryApi.cs: Stubbed.
svn path=/trunk/mcs/; revision=160203
** Fixes 620860
* Tds70.cs (Precision): New virtual property to handle Precision
values across different Tds versions.
(WriteParameterInfo): Use defined Precision property instead of
constant value. Also handle Ulong and long max/min values
properly.
* Tds80.cs (Precision): Override property to provide Tds 8
precision value.
svn path=/trunk/mcs/; revision=160199
* loader.c (mono_get_method_constrained): Properly unlock the
domain lock on failure. Use checked variant of
inflate_generic_signature.
svn path=/trunk/mono/; revision=160193
* gc.c, gc-internal.h, sgen-gc.c, sgen-gc.h, sgen-os-mach.c: An
interface to register our Mach exception thread which will not be
suspended by stop-the-world.
2010-07-10 Mark Probst <[email protected]>
* mini-darwin.c: Register the exception thread with the GC.
svn path=/trunk/mono/; revision=160190
* metadata.c (mono_metadata_parse_type_internal): Don't use
cannonical types when a transient type was requested.
Fixes#608626.
svn path=/trunk/mono/; revision=160189
* sgen-gray.c, sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c:
All functions that touch the gray queue directly or indirectly now
take it as an argument.
svn path=/trunk/mono/; revision=160184
* sgen-gray.c, sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c:
Put the gray queue data into a struct and pass it around.
svn path=/trunk/mono/; revision=160183
* class.c (mono_method_can_access_method_full): Handle type
accessibility with very deep nested types.
* class.c (mono_method_can_access_field_full): Ditto.
Fixes#619300.
svn path=/trunk/mono/; revision=160181
* sgen-gc.c, sgen-los.c, sgen-major-copying.c, sgen-marksweep.c,
sgen-scan-object.h: Use a macro for rounding up sizes and
addresses to ALLOC_ALIGN.
svn path=/trunk/mono/; revision=160179
* mini.h (MONO_INST_HAS_CONSTANT_LOAD): New instruction flag marking loads which load
from constant memory.
* ir-emit.h: Clean up the _FAULT macros a bit.
* decompose.c: Mark some loads as constant.
* mini-llvm.c: Pass the constant-ness of loads to LLVM using custom metadata.
svn path=/trunk/mono/; revision=160161
* driver.c (mini_usage): Change the name of the --sgen flag to be
--gc=sgen and also support --gc=boehm. These flags can also be
set on MONO_ENV_OPTIONS to propagate this to children processes.
* main.c: Remove the MONO_VM_OPTIONS environment variable that
only supported "sgen" and "llvm" config options and instead parse
the MONO_ENV_OPTIONS as options that are parsed by the command
line parser. Any command line option that Mono supports can be
passed in this environment variable.
svn path=/trunk/mono/; revision=160160
* mini.c (mini_method_compile): Run abcrem uncoditionally when LLVM is used since
it can now eliminate more than just bounds checks.
* ir-emit.h: Add MAY_FAULT versions of the LOAD_MEMBASE macros which take
an extra 'fault' argument.
* method-to-ir.c: Set the MONO_INST_FAULT of the array opcodes which are decomposed
later.
* decompose.c: Propagate the MONO_INST_FAULT flag from the array opcodes to their
decomposition.
* mini-llvm.c: Remove support for the X86/AMD64 COMPARE_MEMBASE opcodes, they are
no longer generated when LLVM is used.
* abcremoval.c: Eliminate MONO_INST_FAULT flags if possible.
svn path=/trunk/mono/; revision=160151
* XmlNodeReaderImpl.cs : in GetNamespacesInScope(), avoid NREs under
"no current node" situation. Also, look for attributes on iterated
nodes, not current ones.
svn path=/trunk/mcs/; revision=160145
* SignedXml.cs : avoid using LoadXml() to load xml element as in
literal string. Use ImportNode() instead.
Copy namespaces for a referenced node found in envelope document too.
svn path=/trunk/mcs/; revision=160143
* Message.cs, MessageBufferImpl.cs, MessageImpl.cs: preserve and
output attributes prefixes, to copy Body/@wsu:Id to successfully
verify the xmldsig.
svn path=/trunk/mcs/; revision=160142
* sgen-marksweep.c (major_finish_major_collection): Don't free
major heap blocks on 32 bit platforms because it can lead to
address space fragmentation. We'll figure this out later.
svn path=/trunk/mono/; revision=160134
from various points.
In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine.dll.sources: Add
UnknownToolsVersionException.cs
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Correctly handle precedence of ToolsVersion value coming
from various points.
* BuildEngine.cs (BuildProjectFile): Restore project.ToolsVersion .
* Engine.cs: Likewise. Also validate DefaultToolsVersion .
* Project.cs: Handle invalid tools version specified in the project
file, and fall back to engine's version.
* MSBuild.cs: Fix the precedence order, and validate.
* UnknownToolsVersionException.cs: New.
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks.dll.sources: Use
UnknownToolsVersionException.cs from Engine.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* MessageTest (TestExecution): Additional messages with 'low'
importance get emitted, so don't expect sequential messages.
In tools/xbuild:
* Main.cs: Use tools version specified on the command line, if
any.
* xbuild.exe.sources: Include UnknownToolsVersionException.cs from
MS.B.Engine
svn path=/trunk/mcs/; revision=160133
* Win32RegistryApi.cs: Use RegCreateKeyEx instead of RegCreateKey, as
we need it to further support both the missing bits and the 4.0
features.
svn path=/trunk/mcs/; revision=160130
* ChannelDispatcher.cs : do not swallow exception during
RequestContext.get_RequestMessage() and thus return SOAP Fault for
MessageSecurityException to the client.
svn path=/trunk/mcs/; revision=160122
* MessageHeader.cs : to clone raw xml completely, avoid using
ReadOuterXml() and text reader but use XmlNodeReader instaed.
* Message.cs : avoid extraneous xmlns:u attribute.
svn path=/trunk/mcs/; revision=160120
* MessageImpl.cs : When XmlReaderMessage was writing its contents,
it was dropping body attributes, including wsu:Id for WS-Security.
svn path=/trunk/mcs/; revision=160105
* mini-llvm.c (emit_load): Use the mono specific load intrinsics even outside clauses
since LLVM might be able to hoist them out of loops.
(emit_store): Ditto.
svn path=/trunk/mono/; revision=160089
* WebClient.cs: handle compressed streams when automatic decompression
is turned on by a class derived from WebClient.
svn path=/trunk/mcs/; revision=160084
* xdebug.c (mono_save_trampoline_xdebug_info): Make this receive a MonoTrampInfo.
* tramp-<ARCH>.c: Move the calls to save_trampoline_xdebug_info () into
mini-trampolines.c/mini-exceptions.c. Use a more human readable name for
generic trampolines+rgctx fetch trampolines.
svn path=/trunk/mono/; revision=160073
* assembly.c (mono_assembly_load_reference): Replace a g_warning
with a mono_trace calls. This makes compiling MD a lot less
scary.
svn path=/trunk/mono/; revision=160072
* ImageMap.cs: implemented missing Enabled property (2.0+)
RaisePostBackEvent must be protected and virtual (2.0+)
NavigateUrl is ignored if the control is disabled (4.0)
svn path=/trunk/mcs/; revision=160053
* Control.cs: if generating a predictable ID and the current
control is a naming container, ensure that an ID is generated if
not specified by user.
svn path=/trunk/mcs/; revision=160050
* ScriptModule.cs: PostAcquireRequestState must check if the
current context and the current handler aren't null before
attempting to use them.
svn path=/trunk/mcs/; revision=160044
* WebHttpBehavior.cs : Set an a default DispatchOperation to throw
EndpointNotFoundException instead of raising null Invoker error.
And add error handler that converts the exception to HTTP 404.
svn path=/trunk/mcs/; revision=160040
* sgen-gc.c (OBJ_COMPLEX_ARR_FOREACH_PTR): Don't load the vtable
from the object because it might have pinned/forwarding bits set.
svn path=/trunk/mono/; revision=160028
* method-to-ir.c (emit_imt_argument): Call add_outarg_reg even if MONO_ARCH_IMT_REG
is not defined in the LLVM case to keep the imt arg alive.
svn path=/trunk/mono/; revision=160007
4.0 updates.
* ResourceManager.cs: Mark ResourceSets as obsolete.
* ResourceReader.cs: New public Dispose method.
svn path=/trunk/mcs/; revision=160005
In class/corlib/System.Threading.Tasks/:
* Parallel.cs: Fix Parallel.Invoke to use all data supplied in
ParallelOptions
* ParallelOptions.cs: Use CancellationToken.None for initialization
svn path=/trunk/mcs/; revision=160004
* TreeView.cs:
When using registered CSS classes, the node style must use them in
reverse order.
More 4.0 test updates (disabled some Menu tests until its rendering is updated)
svn path=/trunk/mcs/; revision=160003
* HyperLink.cs: the associated image is not rendered using the
Image control.
4.0 updates for several tests (HTML rendering changes)
svn path=/trunk/mcs/; revision=159995
* ResourceWriterTest.cs: In our new AddResource_Stream_Default test
store the resource file under Test/resources/, instead of the base
dir, so we avoid filling the dir with not needed files.
svn path=/trunk/mcs/; revision=159992
** Fixes#609109 - DateTime part
* TdsComm.cs (Append[DateTime]): More fix for handling SqlServer
* MinValue for DateTime.
svn path=/trunk/mcs/; revision=159985
* exceptions-<ARCH>.c mini-llvm.c: Clean up the naming of the llvm related trampoline
functions, now its 'llvm_<FOO>_trampoline'.
svn path=/trunk/mono/; revision=159982
* XmlInputStream.cs : it had been failing to retrieve correct
encoding due to insufficient buffer reading. Fixed bug #615499.
svn path=/trunk/mcs/; revision=159967
* DTMXPathDocumentWriter2.cs : implement some writer methods.
(I think it was slipped down from some bugfixes, but not sure.)
svn path=/trunk/mcs/; revision=159966
** Fixes#609109
* TdsComm.cs (Append[DateTime]): Handle datetime values sanely
that are less than epoch.
(Append[string]): Fix boundary checking for availability of
enough buffer
svn path=/trunk/mcs/; revision=159962
* TypeMap.cs :
Do not try to add static members as serialization targets.
Support OnDeserializing and OnDeserialized. Fixed bug #615800.
* DataContractJsonSerializerTest.cs : add test for bug #615800.
svn path=/trunk/mcs/; revision=159958
* TypeMap.cs : when an object is null, return null, not just an
uninitialized object.
* DataContractJsonSerializerTest.cs : add test for bug #615801.
svn path=/trunk/mcs/; revision=159944
* ChannelFactoryBase.cs : null via uri parameter is not allowed.
* ClientRuntimeChannel.cs : give non-null Via uri.
* HttpTransportBindingElementTest.cs : add test for
ChannelFactoryBase`1.CreateChannel() with null via uri.
svn path=/trunk/mcs/; revision=159934
* ResourceWriter.cs: Implement 4.0 AddResource overloads taking a
Stream, as well as implement the same support in our AddResource that
takes an object too.
svn path=/trunk/mcs/; revision=159930
* method-to-ir.c (emit_imt_argument): Fix llvm support.
* mini-llvm.c: Use only one mono specific LLVM calling convention since imt/rgctx
cannot be passed in the same call.
svn path=/trunk/mono/; revision=159929
* mini-amd64.h mini-amd64.c tramp-amd64.c aot-compiler.c: Change the IMT
register to be the same as the RGCTX register, the two can't be used together on
the same call.
svn path=/trunk/mono/; revision=159928
* driver.c (mono_main), main.c: Add support for MONO_VM_CONFIG
that allows the user to force the VM to use llvm or sgen.
svn path=/trunk/mono/; revision=159927
* exceptions-ppc.c (mono_arch_handle_exception): Resume from the signal handler
before processing the exception on PPC too.
svn path=/trunk/mono/; revision=159923
* mini-ppc.h (MONO_CONTEXT_SET_SP): Define this to fix the PPC build.
* mini-ppc.c tramp-ppc.c aot-compiler.c: Change the managed calling convention so
'this' is always passed as the first argument, before the vtype ret arg. This
simplifies get_this_arg_reg () and LLVM integration.
svn path=/trunk/mono/; revision=159922
* HttpStandaloneReplyChannel.cs, HttpChannelListenerEntry.cs,
HttpContextInfo.cs, HttpListenerManager.cs,
HttpStandaloneRequestContext.cs, HttpListenerManagerTable.cs:
Fixed wsdl support in the new codebase, so enabled it again, and
made significant changes for ASP.NET integration. Now ASP.NET
implementation switched to the new one.
* SvcHttpHandler.cs : add required code for new ASP.NET HTTP stack.
Support for new and old stack (both) are temporarily enabled.
* HttpTransportBindingElement.cs : switch to new ASP.NET stack.
svn path=/trunk/mcs/; revision=159907
2010-06-07 Martin Baulig <[email protected]>
* mono-debug-debugger.c (mono_debugger_get_thread_abort_signal):
New helper function since mono_thread_get_abort_signal() is now
internal.
svn path=/trunk/mono/; revision=159904
2010-07-05 Martin Baulig <[email protected]>
* exceptions-x86.c (mono_arch_handle_exception): Port this to
Windows; apply my patch from r159782 in the mono-2-6 branch.
svn path=/trunk/mono/; revision=159901
2010-07-05 Rolf Bjarne Kvinge <[email protected]>
* configure.in: Restore the AM_CONDITIONAL debugger supported, we need it to
include/exclude assembler files from the build in the makefile.
In mono/mini:
2010-07-05 Rolf Bjarne Kvinge <[email protected]>
* Makefile.am: Don't build the debug assembler files if we're building without
debugger support.
svn path=/trunk/mono/; revision=159885
* unwind.c (decode_lsda): Use read32 for reading 32 bit quantities.
* tramp-arm.c (mono_arch_create_generic_trampoline): Save the original sp to
lmf->iregs [ARMREG_IP] to be consistent with mono_arch_emit_prolog ().
* mini-arm.h (MonoLMF): Remove unused fregs field, add comments for other fields.
* exceptions-arm.c: Clean up the handling of LMFs. Add LLVM exception trampolines.
svn path=/trunk/mono/; revision=159863
* metadata/file-io.c: don't prepend anything to the names returned
from FindFirst/FindNext.
* io-layer/io.c: don't strip out directory paths in the pattern.
Second half of the fix for 580090.
svn path=/trunk/mono/; revision=159861
* Directory.cs (ValidateDirectoryListing): Removing an unnecessary
Path.Combine call. Part of the fix for bug #580090.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=159860
* mini-arm.c: Always use V5 for passing IMT/RGCTX when running under LLVM.
* method-to-ir.c (emit_imt_argument): Fix LLVM support for architectures
without IMT_REG defined (ARM).
* exceptions-arm.c: Add LLVM throw exception trampolines, add xdebug info for
the trampolines.
svn path=/trunk/mono/; revision=159857
** Fixes#609935
* TdsMetaParameter.cs (Prepare): Use GetActualSize() instead of
Size property to calculate the length of a nvarchar param.
svn path=/trunk/mcs/; revision=159851
* object-internals.h, object.h: Make mono_string_to_utf_8_checked
public, as mono_string_to_utf_8 is deprecated.
* object.(c|h): Added mono_object_to_string, a public helper function
that calls ToString on a MonoObject and returns a MonoString.
* object.c (mono_print_unhandled_exception): Use mono_object_to_string.
svn path=/trunk/mono/; revision=159843
fail to work on .NET 4.0 as well, for the most part. I will fix them next week.
2010-07-02 Marek Habersack <[email protected]>
* TemplateControlParser.cs: added support for ClientIDMode
property
* Control.cs: implemented 4.0 features - ClientIDMode and
RenderingCompatibility.
* ClientIDMode.cs, IDataKeysControl.cs: added
2010-07-02 Marek Habersack <[email protected]>
* Menu.cs: 4.0 API updates.
* GridView.cs: implemented 4.0 properties -
SortedAscendingCellStyle, SortedAscendingHeaderStyle,
SortedDescendingCellStyle, SortedDescendingHeaderStyle,
ClientIDRowSuffix, ClientIDRowSuffixDataKeys, ShowHeaderWhenEmpty
along with associated rendering changes.
* DetailsView.cs, FormView.cs, GridView.cs: 4.0 API changes -
renamed ShowPage to SetPageIndex and made it public.
Added 4.0 interfaces to inheritance list and implemented them.
* DataKeyArray.cs: added internal constructor which accepts IList
instead of ArrayList. Changed the 'keys' field type to IList.
* ContainedTable.cs: the 'id' attribute must be rendered last.
* CheckBox.cs, CheckBoxList.cs, SiteMapPath.cs, Table.cs,
TableStyle.cs, TextBox.cs, WebControl.cs: 4.0 rendering changes.
* Calendar.cs, CompositeControl.cs, DropDownList.cs, HyperLink.cs,
Image.cs, ImageButton.cs, Label.cs, LinkButton.cs, LoginName.cs,
Panel.cs, Table.cs, TableCell.cs, TableRow.cs:
added new 4.0 property, SupportsDisabledAttribute.
2010-07-02 Marek Habersack <[email protected]>
* VersionConverter.cs: added support for checking whether the
passed version is equal or more than a specified minimal version.
* PagesSection.cs: added two 4.0 properties - ClientIDMode and
ControlRenderingCompatibilityVersion
2010-07-02 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added support for ClientIDMode 4.0
property
* PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
must call the base implementation.
svn path=/trunk/mcs/; revision=159826
* HttpStandaloneReplyChannel.cs, HttpStandaloneRequestContext.cs:
add more code that the asp.net stuff will become like.
* SvcHttpHandlerFactory.cs : remove unused code.
* SvcHttpHandler.cs : ditto. Add some code for what new asp.net
support will look like.
svn path=/trunk/mcs/; revision=159818
* HttpStandaloneReplyChannel.cs, HttpListenerManager.cs,
HttpStandaloneRequestContext.cs :
refactoring, to add ASP.NET implementation. (not in use yet)
svn path=/trunk/mcs/; revision=159817
* mini.h: Applied patch from Elijah Taylor ([email protected]). Fix some
definitions to match their declarations and vice-versa.
svn path=/trunk/mono/; revision=159816
* HttpContextInfo.cs, HttpListenerManager.cs,
HttpListenerManagerTable.cs : add implementation for ASP.NET, not
in use yet.
svn path=/trunk/mcs/; revision=159811
* ThemeWin32Classic.cs: The images drawn in the column header must be
vertically centered. Fixes#616432.
Patch by Thomas Goldstein ([email protected]).
svn path=/trunk/mcs/; revision=159805
* Message.cs, MessageImpl.cs, MessageBufferImpl.cs : remove BodyId.
XML attributes on s:Body are handled appropriately, not limited to
wsu:Id. Added several required overrides to Message and
MessageBuffer implementation classes.
* SecureMessageGenerator.cs : so, don't use BodyId. Treat it as a
specific case but still fallback.
svn path=/trunk/mcs/; revision=159800
* filewatcher.h filewatcher.h decimal.c threads-types.h: Applied patch
from Elijah Taylor ([email protected]). Fix some definitions to
match their declarations and vice-versa.
svn path=/trunk/mono/; revision=159774
* WebRequest.cs: DefaultCachePolicy and CachePolicy return a
NoCacheNoStore policy in all cases now. Workaround for bug #583934
svn path=/trunk/mcs/; revision=159758
* nullable.cs, expression.cs, statement.cs, method.cs, ecore.cs,
delegate.cs, cs-parser.jay, visit.cs: Use MemberAccess to resolve
base access expression, it has all bits done correctly.
svn path=/trunk/mcs/; revision=159732
* Makefile.am, mini-llvm.h, mini-unwind.h, mini.c, mini.h, xdebug.c:
implemt the option of loading the llvm backend from a module so
that we can have a single binary and the bloat from llvm is
only experienced when it is actually loaded.
svn path=/trunk/mono/; revision=159722
* mono-compiler.h: define MONO_LLVM_INTERNAL for internal functions
that may be needed by the llvm backend module.
svn path=/trunk/mono/; revision=159721
* typemanager.cs, membercache.cs, convert.cs, expression.cs,
ecore.cs: Replace remaining MethodLookup with correct user operator
lookup (to do correct deep lookup). Clean up most of outstanding
quirks in binary operator overload resolution.
svn path=/trunk/mcs/; revision=159717
* XmlDefaultWriter.cs : add state management support.
* XmlWriter.cs : use above feature for "null Settings in source
writer" case. This brings some minor .NET compatibility and
should fix bug #607697.
* XmlWriterTests.cs : remove NotWorking everywhere.
svn path=/trunk/mcs/; revision=159714
* XmlDefaultWriter.cs : new source (which I once wrote for relaxng
and corcompare).
* XmlWriter.cs : in some cases XmlWriter.Create() returns a new
wrapping writer instance.
If there was no Settings specified, return null.
* System.Xml.dll.sources,
moonlight_raw_System.Xml.dll.sources,
monotouch_System.Xml.dll.sources : add DefaultXmlWriter.cs.
* XmlWriterTests.cs : add a bit more assertions.
Remove NotWorking from some tests.
svn path=/trunk/mcs/; revision=159712
* XmlWriterTests.cs : add test matrix for understanding things.
Make those test names consistent. Mark as NotWorking.
svn path=/trunk/mcs/; revision=159704
* icall.c (ves_icall_Type_make_array_type): Raise a TLE if a
TypedByRef is passed.
* icall.c (ves_icall_Type_make_byref_type): Ditto.
* icall.c (ves_icall_Type_MakePointerType): Ditto.
Fixes#612780.
svn path=/trunk/mono/; revision=159694
* mini-trampolines.c (mono_vcall_trampoline): Fix a warning.
* mini-x86.c (mono_arch_get_vcall_slot): Remove most cases as the only caller
is now mono_arch_nullify_class_init_trampoline ().
(mono_arch_output_basic_block): Remove the special casing from the CALL_MEMBASE
opcodes, they are no longer needed.
svn path=/trunk/mono/; revision=159688
* mini-amd64.c (mono_arch_get_vcall_slot): Remove most cases as the only caller is
now mono_arch_nullify_class_init_trampoline ().
(mono_arch_output_basic_block): Remove the special casing from the CALL_MEMBASE
opcodes, they are no longer needed.
svn path=/trunk/mono/; revision=159687
* mini-trampolines.c (mono_vcall_trampoline): Use the LLVM method of obtaining the
vtable on platforms which support it.
svn path=/trunk/mono/; revision=159686
* aot-runtime.c (decode_exception_debug_info): Separate the LLVM and non-LLVM code
a bit better. Decode nesting information to fix eh support for llvm+aot.
* aot-compiler.c (emit_exception_debug_info): Encode nesting information for LLVM
methods.
svn path=/trunk/mono/; revision=159679
* ComplexBindingPropertiesAttribute.cs:
* DefaultBindingPropertyAttribute.cs:
* DefaultEventAttribute.cs:
* DefaultPropertyAttribute.cs:
Fix GetHashCode so that values are equals if Equals
return true
* DesignTimeVisibleAttribute.cs: Fix default value for Visible.
svn path=/trunk/mcs/; revision=159667
* import.cs: Operators must have between 1 and 2 parameters.
* method.cs: Switch destructor to direct membercache lookup
svn path=/trunk/mcs/; revision=159662
* membercache.cs, expression.cs, statement.cs, doc.cs, ecore.cs:
Changed FindMembers to allocate a new list only when a filter is
used. Saves decent chunk of memory and should save even more in the
future when the filter is not used that often.
svn path=/trunk/mcs/; revision=159648
* compiler.cs (LinkRef.ToString) [TRACE_REGEX]: Add pretty-printer
in TRACE_REGEX mode.
(TraceRegexp): Indent the output.
(TraceRegexpLabel): New. Prints out a line label.
(EmitCount): Don't trace. All callers are traced.
(ResolveLink): Trace line labels.
svn path=/trunk/mcs/; revision=159646
* mini-arm.c (get_call_info): Change the managed calling convention so 'this'
is always passed as the first argument, before the vtype ret arg. This simplifies
get_this_arg_reg () and LLVM integration.
svn path=/trunk/mono/; revision=159642
* mini-trampolines.c mini.c: Rework the virtual call handling code by using a separate
vtable trampoline for each vtable slot for both the LLVM and non-LLVM cases. Move
most of the vcall specific code to mono_vcall_trampoline () from
common_call_trampoline ().
svn path=/trunk/mono/; revision=159620
* UriTypeConverter.cs: Fix some regressed tests and add a new test
for when ConvertFrom is called with String.Empty.
svn path=/trunk/mcs/; revision=159598
* field.cs, property.cs, assign.cs, const.cs, expression.cs,
ecore.cs, class.cs, cs-parser.jay, enum.cs: Don't use intermediate
structure for simple type fields (saves memory and makes few things
simpler). Clean up some hacks mostly for events.
svn path=/trunk/mcs/; revision=159595
* UriTypeConverter.cs: Converting String.Empty should return null
instead of a Uri instance. Null values and unconvertable values
need to throw NotSupportedExceptions for moonlight too.
svn path=/trunk/mcs/; revision=159593
* mini-trampolines.c (common_call_trampoline): Remove the code which created static
rgctx trampolines when called from LLVM, they won't work for dynamic rgctx arguments
if the callsite is patched.
* mini-llvm.c (process_call): Disable calls which need an rgctx arg if not using
the llvm branch.
svn path=/trunk/mono/; revision=159585
* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Fix the name of
the trampoline in the xdebug info.
svn path=/trunk/mono/; revision=159584
* HttpUtility.cs: if IHtmlString instance is passed to HtmlEncode
(object), use IHtmlString.ToHtmlString () to return the value
without encoding it.
svn path=/trunk/mcs/; revision=159581
* mini-trampolines.c (common_call_trampoline): An ugly hack to
work around a potentially very hard to fix problem with inflating
generic methods.
2010-06-25 Mark Probst <[email protected]>
* class.c (mono_class_inflate_generic_method_full_checked): Added
a comment regarding a hack in mini-trampolines.c.
2010-06-26 Mark Probst <[email protected]>
* bug-616463.cs: New test.
* Makefile.am: Test added to generic tests.
This is a corrected re-commit of r159532.
svn path=/trunk/mono/; revision=159578
* sgen-gc.c (mono_gc_wbarrier_value_copy_bitmap): Use SIZEOF_VOID_P instead of
sizeof(SIZEOF_VOID_P) which is 4.
svn path=/trunk/mono/; revision=159575
* mini-gc.c (mini_gc_init_cfg): Use mono_gc_is_moving () instead of HAVE_SGEN_GC.
It might be be better to define a MonoGCJitOptions structure later and have the
GC return that.
svn path=/trunk/mono/; revision=159560
* wait.c handles.c wthreads.c: Call the mono_gc_ wrapper functions of some pthread
apis. This breaks the compile time dependency between io-layer and the GC.
svn path=/trunk/mono/; revision=159556
* gc_wrapper.h: Define the mono_gc_ wrappers for Boehm too, runtime code should
call these instead of the pthread_ variants.
svn path=/trunk/mono/; revision=159554
* Array.cs (SortImpl): Fix the 'fast path' which used 'as' to cast objects so
it never sorted the items array if it was not a object[]. Fixes#616416.
svn path=/trunk/mcs/; revision=159551
* TabControl.cs: Don't use the Font property of our TabPages - use our
own Font property instead, as .Net does.
Fixes some bits of #551032.
svn path=/trunk/mcs/; revision=159544
* mini-trampolines.c (common_call_trampoline): An ugly hack to
work around a potentially very hard to fix problem with inflating
generic methods.
I feel ashamed.
2010-06-25 Mark Probst <[email protected]>
* class.c (mono_class_inflate_generic_method_full_checked): Added
a comment regarding a hack in mini-trampolines.c.
svn path=/trunk/mono/; revision=159532
* mini-gc.c (mini_gc_init_cfg): New function to initialize GC specific flags
in MonoCompile.
* method-to-ir.c mini.c: Remove usage of HAVE_SGEN_GC and use runtime checks
instead.
svn path=/trunk/mono/; revision=159529
* configure.in: By default, we will now also buils an SGen-aware
VM by default. This can be turned off by using the
--with-sgen=no command line option.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Add support for building a sgen-aware versions of
the libraries: libmonoruntimesgen.la
libmonoruntimesgen-static.la,
they share all the components of the default, but use a differen
set of CFLAGS to enable SGEN instead.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Build the mono-sgen binary a Mono VM with the Sgen
GC enabled as well as libmono-sgen-2.0 and libomonosgen-static
* metadata: Move the mono-hash code here, as mono-hash is GC
aware, but the mono/utils directory is not
svn path=/trunk/mono/; revision=159514
* method-to-ir.c (mono_emit_wb_aware_memcpy): Don't emit bitmap
wb for now on 64bits systems while issues with valuetype returns
are not fixed.
svn path=/trunk/mono/; revision=159513
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add support for using a standard set of
passes by calling createStandardFunctionPasses ().
svn path=/trunk/mono/; revision=159507
depending on the redraw routines of SelectedIndex, which could be not
enough to detect the real affected area.
2010-06-24 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=159505
* statement.cs, report.cs: Rethrow internal error when reporting is
disabled.
* ecore.cs: Check for identical name only when simple name is set.
Fixes#616667
svn path=/trunk/mcs/; revision=159502
A fix for bug #616809
* generic.cs, expression.cs, ecore.cs: Added a new type expression
for open generic type to pass unbound type arguments to typeof
expression.
svn path=/trunk/mcs/; revision=159500
* HttpTransportBindingElement.cs :
Use new HTTP channel listener implementation.
* ChannelDispatcher.cs : enable service throttling again.
This time Http(Listener), ASP.NET and TCP listeners all work.
* System.ServiceModel.dll.sources :
add new HTTP channel listener implementation sources.
Old sources will be kept for a while, won't entirely vanish as
ASP.NET support will live there.
svn path=/trunk/mcs/; revision=159491
* HttpListenerManager.cs : finish pending wait handle when closing
a listener. Fixed the issue on closing host/listener/channels.
svn path=/trunk/mcs/; revision=159490
* MetadataExchangeBindingsTest.cs : make sure that the target port
of the Uri is available (as some other tests do).
svn path=/trunk/mcs/; revision=159487
* configure.in: By default, we will now also buils an SGen-aware
VM by default. This can be turned off by using the
--with-sgen=no command line option.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Add support for building a sgen-aware versions of
the libraries: libmonoruntimesgen.la libmonoruntimesgen-static.la,
they share all the components of the default, but use a differen
set of CFLAGS to enable SGEN instead.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Build the mono-sgen binary a Mono VM with the Sgen
GC enabled as well as libmono-sgen-2.0 and libomonosgen-static
svn path=/trunk/mono/; revision=159468
* configure.in: First pass at supporting the compilation of both
the Boehm-powered Mono VM and the Sgen-powered one.
The Boehm configuration flags are no longer part of the config.h
that we generate, but instead they are part of the CFLAGS
variables that are used for the following components:
* io-layer/ because it uses the pthread APIs that are
wrapped by using utils/gc_wrapper.h
* metatada/ because we have plenty of GC-specific code
* mini/ the VM itself
The patch currently only changes the way that Boehm is compiled,
no changes for Sgen have been done yet.
We now pass Boehm CFLAG settings as "BOEHM_DEFINES" which need to
be added to the three Makefiles above.
When building the bundled and modified libgc, we also need to pass
MONO_DEBUGGER_SUPPORTED as it triggers some special features in
the libgc.
Simplify the build also by removing the AM_CONDITIONAL debugger
supported, we now merely check this on the source file and wrap
the entire debug-debugger.c in an ifdef.
2010-06-23 Miguel de Icaza <[email protected]>
* Makefile.am: Put the BOEHM defines in the CFLAGS definition.
* domain-internals.h (MonoJitInfo): this structure used to have
different sizes depending on the GC that was configured (Boehm vs
SGen). I have removed this difference for the sake of avoiding
the complexity of dealing with the mono/arch directory requiring
GC-specific changes to their Makefiles.
2010-06-23 Miguel de Icaza <[email protected]>
* debug-debugger.c: Wrap the entire file with an #ifdef
MONO_DEBUGGER_SUPPORTED to simplify the build.
* Makefile.am: Fix the opcodes build issue by including the
source, not by including the .lo file directly
Always bring the MDB sources into the build, to drop the
dependency on the AM_CONDITIONAL from configure.in as the hard
debugger supports Boehm, but not Sgen, this simplifies the build.
* Renamed the *.s files into *.S
svn path=/trunk/mono/; revision=159461
* XmlFormatterDeserializer.cs: Fix some issues in Moonlight when
some referenced assemblies cannot be found or loaded
svn path=/trunk/mcs/; revision=159460
** Fixes#581679
* DataRelationCollection.cs (Add, Remove): Use DataRelation obj
instead of this when raising OnCollectionChang(ing, ed) events.
svn path=/trunk/mcs/; revision=159447
* HttpStandaloneChannelListener.cs
HttpStandaloneReplyChannel.cs
HttpStandaloneRequestContext.cs
HttpListenerManagerTable.cs
HttpChannelListenerEntry.cs
HttpContextInfo.cs
HttpListenerManager.cs :
Refresh implementation for HTTP channel listener in new namespace,
which works fine with throttling.
It still has some issue in closing channels or listeners, so it
does not replace existing implementation yet.
svn path=/trunk/mcs/; revision=159439
* ServiceMetadataExtension.cs : Reduced not a few lines of code,
now that we know wsdl and help do not have to be differentiated,
this extension support can be a lot simpler.
* HttpListenerManager.cs :
No need to get messed around MetadataPublishingInfo anymore.
svn path=/trunk/mcs/; revision=159411
* HttpListenerManager.cs : remove extra different code paths for
channel dispatchers with or without mex endpoints.
svn path=/trunk/mcs/; revision=159410
for dependency checks for targets.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* TargetBatchingImpl.cs (BuildTargetNeeded): Fix var names to
correctly reflect what they track. Log messages when skipping
or building a target.
In tools/xbuild:
* xbuild/Microsoft.CSharp.targets (CoreCompile): Fix inputs.
* xbuild/Microsoft.VisualBasic.targets (CoreCompile): Fix inputs.
svn path=/trunk/mcs/; revision=159406
* src/ghashtable.c: Add code to sanity check the
hashtable contents. This is invaluable, for example,
to catch bugs where a key hashcode changes after
insertion.
svn path=/trunk/mono/; revision=159385
* mini-llvm.c (mono_llvm_emit_method): Recalculate MONO_INST_INDIRECT flags to
allow better optimization if the OP_LDADDR which caused the flag to be set was
optimized away.
svn path=/trunk/mono/; revision=159381
2010-06-22 Geoff Norton <[email protected]>
* mach-support-*.(c|h): We cannot allocate from the gc, so make
these functions alloc-less.
in metadata:
2010-06-22 Geoff Norton <[email protected]>
* sgen-os-mach.c: We cannot call malloc from the gc, so we need to use
alloca instead to prevent a deadlock.
svn path=/trunk/mono/; revision=159356
* domain.c: Allow gettings the tls key, since we need it for
cross thread tls poking in sgen-mach
* sgen-gc.(c|h), gc-internal.h: Rework sgen into having some functions
in external files for platform specific STW support.
* sgen-os-mach.c: Add a new mach kernel backend implementation of STW.
* sgen-os-posix.c: Move the existing posix signal based STW here.
svn path=/trunk/mono/; revision=159349
* Makefile.am
* mach-support-amd64.c
* mach-support-x86.c
* mach-support.c
* mach-support.h: Added a new suite of helpers for managing threads
on mach based kernels.
svn path=/trunk/mono/; revision=159348
* TextControl.cs, XplatUIX11.cs, XplatUICarbon.cs: Expand paint
regions slightly so that the full extents of text get painted.
Fixes bug 464464.
svn path=/trunk/mcs/; revision=159327
* ServiceBehaviorAttribute.cs : do not overwrite existing properties
which may have been set by preceding behaviors. Fix WSDL output.
* EnvelopeVersion.cs : fix name and namespace for None property.
* HttpListenerManager.cs : add some comments.
* DispatchRuntimeTest.cs : add another line of assertion.
svn path=/trunk/mcs/; revision=159313
* compiler.cs: Add new internal flag to switch on regexp
* tracing.
The code is a statc readonly variable so the JIT can eliminate
all tracing code during normal runs.
svn path=/trunk/mcs/; revision=159286
* TabControl.cs: When setting SelectedIndex and the new selected tab
bounds are obscured by the scrollers, take into account the self tab
when looking for the proper bounds to adjust the slider. This is specially
important when we need to adjust the slider pos for the *last* tab page.
Fixes#615382.
svn path=/trunk/mcs/; revision=159277
* cs-tokenizer.cs, anonymous.cs, expression.cs, statement.cs,
support.cs, location.cs, cs-parser.jay: Some work on full ast mode.
svn path=/trunk/mcs/; revision=159275
* mini-llvm.c (exception_cb): For nested clauses, add the same try range to the
nesting clause too.
(mono_llvm_check_method_supported): Enable llvm for methods with nested clauses.
(mono_llvm_emit_method): Instead of calling 'mono_resume_unwind' directly, call a
trampoline which saves the context, so changes made to callee saved registers in
finally clauses are visible to a nesting catch clause.
* exceptions-amd64.c: Add a resume_unwind trampoline for LLVM.
* mini-exceptions.c (mono_handle_exception_internal): Fix support for nested clauses
in LLVM compiled code.
(mono_handle_exception_internal): Add a 'ctx' argument containing the state after
the finally handler has ran.
* mini.h (ResumeState): New structure containing information required to resume
exception handling after executing LLVM compiled finally clauses.
svn path=/trunk/mono/; revision=159274
* exceptions-amd64.c (get_throw_trampoline): Clean up the amd64 throw trampolines a
bit, by passing all the registers as one argument.
svn path=/trunk/mono/; revision=159271
* Type.cs (StructLayoutAttribute): This raises on v4.
* MonoType.cs (StructLayoutAttribute): Implement this
under v4.
svn path=/trunk/mcs/; revision=159263
* TabControlPainter.cs: Actually draw the focus rectangle - TabControl
ignores the value of ShowFocusCues. Also, properly compute the bounds
for the focus rectangle, since it should include the padding of the
tab page.
Fixes bits of #515045.
svn path=/trunk/mcs/; revision=159231
* metadata-verify.c: do not consider the assembly invalid if it
doesn't have a #Blob stream as resource assemblies don't
necessarily have one.
svn path=/trunk/mono/; revision=159181
* FontDialog.cs: Make the 16 colors in the color drop down
match .Net. Patch by Thomas Goldstein ([email protected]).
[Fixes bug #506726]
svn path=/trunk/mcs/; revision=159180
* FontDialog.cs: Show all 16 colors in the color drop down
to match .Net. Patch by Thomas Goldstein ([email protected]).
[Fixes bug #508523]
svn path=/trunk/mcs/; revision=159179
* TimeZoneInfo.cs: Applied patch from Vincent Povirk that adds
support for reading time zone information on windows.
This patch makes TimeZoneInfo.GetSystemTimeZones and
FindSystemTimeZoneById work based on the registry on non-Unix
platforms, if the appropriate registry key exists. Mono currently
reads from /usr/share/zoneinfo, which doesn't exist on Windows.
This should fix bug 606084.
It won't fix the Local property on Windows. I think that requires
a Windows API call to get the id of the local timezone.
This was modified from the previous version to not check the
registry on Unix platforms. (Sorry it took me so long to do
this. I have very little time to spend on Mono-related work.)
svn path=/trunk/mcs/; revision=159163
* DataPager.cs: when rendering the ID attribute, use ClientID
2010-06-18 Marek Habersack <[email protected]>
* NumericPagerField.cs: CreateDataPagers outputs correct page
number in query mode. Fixes bug #615315
Rendering changes to match .NET
* DataPagerField.cs: if query string has been handled and query
mode is in effect, return true. Fixes bug #615315
svn path=/trunk/mcs/; revision=159161
* aot-compiler.c aot-runtime.c: Fix LLVM support.
* mini-llvm.c: When emitting OP_CALL_HANDLER, avoid branching directly to the landing
pad, branch to a new bblock instead.
svn path=/trunk/mono/; revision=159154
* aot-compiler.c (emit_method_code): Use cfg->header instead of the header of
orig_method.
* exceptions-amd64.c (mono_arch_exceptions_init): Fix fullaot support.
svn path=/trunk/mono/; revision=159148
* ServiceHostBase.cs : Do not build more than one ChannelDispatcher
for a Binding. Then check duplicate listen URIs, excluding mex ones.
* ChannelDispatcher.cs : add simple bool field to mark for mex channel.
* ServiceMetadataExtension.cs : use simple ChannelDispatcher.IsMex field.
* ServiceHostTest.cs : improved endpoint tests and enabled them.
* ChannelDispatcherTest.cs : had to disable a test that regressed from
validating duplicate listen URI. Possible remedy is described too.
svn path=/trunk/mcs/; revision=159140
* typemanager.cs, namespace.cs: Report more predefined types and
imported types collision types as a warning.
Fixes#537414, #601157
svn path=/trunk/mcs/; revision=159130
* ServiceHostTest.cs : fix AddServiceEndpoint tests to make sense.
They are mostly not working. Enable working one.
* TcpTransportBindingElementTest.cs : rename misleading test.
svn path=/trunk/mcs/; revision=159122
* generic.cs: Overrides base method constraint can use method type
parameter.
* import.cs: Removed redundant cache.
svn path=/trunk/mcs/; revision=159120
* TestRunner.cs, TestWorkerRequest.cs: added support for POST
requests.
* StandaloneTest.cs: added support for POST requests. Run items
are executed in sequence and their results are preserved for the
next run. If the next run is a POST one, form data is extracted
from the previous response and used to generate POST data for the
current one.
Added a new property, FailedUrlCallbackName, which contains the
fully qualified method name of the test callback which failed.
Callback is no longer required to be present.
2010-06-18 Marek Habersack <[email protected]>
* FormViewUpdateParameters_Bug607722.cs: added two POST phases -
Edit and Update.
2010-06-18 Marek Habersack <[email protected]>
* standalone-runner.cs: added new command line parameter, --test,
which selects a single test to run instead of the entire suite. It
should be passed a fully qualified (without assembly name) type
name of the test class.
svn path=/trunk/mcs/; revision=159114
2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* System.Core/Dummy.cs:
* moonlight_raw_System.Core.dll.sources: Add an internal dummy class to create
the System.Core namespace.
* Makefile:
* moonlight_raw_System.Core.dll.sources: Include the dlr in Moonlight.
In class/System.Core/System.Linq:
2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* EnumerableQuery.cs:
* EnumerableQuery_T.cs:
* EnumerableExecutor.cs:
* EnumerableExecutor_T.cs: Include in Moonlight.
* Enumerable.cs: Moonlight too needs Zip.
In class/System.Core/System.Runtime.CompilerServices:
2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* ExecutionScope.cs: This class exists in Moonlight, but isn't supported.
* StrongBox_T.cs:
* DynamicAttribute.cs: Include in Moonlight.
svn path=/trunk/mcs/; revision=159111
* exceptions-x86.c (mono_x86_throw_corlib_exception): Negate the decrement of
the ip done by throw_exception (), it is not needed for corlib exceptions.
svn path=/trunk/mono/; revision=159101
* VirtualMachine.cs Connection.cs: Group events received together into an EventSet,
like it is done in JDI. Add a GetNextEventSet () method.
svn path=/trunk/mcs/; revision=159084
* sgen-gc.c (mono_gc_wbarrier_value_copy_bitmap): Work in a similar
way to mono_gc_wbarrier_value_copy but takes a bitmap that
indicates which slots need a write barrier.
2010-06-17 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_emit_wb_aware_memcpy): Simplify this function.
Call new jit icall mono_gc_wbarrier_value_copy_bitmap for vt wbarrier
of size > 5 words. This support fast barriers for value types up to
256/512 bytes which beyond that the copying itself is the major issue.
* method-to-ir.c (mini_emit_stobj): The intrinsic version is safe
for gsharing, so use it.
This eliminate all calls to mono_value_copy from managed code in
gmcs, fsharp and ipy.
This gives a 2% perf boost on ipy and 1% on gmcs over previous patches.
Even thou a lot of mono_value_copy calls were eliminated from fsharp,
performance kept
* mini.c (mini_init): Register new icall.
svn path=/trunk/mono/; revision=159083
* method-to-ir.c (mono_emit_wb_aware_memcpy): Handle nested valuetypes.
This eliminates 2% of mono_value_copy calls on ipy and 12% on fsharp.
svn path=/trunk/mono/; revision=159082
* method-to-ir.c (mini_emit_stobj): Don't call mono_value_copy for small
value types as the overhead is huge. Manually expand it up to 5 words to
avoid code bloat.
This improves gmcs times by 5% and unmodified binary-tree by 78%. The later
is an exception that performance is dominated by mono_value_copy.
This puts sgen about 5% ahead of boehm in terms of wall-clock on a Core2Quad.
svn path=/trunk/mono/; revision=159081
* TabControl.cs: When calculating the size of our tabs use
MinimumTabWidth only if SizeMode is other than Fixed.
Patch by Thomas Goldstein ([email protected]).
svn path=/trunk/mcs/; revision=159076
* DataConverter.cs: On bracketed cases, save the position as well,
like we do in the repeat case without brackets. Fixes#595929
svn path=/trunk/mcs/; revision=159075
* mini-llvm.c (process_call): Disable LLVM for calls to generic class init
trampolines on x86, since those have their own cconv.
svn path=/trunk/mono/; revision=159074
* exceptions-x86.c (mono_arch_exceptions_init): Implement the llvm throw corlib
exception trampolines.
* tramp-x86.c: Add xdebug info for a few trampolines.
* mini-llvm.c: Set the name of the arguments.
svn path=/trunk/mono/; revision=159073
* ServiceHostBase.cs : retrieve MessageVersion and raise an error
if there is none. (Check this earlier than building a listener.)
* ChannelDispatcher.cs : MessageVersion check is moved to
ServiceHostBase.
* ServiceMetadataExtension.cs : overwrite MessageVersion to use None.
(The only special case I found for ChannelDispatcher.MessageVersion.)
* CustomBindingTest.cs : add tests for MessageVersion check on Open().
* MetadataExchangeBindingsTest.cs : make sure that special casing of
MessageVersion does not happen at this layer.
svn path=/trunk/mcs/; revision=159061
* generic.cs, method.cs: Inflate copied type parameters from base
class or explicit interfaces.
* convert.cs: Fixed conversion between two type parameters.
Fixes#614471
svn path=/trunk/mcs/; revision=159050
* RootBuilder.cs: both LINK and META HTML tags must be represented
as instances of HtmlGenericControl. Fixes bug #603541
svn path=/trunk/mcs/; revision=159046
* mini-llvm.c (emit_cond_system_exception): Pass the ip of to throw_corlib_trampoline
using a block address if using the LLVM mono branch.
* exceptions-amd64.c (mono_arch_exceptions_init): Add new LLVM throw corlib exception
trampolines.
svn path=/trunk/mono/; revision=159044
* Random.cs: Do not call Math.Abs blindly when we get an int
value, as Math.Abs (Int32.MinValue) throws an overflow exception,
and our constructor uses Environment.TickCount which means that
eventually we will get a crash.
Fixes#605797
svn path=/trunk/mcs/; revision=159042
A fix for bug #599601
* dynamic.cs, ecore.cs: A new flag for dynamic resolver to ignore
generated member access left expression.
svn path=/trunk/mcs/; revision=159022
* Atom10ItemFormatter.cs : Fix reading of "source" element to not
expect feed element (ReadFrom() expects it). Fixed bug #614596.
svn path=/trunk/mcs/; revision=159019
* IsolatedStorageFile.cs: Remove should catch all the exceptions
caused by DirectoryInfo.Delete and throw an IsolatedStorageException
instead.
svn path=/trunk/mcs/; revision=159017
* mini.c (mini_init): Remove some of the llvm restrictions, they are no longer needed.
* method-to-ir.c (mono_method_to_ir): Enable fast virtual calls when using llvm.
* mini-trampolines.c (mono_llvm_vcall_trampoline): Rewrite this to use one vtable
trampoline per vtable slot index. The slot, along with the 'this' argument is enough
to identify the vtable slot address plus the method which needs to be compiled.
* mini.c (mini_get_vtable_trampoline): Use one vtable trampoline per vtable slot when
using llvm.
svn path=/trunk/mono/; revision=158965
* mini-x86.c (get_call_info_internal): Change the managed calling convention so
'this' is always passed as the first argument, before the vtype ret arg. This
simplifies get_this_arg_reg () and LLVM integration.
svn path=/trunk/mono/; revision=158963
* tramp-x86.c (mono_arch_create_generic_trampoline): Emit unwind info for
these trampolines.
* mini-x86.c (mono_arch_get_cie_program): Implement this for x86.
svn path=/trunk/mono/; revision=158960
* mini-amd64.c (CallInfo): Fix the position of the vret_arg_index field.
(get_call_info): Don't place the vret arg second when using varargs, since the
sig cookie could come before it.
svn path=/trunk/mono/; revision=158956
** Fixes#613087
* Tds.cs (ProcessLoginAck): Fix server version being compared in
the switch-case.
* Tds70.cs (BuildPreparedParameters, BuildProcedureCall): Set
* default
precision to 18 as used by MS.Net when connecting to SqlServer
7.0.
(BuildExec, ExecRPC): Marked protected in order to be used by
Tds80
and henceforth.
* Tds80.cs (Execute): Separated from Tds70 to include Tds80
* changes.
svn path=/trunk/mcs/; revision=158951
* mini-amd64.c (get_call_info): Change the managed calling convention so 'this'
is always passed as the first argument, before the vtype ret arg. This simplifies
get_this_arg_reg () and LLVM integration.
svn path=/trunk/mono/; revision=158950
etc., use `checked` expressions to generate OverflowExceptions.
Ensure that OverflowExceptions are generated for needed types.
Fixes#596339
* Test/System/ConvertTest.cs: Add tests for #596339.
svn path=/trunk/mcs/; revision=158945
* typespec.cs: ElementTypeSpec has to use its own ITypeDefinition.
* report.cs: Unwrap elements for related symbols reporting.
svn path=/trunk/mcs/; revision=158935
* TcpReplyChannel.cs : accept TCP channel on ReceiveRequest(). This
fixes standalone tcp-transport/sample[svc|cli]5.exe test in olive
(but not TcpTransportBindingElementTest.SimpleDuplexStreamed.)
* TcpTransportBindingElementTest.cs : add connection tests (imported
from standalone olive tests), one is disabled for breakage.
svn path=/trunk/mcs/; revision=158924
* parameter.cs, property.cs, membercache.cs, decl.cs, iterators.cs,
anonymous.cs, expression.cs, support.cs, method.cs, pending.cs,
class.cs, cs-parser.jay: Simplify parsing of accessors by removing
any intermediate steps and fake nodes, also saves few MBs of memory.
svn path=/trunk/mcs/; revision=158913
* ResourceExpressionBuilder.cs: cast the return value of
GetLocalResourceObject to appropriate type. Fixes bug #607766
* TemplateControlCompiler.cs: made CreateConvertToCall internal
static, so that it can be used from ResourceExpressionBuilder
svn path=/trunk/mcs/; revision=158909
* WebUIValidation_2.0.js: fail gracefully if control to validate
is not found (webForm.ValidatorGetValue and
webForm.Page_ClientValidate). Fixes bug #609478
svn path=/trunk/mcs/; revision=158905
* method-to-ir.c (mono_method_to_ir): Add support for .ctor intrinsics.
* method-to-ir.c (mini_emit_inst_for_ctor): New function for .ctor intrinsics.
For now just call simd intrinsics. This makes "x[0] = new Vector4f (10)"
translate into much nicer code.
svn path=/trunk/mono/; revision=158903
* mini-llvm.c (sig_to_llvm_sig_full): Add a 'sinfo' out argument which returns
parameter index information. Use this to simplify a lot of code.
svn path=/trunk/mono/; revision=158895
* certmgr.cs: Fix case where DSA is used in SSL certificate (rare
enough that this was never found/reported). Suggest novell's
bugzilla (instead of ximian)
svn path=/trunk/mcs/; revision=158883
* NetTcpBinding.cs : remove pointless EnvelopeVersion field.
* ClientRuntimeChannel.cs : disable MessageId output. It does not
happen on TCP transport. Added FIXME comment to verify this.
This fix makes non-first-time calls from mono client working.
svn path=/trunk/mcs/; revision=158872
* OperationInvokerHandler.cs, MessageProcessingContext.cs :
ChannelDispatcher may be null, so check its availability before
using it. Don't use it, when possible.
* DispatchOperation.cs : remove unused member.
svn path=/trunk/mcs/; revision=158871
* XmlDocument.cs : do not create XmlSchemaInfo instance every time
it validates a node.
* XmlSchemaValidator.cs : limit validity initialization. In some
cases it failed to set Invalid.
svn path=/trunk/mcs/; revision=158867
* fakepoll.h: Added for OSX
* serial.c:
* signal.c: poll on OSX is broken, so we use a select based
implementation instead.
svn path=/trunk/mono/; revision=158861
* aot-compiler.c (compile_method): Add a 'depth' parameter to add_generic_class too
to fix infinite generic recursion. Fixes#612702.
svn path=/trunk/mono/; revision=158853
* X509Certificate2Collection.cs: Add {} around default switch case.
* HttpListenerRequest.cs: Assign default value to variable before using.
svn path=/trunk/mcs/; revision=158852
ECMA documentation. The problem was that we parse all the XML files
in order to extract //summary and //remarks members, and then stored
the XmlNodes for these members. XmlNode keeps a ref to the creating
XmlDocument, thus keeping the XmlNode around requires keeping the
entire XmlDocument around; result: ~350+MB RAM is needed to assemble
netdocs.zip (in ../../docs). To fix, import the XmlNodes that we
actually care about into an otherwise empty XmlDocument, so that we
only save the nodes we need. Result: ~32MB RAM is needed.
Fixes#602560.
svn path=/trunk/mcs/; revision=158835
* object.c (mono_method_add_generic_virtual_invocation): Fix the computation of the
IMT slot which is passed to callbacks.get_imt_trampoline.
svn path=/trunk/mono/; revision=158819
* object.c: Use a callback to create IMT trampolines, allowing the usage of one
imt trampoline per imt slot when using LLVM.
svn path=/trunk/mono/; revision=158816
* object.c: Use a callback to create IMT trampolines, allowing the usage of one
imt trampoline per imt slot when using LLVM.
svn path=/trunk/mono/; revision=158815
Fixes#438454.
* metdata/object.c (mono_runtime_run_main): Move
fire_process_exit_event() into runtime.c:mono_runtime_shutdown().
* metdata/runtime.c: Added; adds mono_runtime_shutdown(), which invokes
the AppDomain.ProcessExit event in all AppDomains.
* tests/Makefile.am: Add test-process-exit target.
* tests/bug-438454.cs: Added; test case for #438454.
* tests/bug-438454.exe.stdout.expected: Added; expected output when
executing bug-438454.exe, to test the ordering of the
AppDomain.ProcessExit event wrt ThreadPool disposal.
svn path=/trunk/mono/; revision=158809
files if any of the source .xml files have changed. This allows
new <summary/> values to be inserted into the index.{opts.ext}
files, instead of the index files being "stale". Fixes#573121.
svn path=/trunk/mcs/; revision=158790
* Mono.Options/Options.cs: Fix RemoveItem() and SetItem() so that
removing by index and using the numeric indexer work as expected.
* Test/Mono.Options/OptionSetTest.cs: Make OptionSetTest inherit from
ListContract so that the IList<T> and ICollection<T> interfaces are
fully tested.
* Test/Mono.Options/BaseRocksFixture.cs,
Test/Mono.Options/CollectionContract.cs,
Test/Mono.Options/ListContract.cs: Added; interface contract tests
from Cadenza.
svn path=/trunk/mcs/; revision=158750
KeyedCollection.InsertItem() exception safe, so that if the index is
invalid (negative or too large) we don't add the entry to the
underlying Dictionary.
* Test/System.Collections.ObjectModel/KeyedCollectionTest.cs: Verify
exception safety of Insert().
svn path=/trunk/mcs/; revision=158748
to obtain the maximum number of desired values. This better supports
e.g. DOS paths in multi-value values, e.g. '-DPATH=C:\tmp' would now
create the values {"PATH", "C:\tmp"} instead of {"PATH", "C", "\tmp"}.
* Test/Mono.Options/OptionSetTest.cs: Add tests for constrained value
splitting.
svn path=/trunk/mcs/; revision=158672
so that:
- it properly obeys the 'count' parameter; Fixes#601772.
- "...".Split(new[]{"."}, 2, StringSplitOptions.RemoveEmptyEntries).Length==0
- "A..".Split (new String[] { "." }, 2, StringSplitOptions.RemoveEmptyEntries) == new[]{"A"}
- Remove duplicative array handling code by using List<String>.
* Test/System/StringTest.cs: Add tests for #601772 (i.e. take
SplitStringChars(), change all the chars to Strings, and things
should work).
svn path=/trunk/mcs/; revision=158670
* liveness.c (visit_bb): Make the component vregs of long vars volatile as well.
Fixes#612206.
* exceptions.cs: Add a test.
svn path=/trunk/mono/; revision=158668
NotSupportedException.
* IsolatedStorageFileStream.cs: Implement Flush by calling the base impl.
2010-06-07 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=158612
error found in our System.IO classes as IsolatedStorageException.
2010-06-07 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=158593
* IsolatedStorageFileTest.cs: Update our tests to catch/report the new
exceptions fired in 4.0, as well as a new test to assert that
GetDirectoryNames fires an ArgumentException if '..' is passed as part
of the path.
svn path=/trunk/mcs/; revision=158590
* IsolatedStorageFile.cs: Update the exceptions we are firing in 4.0
for CreateDirectory, GetFileNames and GetDirectoryNames.
svn path=/trunk/mcs/; revision=158589
* mini.c (mono_jit_runtime_invoke): Initialize *exc to NULL before calling the wrapper,
so it doesn't have to do it.
svn path=/trunk/mono/; revision=158569
* IsolatedStorageFileTest.cs: Include check for paths outside our
storage root in our tests for MoveFile, MoveDirectory and CopyFile.
svn path=/trunk/mcs/; revision=158567
* IsolatedStorageFile.cs: Our 4.0 methods receiving a path should
either return false or throw an IsolatedStorageException if the path
refers to a directory outside the storage root.
svn path=/trunk/mcs/; revision=158566
* helpers.c (mono_disassemble_code): Flush stdout, so the output from the spawned
process does not mix with ours.
svn path=/trunk/mono/; revision=158553
* mini-llvm.c method-to-ir.c ir-emit.h: When using the llvm mono branch, allow
loads/stores which can throw exceptions inside clauses.
svn path=/trunk/mono/; revision=158550
* mini-llvm.c (mono_llvm_emit_method): Fix support for finally clauses with more than
one ENDFINALLY.
* mini.c (mini_init): Register mono_resume_unwind as an icall.
svn path=/trunk/mono/; revision=158547
* sgen-gc.c, sgen-los.c: New LOS allocator that allocates large
segments of memory at once, to reduce the number of mmap/munmap
calls.
svn path=/trunk/mono/; revision=158529
* sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c: Make degraded
allocations count toward major collections and trigger major
collections from degraded allocations if appropriate.
svn path=/trunk/mono/; revision=158527
* sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c: Have only one
major heap allowance for minor collections, instead of two
separate ones for small and large objects. This reduces the
number of major collections.
svn path=/trunk/mono/; revision=158498
* PageRouteHandler.cs: implemented
2010-06-05 Marek Habersack <[email protected]>
* UrlRoutingModule.cs: 4.0 doesn't do the UrlRouting.axd magic, it
simply remaps the current handler to the one obtained from the
route.
2010-06-05 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: expression evaluation results are
wrapped in a Convert.ConvertTo* call or a typecast.
* RouteValueExpressionBuilder.cs: implemented
* RouteUrlExpressionBuilder.cs: added missing custom attributes
svn path=/trunk/mcs/; revision=158497
* mono-dl.c (mono_dl_build_path): modify the logic to try the
use the passed name to build the path without suffix on the first
run (handles situations like "somelib.so.1.0" ->
"libsomelib.so.1.0") and, on subsequent run, append the platform
suffix(es) (handles situations like "libsomething" ->
"libsomething.so"). Fixes bugs #588143 and #610009
svn path=/trunk/mono/; revision=158490
* IsolatedStorageFile.cs: In CheckOpen check that the directory for
the current storage is still valid, and throw an exception if needed.
Also, in the static Remove method call Directory.Delete only if the
directory exists, to avoid throwing an exception there.
svn path=/trunk/mcs/; revision=158478
* StackFrame.cs (GetVisibleVariables): New method to return the set of variables
visible at the current stack frame.
svn path=/trunk/mcs/; revision=158474
* membercache.cs, convert.cs, nullable.cs, expression.cs: Optimize
user defined conversion probing and simplify user conversion for
nullabe types. Fixes#610940.
svn path=/trunk/mcs/; revision=158467
* CallbackBehaviorAttributeTest.cs : test recent changes on operation
descriptions, message directions, client operations and so on.
svn path=/trunk/mcs/; revision=158457
* OperationDescription.cs : add contract origin flags to identify
which operation should be used for client operations (and dispatch
too in the future).
* MessageDescription.cs : add IsRequest flag to indicate if it is
for request or not.
* ServiceContractGenerator.cs, ContractDescriptionGenerator.cs :
make use of above changes.
* ContractDescription.cs : don't create extraneous ClientOperations
in irrelevant message direction.
* EndpointDispatcher.cs, BaseMessagesFormatter.cs:
Now MessageDescription.Direction is differentiated from "IsRequest"
property, to precisely identify request/reply in callbacks. Also
now we don't have to create extraneous ContractDescription for
callbacks.
* DuplexClientRuntimeChannel.cs : do not create and use extraneous
ContractDescription for callback contract. Non-callback ones now
works fine.
This fixes service part of bug #567672, IsOneWay = true case.
svn path=/trunk/mcs/; revision=158454
msbuild extension paths. Paths can be specified via the environment
variable - $MSBuildExtensionsPath . ~/.config/xbuild/tasks is also
checked for extensions, besides the default location.
This explicitly looks for a "$(MSBuildExtensionsPath)" in the import
expression and tries to replace that with possible paths, till it
finds the file. In rest of the project, the property would resolve
to its single default value.
svn path=/trunk/mcs/; revision=158433
* dwarfwriter.c: Update after the mono_debug_lookup_locals () changes.
* debugger-agent.c (method_commands_internal): Ditto. Return scope information for
locals.
svn path=/trunk/mono/; revision=158421
* debug-mono-symfile.c (mono_debug_symfile_lookup_locals): Rewrite this so it returns
all information in a single structure. Return information about scopes as well.
* mono-debug.c (mono_debug_lookup_locals): Ditto.
svn path=/trunk/mono/; revision=158420
In class/System/System.Collections.Concurrent/:
* ConcurrentBag.cs: Add a add hint cache for faster steal retrieval.
Initialize lazily the underlying CyclicDeque.
In class/corlib/Test/System.Collections.Concurrent/:
* CollectionStressTestHelper.cs: Bump remove test repeat to 1000.
Use a local variable for tracking status and only update the global one
at the end.
svn path=/trunk/mcs/; revision=158417
* ContractDescriptionGenerator.cs : Now callback contract methods are
also reflected into OperationDescription as well as those from non-
callback contract. Callback methods have reverse MessageDirection,
so adjust them.
* ContractDescription.cs, ServiceEndpoint.cs, TypedMessageConverter.cs :
A bit of renaming / reflect method call changes.
* EndpointDispatcher.cs, DispatchRuntime.cs, ClientRuntime.cs :
now Callback[Dispatch|Client]Runtime properties are always filled
so that users can configure the callback runtimes (not sure such
configured runtimes work fine yet, but it is a required step).
* InputOrReplyRequestProcessor.cs : instead of HasCallbackRuntime
hack, use CallbackClientRuntime.CallbackContractType for checking
callback existence.
* ClientProxyGenerator.cs : CreateProxyType now carefully considers
requested proxy type, contract type and callback contract type.
i.e. now the resulting proxy has implemented methods for callbacks
that are also filled at ContractDescription.
* ClientRuntimeChannel.cs : reflect some method call changes.
svn path=/trunk/mcs/; revision=158412
* Engine.cs (GetLoadedProject): Return null if project not found.
Based on a patch by Dale Ragan <[email protected]> .
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* EngineTest.cs (TestGetLoadedProject1):
Patch by Dale Ragan <[email protected]> .
svn path=/trunk/mcs/; revision=158400
A fix for bug #610919
* parameter.cs, property.cs, cs-parser.jay: Use independent implicit
parameters for explicit event accessors. Anonymous method capturing
won't otherwise work for event implicit parameter.
svn path=/trunk/mcs/; revision=158383
* appdomain.c: If we are running with IOMAP we might
have been provided a string that isn't case-aware for our file-
system, so we need to use io-portability to check if the file
exists, rather than a simple glib test.
Fixes#608849
svn path=/trunk/mono/; revision=158366
A fix for bug #610088
* nullable.cs, expression.cs, statement.cs, method.cs, ecore.cs:
Ignore overrides for base overload resolution as for non-base
expressions and convert the best candidate to closest override
afterwards.
svn path=/trunk/mcs/; revision=158357
* IsolatedStorageFile.cs: Check for empty paths and existing paths in
both MoveFile and MoveDirectory, just as we do in CopyFile. Finally
cover our IO calls with a try-catch block, so all the IOException
instances are reported as IsolatedStorageException.
svn path=/trunk/mcs/; revision=158355
* verify.c (is_compatible_boxed_valuetype): Constaints
must be recursively checked if one generic argument
has a constraint on another.
Fixes#610625.
svn path=/trunk/mono/; revision=158341
* method-to-ir.c (set_rgctx_arg): New helper function to remove some duplicate code.
Use a separate generic class init trampoline for llvm, since it needs a different
signature.
* unwind.c (mono_unwind_decode_fde): Make this decode the mono specific LSDA which
includes the location of this/rgctx.
* mini-llvm.c aot-runtime.c: Enable generic sharing for llvm if using the LLVM mono
branch.
svn path=/trunk/mono/; revision=158309
* HtmlHead.cs: added code to render description and keywords metas
if the corresponding HtmlMeta controls aren't found and the user
set either Description or Keywords properties.
2010-06-01 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added new virtual method,
AddStatementsToInitMethodBottom and renamed
AddStatementsToInitMethod to AddStatementsToInitMethodTop.
* PageCompiler.cs: code to set Meta{Description,Keywords}
properties, if present.
2010-06-01 Marek Habersack <[email protected]>
* PageParser.cs: added support for MetaDescription and
MetaKeywords main directive attributes
* Page.cs: implemented MetaDescription and MetaKeywords
4.0 properties.
svn path=/trunk/mcs/; revision=158303
* HttpUtility.cs: moved chunks of code to the new
System.Web.Util.HttpEncoder class.
* HttpResponseHeader.cs: encode header names and values using
HttpEncoder.
* HttpRequest.cs: added internal method Validate, to validate the
request in 4.0 profile.
* HttpHeaderCollection.cs: added. A helper class to encode header
names/values on add.
* HttpApplication.cs: Pipeline () validates request by calling
HttpRequest.Validate in the 4.0 profile.
2010-06-01 Marek Habersack <[email protected]>
* HttpEncoder.cs: added. A 4.0 type but also used in 2.0 profile,
internally.
2010-06-01 Marek Habersack <[email protected]>
* HttpRuntimeSection.cs: added 4.0 properties
MaxQueryLengthString, MaxUrlLength, EncoderType and
RelaxedUrlToFileSystemMapping.
svn path=/trunk/mcs/; revision=158300
* statement.cs: Handle nullable types and type parameters in using
statement, avoid boxing value types. Also fixes#571010
svn path=/trunk/mcs/; revision=158275
2010-05-31 Martin Baulig <[email protected]>
Fix#608271.
* debugger-agent.c (breakpoints_cleanup): Iterate over `event_requests', call
clear_breakpoint() on all breakpoint events and remove them from the list.
svn path=/trunk/mono/; revision=158262
* mini.c (mini_method_compile): Enable llvm+exceptions on LLVM SVN.
* mini-llvm.c (emit_cond_system_exception): Disable llvm when this occurs in a
clause.
svn path=/trunk/mono/; revision=158240
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
linker entry on some systems (Android/Bionic based libc's)
svn path=/trunk/mono/; revision=158239
* console-unix.c (terminal_get_dimensions): Fix my previous
botched commit and return the actual value obtained from the ioctl.
svn path=/trunk/mono/; revision=158227
* unwind.c (mono_unwind_decode_fde): The FDE only has an augmention if the CIE
says so.
* aot-runtime.c (decode_eh_frame): Fix an assert condition.
svn path=/trunk/mono/; revision=158226
* IsolatedStorageTest.cs:
* IsolatedStorageFileTest.cs: New tests for AvailableFreeSpace, Quota,
UsedSize and IncreaseQuotaTo.
svn path=/trunk/mcs/; revision=158224
* configure.in: Windows: mcs_topdir_from_srcdir must not be
converted to a Win32 path unless it's already a cygwin path.
Fixes --with-mcs-docs for in-tree mcs builds.
svn path=/trunk/mono/; revision=158211
Merge the MonoTouch Linker branch.
* Mono.Linker/TypeParser.cs: add a type parser.
* Mono.Linker.Steps/MarkStep.cs: properly mark types used
with typeof in custom attributes
* Mono.Linker/LinkContext.cs: remove dead code.
* monolinker.exe.sources: add TypeParser.cs
svn path=/trunk/mcs/; revision=158209
* SerializationMap.cs, XmlFormatterSerializer.cs,
DataContractSerializer.cs :
support DataContractSerializer.PreserveObjectReferences. z:Ref
attributes are used not only for objects with IsReference=true.
Fixed bug #610036.
* XmlObjectSerializerTest.cs : test PreserveObjectReferences too.
svn path=/trunk/mcs/; revision=158201
* SerializationMap.cs, KnownTypeCollection.cs : contract namespace
should be still considered even if contract (local) name is null.
Fix crash for generic derived type of dictionary. Fixed the
primary (crasher) part of bug #610036.
* XmlObjectSerializerTest.cs : add test for bug #610036.
svn path=/trunk/mcs/; revision=158197
* pinvoke2.cs (test_0_calli_dynamic): Use the cdecl version
of mono_test_marshal_inout_array. Fixes the test when compiled
with MSC (and GCC where it worked by accident).
* libtest.c (mono_test_marshal_inout_array_cdecl):
New. cdecl wrapper for the function with the same name.
svn path=/trunk/mono/; revision=158175
* exceptions-amd64.c (get_throw_trampoline): Fix the xdebug name of the corlib
trampoline.
* exceptions-x86.c (mono_arch_exceptions_init): Create an llvm rethrow trampoline too.
* mini-llvm.c (mono_llvm_emit_method): Implement OP_RETHROW.
* method-to-ir.c (mono_method_to_ir): Emit a OP_NOT_REACHED after a rethrow.
svn path=/trunk/mono/; revision=158170
2010-05-29 Robert Jordan <[email protected]>
* IpcChannelTest.cs: Add test for bug #609381.
In System.Runtime.Remoting.Channels.Ipc.Win32:
2010-05-29 Robert Jordan <[email protected]>
* IpcChannelHelper.cs (copy): Take into account that the remoting
stack is internally using MemoryStreams all over the place.
Fixes bug #609381 as a side effect.
* IpcChannel.cs (.ctor): Create an IpcClientChannel as well.
svn path=/trunk/mcs/; revision=158161
* sgen-gc.c: Always use DESC_TYPE_RUN_LENGTH for objects without
references so that we don't have to do the cache-cold fetch of the
class in copy_object_no_checks().
svn path=/trunk/mono/; revision=158137
* libtest.c: Implement and use marshal_strdup () as a g_strdup ()
replacement under Windows. Fixes memory allocation mismatches.
svn path=/trunk/mono/; revision=158125
in a directory.
* AssemblyResolver.cs (FindInDirectory): Add a 'specific_version'
parameter. Look for reference.{dll|exe} instead of checking all
files in the directory. Compare assembly names only if
specific_version is true.
(ResolveHintPathReference): Extract code to check and compare assembly
names to ..
(ResolvedReferenceFromPath): .. this.
(AssemblyNamesCompatible): Change default value of @specificVersion to
true.
Track api changes.
* ResolveAssemblyReference.cs (ResolveReference): Specify
'specific_version' in case of SearchPath.Directory.
(TryGetSpecificVersionValue): msbuild seems to look only for ',' in
the reference, instead of checking whether the assembly is strong
named.
(TryGetResolvedReferenceByAssemblyName): Track api changes.
svn path=/trunk/mcs/; revision=158123
* sgen-gc.c: Change default nursery size to 4MB, because it
improves performance on many applications and benchmarks.
svn path=/trunk/mono/; revision=158122
* library.make: Don't sort source input files on windows to
build metadata compatible assemblies on all platforms.
svn path=/trunk/mcs/; revision=158115
* System.Xml.Linq_test.dll.sources :
add System.Xml.Schema/ExtensionsTest.cs.
* ExtensionsTest.cs :
New tests (not working yet), by Stefan Prutianu.
svn path=/trunk/mcs/; revision=158106
* ContractDescription.cs : fill ClientOperation.Formatter here.
(It is hacky, see additional comment.)
* ClientRuntimeChannel.cs : replace GetFormatter() with Formatter.
* ClientOperation.cs : do the same for client side too.
svn path=/trunk/mcs/; revision=158083
* DispatchOperation.cs : on callback channels ChannelDispatcher is
not available. Wait for something like ClientRuntime.ChannelFactory.
svn path=/trunk/mcs/; revision=158082
* DirectoryScanner.cs (ProcessInclude): Set %(RecursiveDir) only if
the '**' wildcard was found in the original Include.
svn path=/trunk/mcs/; revision=158081
* sgen-gc.c, sgen-scan-object.h: Value types in arrays are not
always aligned to ALLOC_ALIGN. To handle this, shift the size in
the GC descriptor by one bit, and don't encode the size for value
types not containing references. Also get rid of
DESC_TYPE_STRING.
svn path=/trunk/mono/; revision=158079
* sgen-gc.c (sort_addresses): Use heap sort since it has better
performance.
This helps programs with lots of threads or thread with big stacks
since the bottleneck the pin queue can get quite big.
svn path=/trunk/mono/; revision=158069
* Makefile, *.dll.sources: disambiguate between Mvc and Mvc2
by using a distinct LIBRARY. Needed because the current
build system does not pay attention to LIBRARY_COMPAT
while building *.reponse and *.makefrag.
svn path=/trunk/mcs/; revision=158066
2010-05-27 Martin Baulig <[email protected]>
Fix#605698.
* debugger-agent.c (method_commands, type_commands): Temporarily
set the appdomain while executing this method; do all metadata
calls in the debuggee's appdomain where user assemblies are loaded.
svn path=/trunk/mono/; revision=158052
* IsolatedStorageFile.cs: Implement GetCreationTime, GetLastAccessTime
and GetLastWriteTime, as well as creating a single method to check for
the closed/disposed fields.
svn path=/trunk/mcs/; revision=158030
* sgen-gc.c (search_fragment_for_size): Move fragment setup into
a separate function called setup_fragment.
* sgen-gc.c (search_fragment_for_size_range): Variant of
search_fragment_for_size that does search for a secondary smaller
size.
* sgen-gc.c (mono_gc_alloc_obj_nolock): Use search_fragment_for_size_range
for tlab allocation so small fragments are used.
This patch uses small fragments for tlab allocation when possible in order
to improve nursery utilization. With a fixed size tlab this patch is not very
usefull but once size gets dynamically adjusted, this will be invaluable.
Performance under pystone 500k is unchanged. Nursery utilization improves by
3.5% and 18 more fragments are used per minor GC.
Performance under modified binary-tree is unchanged. Nursery utilization
improves by 0.5% and 3 more fragments are used per minor GC.
These numbers make sense since as more pinning happens, more fragments are
created and so are the chances of having a bunch of small ones.
svn path=/trunk/mono/; revision=157998
* sgen-gc.c (mono_gc_alloc_obj_nolock): Avoid wasting space
* from
the current fragment when allocating a TLAB.
Reduces number of pystone 500k minor collections by 7%.
svn path=/trunk/mono/; revision=157997
* IsolatedStorageFileStreamTest.cs: New test cases for constructor
obtaining a closed/disposed IsolatedStorageFile.
svn path=/trunk/mcs/; revision=157969
* method-to-ir.c: Instead of freeing method headers immediately, save them in a list in
MonoCompile, and free them in mono_destroy_compile (), since the MonoType's in them could
be referenced even after the header is freed.
svn path=/trunk/mono/; revision=157962
* TcpDuplexSessionChannel.cs, TcpReplyChannel.cs : do not set RelatesTo
here. If the contract is not one-way (IsOneWay = false) and there is
a callback, the callback message sent to the client should *not* be
assigned RelatesTo header here. Just do it in the request-reply
context. Do it in OperationInvokerHandler.
* OperationInvokerHandler.cs : assign RelatesTo header item here.
svn path=/trunk/mcs/; revision=157950
* genmdesc.c: Added support for nacl: key on the machine
description files to support the extra space required by Google
Native Client.
svn path=/trunk/mono/; revision=157881
2010-05-25 Martin Baulig <[email protected]>
Applying a patch from Lucas Meijer <[email protected]>.
* debug-mono-symfile.c: Release memory from symfiles that were
loaded from memory.
svn path=/trunk/mono/; revision=157865
2010-05-24 Martin Baulig <[email protected]>
* Connection.cs (VersionInfo): Make this public.
* VirtualMachine.cs (Version): New public property.
svn path=/trunk/mcs/; revision=157862
* context.cs, expression.cs, cs-parser.jay: Don't store current
block in This expression (it's too early for linq blocks).
svn path=/trunk/mcs/; revision=157834
for diposed first, and for closed on second place.
* IsolatedStorageFile.cs: Add Obsolete to CurrentSize and MaximumSize,
as part of 4.0.
2010-05-24 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=157816
* IsolatedStorageFileStream.cs: When creating our instance check that
the IsolatedStorageFile is not closed/disposed.
* IsolatedStorageFile.cs: Expose closed/disposed info as internal
properties, as well as implement 4.0 MoveDirectory/MoveFile, CreateFile
and OpenFile methods.
svn path=/trunk/mcs/; revision=157801
* JsonQueryStringConverter.cs : objects are regarded serializable as
long as they are public here, with some exceptions (not implemented).
* JsonQueryStringConverterTest.cs : add more tests for CanConvert()
and reorganized some classes to make tests rational.
svn path=/trunk/mcs/; revision=157795
* Uri.cs : do not reject relative URIs that contain ':' and
any non-scheme characters preceding it.
* UriTest.cs : more URI tests, for relative URIs with ':'.
svn path=/trunk/mcs/; revision=157789
* IsolatedStorageFile.cs: Implement FileExists and DirectoryExists, as
well as adding fields to detect that Close/Dispose have been called
and fire the proper exceptions.
svn path=/trunk/mcs/; revision=157784
* marshal.c (mono_marshal_get_runtime_invoke): Simplify the code computing the
target class and remove some dead code.
svn path=/trunk/mono/; revision=157765
* marshal.c (mono_marshal_get_generic_array_helper): Make these wrappers dynamic and
free them when their parent method is freed.
svn path=/trunk/mono/; revision=157763
* metadata.c: Add a 'transient' argument to the MonoType creation functions, so
the MonoTypes inside method headers can be freed when the header is freed.
svn path=/trunk/mono/; revision=157762
* AsyncOperation.cs: Add checks for null delegates
* BackgroundWorker.cs: Ensure ProgressChanged can be called before
starting the work but not after its complete
svn path=/trunk/mcs/; revision=157698
* DefaultValueAttributeTest.cs: Change test case to compare the
hash code of two DVA created with null (instead of comparing to 0)
svn path=/trunk/mcs/; revision=157697
* ChannelDispatcher.cs : disable slottling again :( It still fails
to process concurrent requests if there is service metadata channel
and MaxConcurrentSessions > 1 on non-ASP.NET channels.
svn path=/trunk/mcs/; revision=157670
* WebScriptServiceHostFactory.cs : similarly to ServiceDebugBehavior
and ServiceMetadataBehavior in ServiceHostBase, it must *prepend*
WebScriptEnablingBehavior to apply all other behaviors subsequently.
svn path=/trunk/mcs/; revision=157667
* ServiceHostBase.cs : ServiceMetadataBehavior and ServiceDebugBehavior
are special. They must be applied in prior to other behaviors so that
newly populated ChannelDispatchers are applied behaviors accordingly.
svn path=/trunk/mcs/; revision=157666
* ChannelDispatcher.cs : enable throttling again. Though issues
regarding parallel request is not here (multiple dispatchers
can accept a channels for each), and HTTP channels do not accept
more than one channel at a time anyways.
svn path=/trunk/mcs/; revision=157662
* HttpChannelListener.cs : do not accept more than one channel at a
time. Remove extra fields. Add CancelAsync() implementation.
svn path=/trunk/mcs/; revision=157659
* HttpListenerManager.cs : add a workaround for Func<>.BeginInvoke()
problem that blocked ASP.NET channels working.
svn path=/trunk/mcs/; revision=157658
* configure.in: drop again the pkg.m4 dependency and for eglib
cases (and not-Windows) make it entirely optional.
svn path=/trunk/mono/; revision=157656
* FileStream.cs: when running on Windows and a path with Unix
directory separator chars is passed (including an UNC share), get
the canonical form of the path before attempting to retrieve its
directory name. Fixes bug #607502
* Path.cs: typo fix
svn path=/trunk/mcs/; revision=157650
* DefaultValueAttribute.cs: Two instances where DefaultValue ==
null are equal so they *must* return the same hash code
svn path=/trunk/mcs/; revision=157646
* marshal.c (mono_marshal_init): Register mono_gchandle_get_target
icall.
* marshal.c (mono_delegate_to_ftnptr): Use a gchandle instead of
gc tracked memory.
* marshal.c (mono_marshal_emit_managed_wrapper): Retrieve the first
argument from a gchandle.
* marshal.c: Get rid of the delegate_target_locations hash table.
Fixes#605295.
svn path=/trunk/mono/; revision=157589
* aot-runtime.c (decode_resolve_method_ref): Rename this from decode_method_ref_2.
(make_writable): Remove this unused function.
svn path=/trunk/mono/; revision=157588
* aot-compiler.c: Collect all information about a PLT entry into a separate MonoPltEntry
structure. Make the labels to plt entries local symbols instead of assembler local
labels, since tha latter causes problems for the iphone linker.
svn path=/trunk/mono/; revision=157576
* Enumerable.cs: fix GroupBy to deal with a null key for the last
group entry. Also fix GroupBy to properly throw ArgumentNullException.
svn path=/trunk/mcs/; revision=157558
* ServiceSettingsResponseInfo.cs
RegisterResponseInfo.cs
RefreshResponseInfo.cs
ResolveInfo.cs
UpdateInfo.cs
RegisterInfo.cs
UnregisterInfo.cs
RefreshInfo.cs
ResolveResponseInfo.cs : they don't have field initialization at
constructor now, for FormatterServices.GetUninitializedObject().
Fix regression with related to serialization changes.
* PeerResolverSerializationTest.cs :
verify deserialized address count too.
svn path=/trunk/mcs/; revision=157532
* XmlFormatterDeserializer.cs : Array of something with non-default
namespace should be deserialized as well. Required for fixing
PeerResolvers ResolveResponseInfo serialization test case.
svn path=/trunk/mcs/; revision=157531
empty message and return that.
Note: the ws-mc protocol defines that the service returns an
200 response with an empty body on first connection, this
adds support for that (fixes part of #599667)
svn path=/trunk/mcs/; revision=157525
DataMemberInfo objects being matched against the xml don't have
a set namespace because they were created from
DefaultTypeMap.GetDataMembers(), so only use the namespace for
comparison if it's not null (fixes part of #599667)
svn path=/trunk/mcs/; revision=157523
* PageParser.cs: handle several main directive attributes
specially, as they can have expressions as their values. Fixes bug
#603532
* MainDirectiveAttribute.cs: added - helper class to handle
directive attributes which can take either a value or an
expression.
* BaseParser.cs: IsDirective, IsExpression and IsDataBound methods
moved to here from TemplateControlCompiler.
2010-05-19 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: IsDirective, IsExpression and
IsDataBound methods moved to System.Web.UI.BaseParser.
Made CompileExpression and GetFieldOrProperty methods internal.
* PageCompiler.cs: check several of the Page directive attributes
for expressions. Fixes bug #603532
* AspGenerator.cs, TagAttributes.cs: use IDictionary instead of
Hashtable
svn path=/trunk/mcs/; revision=157519
* FtpDataStream.cs:
* FtpWebRequest.cs: properly close the data connection even when
nothing is read from it. Refixes bug #598908.
svn path=/trunk/mcs/; revision=157506
A fix for bug #594905
* convert.cs, constant.cs, expression.cs, literal.cs, ecore.cs:
Typed null can be used as a source for expression methods.
svn path=/trunk/mcs/; revision=157502
* ServiceHostBase.cs : do not arbitrarily add ServiceDebugBehavior
on all configuration-based services. .NET doesn't do that.
svn path=/trunk/mcs/; revision=157485
* ListView.cs: if data source has pageable data, get total count
from the source's DataSourceCount property. Fixes bug #604053
svn path=/trunk/mcs/; revision=157470
* TabControl.cs: Properly implement ItemSize, which should depend on
Font and ImageList -if available-, instead of having a fixed height.
Setting ImageList should cause a Redraw also.
Fixes#599950.
svn path=/trunk/mcs/; revision=157467
* sgen-gc.c (global_remset_cache_test): New function that
implements a 2 element LRU cache for just added remsets.
It is used to avoid adding duplicate ones.
* sgen-gc.c (add_to_global_remset): Check cache before
adding new entry.
* sgen-gc.c (scan_from_remsets): Ditto.
A 2 element LRU cache was chosen by profiling IronPython 2.6
pytones with 1M passes and corlib compilation.
For the ipy test duplication was originally 940.92, measured
by "Store remsets" divided by "Unique store remsets".
With a 2-element LRU, duplication went to 1.007. Without the
check in scan_from_remsets 1.438.
With a 16-elements LRU, duplication reduction was negligibe.
A single element cache was basically of no use.
With corlib compilation duplication went from 1.4 to 1.02.
Performance results is a 20% time decrease for ipy and 2%
with corlib.
svn path=/trunk/mono/; revision=157460
* XamlWriterStateManager.cs : on object writer, reject more write
namespace order. (I should really unuse it for object writer.)
* XamlObjectWriter.cs : result is set at end object. Do not reject
non-collection in this writer. I'm totally no idea why it should
not do so though.
* XamlObjectWriterTest.cs : fix and enable some tests.
svn path=/trunk/mcs/; revision=157446
* HttpApplicationFactory.cs: pre-application start methods must be
called even before App_Code is compiled.
2010-05-17 Marek Habersack <[email protected]>
* BuildProvider.cs: made the Extension property case-insensitive
2010-05-17 Marek Habersack <[email protected]>
* BuildProvider.cs: implemented a 4.0 method RegisterBuildProvider
* BuildManager.cs: separated dynamically registered assemblies
store from the referenced assemblies cache.
svn path=/trunk/mcs/; revision=157435
* TabControlPainter.cs: When drawing the contents of our tabs use
TabControl.Padding instead of BorderThickness and FocusRectSpacing.
* CheckBoxPainter.cs, RadioButtonPainter.cs: Added.
svn path=/trunk/mcs/; revision=157428
* typespec.cs, expression.cs, statement.cs, ecore.cs, complete.cs,
delegate.cs: Member instance is resolved after member overload
definitely resolves static/instance property of member expression.
Fixes#545047, #358848, #456605, #460016, #603299
svn path=/trunk/mcs/; revision=157424
to calculate the interior rectangle to draw the tab contents, as
TabControl.Padding is enough - we had been ignoring it. This make
should our tab look more like that one in .net.
2010-05-17 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=157423
* TabControlPainter.cs: When drawing tabs, use TabControl.Padding into
account for the interior rectangle for the text/image contents.
Fixes the remaining bits of #604034.
svn path=/trunk/mcs/; revision=157419
* Enum.cs : TryParse() should raise ArgumentException when the
type parameter is not an enum. Fixed bug #604134
* EnumTest.cs : add test for bug #604134.
svn path=/trunk/mcs/; revision=157416
* method-to-ir.c (mono_method_to_ir): Use fast generic virtual method invocation
if gshared is enabled, to avoid asserts in the trampoline code.
* mini-ia64.c (mono_arch_build_imt_thunk): Implement generalized imt thunks
on ia64.
svn path=/trunk/mono/; revision=157408
* TabControlPainter.cs: The text for our tabs should always be
vertically centered, and it should be horizontally centered if the
size mode is Fixed. Patch from Thomas Goldstein ([email protected]).
Fixes part of #599841.
svn path=/trunk/mcs/; revision=157406
* BuildManager.cs: do not cache referenced assemblies until it's
safe.
2010-05-16 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: let BuildManager know when it's safe
to cache referenced assemblies.
svn path=/trunk/mcs/; revision=157391
* AssemblyInfo.cs: this assembly should be signed with winfx.pub
2010-05-15 Marek Habersack <[email protected]>
* HttpResponse.cs: added internal Context property
* HttpRequest.cs: added a setter to the internal Context property
* HttpContext.cs: set request and response Context properties to
'this' in the constructor.
2010-05-15 Marek Habersack <[email protected]>
* Control.cs: implemented 4.0 GetRouteUrl overloads and
GetUniqueIDRelativeTo
2010-05-15 Marek Habersack <[email protected]>
* RouteValueExpressionBuilder.cs: added
* RouteUrlExpressionBuilder.cs: implemented
svn path=/trunk/mcs/; revision=157378
* TabControl.cs: ItemSize should include the padding value.
Update the retrieval of this info in SizeTab as well.
Fixes part of #604034.
svn path=/trunk/mcs/; revision=157373
* DuplexChannelBase.cs
ReplyChannelBase.cs
TcpChannelListener.cs
ChannelListenerBase_1.cs
PeerChannelListener.cs
HttpChannelListener.cs
NamedPipeChannelListener.cs:
do the same for channel listener,reply channels and
duplex channels.
svn path=/trunk/mcs/; revision=157368
* ChannelFactoryBase.cs, RequestChannelBase.cs : support
MessageVersion in GetProperty<T>() for many transport channels.
svn path=/trunk/mcs/; revision=157367
* HttpChannelFactory.cs
TcpChannelFactory.cs
ChannelFactoryBase.cs
NamedPipeChannelFactory.cs
PeerChannelFactory.cs
RequestChannelBase.cs : commonize MessageEncoder.
(Commented out GetPrpoerty<T>() for MessageVersion as it is
in doubt yet.)
svn path=/trunk/mcs/; revision=157366
* MessageImpl.cs : do not use maxBufferSize for initialSize argument
for MessageHeaders. Fix OutOfMemoryException for certain usage.
svn path=/trunk/mcs/; revision=157363
* FlashCrossDomainPolicy.cs: Reverse conditions order on secure=true
since we're currently too severe. Fix DRT668
svn path=/trunk/mcs/; revision=157359
* WebHeaderCollection_2_1.cs: Hide the internal Dictionary and
provide methods to use it properly.
* HttpWebRequest_2_1.cs: Use internal Clear method
svn path=/trunk/mcs/; revision=157358
* BindingContext.cs : actually clone is needed everywhere else too.
* CustomBinding.cs : remove extra field.
* BindingContextTest.cs : add a couple of tests with related to
RemainingBindingElements use. Some tests by Andreia Gaita.
svn path=/trunk/mcs/; revision=157350
* BindingContext.cs: Copy elements from the original binding only when
creating it, never when cloning it. This way, CanBuildInnerChannel can
work recursively as it should.
2010-05-14 Atsushi Enomoto <[email protected]>
* CustomBinding.cs : return clone collection.
* BindingContext.cs :
Simply use RemainingBindingElements in builder methods.
Clone() should be deep copying (as documented).
* BinaryMessageEncodingBindingElement.cs
MtomMessageEncodingBindingElement.cs
TextMessageEncodingBindingElement.cs
HttpCookieContainerBindingElement.cs :
do not add itself to RemainingBindingElements.
* HttpChannelFactory.cs
HttpChannelListener.cs
TcpChannelFactory.cs
TcpChannelListener.cs
MsmqChannelFactory.cs
MsmqChannelListener.cs
NamedPipeChannelFactory.cs
NamedPipeChannelListener.cs
PeerChannelFactory.cs
PeerChannelListener.cs : do not iterate RemainingBindingElements.
Instead, iterate all binding elements in the CustomBinding.
svn path=/trunk/mcs/; revision=157345
* class.c (mono_class_create_from_typedef): Only return
the class if no exceptions were detected.
* class.c (mono_class_create_from_typedef): Don't remove
broken classes from class_cache. Just set failure and
bail out.
This fixes a memory a memory leak where resolving the same
broken class multiple times resulted in a memory leak.
The right behavior would be to actually return the class
a let the caller figure it out.
svn path=/trunk/mono/; revision=157330
* typeload-unaligned.cs: Move the reference to the broken type
to an inner function since mono now detects the brokenness earlier.
svn path=/trunk/mono/; revision=157329
* exceptions-x86.c (mono_arch_handle_exception): Resume from the signal handler
and do most of the work on the normal stack.
(mono_x86_get_signal_exception_trampoline): New x86 specific trampoline function.
svn path=/trunk/mono/; revision=157327
* exceptions-arm.c (mono_arch_handle_exception): Resume from the signal handler
and do most of the work on the normal stack.
svn path=/trunk/mono/; revision=157291
* Makefile.am: Add mono-ptr-array.h.
* mono-ptr-array.h: New header that implements
a GC tracked equivalent of g_ptr_array.
svn path=/trunk/mono/; revision=157286
* exceptions-amd64.c (mono_arch_handle_exception): Resume from the signal handler
and do most of the work on the normal stack even if sigaltstack is disabled.
svn path=/trunk/mono/; revision=157282
A fix for bug #604981
* generic.cs, decl.cs, anonymous.cs: Reset more type arguments
details for nested anonymous methods stories.
svn path=/trunk/mcs/; revision=157251
* HttpServerUtility.cs: Execute checks whether
IAsyncResult.AsyncWaitHandle is not null before attempting to use
it. Fixes bug #604502
svn path=/trunk/mcs/; revision=157221
* exceptions-amd64.c (mono_arch_sigctx_to_monoctx): Simplify this now that
UCONTEXT_REG_ constants are available on linux as well.
(mono_arch_monoctx_to_sigctx): Ditto.
(mono_arch_ip_from_context): Ditto.
svn path=/trunk/mono/; revision=157196
* ConditionalWeakTable.cs: Implement simple open addressing
hash table with linear probing. We use a prime sized table
for an easy hashing and a target load capacity of 70%.
On a synthetic benchmark, a load factor of 70% did not cause
significant performance degradation over 60% as would be
expected.
svn path=/trunk/mcs/; revision=157174
* appdomain.c (create_exceptions): Rename to
create_domain_objects. Create the ephemeron tombstone object.
* domains-internals.h (MonoDomain): Add new field for the
ephemeron tombstone.
* domain.c (mono_domain_free): Set ephemeron_tombstone to
NULL.
svn path=/trunk/mono/; revision=157152
2010-05-11 Martin Baulig <[email protected]>
* debug-mono-symfile.c
(mono_debug_symfile_get_line_numbers): Fallback to the first
non-hidden source file in the method if the line number table ends
with a hidden line.
Fixes#604879.
svn path=/trunk/mono/; revision=157148
* console-unix.c: Signal handlers now save and restore errno. We
have never had a bug report about this, ioctl does change errno.
Hide the unused method.
Remove internal declarations from public headers.
Document what the signal handler is doing
svn path=/trunk/mono/; revision=157132
* class.c (mono_class_alloc): New helper function to centralize memory allocation
for classes, allocates either from the image mempool or from the heap.
* class.c: Use mono_class_alloc to allocate memory owned by classes.
* metadata.c (free_generic_class_dependents): Free more items belonging to
generic classes.
svn path=/trunk/mono/; revision=157130
* sgen-gc.c (mono_gc_clear_domain): Both ephemerons
and dislinks must be processed before LOS since they
could end up with pointers to memory returned to the
OS.
svn path=/trunk/mono/; revision=157129
* ScrollableControl.cs: It seems .Net is creating DockPadding lazyly,
which means that *any* padding for children controls is not applied
*until* DockPadding is accesed using its getter.
* FlowLayoutPanel.cs:
* TableLayoutPanel.cs:
* Form.cs: These children classes need to have the DockPadding
property available *always*, so create it for them in their respective
constructors.
Fixes#599506.
svn path=/trunk/mcs/; revision=157115
* Makefile.am : do not try to build test on windows (fails).
* src/glib.h : fix mingw build breakage; do not include unistd.h.
svn path=/trunk/mono/; revision=157089
* class.c (mono_class_alloc): New helper function to centralize memory allocation
for classes, allocates either from the image mempool or from the heap.
* class.c: Use mono_class_alloc to allocate memory owned by classes.
* metadata.c (free_generic_class_dependents): Free more items belonging to
generic classes.
svn path=/trunk/mono/; revision=157074
Allow parts required to enable SSL to be built with
In .:
2010-05-10 Sebastien Pouliot <[email protected]>
* moonlight_bootstrap_System.dll.sources: Minimal build for
bootstrap. Does not depend on corlib's internals
* moonlight_raw_System.dll.sources: Full raw (pre-tuned) build
for Moonlight - includes SSL code
* moonlight_shared_System.dll.sources: New. Parts that are both
needed for bootstrap and raw builds
svn path=/trunk/mcs/; revision=157066
* SslStream.cs: Allow Moonlight to build the non-server part
of SslStream
* RemoteCertificateValidationCallback.cs: Adjust visibility for
Moonlight build
svn path=/trunk/mcs/; revision=157065
* AsnEncodedData.cs:
* OidCollection.cs:
* Oid.cs:
* OidEnumerator.cs:
Allow parts required to enable SSL to be builtt with
the moonlight profile.
svn path=/trunk/mcs/; revision=157063
* CipherSuite.cs:
* DebugHelper.cs:
* RecordProtocol.cs:
* SslClientStream.cs:
Let them compile for Moonlight (where the files are
compiled inside System.dll)
svn path=/trunk/mcs/; revision=157060
* ExtendedKeyUsageExtension.cs:
* NetscapeCertTypeExtension.cs:
* SubjectAltNameExtension.cs:
Keep them public for Moonlight. Other types in other
assemblies needs it and the linker will eventually
internalize everything.
svn path=/trunk/mcs/; revision=157059
* X509CertificateCollection.cs:
* X509Certificate.cs:
* X509Extension.cs:
* X509Extensions.cs:
Keep them public for Moonlight. Other types in other
assemblies needs it and the linker will eventually
internalize everything.
svn path=/trunk/mcs/; revision=157057
* ASN1.cs: Keep it public for Moonlight. Other types in other
assemblies needs it and the linker will eventually internalize
everything.
svn path=/trunk/mcs/; revision=157056
* DES.cs:
* DESCryptoServiceProvider.cs:
* RC2.cs:
* RC2CryptoServiceProvider.cs:
* TripleDES.cs:
* TripleDESCryptoServiceProvider.cs:
Remove !MOONLIGHT check since we need those for SSL
svn path=/trunk/mcs/; revision=157053
* ListView.cs: Properly adjust SmallChange and LargeChange values for
our scrollbars depending on the view. Also, update the maximum allowed
value when setting the values from SetScrollValue to use the already
available information contained within them.
Fixes the remaining bits of #543785.
svn path=/trunk/mcs/; revision=156985
* debugger-agent.c (insert_breakpoint): Print a more descriptive error message
if a breakpoint cannot be inserted.
svn path=/trunk/mono/; revision=156983
* Mono.CSharp.csproj: add double quotes around path directives
in the prebuild event for jay to support
compile locations with spaces in path.
svn path=/trunk/mcs/; revision=156967
* metadata-verify.c: MS doesn't mind duplicates in the
typeref table. Move it to full verification.
Fixes#600508.
svn path=/trunk/mono/; revision=156948
* HttpResponse.cs:
Output property no longer lazily creates a writer object - it's
created in the internal constructors. If a user sets it to null,
it remains null for good or bad.
Added Output setter for 4.0+
svn path=/trunk/mcs/; revision=156934
* HttpResponse.cs: implemented the following 4.0 methods:
RedirectPermanent, RedirectToRoute, RedirectToRoutePermanent and
RemoveOutputCacheItem.
2010-05-06 Marek Habersack <[email protected]>
* RouteCollection.cs: GetVirtualPath throws ArgumentException
when named route is not found in the collection.
2010-05-06 Marek Habersack <[email protected]>
* OutputCacheModule.cs: added a 2.0 internal property to return
the internal provider used in this profile.
* OutputCache.cs: added internal RemoveFromProvider method to
remove items from the indicated provider.
svn path=/trunk/mcs/; revision=156933
* Path.cs: vararg overload of Combine now correctly concatenates
segments.
The 3 and 4 argument overloads of Combine check whether the passed
segments are null or not.
2010-05-08 Marek Habersack <[email protected]>
* PathTest.cs: added tests for the 4.0 Combine overloads.
svn path=/trunk/mcs/; revision=156928
* appdomain.c (mono_domain_has_type_resolve): Check for
NULL domain objects to make pedump happy.
* object.c (mono_field_get_value): Assert on NULL object.
It's the caller resposibility to check for this.
* object.c (mono_field_get_value_object): Ditto.
Fixes#601384.
svn path=/trunk/mono/; revision=156924
* icall.c (ves_icall_type_is_subtype_of): Non iface subtype
checks can avoid doing a mono_class_init.
* icall.c: Remove mono_class_init from a bunch of icalls that
don't need it.
Hopefully we're now lazy enough to fix most victims of #601431.
svn path=/trunk/mono/; revision=156922
* debugger-agent.c (frame_commands): Return an error instead of asserting if
no JIT info is found for the method.
svn path=/trunk/mono/; revision=156914
* culture-info-tables.h: updated to include en-TT culture. Fixes
bug #594035
2010-05-07 Marek Habersack <[email protected]>
* Makefile.am (lang-data, locale-data): updated URLs for the icu
tarballs - they now live on go-mono.com
svn path=/trunk/mono/; revision=156903
* Mono.Math/BigInteger.cs: If the BigInteger is instantiated with a
zero length array, replace it with an array of length 1 so we don't
hit inexplicable IndexOutOfRange exceptions later on. Fixes#556533.
svn path=/trunk/mcs/; revision=156878
Move mono_class_init from mono_type_get_object to icalls.
This causes massive memory savings for Assembly::GetTypes () and
make it fail a lot less due to missing dependencies.
This is a conservative, naive change as it doesn't remove some
mono_class_init from places that might not need them. Carefull
review of those should follow.
* reflection.c (mono_type_get_object): Don't mono_class_init the
returning type.
* reflection.c:
* cominterop.c:
* icall.c:
* marshal.c: Call mono_class_init in functions receiving a MonoType
object.
First step into fixing #601431.
svn path=/trunk/mono/; revision=156867
* ConditionalWeakTable.cs: Discard old broken version. New
version user proper runtime support. Currently it performs
linear search over the keys, which is dog slow but it's a
good start.
svn path=/trunk/mcs/; revision=156851
* gc-internal.h: Add new functions required for ephemeron support.
* gc.c: Implement ves_icall_System_GC_register_ephemeron_array.
* icall-def.h: Add GC::register_ephemeron_array.
* object.c (compute_class_bitmap): sys.rt.cs.Ephemeronis an opaque type
under sgen. Its fields must not be marked.
* sgen-gc.c (mono_gc_clear_domain): Call cleanup function for ephemerons.
* sgen-gc.c (finish_gray_stack): Mark all reachable ephemerons before
handling finalizable objects. Clean dead ones after all finalizable
handling.
* sgen-gc.c (dump_heap): Add new kind of internal memory.
* sgen-gc.c (null_ephemerons_for_domain): Remove from the list ephemeron
arrays from the dead domain.
* sgen-gc.c (clear_unreachable_ephemerons): Clear dead ephemerons entries.
* sgen-gc.c (mark_ephemerons_in_range): Mark/Copy all ephemeron values
whose keys are reachable.
* sgen-gc.c (mono_gc_ephemeron_array_add): Register the array into the
list of live ephemeron arrays.
svn path=/trunk/mono/; revision=156847
* ListView.cs: When calculating the scrollbars, take into account the
height of the horizontal scrollbar (if visible) to assign the maximum
value for our vertical one.
Fixes#543785.
svn path=/trunk/mcs/; revision=156789
local vars in Add and AddSorted, so we have better readibility.
Patch from Thomas Goldstein ([email protected]).
2010-05-06 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156785
* TreeNodeCollectionTest.cs: New test for the return value of Add with
sorting applied.
Patch from Thomas Goldstein ([email protected]).
svn path=/trunk/mcs/; revision=156784
position of that node instead of returning the count.
Patch from Thomas Goldstein ([email protected]).
2010-05-06 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156783
* TreeNodeCollection.cs: In SetupNode remove the redundant check,
since we only need to have a valid tree view to call UpdateBelow.
Patch from Thomas Goldstein ([email protected]).
svn path=/trunk/mcs/; revision=156778
* class.c (mono_class_layout_fields): Don't perform alignment
if align is zero.
* class.c (mono_class_layout_fields): Init field related
* information
to sane defaults.
svn path=/trunk/mono/; revision=156764
* class.cs (TypeContainer.DefineBaseTypes)
(TypeContainer.CheckRecursiveDefinition): check for the iface not
being null, as we could have failed resolution and crashed;
Fixes#442144
svn path=/trunk/mcs/; revision=156759
* cs-parser.jay: Productions to catch common mistakes when other
punctuation operators are used instead of comma. Fixes 571702
svn path=/trunk/mcs/; revision=156757
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Protect against a NULL sigctx
in debug printf.
2010-05-05 Jonathan Chambers <[email protected]>
* mono-semaphore.c: Implement alertable wait on Windows similar to
other platforms. Always be alertable, but only return from wait if
user requested alertable state. Fixes soft debugger on Windows.
Code contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=156752
* mini-amd64.c (mono_arch_get_trampolines): New arch specific function returning
a list of arch specific trampolines.
* aot-compiler.c (emit_trampolines): Use it.
svn path=/trunk/mono/; revision=156728
* tramp-<ARCH>.c exceptions-<ARCH>.c mini-trampolines.c mini-exceptions.c
aot-compiler.c: Use the _full trampoline creation functions on all platforms,
get rid of the _full from their name.
svn path=/trunk/mono/; revision=156726
In class/System.Core/System.Linq/:
* ParallelEnumerable.cs: Some operators weren't declared
as extension methods. Fixed.
svn path=/trunk/mcs/; revision=156723
* CollectionBuilder.cs: if a type has more than on indexer, check
all of them for type compliance in GetChildControlType. Fixes bug
#601290. Patch from Kalyanov Dmitry <[email protected]>,
thanks!
svn path=/trunk/mcs/; revision=156714
* RouteValueDictionary.cs: do not process type fields in
RouteValueDictionary (object)
* RouteCollection.cs: GetRouteData throws an exception if Request
is null in the passed context.
Added Ignore* and MapPageRoute* 4.0 APIs
* RequestContext.cs: 4.0 API update
* PatternParser.cs: match parser rewrite to encompass 4.0 bug
fixes. We don't emulate some of the pre-4.0 routing bugs anymore.
svn path=/trunk/mcs/; revision=156695
* ListView.cs: Just as we did with TreeView, start the drag
computation in MouseDown instead of MouseMove, in order to avoid
firing the ItemDrag event more than one time per clicked item.
svn path=/trunk/mcs/; revision=156691
is enabled. Don't set HideSelection since it's preventing us
from correctly hide the selection when needed. Finally connect a
handler in case our parent ComboBox gets its Enabled state changed.
Fixes#600433.
2010-05-03 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156650
position from MouseDown to MouseMove - we need to make sure
that the OnItemDragged event is fired only *one* time per element
clicked.
Fixes#551734.
2010-05-03 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156643
* TreeNodeCollection.cs: Instead of Sorting from SetupNode, do it
directly from Add (which uses AddSorted for this purpose) and Insert.
This way we first avoid a double sort, take advantage of our fast
version of Add for the default sorting, and also supress the call to Sort
when using our indexer setter (.Net ignores the sorting in this case).
svn path=/trunk/mcs/; revision=156602
any previous collection. Even if this seems a little buggy, this is
what .Net does.
Fixes#601766.
2010-05-02 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=156595
* src/glib.h: Include unistd.h on !windows for pid_t.
* gspawn.c: Add an extern define for environ on !apple platforms.
svn path=/trunk/mono/; revision=156594
* StatusStrip.cs: In SetDisplayedItems call ClearInternal on
displayed_items instead of Clear, since this is only an internal
collection and we don't want to have our items have their Parent/Owner
modified.
Fixes the remaining bits of #590100.
svn path=/trunk/mcs/; revision=156593
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Unify
major_do_collection() across the two major collectors.
svn path=/trunk/mono/; revision=156591
* DataGridViewCell.cs: Avoid a NRE in GetValue if the cell doesn't
have a DataGridView associated yet.
[Fixes bug #600786]
svn path=/trunk/mcs/; revision=156588
* mini-amd64.c (mono_arch_emit_load_aotconst): New arch-specific function.
* tramp-amd64.c: Use emit_load_aotconst to remove some code duplication.
svn path=/trunk/mono/; revision=156579
* aot-runtime.c (init_plt): Make the default entries point to the AOT trampoline,
there is no need to jump through the first plt entry.
svn path=/trunk/mono/; revision=156577
* aot-runtime.c (mono_aot_get_plt_entry): Move the arch specific parts to an
arch-specific function.
(mono_aot_get_plt_info_offset): Ditto.
svn path=/trunk/mono/; revision=156575
* aot-runtime.c (mono_aot_register_jit_icall): New helper function called from
mono_arch_init () to register jit icalls called from full-aot trampolines.
(load_function): Get rid of the arch specific #ifdefs, move the relevant code
to mini-<ARCH>.c.
svn path=/trunk/mono/; revision=156574
* exceptions-amd64.c (mono_arch_get_throw_corlib_exception_full): Get rid of
the specialized throw corlib exception trampoline, use a variant of the normal
trampoline along with a new C function which does the call to
mono_exception_from_token (), just like on x86.
svn path=/trunk/mono/; revision=156573
* mini-trampolines.c aot-compiler.c tramp-<ARCH>.c exceptions-<ARCH>.c:
Reorganize the full aot trampoline creation functions, instead of taking a bunch
of out arguments, they will now take a MonoTrampInfo** out argument. Simplify
some code in aot-compiler.c because of this. Remove the non-full aot trampoline
creation functions on architectures which have the full-aot ones.
svn path=/trunk/mono/; revision=156572
* ToolStripItemCollection.cs: When calling Clear set Owner and Parent
properties to null for each of the items in the collection, just as
Remove/RemoveAt do. Implement a ClearInternal method that clears the
collection without modifying the mentioned properties.
* ToolStrip.cs:
* ToolStripOverflow.cs: Call ToolStripItemCollection.ClearInternal
for our internal collections.
This should fix#590100, which producing a race when the garbage
collector was calling ToolStripItem.Dispose, which in turn was firing
a Layout in the ToolStrip.
svn path=/trunk/mcs/; revision=156564
* mini-ppc.c (mono_arch_emit_exceptions): Initialize exc_throw_pos/found
explicitly, this seems to be required by some gcc versions at -O2.
* mini-arm.c: Ditto.
svn path=/trunk/mono/; revision=156562
* mini.h (MonoAotTrampInfo): Rename this to MonoTrampInfo, add patches/unwind
info fields.
* aot-compiler.c (mono_aot_tramp_info_create): Rename to mono_tramp_info_create,
add patches/unwind info arguments, move to mini.c.
* mini-<ARCH>.c aot-compiler.c: Update after the above changes.
svn path=/trunk/mono/; revision=156553
* debugger-agent.c (type_commands): Add a new CMD_TYPE_GET_SOURCE_FILES_2
command which returns full path names.
svn path=/trunk/mono/; revision=156535
* generics.cs, delegate.cs: Implement output type inference of
methodgroup now when the specification was cleared at least little
bit.
svn path=/trunk/mcs/; revision=156523
Minus L M is
Explicit mathematics -
Abelian group?
-- Andreas F.
Mac OS X has math functions in libSystem.dylib and a libm.dylib symlink.
Haiku has them in libroot.so and no libm.so, like BeOS and Zeta.
The use of -lm seems almost Lipschitz-continuous, let's constrain it
to its domain of definition.
* configure.in: Check for -lm necessity.
Fixes linking on Haiku.
v1 -> v2:
* Use autoconf check instead of platform-based switch
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed unter the CC Attribution 3.0 license.
svn path=/trunk/mono/; revision=156468
* mini-x86.c (mono_arch_emit_prolog): Remove a disable_aot which is not needed.
(mono_arch_cpu_optimizazions): Make this a no-op when running with full aot.
(mono_arch_cpu_enumerate_simd_versions): Ditto.
svn path=/trunk/mono/; revision=156453
In class/System.Core/System.Linq/:
* ParallelQueryEnumerator.cs: Use new non-blocking collection
for storing indexed elements.
In class/System.Core/System.Linq/Internal/:
* OrderingEnumerator.cs: Use new non-blocking collection
for storing indexed elements.
svn path=/trunk/mcs/; revision=156433
A fix for bug #421737
* convert.cs, expression.cs: A boxing conversion exists from a
nullable-type to a reference type, if a boxing conversion exists
from the underlying non-nullable-value-type to the reference type.
svn path=/trunk/mcs/; revision=156429
* AppResourcesAssemblyBuilder.cs: when running on windows,
SetAlPath must return al.exe path with a trailing space, or
otherwise the process won't start. Fixes bug #600691
svn path=/trunk/mcs/; revision=156382
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Have separate
blocks for objects without references in mark&sweep, to improve
performance.
svn path=/trunk/mono/; revision=156377
A fix for bug #566511
* anonymous.cs: Always get inflated version of hoisted variable
on generic type definition.
svn path=/trunk/mcs/; revision=156355
* CheckBoxListTest.cs: added test for bug #600415
2010-04-28 Marek Habersack <[email protected]>
* CheckBoxList.cs: do not modify list item status in LoadPostData
when the list control is disabled.
If an item is selected and it was unchecked by the user, deselect
it. Fixes bug #600415
svn path=/trunk/mcs/; revision=156312
* XmlInputStream.cs : minimize initial buffer size so that it does
not mostly block some readers. Fixed bug #591291.
svn path=/trunk/mcs/; revision=156280
* XmlDocument.cs : it seems .net does allow Load() with such an xml
reader positioned in the middle of the document. Fixed bug #598953.
* XmlDocumentTests.cs : add test for bug #598953.
svn path=/trunk/mcs/; revision=156278
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* KeyedList.cs: do not implement IStateManager in 4.0
2010-04-28 Marek Habersack <[email protected]>
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (common_dirs): added System.Web.ApplicationServices
2010-04-28 Marek Habersack <[email protected]>
* RolePrincipal.cs: class is not sealed in 4.0
* MembershipUser.cs: type forwarded to
System.Web.ApplicationServices in 4.0.
In the 4.0 profile, a MembershipHelper instance is created using
reflection, so that the Membership class and password
encryption/decryption services can be accessed without referencing
System.Web
* MembershipProvider.cs: type forwarded to
System.Web.ApplicationServices in 4.0.
{Encrypt,Decrypt}Password implementations moved to
MembershipHelper.
Added new EncryptPassword overload for 4.0
* MembershipHelper.cs: a helper class to handle password
encryption/decryption and to forward requests for certain
Membership properties in 4.0. It is used also in 2.0 to keep code
cleaner. System.Web.ApplicationServices uses it to access the
Membership class without having to reference System.Web
* MembershipCreateStatus.cs, MembershipCreateUserException.cs,
MembershipPasswordException.cs, MembershipPasswordFormat.cs,
MembershipProviderCollection.cs, MembershipUserCollection.cs,
MembershipValidatePasswordEventHandler.cs, RoleProvider.cs,
ValidatePasswordEventArgs.cs:
types forwarded to System.Web.ApplicationServices in 4.0
* FormsIdentity.cs: class is not sealed in 4.0
svn path=/trunk/mcs/; revision=156264
* dwarfwriter.c (emit_line_number_info): Get rid of the usage of GArray, so
line number support works with eglib.
svn path=/trunk/mono/; revision=156258
* load-missing.il: Make BrokenClass inherit from a class in t, not mscorlib, so
mcs can load load-missing.dll as a reference.
svn path=/trunk/mono/; revision=156256
* Makefile.am (DISABLED_TESTS): Add gc-altstack.exe since it randomly fails
under Boehm, which can't handle threads which are executing on an altstack during
stack marking.
svn path=/trunk/mono/; revision=156255
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Support
heap-dump for mark&sweep.
2010-04-27 Mark Probst <[email protected]>
* scripts/mono-heapviz: If the major sections are too small, use a
larger width.
svn path=/trunk/mono/; revision=156249
* driver.c, mini.c: Since linking with LLVM makes the default Mono
dirty an extra 70kb pages on startup we are now going to choose a
different strategy: ship mono and mono-llvm binaries, with the
second being the one that links with LLVM and defaults to LLVM
being enabled.
svn path=/trunk/mono/; revision=156193
* loader.c (mono_method_get_header): Move the is_inflated case before the
wrapper case, as a method can be both.
svn path=/trunk/mono/; revision=156187
* tramp-x86.c exceptions-x86.c mini-x86.c aot-compiler.c aot-runtime.c:
Implement full-aot support on x86.
* method-to-ir.c: Always use a got var on x86 too, just like on ppc, because the
trampolines depend on it. Use MONO_ARCH_GOT_REG as the got register, instead of
the first register returned by get_global_int_regs ().
* cpu-x86.md: Fix the length of insertx_u1_slow.
* iltests.il.in: Disable tail call tests when running with full-aot.
svn path=/trunk/mono/; revision=156186
* *.cs: Major rewrite of compiler internals to better work with
unmodified System.Reflection.Emit. Some of the key changes are
- TypeSpec replaces reflection specific System.Type.
- All Type(TypeSpec) operations are now done in compiler therefore
no dependency on SRE to inflate generic members and types or to
query unclosed types.
- MemberCache is now the only and full hierarchical topology.
- Generic constraints are implemented properly.
- And as a bonus compilation is on average 30% faster.
svn path=/trunk/mcs/; revision=156161
* ToolStripSplitButton.cs:
* ToolStripDropDownItem.cs:
* ToolStripMenuItem.cs: Update overrides.
* ToolStripItem.cs: Pass the number of clicks to HandleClick when
firing OnMouseUp, so we can later fire either OnClick or
OnDoubleClick.
Fixes#558632.
svn path=/trunk/mcs/; revision=156160
* RichTextBox.cs: When emitting the complete RTF value escape chars
above 0x80, at .Net seems to do. This way we are able to make
round-trip assignations between the setter and getter of the
RichTextBox.Rtf property.
Fixes part of #586901.
svn path=/trunk/mcs/; revision=156156
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Don't do a
separate pass to scan pinned and large object but use the gray
queue like for regular objects.
svn path=/trunk/mono/; revision=156151
* HttpException.cs: implemented 4.0 property WebEventCode, also
made it available in the 2.0 profile as internal.
Added a method with several overloads, NewWithCode, which creates
an instance of HttpException and sets the web error code.
* HttpApplication.cs, HttpRequest.cs, HttpRuntime.cs: use
HttpException.NewWithCode for some exceptions.
svn path=/trunk/mcs/; revision=156150
* DataGridView.cs: Handle all possible cases for when a new column is
added and there are existing rows with existing cells both in the
non-databound and the databound scenario.
[Fixes bug #583387]
svn path=/trunk/mcs/; revision=156146
* IProcess.cs:
* VirtualMachine.cs:
* VirtualMachineManager.cs:
Added new IProcess interface which wraps the debugged process.
This abstraction makes it easier to support debugging processes
for which we don't have a direct Process reference (for example,
if the process is remote).
svn path=/trunk/mcs/; revision=156112
* configure.in: Applied patch from Robert Nagy ([email protected]). Add
sys/param.h dependencies to a few checks.
svn path=/trunk/mono/; revision=156097
* boehm-gc.c: Applied patch from Robert Nagy ([email protected]). Include
string.h for memmove.
socket-io.c: Applied patch from Robert Nagy ([email protected]).
ipaddress_to_struct_in6_addr() is only needed when
defined(HAVE_STRUCT_IP_MREQN) || defined(HAVE_STRUCT_IP_MREQ).
svn path=/trunk/mono/; revision=156093
* XamlObjectReader.cs : now it can look into values and pick up
more required namespace prefixes.
* XamlObjectReaderTest.cs : enable working tests.
* XamlTypeTest.cs : added a test for GetAliasedProperty().
svn path=/trunk/mcs/; revision=156080
* XplatUIX11.cs: When retrieving data from the x11 clipboard and we
are using either XA_STRING or OEMTEXT try to detect if we have escaped
unicode chars, and unescape them as needed. This us used by some
(gnome) applications to pass unicode chars in a non-unicode context.
Fixes#596402.
svn path=/trunk/mcs/; revision=156075
names within EcmaHelpSource.MakeOperatorSignature() (where "full" is
"whatever is included in ECMA-335 §10.3.1 through §10.3.3").
Fixes InvalidOperationException reported to mono-docs-list.
svn path=/trunk/mcs/; revision=156071
* configure.ac: The iconv function may be libiconv_open.
Fixes linking with GNU libiconv.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=156061
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Properly
separate copy_object functions for major vs nursery. Allows us to
get rid of a few checks and the start and end parameters for many
functions.
svn path=/trunk/mono/; revision=156057
* sgen-marksweep.c, sgen-gc.c, sgen-major-copying.c,
sgen-protocol.c, sgen-protocol.h, Makefile.am: Major Mark&Sweep
collector.
2010-04-25 Mark Probst <[email protected]>
* tools/sgen/sgen-grep-binprot.c: Support for major Mark&Sweep
collector.
svn path=/trunk/mono/; revision=156056
* class.c (mono_class_create_from_typedef): Initialize class->nested_in after
calling setup_mono_type () since the nested parent could recursively reference
the nested class using generic constraints. Fixes#599469.
svn path=/trunk/mono/; revision=156052
* DataGridViewColumnCollection.cs: When adding a column also
set the DisplayIndex if its now set by the user already.
* DataGridViewColumnCollectionTest.cs: Add tests for bug #583387.
[Fixes bug #583387]
svn path=/trunk/mcs/; revision=156050
* mini.c: Use MONO_USE_LLVM as an environment flag to turn the use
of LLVM on by default. Used for buildbots and other setups.
svn path=/trunk/mono/; revision=156035
* MemoryCacheTest.cs, ObjectCacheTest.cs: added
* HostFileChangeMonitorTest.cs: added more tests.
2010-04-24 Marek Habersack <[email protected]>
* AppDomainTools.cs, AssertExtensions.cs, PokerChangeMonitor.cs,
PokerMemoryCache.cs, PokerObjectCache.cs,
TestNotificationSystem.cs: added
2010-04-24 Marek Habersack <[email protected]>
* ObjectCache.cs: implemented all the non-abstract methods.
* MemoryCacheContainer.cs, MemoryCacheEntry.cs,
MemoryCacheEntryChangeMonitor.cs,
MemoryCacheEntryPriorityQueue.cs,
MemoryCachePerformanceCounters.cs: added
* MemoryCache.cs: implemented physical memory size detection, item
expiration timer, indexer, reading of configuration values from
config files, cache memory limit calculation, the
AddOrGetExisting, Set, Get, Contains,
CreateCacheEntryChangeMonitor, Dispose, GetCacheItem, GetCount,
GetEnumerator, GetValues, Remove and Trim methods.
Implemented support for per-cpu item containers.
Modified parameters of several methods to match .NET 4.0 release.
* HostFileChangeMonitor.cs: implemented according to tests.
* Helpers.cs: added new properties, StringComparer and Is64bit
* FileChangeNotificationSystemEntry.cs: added
* FileChangeNotificationSystem.cs: implemented
* ChangeMonitor.cs: NotifyOnChanged now properly throws an
exception if it was called more than once.
* CacheEntryRemovedReason.cs: renamed from
CacheEntryRemoveReason.cs
* CacheEntryChangeMonitor.cs: renamed from CacheEntryMonitor.cs
2010-04-24 Marek Habersack <[email protected]>
* MemoryCacheSettingsCollection.cs: added and implemented methods
which appeared in .NET 4.0 final.
svn path=/trunk/mcs/; revision=156032
* FtpDataStream.cs:
* FtpWebRequest.cs: use streams instead of sockets as soon as
possible. Correctly initialize the control connection when SSL
is used.
Fixes bug #598908.
svn path=/trunk/mcs/; revision=156028
* Context.cs:
* SslStreamBase.cs:
* RecordProtocol.cs: differentiate a received 'CloseNotify' alert from
one that we sent. Disposing the stream will try to send the
'CloseNotify' alert, if it hasn't already, and ignore any errors. This
is needed for FTPS to work.
svn path=/trunk/mcs/; revision=156027
* domain.c (get_runtime_by_version): renamed to
mono_get_runtime_by_version.
* domain-internals.h: expose mono_get_runtime_by_version as
an internal function.
* assembly.c (mono_assembly_load_from_full): check if the image
references a newer runtime than the current executing one, and
mark it as invalid if it's the case.
svn path=/trunk/mono/; revision=156014
* threadpool.c: patch from Robert Nagy that fixes a nullref and
uses mono_sem_wait instead of mono_sem_timedwait for openbsd.
svn path=/trunk/mono/; revision=156012
* HttpListenerManager.cs : fixed the issue that mex_info is never
retrieved from the latest channel listener (which could be other
listener than the one which was set mex info).
* ServiceMetadataExtension.cs : raise an error if it failed to set
mex info. (Make it safer.)
svn path=/trunk/mcs/; revision=155991
2010-04-23 Rolf Bjarne Kvinge <[email protected]>
* moonlight_raw_System.Core.dll.sources: Include Lazy.cs and
LazyThreadSafetyMode.cs from corlib in here.
In class/corlib:
2010-04-23 Rolf Bjarne Kvinge <[email protected]>
* moonlight_raw_corlib.dll.sources: Don't include Lazy.cs here. It's in
System.Core.dll.
In class/corlib/System.Threading:
2010-04-23 Rolf Bjarne Kvinge <[email protected]>
* LazyThreadSafetyMode.cs: Include in Moonlight build.
In class/corlib/System:
2010-04-23 Rolf Bjarne Kvinge <[email protected]>
* Lazy.cs: Include in Moonlight build.
svn path=/trunk/mcs/; revision=155983
* HttpChannelListener.cs, HttpListenerManager.cs :
actually it should be ChannelDispatcher-to-HttpChannelListener,
to identify which dispatcher to send reqs.
* ServiceHostBase.cs: (ditto)
svn path=/trunk/mcs/; revision=155982
* ServiceHostBase.cs : add host-to-http-listener mapping so that
they can be managed per host.
* HttpTransportBindingElement.cs,
HttpChannelListener.cs,
HttpListenerManager.cs : add host-to-http-listener mapping so that
they can be managed per host.
* ServiceMetadataExtension.cs : reflect DispatcherBuilder change.
svn path=/trunk/mcs/; revision=155974
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: Really apply canonical reordering "recursively."
Before this, a sequence of code points with the combining
classes (22, 33, 11) would be reordered to (22, 11, 33) instead of
the correct (11, 22, 33). This is because the 'i--' would be
directly cancelled by the 'i++' in the for loop.
svn path=/trunk/mcs/; revision=155966
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: The correct "checkType" argument to
Decompose() is NKD or NKFD when normalizing to NKC resp. NKFC.
* StringTest.cs: More NFC test cases.
svn path=/trunk/mcs/; revision=155965
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: Implement algorithmic Hangul composition.
Calling Normalize(NormalizationForm.FormC) on Korean characters
now works properly (bnc#480152).
* StringTest.cs: Add test cases for Hangul composition.
svn path=/trunk/mcs/; revision=155964
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: Follow the spec when checking composition pairs.
Figure 7 in section 1.3 of http://unicode.org/reports/tr15/ shows
how when doing composition, one has to examine the successive
(starter, candidate) pairs, and combine if a matching canonical
decomposition exists.
The original algorithm was, instead, iterating on canonical
decompositions, and, for each one, trying to match a sequence
of (starter, non-starter, ...). This, however, does not produce
the same results as it is violating some implicit ordering
constraints in the Unicode tables.
E.g., when composing the following sequence of codepoints, the
original algorithm was picking:
03B7 0313 0300 0345
^^^^ ^^^^
1F74 0313 0345
^^^^ ^^^^
1FC2 0313
and would stop at 1FC2 0313 as there is no decomposition matching
it. The new algorithm, which follows the guidance of the pretty
figure 7, ends up doing:
03B7 0313 0300 0345
^^^^ ^^^^
1F20 0300 0345
^^^^ ^^^^
1F22 0345
^^^^ ^^^^
1F92
resulting in the correct 1F92.
svn path=/trunk/mcs/; revision=155963
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152
* Normalization.cs: Recursively apply the Unicode decomposition mapping.
According to http://www.unicode.org/reports/tr15/tr15-31.html,
section 1.3:
"To transform a Unicode string into a given Unicode Normalization
Form, the first step is to fully decompose the string. [...] Full
decomposition involves recursive application of the
Decomposition_Mapping values, because in some cases a complex
composite character may have a Decomposition_Mapping into a
sequence of characters, one of which may also have its own
non-trivial Decomposition_Mapping value."
svn path=/trunk/mcs/; revision=155962
* TimeSpan.cs: The final 4.0 release removed the restriction of
preceding zeroes when parsing, and it also added 't' and 'T' as valid
formats equivalent to 'c' (default).
svn path=/trunk/mcs/; revision=155955
* XamlMemberInvoker.cs : make sure GetValue() is not supported
on directives.
* XamlMemberInvokerTest.cs : make sure GetValue() is not supported
on directives.
svn path=/trunk/mcs/; revision=155946
* XamlObjectReader.cs, TypeExtensionMethods.cs : now it can return
Type name correctly, with INamespacePrefixLookup implementation.
* XamlObjectReaderTest.cs : enabled working tests. Add decent
namespace declaration node assertions in the next tests.
svn path=/trunk/mcs/; revision=155945
* XamlObjectReader.cs, TypeExtensionMethods.cs : handle System.Type
as predefined type that returns Value instead of StartObject.
Rename some member getter methods to explicitly limit the scope to
object readers so far.
svn path=/trunk/mcs/; revision=155942
* XamlMemberInvokerTest.cs : make sure that the invoker returns Type
for Type member here. (XamlObjectReader returns string for some
cases, so I wanted to make sure it is *not* here.)
svn path=/trunk/mcs/; revision=155941
* BindingContext.cs : require a TransportBindingElement when
building a channel listener.
* CustomBindingTest.cs : enable BuildChannelListener test for no-
transport case. Test CanBuildChannelListener too.
svn path=/trunk/mcs/; revision=155857
* XDocument.cs : don't prohibit DTD.
* XNodeNavigator.cs : do not return true in MoveToFirstChild()
when there is no child node. Fixed bug #594877.
* XNodeNavigatorTest.cs : added test for bug #594877. Enable and fix
tests that were commented out.
svn path=/trunk/mcs/; revision=155854
* XmlTextReader.cs, DTDReader.cs : 0xFFFF was treated as if it were
0x10000. (It is invalid and should be rejected by decent
XmlReaders usage though.) Fixed bug #594628.
svn path=/trunk/mcs/; revision=155853
* HttpApplication.cs: update to fix for bug #572469 - ProcessError
clears the error after handler return only if stop_processing is
true. Also, stop_processing is never set before calling ProcessError
Also added two more tests for the issue.
svn path=/trunk/mcs/; revision=155841
* reflection.c (mono_custom_attrs_from_index): Use right function
to free 'list' (i.e. g_list_free) if the verifier fails.
svn path=/trunk/mono/; revision=155834
* TypeBuilder.cs (CreateType): Move default constructor
and createTypeCalled assignment to before the parent checks.
* TypeBuilder.cs (is_created): Return true even if creation
fails.
Fixes#331126
svn path=/trunk/mcs/; revision=155832
* Binder.cs (SelectMethod): Exact matching must check
all entries because if two of them match, we must use
the slow path.
* Binder.cs (GetBetterMethod): Don't give generic method
definition special treatment.
Fixes#325306.
svn path=/trunk/mcs/; revision=155828
* configure.in: Check for the asm/sigcontext.h header.
* mono/mini/exceptions-arm.c: Remove platform checks in favor of
configure checks.
* mono/io-layer/collection.c: Cleanup platform checks around
pthread_attr_setstacksize(), and instead always use
MAX(65536, PTHREAD_STACK_MIN) as the stack size.
* mono/io-layer/mono-mutex.c: Remove near duplicate
pthread_mutex_timedlock() declarations, and merge via a CONST_NEEDED
intermediate #define.
svn path=/trunk/mono/; revision=155826
It's unnecessary (for !target_win32, pthreads are checked again
later in configure.in), and it breaks Android (which doesn't have
libpthread, but DOES have pthreads in libc).
svn path=/trunk/mono/; revision=155800
* TypeExtensionMethods.cs : add IsContentValue() for member and
return true for "_Initialization".
* XamlObjectReader.cs : use above.
* XamlObjectReaderTest.cs : added a bunch of read detail tests (lots
on not-working ones).
svn path=/trunk/mcs/; revision=155798
* OperationInvokerHandler.cs : workaround NRE issue in AsyncCallTest.
The original code was worse than this workaround.
svn path=/trunk/mcs/; revision=155788
* verify.c: Handle the case where mono_type_get_underlying_type_any
returns NULL. Remove duplicated code between MONO_TYPE_GENERICINST
and MONO_TYPE_VALUETYPE in those case.
Based on a slightly modified patch by Sebastien Pouliot <[email protected]>
Hopefully Fixes#564253.
svn path=/trunk/mono/; revision=155771
* domain-internals.h: made threadpool_jobs volatile.
* mono-wsq.c: add an assert to verify that the threadpool cleaned up
all local jobs.
* threadpool.c:
-When two threads try to initialize the socket IO pool,
the second one waits until the intialization is finished
instead of continuing right away.
-Add checks for domain unload: no items added in this case.
-Only measure the time every 10 elements added to the queue.
This is an experiment since linux x86 gettimeofday() sucks.
-Create new thread if there are none waiting for work items.
-There was a missing decrement of the busy threads.
-Make sure the local queue is cleaned up before exiting the
thread when the program ends.
svn path=/trunk/mono/; revision=155767
terms of g_critical() instead of printf, and turn g_printerr() into
an actual function instead of a macro.
* src/goutput.c: Add Android support, sending g_print(), g_printerr(),
and g_log() messages to the Android system log.
svn path=/trunk/mono/; revision=155763
just blindly linking to -lpthread, as Android includes pthread
support within libc and doesn't provide a separate libpthread.
Android's <string.h> pulls in <malloc.h> (unlike glibc), resulting
in a build error in mono/utils/mono-codeman.c due to
`struct mallinfo` re-declaration. Define HAVE_USR_INCLUDE_MALLOC_H
if /usr/include/malloc.h is present to avoid this.
* mono/io-layer/collection.c, mono-mutex.c: Add Android support.
* mono/mini/exceptions-arm.c: Add Android support for sigcontext
structure.
svn path=/trunk/mono/; revision=155759
Android doesn't provide all the headers, structure members, and
functions that a "full" Linux distro includes.
* support/dirent.c, support/grp.c, support/macros.c, support/pwd.c,
support/signal.c, support/sys-statvfs.c, support/sys-time.c,
support/unistd.c: Add #if HAVE_XXX checks for functions which aren't
provided on Android.
svn path=/trunk/mono/; revision=155753
* reflection.c (mono_type_get_object): Normalize generics types
as to how managed code expect them to be. A generic instance
over
the GTD arguments must have the same mirror as the GTD itself.
Fixes#473289.
svn path=/trunk/mono/; revision=155750
don't use glibc, and uses `environ` instead of `__environ`.
* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
just blindly linking to -lpthread, as Android includes pthread
support within libc and doesn't provide a separate libpthread.
svn path=/trunk/mono/; revision=155747
* Theme.cs:
* ThemeWin32Classic.cs: Add a HideBalloonWindow method to force to
close an active balloon window.
* XplatUIX11.cs: When removing from the system tray try to close
the balloon window. This is important when we hide a NotifyIcon and
thus need to close its related balloon window as well.
Fixes bits of #590093.
2010-04-19 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=155713
* XplatUIX11.cs: When adding a NotifyIcon to the system tray, mark its
Hwnd.mapped as true, since its handle is going to be mapped later by
the tray (not us), but we need to know it's alive and can later properly unmap
it.
Fixes part of #590093.
svn path=/trunk/mcs/; revision=155705
* HttpReplyChannel.cs : use local var to hold wait handle to avoid
possible NRE on field. Based on the patch by Matt Dargavel.
svn path=/trunk/mcs/; revision=155692
* XamlType.cs : do not return index property.
* TypeExtensionMethods.cs : return Initialization only for value nodes.
* XamlObjectReader.cs : member content can be either a value or a new
object. Fix certain EndObject transition to become EndMember, not
EndObject twice.
* XamlObjectReaderTest.cs : enable working test.
svn path=/trunk/mcs/; revision=155685
* XamlObjectReader.cs, XamlSchemaContext.cs, XamlLanguage.cs:
collect namespace declarations first. Remove extra [XmlnsPrefix]
on the assembly, and handle it specially in GetPreferredPrefix(),
svn path=/trunk/mcs/; revision=155682
* XamlType.cs : ignore ReferenceConverter which is used for IList<T>.
* XamlObjectReaderTest.cs : add simple read tests for some types.
svn path=/trunk/mcs/; revision=155680
* System/Uri.cs (CompactEscaped): New. Check if scheme allows escaped
path characters are compacted (list of schemes obtained from MSDN).
(Reduce): Add argument that is set if escaped characters need to
be compacted.
* Tests/System/UriTest.cs (FtpRootPath): New. Check that ftp root paths are
unmolested.
svn path=/trunk/mcs/; revision=155670
* mini.c (mono_jit_compile_method_inner): Implement the check for native func
wrappers correctly now that their wrapper info is NULL.
svn path=/trunk/mono/; revision=155659
* TreeNodeCollection.cs: When adding/inserting/setting a new node call
TreeView.Sort if needed, and update/recalculate this entire
collection in that case.
* TreeView.cs: Make 'sorted' internal, instead of directly using
Sorted, as this one could trigger a complete Sort() operation.
svn path=/trunk/mcs/; revision=155655
build/profiles/net_4_0_bootstrap.make (PROFILE_MCS_HAS_BOOTSTRAP_FALLBACK):
New. Can be set if we have BOOTSTRAP_PROFILE listed in the
MONO_PATH of MCS, and the profile's System.dll depends features
the profile's mscorlib.dll.
class/System/Makefile (LIBRARY_COMPILE) [USE_BOOT_COMPILE]:
Don't override if the profile says it isn't necessary by setting
PROFILE_MCS_HAS_BOOTSTRAP_FALLBACK.
cleanup and generalize r155638
svn path=/trunk/mcs/; revision=155646
* Directory.cs: Ensure elevated trust when calling on
Moonlight.
* DirectoryInfo.cs: Ensure elevated trust when calling a .ctor
on Moonlight.
* File.cs: Ensure elevated trust when calling a .ctor on
Moonlight.
* FileInfo.cs: Ensure elevated trust when calling a .ctor on
Moonlight.
* FileStream.cs: Ensure elevated trust when calling a .ctor on
Moonlight. Name property returns "[Unknown]" unless a Moonlight
application is executed with elevated trust.
* Path.cs: Ensure elevated trust when calling a GetTempPath,
GetTempFileName or GetFullPath on Moonlight. Add a shared
internal method to validate paths to reduce code duplication.
svn path=/trunk/mcs/; revision=155643
* Mono.Documentation/webdoc.cs: Allow .source files to be provided to
'mdoc export-html-webdoc', which will cause the .source files to be
read and all referenced .tree/.zip files to be processed.
svn path=/trunk/mcs/; revision=155641
* XamlType.cs : cache member lookup.
* XamlMemberTest.cs, XamlXmlReaderTest.cs :
a few correction and additions on member equality.
svn path=/trunk/mcs/; revision=155639
* SecurityManager.cs: Add stub for new methods (so code compiles
correctly under other profiles)
* SecurityManager_2_1.cs: Implement [Check|Ensure]ElevatedPermissions
for Moonlight Elevated Trust
svn path=/trunk/mcs/; revision=155633
* icall-def.h: Add get_RequiresElevatedPermissions icall to
System.Security.SecurityManager - used only by Moonlight
* security-core-clr.c|h: Add Elevated Trust/Permission support
for CoreCLR / Moonlight
svn path=/trunk/mono/; revision=155632
* Actions.cs: Forward Action() to mscorlib.dll and add the new
Action<...T16> delegates
* Funcs.cs: Add the new Func<...T16> delegates
* TimeZoneInfo.cs: Forward to mscorlib.dll
svn path=/trunk/mcs/; revision=155630
* Action.cs: SL4 moved some Action in mscorlib
* Funcs.cs: SL4 moved some Func<> in mscorlib
* String.cs: Make IsNullOrWhiteSpace available, internally,
before NET_4_0 (or SL4) since it's proving useful.
svn path=/trunk/mcs/; revision=155629
* XamlMember.cs : cosmetic equivalence change.
* XamlMemberTest.cs, XamlXmlReaderTest.cs : some member equivalence
tests. Commented out some assertions that won't work for a while.
svn path=/trunk/mcs/; revision=155620
* XamlXmlReader.cs : Resolve generic type names. Process attribute
members.
* XamlLanguage.cs : add XamlTypeName-to-ClrType method.
* XmlSchemaContext.cs : extracted special type name handling to above.
* XamlXmlReaderTest.cs : add more detailed read tests, and more
file-based tests (not working yet).
* Dictionary_Int32_String.xml, Dictionary_String_Type.xml :
add more test files (not working though).
svn path=/trunk/mcs/; revision=155619
* boehm-gc.c (mono_gc_base_init): Applied patch from Robert Nagy
([email protected]). Fix GC_stackbottom calculation on OpenBSD.
svn path=/trunk/mono/; revision=155615
* genmdesc.c (inst_name): Define this as a copy of mono_inst_name in helpers.c,
so the latter can be #ifndef DISABLE_JIT-ed.
* helpers.c: Comment out the opstr array if DISABLE_JIT is set.
svn path=/trunk/mono/; revision=155608
* HttpWebRequest.cs: set content length to -1 on redirect. Reset
'FinishedReading' on redirects. Fixes bug #593596.
svn path=/trunk/mcs/; revision=155604
In class/System.Core/Test/System.Linq/:
* ParallelEnumerableTests.cs: Tweak Skip unit test to avoid deadlocking for now
svn path=/trunk/mcs/; revision=155542
* loader.c (mono_method_get_signature_full): Use new function
inflate_generic_signature_checked to check for errors.
Fixes#560839.
svn path=/trunk/mono/; revision=155528
* class.c (mono_class_setup_vtable_general): Use error checking
version of mono_class_inflate_generic_method_full.
Fixes#596975.
svn path=/trunk/mono/; revision=155524
Mono_Posix_RuntimeIsShuttingDown delegate, so that we can prevent an
infinite loop while shutting the process down. Fixes#592981.
svn path=/trunk/mcs/; revision=155521
mentioned that it's unacceptable for MonoPosixHelper to link against
libmono (e.g. when embedding mono, there might not be a libmono).
* map.h: Flush updated Mono_Unix_UnixSignal_SignalInfo prototype.
* signal.c: Don't use mono_runtime_is_shutting_down(). Instead, change
Mono_Unix_UnixSignal_WaitAny() to accept a function pointer argument,
which will return Environment.HasShutdownStarted in managed code (the
moral equivalent of mono_runtime_is_shutting_down()). This allows
us to avoid a libmono dependency w/o lots of rewriting. Fixes#592981.
svn path=/trunk/mono/; revision=155520
* XamlXmlReader.cs : handle types in clr-namespace.
* XamlType.cs : replaced Type-to-typename hack with better-working one.
* XamlLanguage,cs : add internal clr type name resolver method.
* XamlXmlWriter.cs : for Initialization, value is passed as a string,
so don't try to verify it with the object type.
* XamlXmlReaderTest.cs : enable DateTime tests.
* XamlSchemaContextTest.cs : add a type name resolver test.
svn path=/trunk/mcs/; revision=155516
* XamlXmlReader.cs : ongoing bugfixes to pass start object.
* XamlXmlReaderTest.cs : added a couple more of read and load tests.
svn path=/trunk/mcs/; revision=155491
* XamlObjectReader.cs, TypeExtensionMethods.cs :
Value serialization improvements. Improved namespace handling.
Remove unused code.
* XamlObjectReaderTest.cs : add more read tests (lots of them are
not fully working yet).
* DateTime.xml : new test file. (not working though)
svn path=/trunk/mcs/; revision=155479
* reflection.c (_mono_reflection_parse_type): MS supports
non-assembly-qualified types in a generic type parameter list
when enclosed in '[]' (which signals that they should be a fqn).
This breaks ECMA specs for how type names are encoded in cattr
blobs but F# does it.
Fixes#576342.
svn path=/trunk/mono/; revision=155438
* configure.in: turn the AC_MSG_ERROR into a AC_MSG_WARN since in
Andrew's configuration this aborts the build:
host=i686-pc-linux-gnu != target=i586-suse-linux
And I no longer remember why I added that error in the first
place (we need to determine perhaps the arch/OS but it is
difficult with those strings).
svn path=/trunk/mono/; revision=155422
* XamlXmlWriter.cs : use TypeConverter to get string value to write.
(TimeSpan shows the difference; the type's ValueSerializer is null,
while TypeConverter is not, and gives the expected non-xsd output.)
* XamlXmlReaderTest.cs : add primitive TimeSpan reader test.
* TimeSpan.xml : new test file.
svn path=/trunk/mcs/; revision=155418
* XamlSchemaContext.cs, TypeExtensionMethods.cs : reimplement some
GetXamlType() overloads. Protected one should be the actual
implementation.
svn path=/trunk/mcs/; revision=155415
* MemoryMappedViewAccessor.cs
* MemoryMappedFile.cs
* MemoryMappedViewStream.cs:
Properly retrieve the size of the mmapped file. Fixes the
unit tests.
svn path=/trunk/mcs/; revision=155407
*always*, since it is used recursively, so checking for a number of
top level nodes is useless. This should fix a case where we were not
sorting any node with a single root node.
2010-04-14 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=155391
* XamlObjectReader.cs : Type is consumed as TypeExtension.
* XamlObjectReaderTest.cs
XamlSchemaContextTest.cs
XamlTypeTest.cs : a couple of Type/TypeExtension-related tests.
svn path=/trunk/mcs/; revision=155375
at the beginning, to let handlers draw on top of us.
Fixes the remaining bits of #587563.
2010-04-14 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=155367
* ToolStripItem.cs: Separate the background rendering from the Paint
routine, so we can both make sure the background stuff is done first,
and we also let our items fire the OnPaint event handlers before or
after their own routines.
* ToolStripLabel.cs: Move the base call to OnPaint to the end, so any
user's Paint handler can draw on top of us, like .Net does.
Fixes#587563.
svn path=/trunk/mcs/; revision=155366
* method-to-ir.c (handle_box_inst): Merge into handle_box, simplify the merged
version.
* (handle_alloc): Ditto.
(mono_method_to_ir): Remove the constrained call restriction added by a previous
change, its not needed anymore.
svn path=/trunk/mono/; revision=155350
* metadata-verify.c: Implement structural verification
of custom attributes. This check requires access to the
loader since to resolve the size of an enum we have to
look it up.
We don't check if named argumenments are encoded in a
compatible fashion to their underlying field/prop.
Maybe we should?
* verify-internals.h: Add two new cattr verification API.
svn path=/trunk/mono/; revision=155344
* method-to-ir.c (mono_method_to_ir): Disable generic sharing for constrained
calls where the constrained class needs a context. Fixes#595863.
* iltests.il.in: Add a test.
svn path=/trunk/mono/; revision=155329
when beginning Type generation. This prevents "invalid"
`#endregion`s; if the CodeGenerator instance is reused for multiple
types, the last member of the first type has an EndDirective, then
the EndDirectvies will be generated before any members of the 2nd
type. Don't do that.
* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing
for CodeRegionDirectives.
svn path=/trunk/mcs/; revision=155321
* XplatUIX11.cs: When checking for the values returned by
_NET_WORKAREA, use current_desktop+1 instead of current_desktop, since
we need the actual value, instead of the index (which is 0 based, and
is not working in this case). Patch by Andy Stühr
([email protected]).
Fixes#494234.
svn path=/trunk/mcs/; revision=155318
* CrossDomainPolicyManager.cs: Fix previous change since it
breaks several valid cases (e.g. text/*, text/xml; charset=utf-8)
and does not completely covers the application/xml case.
Avoid possible ArgumentException while adding policies since it
confuse the logs.
svn path=/trunk/mcs/; revision=155309
* XamlXmlWriter.cs :
Do not write element or attribute for Initialization.
* XamlXmlWriterTest.cs : enable WriteNode() tests.
svn path=/trunk/mcs/; revision=155308
* reflection.c: maintain the invariants required by
mono_class_layout_fields() also in typebuilder_setup_fields ().
svn path=/trunk/mono/; revision=155301
* XamlType.cs : IsArray, IsCollection and IsGeneric are based on
LookupCollectionKind(). Removed buggy documented behavior from the
lookup method too.
* XamlTypeTest.cs : assert that dictionary types are *not* collection.
* XamlTypeInvoker.cs : implement CreateInstance() for object writer.
svn path=/trunk/mcs/; revision=155298
* CrossDomainPolicyManager.cs: make the contentType detection
look for /xml at the end, it's more reliable
(fixes olympics for moonlight)
svn path=/trunk/mcs/; revision=155283
* TimeSpanTest.cs: Remove "NotWorking" from our custom formats parse
methods, as well as augmenting the test with some new assertions, and
changing a pair to properly reflect what they are testing.
svn path=/trunk/mcs/; revision=155282
* TimeSpan.cs: Implement support for custom formats parsing. This
should as well include the bits required to easily implement the same
for ToString methods, when the final release fixes the mess we found
in the latest beta.
svn path=/trunk/mcs/; revision=155281
* Enumerable.cs: Jumbo patch that inlines code, mainly for the AOT
scenario where we our compiler cant infer the extra layer of
indirection of a lambda function.
But additionally, since we lack support for our JIT to inline
intermediate delegate calls, it should save memory and run
faster.
svn path=/trunk/mcs/; revision=155280
* mini.c (mini_method_compile): Disable llvm+methods with clauses again, llvm
2.6/SVN seems to have broken support for them.
svn path=/trunk/mono/; revision=155279
* ImageField.cs, CheckBoxField.cs: OnDataBindField must expect
sender to be something else than DataControlFieldCell. Fixes bug
#595568
2010-04-13 Marek Habersack <[email protected]>
* CheckBoxFieldTest.cs: added test for bug #595568
svn path=/trunk/mcs/; revision=155270
* PageCompiler.cs: if EnableViewStateMac is set in the page
source, generate relevant code.
2010-04-12 Marek Habersack <[email protected]>
* PageParser.cs: if EnableViewStateMac option is present in the
directive, remember it for later use by the compiler.
* Page.cs: initialize EnableViewStateMac with the default read
from the config.
svn path=/trunk/mcs/; revision=155262
* XamlWriterStateManager.cs, XamlXmlWriter.cs : extracted former
from latter, to reuse it in XamlObjectWriter too.
* System.Xaml.dll.sources : add new internal type.
svn path=/trunk/mcs/; revision=155248
* XamlSchemaContext.cs
TypeExtensionMethods.cs
XamlType.cs : implement type lookup by name in schema context.
* XamlSchemaContextTest.cs, XamlTypeTest.cs : more type system tests.
svn path=/trunk/mcs/; revision=155246
* XamlType.cs : make implementation a bit cleaner.
* TypeExtension.cs, StaticExtension.cs : add [TypeConverter].
* XamlTypeTest.cs : add a few more TypeConverter assertions.
svn path=/trunk/mcs/; revision=155227
* XamlLanguage.cs : implement namespaces properties.
* XamlType.cs : implement member lookup methods and IsConstructible.
* XamlMember.cs : do not use PropertyInfo's CanRead and CanWrite
which both return True for private getter and setter.
* TypeExtensionMethods.cs : add member retriever method that convers
Initialization (for XamlXmlWriter).
* XamlObjectReader.cs : use above.
* XamlLanguageTest.cs : add member lookup tests and properties tests
on those members.
* XamlTypeTest.cs : add GetAllAttachableMembers() test.
Enable IsConstructible().
svn path=/trunk/mcs/; revision=155226
** Fixes#591443
* DataColumn.cs (Clone): Use propert to clone Expression as it
* builds
compiled expression also, if any.
svn path=/trunk/mcs/; revision=155216
Math is beautiful
A universal language
Libraries differ
-- Andreas F.
Haiku neither has libm nor libdl. On Mac OS X, libm.dylib is just a symlink
to libSystem.dylib.
Introduce autoconf checks for these libraries.
* configure.ac: Add checks for libm and libdl.
* {src,test}/Makefile.am: Remove hardcoded library dependencies.
Fixes compilation on Haiku.
v1 -> v2:
* Add checks for libm and libdl.
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.
svn path=/trunk/mono/; revision=155195
* GetFrameworkPath.cs (FrameworkVersion40Path): New.
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Move to 2.0, 3.5 and 4.0 .
The 4.0 copy gets the framework path for 4.0 .
* Makefile: Update for the above change.
* xbuild_targets.make: Likewise.
svn path=/trunk/mcs/; revision=155193
Haiku has neither makedev nor /proc. Enumerate processes, process modules
and retrieve the process name via Kernel Kit. Fixes build on Haiku.
Adjust _WAPI_PROCESS_UNHANDLED_PID_MASK to cope with Haiku's 32-bit pid_t.
Fixes exception trying to obtain the ProcessName of pids >= 2^15.
Be did not have /proc
For Mono to build without
Resort to Be's root
-- Andreas F.
* processes.c (EnumProcesses, load_modules): Add implementations
for Haiku. Fixes build on Haiku.
(OpenProcess, EnumProcessModules, get_process_name_from_proc):
Tweak implementations for Haiku.
* process-private.h: Fix _WAPI_PROCESS_UNHANDLED_PID_MASK for
32-bit pids (Haiku).
* ChangeLog: Fix UTF-8 encoding
v4 -> v5:
* Resolve conflicts with more OpenBSD changes.
v3 -> v4:
* Rebase against OpenBSD changes.
v2 -> v3:
* Fix get_process_name_from_proc implementation to use get_next_image_info.
* Add new implementation of EnumProcesses.
* Fix OpenProcess' check whether pid is available.
* Fix _WAPI_PROCESS_UNHANDLED_PID_MASK to handle Haiku's 32-bit pid_t.
* Fix module addresses in load_modules by considering the text segment, too.
Suggested by Ingo Weinhold.
* Add ChangeLog entry, fix file encoding.
v1 -> v2:
* Instead of providing a dummy makedev macro, avoid its use.
* Don't try to parse /proc.
* Add new implementations of load_modules and get_process_name_from_proc
based on libroot's Kernel Kit, suggested by François Revol.
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.
svn path=/trunk/mono/; revision=155191
* debugger-agent.c (thread_commands): Add a GET_ID command to get the
MonoInternalThread belonging to the thread.
svn path=/trunk/mono/; revision=155173
* verify.c (mono_method_verify): A switch op don't empty
the stack for the next one. Fixes a bug when running fsi
under --verify-all.
svn path=/trunk/mono/; revision=155154
* System.Collections.Generic/SortedSet.cs (SortedSubSet.count): Remove.
(SortedSubSet..ctor): Move counting loop ...
(SortedSubSet.Count): ... here.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update to changes.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Likewise. Use bounds
to determine if the view is empty, rather than the count.
* Test/System.Collections.Generic/SortedSetTest.cs (ViewCount):
Test that count reflects changes in underlying set.
svn path=/trunk/mcs/; revision=155125
* Type.cs: Add ResolveInternal virtual call that
resolves a given type to it's concrete type.
2010-04-08 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement ResolveInternal.
2010-04-08 Rodrigo Kumpera <[email protected]>
* EnumBuilder.cs:
* GenericTypeParameterBuilder.cs:
* DerivedTypes.cs:
* TypeBuilder.cs: Add ResolveInternal virtual call that
resolves a given type to it's concrete type.
* TypeBuilder.cs (DefineDefaultConstructor): Use
ResolveInternal on parent to do the lookup on a
finished type.
Fixes#591225.
svn path=/trunk/mcs/; revision=155115
* icall.c (ves_icall_MonoField_GetValueInternal): This function
is a near identical copy of mono_field_get_value_object. So
simply call it.
* object.c (mono_field_get_value_object): Handle literal fields
on open generic classes.
Fixes#594942.
svn path=/trunk/mono/; revision=155111
* reflection.c (mono_reflection_create_runtime_class): Setup
parent/supertype information again since it can be changed
without notice.
svn path=/trunk/mono/; revision=155110
will configure mono to only build moonlight-specific stuff and
nothing else. --with-moonlight=yes now just adds the moon profile to
the build
* Makefile.am: Add moonlight-specific rules that only build what
moon needs. These are called directly from moon, to do fast
moon+mono+mcs builds
* runtime/Makefile.am: Change the build rules to have a moonlight-only
build configuration, as well as a normal build that optionally includes
it
svn path=/trunk/mono/; revision=155093
* AssemblyBuilder.cs (GenericInstanceKey): Precalculate
GenericInstanceKey hash code since this can cause infinite
recursion when inflating "Foo<T> : Bar<Foo<T>>" parent.
* TypeBuilder.cs (IsSubclassOf): Don't delegate to base class
since the unmanaged information can be out of sync.
* TypeBuilder.cs (UnderlyingSystemType): Invert the test order
since IsEnum now is potentialy more expensive.
Fixes#594728.
svn path=/trunk/mcs/; revision=155053
* SubjectAltNameExtensionTest.cs: Add unit tests for multiple
DNSNames entries (#594110 and #591516 certificate test case)
svn path=/trunk/mcs/; revision=155046
* verify.c (verify_type_compatibility_full): Properly handle
stores between arrays of primitives.
Fixes the verifier side of #555950.
svn path=/trunk/mono/; revision=155018
* DeflateStream.cs: always use Cdecl, since the library is compiled
using that calling convention in windows too.
svn path=/trunk/mcs/; revision=155017
class.c (mono_bounded_array_class_get): Properly init
cast_class to take the fact that uint[] and int[] can be
casted between each other.
Fixes#555950.
svn path=/trunk/mono/; revision=155012
* icall.c (ves_icall_System_Environment_Exit): Shutdown the threadpool before
waiting for all threads to suspend, as those threads can't be suspended.
svn path=/trunk/mono/; revision=155005
* Enum.cs (GetInfo): Don't use isinst tests as they can
return true for both signed and unsigned version of a
primitive type.
* Enum.cs (FindPosition): Ditto.
svn path=/trunk/mcs/; revision=155002
* zlib-helper.c: now that we don't use Z_SYNC_FLUSH, there might be
unflushed input in zstream, so always call Z_FINISH.
svn path=/trunk/mono/; revision=154995
* xbuild/Microsoft.VisualBasic.targets(CoreCompile): Fix Outputs
to use @(IntermediateAssembly) instead of $(IntermediateAssembly).
Patch suggested by Eli Bishop ([email protected]).
svn path=/trunk/mcs/; revision=154983
* RBTree.cs (Bound): New. Returns the greatest lower bound and
least upper bound of the given key.
(GetSuffixEnumerator): New. Returns an enumerator that starts at
the given key.
(NodeEnumerator): Provide suffix enumerator functionality.
* SortedSet.cs (GetEnumerator): Delegate to ...
(TryGetEnumerator): ... this. New virtual function.
(Enumerator): Provide subset enumeration using RBTree's suffix enumerators.
(SortedSubSet.count): New.
(SortedSubSet.GetCount): Use it.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update count.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Use RBTree.Bound().
(SortedSubSet.GetEnumerator): Remove.
(SortedSubSet.TryGetEnumerator): New. Use ranged enumerators.
* SortedSetTest.cs: Update to test more view functionality,
including set comparison operators.
svn path=/trunk/mcs/; revision=154974
* BaseDomainPolicy.cs: Abstract-fy IsAllowed(WebRequest) and
remove abstract IsAllowed(Uri,string[]) since it cannot provide
enough information for the client access policy.
* ClientAccessPolicy.cs: Replace IsAllowed(Uri,string[]) with
IsAllowed(WebRequest) and add logic for AllowAnyMethod
* ClientAccessPolicyParser.cs: Read "http-methods" attribute (new
in SL3) and set the new AllowAnyMethod property if the value is
"*" (the only legal value if the attribute is present).
* FlashCrossDomainPolicy.cs: Add IsAllowed(WebRequest) since it's
not part of BaseDomainPolicy anymore.
svn path=/trunk/mcs/; revision=154949
* Control.cs: control cache must be filled using the local
_controls collection instead of the virtual Controls
property. Fixes bug #594238
Check if _controls isn't null before using it.
2010-04-07 Marek Habersack <[email protected]>
* ControlTest.cs: added test for bug #594238
2010-04-07 Marek Habersack <[email protected]>
* Makefile: moved App_* test resources to separate variables -
whatever is contained in those variables is preprocessed before
embedding as resource to include appropriate resource name prefix
(App_Code/, App_GlobalResources/ for now). This is used in WebTest
to automatically populate the relevant directories when running
the test suite.
2010-04-07 Marek Habersack <[email protected]>
* WebTest.cs: introduced concept of prefixed resources and added
an API which handles them - CopyPrefixedResources. All the
manifest resource names are checked for match with the given
prefix, and all the matching ones are copied to the specified
subdirectory of the test directory.
svn path=/trunk/mcs/; revision=154948
* ConsoleLogger.cs: Dump items and properties when a project starts
to build. Useful for debugging.
* Engine.cs (LogProjectStarted): Set the properties and items also,
for the project started event.
* Project.cs (EvaluatedPropertiesAsDictionaryEntries): New.
(EvaluatedItemsByNameAsDictionaryEntries): New. Required for
ProjectStartedEvent .
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* MSBuild.cs: Emit global properties, if any. Sort the property
list.
svn path=/trunk/mcs/; revision=154929
* build/Makefile (DISTFILES): Add gensources.sh.
* build/gensources.sh: New, improved version of tools/gensources.sh.
* build/library.make ($(sourcefile)): Use the new gensources.sh.
($(makefrag)): Update to handle the optional makefrag generated by
gensources.sh.
* tools/Makefile (DISTFILES): Remove gensources.sh.
* tools/gensources.sh: Remove.
svn path=/trunk/mcs/; revision=154909
* FormParameter.cs, CookieParameter.cs, ProfileParameter.cs,
QueryStringParameter.cs, SessionParameter.cs: implemented
constructor overloads which take DbType as one of the arguments.
svn path=/trunk/mcs/; revision=154894
* class.c (print_implemented_interfaces): Print proper type name.
* class.c (mono_class_setup_vtable): Don't try that hard to produce
the override map for generic instances since it later ignored.
* class.c (mono_class_implement_interface_slow): Don't break for
dynamic generic instances.
* object.c (mono_runtime_invoke_array): Add an assert for allocation.
* reflection.c (mono_reflection_method_get_handle): New method that
resolves a method handle.
* reflection.c (mono_reflection_get_dynamic_overrides): Handle the
case when we override methods from a dynamic generic instance interface.
Fixes#575941.
svn path=/trunk/mono/; revision=154886
* ClientAccessPolicyParser.cs: Catch extra attributes that
leads to an invalid (no-access) policy. Fix parts of DRT#666
* CrossDomainPolicyManager.cs: Ignore policies sent with a
Content-Type different than "text/*". Fix DRT#667
* FlashCrossDomainPolicyParser.cs: Catch extra attributes and
the case where a second policy is present (invalid xml). Fix
parts of DRT#666
svn path=/trunk/mcs/; revision=154862
source can be found, if not on ./mcs or ../mcs
only touch the mcs and/or olive dirs and config files if we're
actually building them
svn path=/trunk/mono/; revision=154858
* wthreads.c (TlsSetValue): Don't take locks here. We trust
* pthread_setspecific
return value to tell if we tried to store to an invalid slot.
svn path=/trunk/mono/; revision=154856
* TimeSpanTest.cs: Augment our ParseExactCustomFormats test - still
marked as NotWorking for now, but committing now in order to have the
tests ready.
svn path=/trunk/mcs/; revision=154848
for 3.5 and 4.0 profiles.
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Process tools/xbuild for 3.5 also.
In class/Microsoft.Build.Engine:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Use the correct assembly name for MS.Build.Utilities*
for 3.5 and 4.0 profiles. Copy the .config files for the test
assembly.
Import tools/xbuild/xbuild_targets.make, which copies the target
and tasks file in the correct place, to allow running tests
with different toolsversion.
* Microsoft.Build.Engine.dll.sources: Add LogExtensions.cs,
Toolset.cs, ToolsetDefinitionLocations.cs and ToolsetCollection.cs .
* Test/test-config-file-net-3.5: New.
* Test/test-config-file-net-4.0: New.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2010-04-03 Ankit Jain <[email protected]>
* BuildEngine.cs: Implement IBuildEngine2 instead of
IBuildEngine.
* BuildTasks.cs: Use the new extension methods for logging.
(InitializeTask): Emit a message informing about the assembly
from which the task is being loaded. Emit a useful debug message
incase of a InvalidCastException.
* Engine.cs: Add missing methods, constructors and properties related
to ToolsVersion support. Setup a default set of Toolsets.
Keep separate taskdbs' per ToolsVersion. The common tasks
would come from different *.tasks file, and use different
task assemblies.
(DefaultToolsVersion): Correctly set this based on the profile.
* LogExtensions.cs: New. Extension methods on Engine, for logging.
* Project.cs: Add missing methods/contructors/properties related
to ToolsVersion support. Add reserved properties -
MSBuildToolsPath and MSBuildToolsVersion .
* Toolset.cs: New.
* ToolsetCollection.cs: New.
* ToolsetDefinitionLocations.cs: New.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-04-06 Ankit Jain <[email protected]>
* Consts.cs (ToolsVersionString): New.
(GetTasksAsmPath): New.
* EngineTest.cs: Use the direct path to the tasks assembly
in the UsingTasks.
* ProjectTest.cs: Set ToolsVersion to the current profile.
In class/Microsoft.Build.Framework:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion.
* Microsoft.Build.Framework.dll.sources: Add IBuildEngine2.cs .
In class/Microsoft.Build.Framework/Microsoft.Build.Framework:
2010-04-03 Ankit Jain <[email protected]>
* IBuildEngine2.cs: New.
In class/Microsoft.Build.Tasks:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion. Copy the config file for the
test assembly. Clean the generated test.dll .
Use the correct target assembly name for 4.0 profile
(ms.build.tasks.v4.0.dll), and for Utilities assembly.
* Microsoft.Build.Tasks_test.dll.sources: Use Consts.cs from Engine
instead of maintaining a copy here.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2010-04-03 Ankit Jain <[email protected]>
* Csc.cs: Use dmcs as the compiler for 4.0 profile.
* MSBuild.cs (ToolsVersion): New.
Use toolsVersion for building.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2010-04-06 Ankit Jain <[email protected]>
* Consts.cs: Remove.
* AssignProjectConfigurationTest.cs:
* CreateCSharpManifestResourceNameTest.cs:
* CreateVisualBasicManifestResourceNameTest.cs:
* CreateItemTest.cs:
* FindAppConfigFileTest.cs:
* RemoveDuplicatesTest.cs:
* TaskBatchingTest.cs:
* WriteLinesToFileTest.cs:
Set the ToolsVersion to match the profile. Use the
full path to the tasks assembly for UsingTasks.
In class/Microsoft.Build.Utilities:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
the target and tasks file in the correct place, to allow running
tests with different toolsversion.
Use the correct target assembly name for 4.0 profile.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2010-04-03 Ankit Jain <[email protected]>
* TargetDotNetFrameworkVersion.cs: Add Version40 .
* Task.cs (BuildEngine2): New.
* ToolLocationHelper.cs: Use class/linet_* as the path
for the assemblies and targets when running tests.
Environment variable TESTING_MONO is set for testing.
This allows a 4.0 xbuild to build 2.0/3.5 projects.
In tools:
2010-04-03 Ankit Jain <[email protected]>
* Makefile: Move xbuild from net_4_0_dirs to per_profile_dirs.
In tools/xbuild:
2010-04-03 Ankit Jain <[email protected]>
* Main.cs (Execute): If toolsversion is specified on the command line,
then use that.
* Parameters.cs: Read toolsversion from the command line ('/tv:..') .
* SolutionParser.cs: Infer ToolsVersion from the sln version.
Set ToolsVersion property of the MSBuild tasks, in the generated
.sln.proj file, for building the projects.
* xbuild/Microsoft.Common.tasks: Move to ..
* xbuild/2.0/Microsoft.Common.tasks: .. here.
* xbuild/3.5/Microsoft.Common.tasks: New.
* xbuild/4.0/Microsoft.Common.tasks: New.
Use the corresponding 3.5/4.0 tasks assembly.
* xbuild_targets.make: Copies the target and tasks file in the correct
place, to allow running tests with different toolsversion.
* Makefile: Import xbuild_targets.make . Use correct assembly names for
Utilities assembly, for 3.5/4.0 profiles.
Install the correct Microsoft.Common.tasks file for the profile.
Copy xbuild.exe to class/li$(PROFILE), so that it can find other
profile dirs as relative path.
(EXTRA_DISTFILES): Add the new Microsoft.Common.tasks files.
svn path=/trunk/mcs/; revision=154835
* threadpool.c: if there are no waiting threads, try to start a new
one. This fixes the not-so-random hangs in System.ServiceModel tests.
No need to use InterlockedCompareExchange to read volatile variables.
svn path=/trunk/mono/; revision=154811
* verify.c (verify_type_compatibility_full): Fail mixed
* valuetype
and reference types that point to the same class.
Fixes#565598.
svn path=/trunk/mono/; revision=154801
* EndpointAddressMessageFilter.cs : check null arg. Return false for
no To header case and do not result in NRE.f
* EndpointAddressMessageFilterTest.cs :
Add null arg case. Enable working test.
svn path=/trunk/mcs/; revision=154787
* DataContractExporter-new.cs : do not expect contract attribute on
dictionary map. Non-contract type also uses this.
svn path=/trunk/mcs/; revision=154785
* BaseMessagesFormatter.cs : hasParameter check is incorrectly
restrictive to reject some kinds of pairs.
* CustomPeerResolverServiceTest.cs : enabled all disabled tests.
svn path=/trunk/mcs/; revision=154781
The x86 soft debugger depends on siginfo_t outside Windows. So if we're
neither building for Windows nor using SA_SIGINFO-style signal handlers,
don't enable the soft debugger. Fixes the build on Haiku.
So soft it might break
Be Open for Berkeley
But not for poets
-- Andreas F.
* mini-x86.h: Only enable soft debugger when using sigaction or on
Windows. Fixes build on Haiku (lacks siginfo_t).
v2 -> v3:
* Enable the soft debugger for Windows as well (uses different code path).
Pointed out by Zoltan Varga.
v1 -> v2:
* Instead of disabling siginfo_t code inside the soft debugger,
disable the soft debugger itself.
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.
svn path=/trunk/mono/; revision=154778
* ToolTip.cs: Make TipState internal.
* ToolStrip.cs: Use the same idea of ToolTip'state to have our
internal timer close the tooltip window after a delay, instead of
waiting for the mouse to move to a different item. Also, hide the
tooltip window when the handle is destroyed, and also when the control
is getting hidden.
Fixes#581273.
svn path=/trunk/mcs/; revision=154774
Make configure display "Moon Profile: no".
* configure.in: Set default for with_moonlight to fix
"Moon Profile:" output.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=154765
* configure.in: TARGET_WIN32 is defined when cross-compiling with
MinGW
* build-mingw32.sh: include the 4.0 profile in the zip.
Remove cross-compilation environment bin path from PATH before
compiling native Mono.
Remove autotools cache directory before each compilation phase.
2010-04-03 Marek Habersack <[email protected]>
* process.c: when compiling with MinGW, force GetProcessId lookup
using GetProcessAddress.
svn path=/trunk/mono/; revision=154743
* SafeHandle.cs: Use refcount == -1 to indicate that the handle
had been closed.
The problem here is that we have no records of why the code that
threw a ObjectDisposedException inside the do { } while block on
DangerousAddRef was added. It seems it was added in response to
Close() methods being called and the need to throw that exception
on further calls to ObjectDisposedException.
Sadly, we have no test suites for that.
svn path=/trunk/mcs/; revision=154741
* sgen-gc.c, sgen-gray.c: Macros for gray_object_enqueue() and
gray_object_dequeue(), to make sure they're inlined.
svn path=/trunk/mono/; revision=154737
* sgen-gc.c, sgen-gray.c: Fix a few debug levels, put a few
asserts in inner loops into DEBUG and lower MAX_DEBUG_LEVEL.
svn path=/trunk/mono/; revision=154736
against libmono.so, for mono_runtime_is_shutting_down().
* signal.c: Only continue retrying system calls if Mono is NOT
attempting to shut down. Fixes#592981.
svn path=/trunk/mono/; revision=154731
* XContainer.cs : create snapshot copy first before removal of nodes.
Fixed bug #592435.
* XElementTest.cs : added test for bug #592435.
svn path=/trunk/mcs/; revision=154729
Haiku does not support SA_SIGINFO-style signal handlers but supports
a BeOS extension to signal handlers.
POSIX is diverse
Long road to Real Time Signals
Unique Be's handlers
-- Andreas F.
* mini.h, mini-x86.h: Suppress sigaction for Haiku, add support for
BeOS-style signal handlers.
This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.
svn path=/trunk/mono/; revision=154716
* ClientRuntimeChannel.cs :
use DataContractSerializer.IsStartObject() to check if the fault
detail reader is for the fault contract, in addition to Action.
* FaultContractInfo.cs : add serializer property.
svn path=/trunk/mcs/; revision=154712
* ContractDescriptionGenerator.cs : fill FaultDescription action,
name and namespace as expected.
* FaultDescriptionTest.cs : add new test.
* FaultContractAttributeTest.cs : new test.
* System.ServiceModel_test.dll.sources : add some new fault tests.
svn path=/trunk/mcs/; revision=154698
* ClientRuntimeChannel.cs : use FaultContractInfos to create custom
FaultException<T>. (It's not picking the expected FCI yet.)
svn path=/trunk/mcs/; revision=154696
* MessageFault.cs : when created from XmlReader, it should not
deserialize fault details immediately. This class itself should
not do that. Strongly typed FaultContractInfo may want to use the
reader (GetReaderAtDetailContents()) for its own deserialization.
svn path=/trunk/mcs/; revision=154695
* FaultDescription.cs : fill Action.
* ContractDescriptionGenerator.cs : do not fill Faults from service
impl. method. Do this from contract method instead.
* OperationDescription.cs : remove extra TODOs.
svn path=/trunk/mcs/; revision=154691
* EndpointDispatcher.cs : fill FaultContractInfos.
* DispatchOperation.cs : do not fill them dynamically/automatically.
* ErrorProcessingHandler.cs : added some FIXME notes.
svn path=/trunk/mcs/; revision=154690
* configure.in: include -lkernel32 in LDFLAGS when cross-compiling
with MINGW or compiling on Cygwin.
* build-mingw32.sh: some changes to make the compilation work
better on non-SuSE systems.
svn path=/trunk/mono/; revision=154683
* HttpException.cs: handle situations when current exception is an
instance of a class derived from HttpException and there's no
InnerException.
* HttpApplication.cs: ProcessError must call ClearError on the
current context after the handler returns without error. Fixes bug
#572469
2010-04-02 Marek Habersack <[email protected]>
* Unhandled_Exception_Global_Asax.cs: added - tests for bug
#572469
svn path=/trunk/mcs/; revision=154672
* Module.cs (GetMethod): Check for null 'types' argument.
* MonoModule.cs (GetMethodImpl): Special case when 'types'
is null and call Type::GetMethod(string) directly.
This is ok since proper checking of the 'types' overload
is done by callers.
svn path=/trunk/mcs/; revision=154660
* sgen-gc.c: Make the nursery size adjustable by the
MONO_GC_PARAMS environment variable.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=154648
* method-to-ir.c (ensure_method_is_allowed_to_[access_field|
call_method]): Delegate the actual work in security-core-clr.c
to ease code sharing.
svn path=/trunk/mono/; revision=154638
* exception.c|metadata-internals.h: Add new mono_get_exception_
field_access_msg and mono_get_exception_method_access_msg
functions that accept a const char* parameter to provide more
details when the exception is thrown.
* security-core-clr.c|h: Rework code to allow logging exceptions
(export MONO_LOG_MASK="security") and to supply more details in
[TypeLoad|MethodAccess|FieldAccess]Exception thrown. Also added
mono_security_core_clr_is_field_access_allowed and
mono_security_core_clr_is_call_allowed to return an exception,
with messages and logging, that can be emitted by method-to-ir.c
svn path=/trunk/mono/; revision=154637
* FormView.cs: do not show the pager if PagerSettings.Visible is
false. Fixes bug #578863
2010-04-01 Marek Habersack <[email protected]>
* FormViewTest.cs: added test for bug #578863
svn path=/trunk/mcs/; revision=154631
* HttpTransportBindingElement.cs, HttpsTransportBindingElement.cs:
implement HttpsTransportBindingElement.GetProperty<T>(). Extend the
properties type from HTTP.
* HttpsTransportBindingElementTest.cs :
added test for GetProperty<T>().
svn path=/trunk/mcs/; revision=154621
* sgen-gc.c, sgen-pinning-stats.c: In the heap-dump, dump each
pinned object.
2010-04-01 Mark Probst <[email protected]>
* scripts/mono-heapviz: Process and output detailed pinning
statistics.
svn path=/trunk/mono/; revision=154620
* JsonValue.cs: We need to use Convert.ToXXXX for numbers as we
always end up reporting the value JsonType.Number regardless of
the underlying storage (int, long or decimal). The parser
picks the best storage suitable for the data, and can end up using
"ints" for values that sometimes use longs.
This causes problems when derefercing the data for example, if you
have an int and try to get it out as a long you end up with an
invalid cast exception.
svn path=/trunk/mcs/; revision=154613
* FaultConverter.cs : use addressing version from the message.
* ServiceHostBaseTest.cs : enable RunDestinationUnreachableTest()
and add another case for different addressing version.
svn path=/trunk/mcs/; revision=154608
* config-default.make (LIBRARY_FLAGS): Applied patch from Laurent Etiemble
([email protected]). Use CFLAGS in the environment if defined.
svn path=/trunk/mcs/; revision=154606
* appdomain.c (mono_domain_assembly_postload_search): Avoid a crash/assert if
the assembly name is not well formed utf8. Fixes#567882.
svn path=/trunk/mono/; revision=154604
* reflection.c (mono_reflection_create_generic_class): Set the flags field of
the generic parameters from the builder. Fixes#473298.
svn path=/trunk/mono/; revision=154602
* decompose.c (mono_decompose_opcode): Set the cfg exception if the unsupported
float conv.ovf.un opcodes are encountered, instead of asserting later.
Fixes#566296.
svn path=/trunk/mono/; revision=154599
* Module.cs: Make it a partial class under !v4.
* MonoModule.cs: New type that exists only under
v4. Under v2 it is a part of Module.
This is the initial setup to make v4 Module an
abstract type where all methods raise exceptions.
svn path=/trunk/mcs/; revision=154586
* mini-amd64.c (mono_arch_emit_call): Fail compilation if an argument is too
large. Fixes#567040.
* method-to-ir.c: Call CHECK_CFG_EXCEPTION after emitting a call.
svn path=/trunk/mono/; revision=154583
* mono-semaphore.h: Use Windows semaphores on Windows, patch
contributed by Vincent Povirk from bugzilla #531767
svn path=/trunk/mono/; revision=154573
* ListView.cs: Selection should be available after the first time the
handle has been created, even if later the handle is destroyed or
temporary invalidated.
Fixes#584070.
svn path=/trunk/mcs/; revision=154567
* UInt32.cs, Int64.cs, UInt64.cs: cope with the case that the
IFormatProvider is not a NumberFormatInfo, preventing a crash.
This was already handled by Int32.cs, but these other routines
were never properly updated.
Fixes#588356
svn path=/trunk/mcs/; revision=154532
* moonlight_raw_corlib.dll.sources: Fix Moonlight since these
types now reside in mscorlib (not System.Coe) for NET_4_0 and
also for SL4
2010-03-26 Sebastien Pouliot <[email protected]>
* moonlight_raw_corlib.dll.sources: Add MonoAssembly to ML build
since it contains parts of the Assembly features (partial class)
svn path=/trunk/mcs/; revision=154531
* mini-trampolines.c: Surround mono_handler_block_guard_trampoline and
mono_create_handler_block_trampoline with the proper #ifdef so that it
compiles on amd64.
svn path=/trunk/mono/; revision=154524
* mini-exceptions.c: Introduce mono_walk_stack_full, which
allows to select if it's new or old context that is passed to
the callback.
* mini-exceptions.c (mono_handle_exception_internal): Handle the
case when executing a guarded handler from the EH machinery.
* mini-exceptions.c (mono_install_handler_block_guard): New function
responsible for checking for handler blocks, installing the guard and
clearing abort state.
* mini-posix.c (sigusr1_signal_handler): Call mono_install_handler_block_guard
to check for handler blocks and skip interruption logic if one was found.
* mini-trampolines.c (mono_handler_block_guard_trampoline): Function called
by the handler block guard trampoline. Resumes interruption by raising the
pending ThreadAbortException.
* mini.c (create_jit_info): Calculate the end address of a finally block.
* mini-x86.c (mono_arch_install_handler_block_guard): Patch the return address
of a finally block to a specified address and return the old one.
* tramp-x86.c (mono_arch_create_handler_block_trampoline): The handler block
trampoline patches the original return address and calls the trampoline function.
svn path=/trunk/mono/; revision=154495
* domain-internals.h (MonoJitExceptionInfo): Add new field
handler_end to the data union. To be used to point the end
of a finally block.
svn path=/trunk/mono/; revision=154494
* System.Web.UI/PageParser.cs:
* System.Web.UI/Page.cs:
* System.Web.Compilation/PageCompiler.cs: default for
EnableViewStateMac is true. Allow setting it from a @Page
directive.
svn path=/trunk/mcs/; revision=154493
* ModuleBuilder.cs (DefinedType): Lookup inside the name_cache before creating
the TypeBuilder since the runtime code can't handle a duplicate type name.
svn path=/trunk/mcs/; revision=154486
Backport of r126897.
* method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
convert it to an in32. Fixes#475859.
* arrays.cs: Add a test.
svn path=/branches/mono-2-2/mono/; revision=126899
Backport of 126604.
* branch-opts.c (mono_if_conversion): Handle the case where the merged
basic block fell through to its successor bblock without a branch. Fixes
#474718.
* iltests.il.in: Add a test.
svn path=/branches/mono-2-2/mono/; revision=126605
Backport of r126467.
* mini-x86.c (mono_arch_context_get_int_reg): Handle all registers
individually. Fixes#473482.
2009-02-10 Mark Probst <[email protected]>
Backport of r126467.
* bug-473482.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=126468
Backport of r125887.
* object.c (mono_object_get_virtual_method): Properly inflate
generic methods. Fixes#472692.
2009-02-05 Mark Probst <[email protected]>
Backport of r125887.
* jit-icalls.c (mono_helper_compile_generic_method): Don't inflate
the method we get from mono_object_get_virtual_method() because
that function does it properly, now.
2009-02-05 Mark Probst <[email protected]>
Backport of r125887.
* bug-472692.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=125892
Backport of r125839.
* mini-exceptions.c (ves_icall_get_frame_info): Account for the
fact that mono_find_jit_info() sometimes returns the context
corresponding to the jit info in new_ctx. Fixes#472600.
2009-02-05 Mark Probst <[email protected]>
Backport of r125839.
* bug-472600.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=125846
Backport of r125388.
* generic-sharing.c (lookup_or_register_other_info): Make sure the
loader lock is not taken while the templates lock is held. Fixes
#471089.
svn path=/branches/mono-2-2/mono/; revision=125389
Backport of r125205.
* cpu-arm.md: Increase the size of storer8_membase_reg and
loadr8_membase_reg to 24 bytes to accomodate the extra add.
* mini-arm.c (mono_arch_output_basic_block): Under FPA, when emitting
OP_STORER8_MEMBASE_REG and OP_LOADR8_MEMBASE_REG, add the original
reg to LR otherwise we'll be loading/storing from just the offset.
svn path=/branches/mono-2-2/mono/; revision=125340
Backport of r124712.
* method-to-ir.c (emit_stloc_ir): Only apply the reg-reg move
optimization if the top of stack is the last instruction in the
bblock. Otherwise it might have been used after its definition.
Fixes#469742.
2009-01-27 Mark Probst <[email protected]>
Backport of r124712.
* bug469742.2.il: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124713
* Backport of r123987.
* method-to-ir.c (method-to-ir.c): Add support for the constrained prefix
on type variables in AOTed code.
svn path=/branches/mono-2-2/mono/; revision=124425
Backport of r124022 and r124301.
* metadata.c (mono_metadata_generic_param_equal): Owner as well as
image must match. Only compare the image if the owner is NULL.
Fixes the AOT failures.
svn path=/branches/mono-2-2/mono/; revision=124304
Backport of r124268.
* metadata.c (mono_metadata_load_generic_params): Initialize the
MonoGenericParam structure using memset so the image field is initialized
as well.
svn path=/branches/mono-2-2/mono/; revision=124269
Backport of r124246.
* mini-exceptions.c (ves_icall_get_frame_info): Fetch the generic
info from the (correct) context.
2009-01-22 Mark Probst <[email protected]>
Backport of r124246.
* generic-stack-traces2.2.cs: Another generic sharing test for
stack traces.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124247
Backport of r124059.
* appdomain-unload-callback.cs: New test for the AppDomain::DomainUnload
deadlock.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124078
Backport of r124068.
* appdomain.c (mono_domain_unload): Change the InterlockedIncrement to
a plain store.
2009-01-21 Rodrigo Kumpera <[email protected]>
Backport of r124058.
* domain-internals.h: Add new appdomain state MONO_APPDOMAIN_UNLOADING_START
which signals that the unloading has started but all appdomain services must
remain operational.
* appdomain.c (mono_domain_unload): The initial state for unloading now
is unloading_start and we switch to unloading after the managed call to
AppDomain::DomainUnload has finished.
The new unloading state has to be created because managed code in the
DomainUnload event can depend on things like the threadpool still working.
The domain must remain fully functional while the event executes.
This shown as an issue due to Process::WaitForExit, which waits for
async reads of stdout and stderr to complete. Since those are processed
in the threadpool the code deadlocks because the DomainUnload callback
waits for the async read finished event, which should have been set by a
threadpool job but has been discarded due to the domain been in unload
state.
svn path=/branches/mono-2-2/mono/; revision=124074
Backport of r124065.
* class.c (mono_class_setup_vtable_general): In the generic instance
optimization, set method->slot for abstract virtual methods. Fixes part of
#467834.
svn path=/branches/mono-2-2/mono/; revision=124066
Backport of r124028.
* method-to-ir.c: Only apply exception constructor optimization if
the the method actually belongs to an exception class. Fixes
#467456.
2009-01-21 Mark Probst <[email protected]>
Backport of r124028.
* bug-467456.cs: New test case.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124030
Backport of r124022.
* metadata.c (mono_metadata_generic_param_equal): Owner as well as
image must match.
2009-01-21 Mark Probst <[email protected]>
Backport of r124022.
* generic-unloading.2.cs, generic-unloading-sub.2.cs: Test case
for unloading images whose MonoGenericInst's are still in use.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=124024
Backport of r123968.
* freebsd-elf_common.h (struct): Use uint32_t instead of
u_int32_t to fix the build on opensolaris.
svn path=/branches/mono-2-2/mono/; revision=123970
Backport of r123958.
* reflection.c (resolve_object): For fields, inflate the class and
then get the field in the inflated class.
svn path=/branches/mono-2-2/mono/; revision=123960
Backport of r123917.
* method-to-ir.c: Force the vtable variable in shared generic code
for the case that they might show up on a stack trace where they
are needed.
* mini-exceptions.c: Save and use generic sharing info as well as
IP in stack traces to resolve shared generic instantiations.
2009-01-20 Mark Probst <[email protected]>
Backport of r123917.
* class.c (mono_class_has_parent_and_ignore_generics),
class-internals.h: Made non-static.
* object-internals.h (struct _MonoException): Added a comment
explaining the new use of trace_ips.
2009-01-20 Mark Probst <[email protected]>
Backport of r123917.
* generic-stack-traces.2.cs: Generic sharing test for stack
traces.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=123920
* IPAddress.cs: handle sign extension for the high byte when using the
byte[] ctor for an IPv4 address.
Fixes bug #467472.
svn path=/branches/mono-2-2/mcs/; revision=123857
Backport of r123756.
* marshal.c (emit_marshal_custom): Avoid calling MarshalNativeToManaged
for byval arguments without an [Out] attribute. Fixes#467212.
svn path=/branches/mono-2-2/mono/; revision=123803
Backport of r123754.
* mini.c (mini_thread_cleanup): Don't cleanup TLS storage if the
thread been cleaned up is not the same currently in execution.
Fixes appdomain-unload crashes on windows, osx and linux variants
without the __thread keyword.
svn path=/branches/mono-2-2/mono/; revision=123785
Backport of r123258.
* mini.c (SIG_HANDLER_SIGNATURE): Avoid crashes when the current thread or
domain is not set. Fixes#465864.
svn path=/branches/mono-2-2/mono/; revision=123725
Backport of r123612.
* configure.in: Avoid error messages in the quiet code if libgc/Makefile
does not exist yet. Fixes#466814.
svn path=/branches/mono-2-2/mono/; revision=123613
* WebConnectionStream.cs: if the buffer has been killed, return -1 for
its length. Fixes regression in System.Runtime.Remoting.
svn path=/branches/mono-2-2/mcs/; revision=123450
Backport of r123417.
* CILCompiler.cs: Avoid throwing exceptions for a few more unhandled opcodes.
Implement the reverse/ignorecase versions of Reference. Fix the reverse
version of Bitmap. Error out if a Jump opcode jumps outside the current
pc range. This works around #466151.
svn path=/branches/mono-2-2/mcs/; revision=123420
Backport of r123349.
* method-to-ir.c: Handle delegate invocation optimization earlier,
otherwise it would be handled (much more slowly) by the
final/sealed optimization.
svn path=/branches/mono-2-2/mono/; revision=123351
* HttpApplicationFactory.cs: if there are any *.browser files in
App_Data/Mono_Machine_Browsers/, use those instead of the default
machine browser files. This allows app developers to workaround
limitations with Mono's default browser files without causing
incompatibilities with MS's implementation.
++ System.Web.Configuration_2.0/ChangeLog (working copy)
* nBrowser/Node.cs: Fixed compatibility bug where <identification> sections were required
in browser defs.
svn path=/branches/mono-2-2/mcs/; revision=123257
* HttpConnection.cs: we were not writing the headers for 0-length
responses.
* WebConnectionStream.cs: for 204/304 responses with an explicit
content-length of 0, release the socket only once.
Fixes bug #465638.
svn path=/branches/mono-2-2/mcs/; revision=123251
Backport of r123201.
* marshal.c: Avoid setting the exception clauses after a method has been entered
into the wrapper caches. Fixes#465700.
* method-builder.c (mono_mb_set_clauses): New function to set the clauses of the
method builder.
(mono_mb_create_method): Set the clauses from the method builder.
svn path=/branches/mono-2-2/mono/; revision=123203
Backport of r123092.
* marshal.c (mono_marshal_get_synchronized_wrapper): Make the
initialization of the various _method variables thread safe. Fixes
#465377.
svn path=/branches/mono-2-2/mono/; revision=123095
Backport of r122804.
* method-to-ir.c (mono_method_to_ir): Fix the check for the mscorlib ldstr
optimization. Fixes#464520.
svn path=/branches/mono-2-2/mono/; revision=122920
Backport of 122702.
* mini-arm.c (mono_arch_flush_icache): Use __GNUC_PREREQ instead of checking
__GNUC_MINOR__ which can break when the major version changes.
svn path=/branches/mono-2-2/mono/; revision=122704
Backport of r122672 - r122675.
* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Double check the
return value of GetCurrentDirectory to never access unitialized memory.
* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Properly check the
return value of GetCurrentDirectory and expand the buffer if needed.
Fixes#459094.
2009-01-07 Rodrigo Kumpera <[email protected]>
In io-layer:
2009-01-07 Rodrigo Kumpera <[email protected]>
Backport of r122672 - r122675.
* io.c (GetCurrentDirectory): Avoid calling g_get_current_dir straight
away as it doesn't handle ENAMETOOLONG correctly. As a bonus we avoid
allocating memory in the common path.
In tests:
2009-01-07 Rodrigo Kumpera <[email protected]>
Backport of r122672 - r122675.
* bug-459094 .cs: New regression test.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=122678
2009-01-07 Rodrigo Kumpera <[email protected]>
Backport of r122579 - r122585.
* verify.c (mono_class_interface_implements_interface): Verify parents as we can't rely on
interfaces_packed here.
Fixes part of #463294.
* verify.c (is_array_type_compatible): Ignore bounds and sizes when checking array compatibility.
Fixes part of #463294.
* verify.c (stack_slot_is_complex_type_not_reference_type): Check if the type
is a boxed complex as well.
Fixes part of #463294.
In tests/verifier:
2009-01-07 Rodrigo Kumpera <[email protected]>
Backport of r122579 - r122585.
* valid_iface_constant_with_parent_implementing_it.il:
Regression test for #461200.
* valid_array_compat_with_bonds_and_sizes.il:
* valid_array_compat_with_bounds.il:
* valid_array_compat_with_sizes.il: Regression tests for
#461200.
* valid_ceq_with_boxed_vt.il: Regression test for #461200.
svn path=/branches/mono-2-2/mono/; revision=122650
* Vector*.cs: Use explicit layout to avoid the runtime
miscalculating the size of vector types.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=122608
Backport of r122392.
* branch-opts.c (mono_if_conversion): Fix an assert introduced by the last
change.
svn path=/branches/mono-2-2/mono/; revision=122393
Backport of r122386.
* branch-opts.c (mono_if_conversion): Use branch->inst_true_bb/inst_false_bb
instead of bblock->out_bb [0]/[1], the two might not be the same. Fixes
#463357.
* iltests.il.in: Add a regression test.
svn path=/branches/mono-2-2/mono/; revision=122387
Backport of r120164.
* marshal.c (mono_string_builder_to_utf8): Fixed a wrong
invocation to g_utf16_to_utf8().
svn path=/branches/mono-2-2/mono/; revision=122373
Backport of r122363.
* mini-ops.h: Add a definition of XPHI.
* mini.h (MONO_IS_PHI): Make is aware of simd instrincs.
* ssa.c (op_phi_to_move): Handle XPHI.
* ssa.c (mono_ssa_compute): Generate a XPHI for simd intrinsics instead of VPHI.
Fixes#462457
svn path=/branches/mono-2-2/mono/; revision=122366
Backport of r122168.
* mini-exceptions.c: Check jit_tls->class_cast_from instead of class_cast_to
since only the former is nulled out after a successful cast. This prevents
crashes with rethrown exceptions when using --debug=casts.
svn path=/branches/mono-2-2/mono/; revision=122169
Backport of r122133.
* class.c (get_implicit_generic_array_interfaces): If the internal
enumerator is an interface inflate System.Object instead of itself.
Fixes#461261.
svn path=/branches/mono-2-2/mono/; revision=122136
Backport of r122086.
* mini.h: New macro for checking whether a method is final,
i.e. whether the method or its class is marked final.
* method-to-ir.c: Use the new macro for all final-checks
consistently. Fixes the crash in the System.ServiceModel tests.
2008-12-24 Mark Probst <[email protected]>
Backport of r122086.
* generic-sealed-virtual.2.cs: Test case for final generic
methods.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=122087
Backport of r122070.
* object.c (mono_runtime_invoke_array): Don't assert with
byref nullable types.
* marshal.c (mono_marshal_get_runtime_invoke): To handle
byref nullables we unbox the object and store it on the
stack.
We can't use the boxed object since it is the T of Nullable<T>
and the boxed representation of a nullable it's underlying type
or null.
We could cheat and create a boxed nullable and use the same
machinery of other byref VTs but this feels like a hack and
using the stack has the bonus of reducing heap pressure.
Fixes#461941.
svn path=/branches/mono-2-2/mono/; revision=122075
Backport of r122034.
* mini-ppc.c (mono_arch_build_imt_thunk): Save and restore r11.
Clobbering it is not allowed because the caller might use it as
the vtable register in the interface call.
svn path=/branches/mono-2-2/mono/; revision=122058
2008-11-30 Ivan N. Zlatev <[email protected]>
* GroupBoxRenderer.cs: Fix when VisualStyles disabled:
- No caption text is drawn because Color.Empty is used.
- Fix top and height off by 1.
[Fixes bug #448764]
svn path=/branches/mono-2-2/mcs/; revision=121993
ConformanceLevel.Fragment while creating the reader as column
values are not really Xml documents. Also, throw
SqlNullValueException when data is null.
(.ctor): Take good care of empty XmlReaders.
svn path=/branches/mono-2-2/mcs/; revision=121959
Backport of r121292.
* method-to-ir.c: Removed an unnecessary assertion.
2008-12-19 Mark Probst <[email protected]>
Backport of r121292.
* metadata/generic-sharing.c: Look for constraints in all type
arguments, not just the first one.
2008-12-19 Mark Probst <[email protected]>
Backport of r121292.
* generic-marshalbyref.2.cs: Test for calls to marshal-by-ref
objects.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=121836
* HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
throw if the client closes.
* HttpListenerResponse.cs: close the connection for 1.0 clients.
Backported from HEAD. Fixes bug #459432.
svn path=/branches/mono-2-2/mcs/; revision=121830
* threadpool.c: Ensure that the io_queue_lock is initialized
in all circumstances, as we always attempt to cleanup against it.
svn path=/branches/mono-2-2/mono/; revision=121724
* icall.c (ves_icall_System_Environment_get_Platform): For
compatibility reasons for existing client code we will keep
returning 4 for a while.
For how long will depend on the documentation being updated, and
for us to give client code a chance to be updated.
This reverts the original decison on #433108 since we did not
catch roughly 33 instances of the broken code in our own source
code base, we did not catch failures on the buildbots, and QA did
not bring this as a problem.
Only today I found some customer's code breaking due to our own
class libraries not being fully updated and tracked it down to
this change. I am reverting it because if we could not even get
our story straight in our own code base, how can we hope that our
end user code be fixed?
As of this morning, our Wiki page that documents how to detect
Unix had not been fixed.
svn path=/branches/mono-2-2/mono/; revision=121716
* Makefile.am, vbnc.1: Remove vbnc.1. It's living in the
mono-basic module now.
[Backport of r121406.]
svn path=/branches/mono-2-2/mono/; revision=121678
Backport of r120438.
* method-to-ir.c (mono_method_to_ir): Disable debugging
information for the init locals block to make the debugger stop
after all locals have been initalized.
svn path=/branches/mono-2-2/mono/; revision=121640
Backport of r120407 from Zoltan Varga.
* mini.c (mini_method_compile): Only run local deadce if MONO_OPT_DEADCE
is enabled.
* method-to-ir.c (mono_method_to_ir): Fix invalid code generated by the
alu->alu imm optimization which only shows if deadce is disabled.
svn path=/branches/mono-2-2/mono/; revision=121638
Backport of r120260.
* mini-exceptions.c (mono_handle_native_sigsegv): Check
mono_debug_using_mono_debugger() in addition to the
`no_gdb_backtrace' flag in the `MonoDebugOptions'.
svn path=/branches/mono-2-2/mono/; revision=121635
Backport of r120389.
* method-to-ir.c (mono_method_to_ir): Set the type of the value pushed on
the stack in CEE_LDFLDA. Fixes#450542.
* generics.cs: Add a new test.
svn path=/branches/mono-2-2/mono/; revision=121564
Backport of r121496.
* liveness.c (mono_analyze_liveness): Avoid eliminating the 'this' var in
gshared code. Fixes#458947.
* generics.cs: Add a test.
svn path=/branches/mono-2-2/mono/; revision=121497
In System.Web.Configuration_2.0:
2008-12-11 Owen Brady <[email protected]>
* nBrowser/File.cs, nBrowser/Identification.cs, nBrowser/Node.cs, nBrowser/NodeTypes.cs,
nBrowser/Result.cs, nBrowser/Build.cs, nBrowser/Exception.cs, CapabilitiesBuild.cs,
CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
* nBrowser/Build.cs: Removed LoadDefaultEmbeddedResource function, the embeded resource
it is referring too was never included in Mono. And was designed for a free standing
browser identification libary.
* nBrowser/Exception.cs: Removed Compile Attributes and related comments which were left
in from the original free standing browser libary.
* CapabilitiesBuild.cs: Removed Header Checksum related coding since it is not required
for the Mono implementation.
* CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
Removed functions which were designed to make use of features of a embeded browser file which
is not present in Mono.
* CapabilitiesChecksum.cs, RandomRoboBotKeywords.txt: Deleted
In .:
2008-12-11 Dean Brettle <[email protected]>
* System.Web.dll.sources: deleted
System.Web.Configuration_2.0/CapabilitiesChecksum.cs
* Makefile (RESOURCE_FILES_2): deleted
System.Web.Configuration_2.0/RandomRoboBotKeywords.txt
svn path=/branches/mono-2-2/mcs/; revision=121384
2008-12-08 Rodrigo Kumpera <[email protected]>
* bug457574.il: New regression test.
* Makefile.am: Test added.
Backported from trunk r121174.
In mini:
2008-12-10 Rodrigo Kumpera <[email protected]>
* ssa.c (fold_ins): branch opt can kill dummy switch ops so we can't
expect that an OP_BR_REG will be there.
* branch-opts.c (remove_block_if_useless): Use MONO_IS_BRANCH_OP instead of checking
for the many branch ops. The original check miss OP_BR_REG.
Fixes#457574.
Backported from trunk r121173 and r121175
svn path=/branches/mono-2-2/mono/; revision=121210
Backport of r120999.
* mini-exceptions.c (mono_print_thread_dump): Mark threadpool threads
as such. Fixes#456669.
svn path=/branches/mono-2-2/mono/; revision=121000
Backport of r120995.
* SQLite3.cs: Avoid IntPtr.ToInt32 () to convert between IntPtr's and integers
since it is not 64 bit safe. Fixes#457038.
svn path=/branches/mono-2-2/mcs/; revision=120996
* marshal.c (mono_marshal_emit_native_wrapper): Add AOT support for pinvoke
wrappers by emitting the function address using a CEE_MONO_ICALL_ADDR
instruction instead of a pointer constant.
svn path=/branches/mono-2-2/mono/; revision=120750
* typemanager.cs, namespace.cs, driver.cs: Allow ExtensionAttribute
to be imported from any assembly.
svn path=/branches/mono-2-2/mcs/; revision=120629
* UdpClient.cs: don't Poll() in Receive(), the call to ReceiveFrom
will block anyway. Fixes bug #455894.
2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: mark the socket as not connected when there is a pending
error or exception about to be thrown.
Bug #443346 fixed.
svn path=/branches/mono-2-2/mcs/; revision=120602
Backport of r120589.
* method-to-ir.c (mono_method_to_ir): Handle ldtoken of an open
generic type (via a typedef or typeref) correctly.
2008-12-03 Mark Probst <[email protected]>
Backport of r120589.
* generic-typedef.2.cs: New test for ldtoken of open generic
types.
* Makefile.am: Test added.
svn path=/branches/mono-2-2/mono/; revision=120595
* mono-property-hash.c (mono_property_hash_destroy): Release
the root hashtable as well.
Backported from trunk.
svn path=/branches/mono-2-2/mono/; revision=120587
* AspParser.cs: reset to the next character in a partial match in case
of failure. Fixes bug #314688.
svn path=/branches/mono-2-2/mcs/; revision=120552
Backport of r120543.
* mini-trampolines.c (mono_magic_trampoline): Add some debugging code to help
diagnose an assertion failure.
svn path=/branches/mono-2-2/mono/; revision=120544
A fix for bug #447027
* anonymous.cs (HoistedVariable): Cache also outer access to deal
with context variables stored as expression instances.
svn path=/branches/mono-2-2/mcs/; revision=119967
* FtpWebRequestTest.cs: the upload test now passes with the MS
runtime. Added another test for download.
svn path=/branches/mono-2-2/mcs/; revision=119913
* FtpDataStream.cs: use the socket for reading until the end of a
stream that wasn't read entirely. Remove unused ManualResetEvent.
* FtpWebRequest.cs: set the file_name when downloading. Update the
response status after every SendCommand. Send a "OPTS utf8 on" as MS
does (the control cnc reader should do something with UTF8)
svn path=/branches/mono-2-2/mcs/; revision=119912
* Form.cs: Don't change min/max size if it is empty.
[Fixes bug #447873]
2008-11-23 Jonathan Pobst <[email protected]>
* FormTest.cs: Add test for bug #447873.
svn path=/branches/mono-2-2/mcs/; revision=119813
* icall.c (mono_method_get_equivalent_method): Make sure
method->klass->methods is inited before looping over it.
Backported from trunk.
svn path=/branches/mono-2-2/mono/; revision=119613
resources, also clone the underlying stream, since it needs to stay
around for the life of the image (gdi doesn't clone the underlying
stream when cloning images, so when the gc disposes the original, it
will also dispose the stream, which invalidates the clone).
* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
clone under win32
* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
clone under win32
[fixes#438886, Backported from r119580]
2008-11-21 Andreia Gaita <[email protected]>
svn path=/branches/mono-2-2/mcs/; revision=119581
* ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
through DroppedDown so the proper events get called and state gets reset.
[Fixes bug #446805]
svn path=/branches/mono-2-2/mcs/; revision=119561
Mono.Mozilla/interfaces/nsIURIContentListener.cs,
Mono.Mozilla/DOM/ContentListener.cs: New class added to listen for load
requests and handle content types
* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: New
NavigationRequested event to catch load requests
[Backported, r118617]
2008-11-20 Andreia Gaita <[email protected]>
svn path=/branches/mono-2-2/mcs/; revision=119492
Backport of r119444.
* arm/Makefile.am (libmonoarch_arm_la_SOURCES): Don't build tramp.c, it is only
used by the interpreter.
svn path=/branches/mono-2-2/mono/; revision=119445
Backport of r119397.
* marshal.c: Add support for MONO_TYPE_GENERICINST to some functions.
Fixes#444715. Fix a warning.
svn path=/branches/mono-2-2/mono/; revision=119399
mono-tool{.tree,.zip} files.
* mono-file-formats.config, mono-tools.config: Alter paths to man
pages so that they're valid for building from mono/docs.
* monoapi.make: Rename to docs.make.
svn path=/branches/mono-2-2/mono/; revision=119260
Backport of 119064 and 119081.
* marshal.h : cominterop_ccw_getfreethreadedmarshaler added to return the
free threaded marshaler when QueryInterface is called on a COM callable
wrapper requesting the IMarshal interface.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-2/mono/; revision=119088
* FieldInfoTest.cs: Test FieldInfo::GetValue on a constant of an open
generic type.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=119079
* MonoField.cs (GetValue): Don't check for open generic types if the field
is a constant.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=119078
A fix for bug #444673
* ecore.cs: Ignore open generic types when used as generic type
instance fields.
svn path=/branches/mono-2-2/mcs/; revision=119016
Merge r118977 from HEAD.
* mini-amd64.h: Change the monitor fastpath defines to check for
!PLATFORM_WIN32 so they work on *bsd too.
svn path=/branches/mono-2-2/mono/; revision=118978
* DefaultWsdlHelpGenerator.aspx: use javascript instead of
HttpWebRequest to avoid a deadlock if the web service uses Session.
Bug #444343 fixed.
re: miguel
svn path=/branches/mono-2-2/mono/; revision=118834
Backport of r118724.
* process.h : Adding method declaration for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* process.c : Adding implementation for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* wait.h : Adding method declaration for WaitForInputIdle.
* wait.c : Adding implementation for WaitForInputIdle.
* Process.cs : Adding an implementation for WaitForInputIdle
to call the an internal call. The internal call is only
implemented properly on Windows.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-2/mcs/; revision=118743
Backport of r118724.
* process.h : Adding method declaration for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* process.c : Adding implementation for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* wait.h : Adding method declaration for WaitForInputIdle.
* wait.c : Adding implementation for WaitForInputIdle.
* Process.cs : Adding an implementation for WaitForInputIdle
to call the an internal call. The internal call is only
implemented properly on Windows.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-2/mono/; revision=118743
* Module.cs (ResolveMethod): Use internal method
GetMethodFromHandleNoGenericCheck to avoid the generic type
limitation of GetMethodFromHandle.
Fixes#443763.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=118544
* ConstructorOnTypeBuilderInstTest.cs: Add test for
MetadataToken under compilation context.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=118519
* ConstructorOnTypeBuilderInst.cs (MetadataToken): Make this
* property
work under compiler context. Same hack as the one applied to
MethodOnTypeBuilderInst.
Fixes#442610.
Backported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=118517
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
echo "FOO"
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
fi
@@ -906,6 +906,7 @@ AC_SUBST(LIBGC_CFLAGS)
AC_SUBST(LIBGC_LIBS)
AC_SUBST(LIBGC_STATIC_LIBS)
AC_SUBST(libgc_dir)
AC_SUBST(BOEHM_DEFINES)
dnl
dnl End of libgc checks
@@ -971,7 +972,7 @@ if test x$target_win32 = xno; then
# The problem with this approach, is that during a reconfigure, the main
# configure scripts gets invoked with these arguments, so we use separate
# variables understood by libgc's configure to pass CPPFLAGS and CFLAGS.
LIBGC_CPPFLAGS=$CPPFLAGS
LIBGC_CPPFLAGS="$CPPFLAGS $NESTED_LIBGC_FLAGS"
if test x$TARGET = xSPARC -o x$TARGET = xSPARC64; then
LIBGC_CPPFLAGS=`echo $LIBGC_CPPFLAGS | sed -e 's/-D_FILE_OFFSET_BITS=64//g'`
fi
@@ -2482,16 +2581,20 @@ AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the
fi
])
MOONLIGHT=no
AC_ARG_WITH(moonlight, [ --with-moonlight=yes,no If you want to build Mono for Moonlight (defaults to no - the resulting mono build is useless for anything but moonlight)],[
if test x$with_moonlight = xyes; then
MOONLIGHT=yes
AC_ARG_WITH(moonlight, [ --with-moonlight=yes|no|only If you want to build Mono for Moonlight (defaults to no)],[
if test "x$with_moonlight" = "xyes"; then
AC_DEFINE(MOONLIGHT,1,[Building for Moonlight])
elif test "x$with_moonlight" = "xonly"; then
AC_DEFINE(MOONLIGHT,1,[Building for Moonlight])
fi
])
], [with_moonlight=no])
AC_CHECK_HEADER([malloc.h],
[AC_DEFINE([HAVE_USR_INCLUDE_MALLOC_H], [1],
[Define to 1 if you have /usr/include/malloc.h.])],,)
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)
@@ -147,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])
@@ -489,6 +489,7 @@ if test "${enable_gc_assertions}" = yes; then
AC_DEFINE(GC_ASSERTIONS)
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
if test "${multilib}" = "yes"; then
@@ -497,6 +498,11 @@ else
multilib_arg=
fi
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find . -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 6723 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.