Damien Diederen [Sun, 13 Mar 2011 17:59:32 +0000 (18:59 +0100)]
MIPS: Take operand size into account when inverting stack offsets
Without this, STORE{I,R}8 operations resulting from spills are off by
four bytes, possibly overwriting adjacent variable slots.
Keeping the operand size in adj_0, and using it instead of a hardcoded
value of four fixes the problem.
Commit contributed under the MIT/X11 license.
Damien Diederen [Sun, 6 Mar 2011 18:56:00 +0000 (19:56 +0100)]
MIPS: Sanity check stack unwinding progress using frame pointer, not PC
It is perfectly valid for two subsequent stack frames to have the same
(saved) program counter, e.g. in the case of a recursive method or
when delegating to the same method implementation on another object.
Keep the sanity check in place, but use the frame pointer instead.
Commit contributed under the MIT/X11 license.
Damien Diederen [Sun, 6 Mar 2011 18:59:57 +0000 (19:59 +0100)]
MIPS: Remove unused variables in mono_arch_find_jit_info
Also, move a few variables down the branch which uses them, and
perform a couple minor cleanups.
Commit contributed under the MIT/X11 license.
Damien Diederen [Sun, 6 Mar 2011 19:01:13 +0000 (20:01 +0100)]
MIPS: Delete unused function glist_to_array
Commit contributed under the MIT/X11 license.
Damien Diederen [Sat, 5 Mar 2011 17:58:29 +0000 (18:58 +0100)]
MIPS: Switch from register to on-stack arguments before looking at stack_size
The code generator uses 'add_int32_arg' to ensure proper stack
alignment when passing structs by value.
That function can, however, decide to switch from in-register to
on-stack storage depending on the previous arguments; during that
process, stack_size can be bumped by more than four bytes.
Such an unexpected growth causes an assertion failure in the code
generator. Fix that by preemptively switching to on-stack arguments
before looking at stack_size when add_int32_arg would do the same.
Commit contributed under the MIT/X11 license.
Damien Diederen [Sat, 5 Mar 2011 14:21:18 +0000 (15:21 +0100)]
MIPS: Fix IMT thunk size computation
Size computation is not in sync with the generated code, which can
cause code buffer overflows; fix that.
Commit contributed under the MIT/X11 license.
Damien Diederen [Thu, 17 Mar 2011 22:27:26 +0000 (23:27 +0100)]
Move MonoContext to mono-context for mips
Fixes the MIPS build after the mono-context refactorings (cf.
d795afa1
and following).
Commit contributed under the MIT/X11 license.
Miguel de Icaza [Sat, 19 Mar 2011 02:13:43 +0000 (22:13 -0400)]
Fix build
Gonzalo Paniagua Javier [Fri, 18 Mar 2011 23:40:43 +0000 (19:40 -0400)]
[windows] Make the connect hack work again.
Gonzalo Paniagua Javier [Fri, 18 Mar 2011 23:27:56 +0000 (19:27 -0400)]
Revert "Replace old connect hack with _pipe on windows."
This reverts commit
169183740002a0a38245e0fd045bd51c8be1c200.
Gonzalo Paniagua Javier [Fri, 18 Mar 2011 23:27:50 +0000 (19:27 -0400)]
Revert "Remove unneeded function and use same code for win/lin"
This reverts commit
59c30ca79c6d9f005b852d071bc26267ca3f192e.
Rafael Munitic [Fri, 18 Mar 2011 12:31:31 +0000 (13:31 +0100)]
Must pass null to overloaded constructor instead of wrapper lambda (TaskCompletionSource can use overloaded constructors and it will pass null in function argument)
Rafael Munitic [Fri, 18 Mar 2011 22:19:29 +0000 (18:19 -0400)]
If the function is null Wait will not get called and will not check if Future is in faulted state/raise the exception
Rafael Munitic [Fri, 18 Mar 2011 22:08:22 +0000 (18:08 -0400)]
Continuation options should be checked as flags
Marek Safar [Fri, 18 Mar 2011 18:44:33 +0000 (18:44 +0000)]
Amend last commit
Marek Safar [Fri, 18 Mar 2011 18:38:25 +0000 (18:38 +0000)]
[677173] Use independent clone context for probing type expression
Mark Sciabica [Fri, 18 Mar 2011 16:59:28 +0000 (17:59 +0100)]
Fix exception handling on windows x64.
Marek Safar [Fri, 18 Mar 2011 16:51:35 +0000 (16:51 +0000)]
Remove more static references
Zoltan Varga [Fri, 18 Mar 2011 16:36:20 +0000 (17:36 +0100)]
Use stdint.h in eglib when using VS 2010.
Zoltan Varga [Fri, 18 Mar 2011 16:31:32 +0000 (17:31 +0100)]
Fix some warnings.
Zoltan Varga [Fri, 18 Mar 2011 16:12:42 +0000 (17:12 +0100)]
Remove some internal functions from mono.def.
Jonathan Pryor [Fri, 18 Mar 2011 15:50:53 +0000 (11:50 -0400)]
[mdoc] Flush expected test output.
Several commits changed `mdoc` output without committing the updated
output, thus causing `make run-test` to fail, e.g. commit
9a1075956e25969118930caff352ad7d3ecc9655.
Flush the expected output so that `make run-test` is useful.
Marek Safar [Fri, 18 Mar 2011 15:37:11 +0000 (15:37 +0000)]
Fixes variance check for interface properties with only one accessor
Zoltan Varga [Fri, 18 Mar 2011 14:58:53 +0000 (15:58 +0100)]
Add a missing newline.
Marek Safar [Fri, 18 Mar 2011 14:32:51 +0000 (14:32 +0000)]
[679530] Fixed size buffers are not subject to definite assignment checking
Marek Safar [Fri, 18 Mar 2011 12:40:01 +0000 (12:40 +0000)]
CRLF conversion
Marek Safar [Fri, 18 Mar 2011 12:38:59 +0000 (12:38 +0000)]
Better error message for identical type names
Marek Safar [Fri, 18 Mar 2011 12:33:39 +0000 (12:33 +0000)]
[678726] Dynamic inside anonoymous methods does not always mutate calling types
Atsushi Eno [Fri, 18 Mar 2011 08:23:20 +0000 (17:23 +0900)]
in XamlXmlReader, read <FooType.BarMember>-style element.
Fixed bug #680385.
Atsushi Eno [Fri, 18 Mar 2011 06:57:09 +0000 (15:57 +0900)]
XamlType lookup from xml name failed when [XmlnsDefinition] is involved.
Gonzalo Paniagua Javier [Fri, 18 Mar 2011 05:25:58 +0000 (01:25 -0400)]
Fix the host name returned in GetHostEntry.
GetHostEntry() was setting the HostName to the last IP address returned
for the requested host name.
Rodrigo Kumpera [Fri, 18 Mar 2011 00:14:02 +0000 (01:14 +0100)]
Move get_hazardous_pointer to utils/hazard-pointer.
Rodrigo Kumpera [Fri, 18 Mar 2011 00:04:04 +0000 (01:04 +0100)]
Move hazard pointer and small_id code to utils/hazard-pointer.
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 22:53:39 +0000 (18:53 -0400)]
Remove NET_2_0
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 21:06:47 +0000 (17:06 -0400)]
Remove unneeded function and use same code for win/lin
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 20:56:10 +0000 (16:56 -0400)]
Replace old connect hack with _pipe on windows.
Zoltan Varga [Thu, 17 Mar 2011 19:06:08 +0000 (20:06 +0100)]
Switch to the domain of the assembly in question while executing CMD_ASSEMBLY_GET_TYPE, so referenced assemblies are found. Fixes #679586.
Zoltan Varga [Thu, 17 Mar 2011 18:18:37 +0000 (19:18 +0100)]
Update the mcs -pkg suggestions, i.e. use gtk-sharp-2.0 instead of gtk-sharp.
Andreia Gaita [Thu, 17 Mar 2011 17:56:23 +0000 (17:56 +0000)]
Fix for #475124. DowngradeFromWriterLock only resets to a reader lock state
if the LockCookie was aquired in that state. Otherwise, it behaves as a
non-blocking ReleaseWriterLock
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 16:49:31 +0000 (12:49 -0400)]
[asp.net] Return the correct Mime type for 304.
Mark Probst [Thu, 17 Mar 2011 16:11:15 +0000 (17:11 +0100)]
[sgen] A small Mach thread handshake fix.
Marek Habersack [Thu, 17 Mar 2011 15:36:50 +0000 (16:36 +0100)]
[asp.net] Test for bug #655474
Marek Habersack [Thu, 17 Mar 2011 15:15:23 +0000 (16:15 +0100)]
[asp.net] Fix for bug #655474. Don't assume an Uri being serialized is an absolute one
Marek Habersack [Thu, 17 Mar 2011 15:15:15 +0000 (16:15 +0100)]
[asp.net] Test compilation fix for System.Web.Extensions
Marek Habersack [Thu, 17 Mar 2011 14:41:07 +0000 (15:41 +0100)]
Removed debug noise
Marek Habersack [Thu, 17 Mar 2011 14:35:02 +0000 (15:35 +0100)]
[asp.net] Fix for bug #678473. Do not map paths of absolute file paths when passed to HttpRequest.WriteFile
Marek Habersack [Thu, 17 Mar 2011 14:10:07 +0000 (15:10 +0100)]
Merge branch 'bugfix'
* bugfix:
[asp.net] Fix for bug #670714. Menu is rendered correctly in 4.0 now (highlighting works)
Marek Habersack [Thu, 17 Mar 2011 14:08:53 +0000 (15:08 +0100)]
[asp.net] Fix for bug #670714. Menu is rendered correctly in 4.0 now (highlighting works)
Atsushi Eno [Thu, 17 Mar 2011 12:14:12 +0000 (21:14 +0900)]
Fix build; remove extra !NET_2_1.
Marek Safar [Thu, 17 Mar 2011 11:47:18 +0000 (11:47 +0000)]
Fix Buildin typo
Marek Safar [Thu, 17 Mar 2011 11:35:25 +0000 (11:35 +0000)]
Update to the latest IKVM reflection
Atsushi Eno [Thu, 17 Mar 2011 11:04:12 +0000 (20:04 +0900)]
net.tcp Sized message with non-binarysession encoding should work now.
(Untested checkin.)
Atsushi Eno [Thu, 17 Mar 2011 10:26:54 +0000 (19:26 +0900)]
Support encoding record other than binary session in TCP channel frame reader.
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 06:22:23 +0000 (02:22 -0400)]
Hook ProopertyNotified event on data sources
Patch by Rasmus Toftahl Olesen that fixes bug #585577.
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 05:58:55 +0000 (01:58 -0400)]
[Threadpool] Handle multiple calls to cleanup
Don't fail if mono_thread_pool_cleanup() is called more than once.
Fixes bug #678662.
Miguel de Icaza [Thu, 17 Mar 2011 01:46:02 +0000 (21:46 -0400)]
More NET_2_0 define removal
Miguel de Icaza [Thu, 17 Mar 2011 01:25:44 +0000 (21:25 -0400)]
Style changes as I edit this file
Bret Kiefer [Thu, 17 Mar 2011 01:12:13 +0000 (21:12 -0400)]
Speed up the StringReader by not scanning twice for the end-of-the-line
markers.
System.IO.StringReader.ReadLine will scan all the way to the end of a string
that is using Unix line endings, because it always searches for both CR and LF.
So reading all of a StringReader's lines using repeated calls to ReadLine is
O(n^2) on the number of characters in the file (if you figure that the number
of line endings is linear on the number of characters in the string). This is
making some things time out for us
Atsushi Eno [Thu, 17 Mar 2011 01:00:42 +0000 (10:00 +0900)]
Complete previous XmlNodeList revert to get it working again.
Marek Habersack [Thu, 17 Mar 2011 00:52:29 +0000 (01:52 +0100)]
Merge branch 'bugfix'
* bugfix:
[asp.net] Fix for bug #670874. Match request URLs against precompiled dictionary using absolute paths.
Marek Habersack [Thu, 17 Mar 2011 00:50:35 +0000 (01:50 +0100)]
[asp.net] Fix for bug #670874. Match request URLs against precompiled dictionary using absolute paths.
Zoltan Varga [Thu, 17 Mar 2011 00:27:07 +0000 (01:27 +0100)]
Fix the title of the Mono.Debugger.Soft assembly monodoc.
Marek Habersack [Wed, 16 Mar 2011 23:53:18 +0000 (00:53 +0100)]
[asp.net] Fixes bug #676008. HtmlForm 'name' attribute rendering fixes.
The 'name' attribute is rendered using the static ID of 'aspnetForm' if
the form is in a naming container other than the Page control. Inside Page,
the form's ID is rendered. The attribute is output in .NET 4.0 only if control
rendering compatibility is less than 4.0
Rolf Bjarne Kvinge [Wed, 16 Mar 2011 22:28:52 +0000 (23:28 +0100)]
Revert "[io-layer] Handle process waits when SHM is disabled."
Revert "[io-layer] Make my previous patch signal safe."
This reverts commit
2bb69090d7955869779445e9f13a311119b9f79b.
This reverts commit
c183437b7755525c5dfeeecd8e76f7ac16b9cfcb.
It's not working properly with Process.WaitForExit (<timeout>).
Gonzalo Paniagua Javier [Wed, 16 Mar 2011 20:09:49 +0000 (16:09 -0400)]
[io-layer] Don't use Get/SetLastError after wapi shutdown.
handle_cleanup() is called at exit and might try to clean things up
twice, causes a WSANOTUNITIALISED and then a segmentation fault trying
to use a pthread key that has already been freed.
Gonzalo Paniagua Javier [Wed, 16 Mar 2011 17:44:20 +0000 (13:44 -0400)]
[io-layer] Make my previous patch signal safe.
Marek Habersack [Wed, 16 Mar 2011 15:17:41 +0000 (16:17 +0100)]
[asp.net] Fix for bug #668696. Handle recursive locks gracefully.
Zoltan Varga [Wed, 16 Mar 2011 13:42:05 +0000 (14:42 +0100)]
Fix support for generic virtual thunks in full-aot.
Zoltan Varga [Wed, 16 Mar 2011 13:41:08 +0000 (14:41 +0100)]
Add local symbols for imt/trampolines etc. in AOT.
Zoltan Varga [Wed, 16 Mar 2011 13:39:57 +0000 (14:39 +0100)]
Add a cache for virtual generic thunks to avoid freeing those created by AOT.
Zoltan Varga [Mon, 14 Mar 2011 22:09:06 +0000 (23:09 +0100)]
Pretty print MonoVTable in xdebug.
Zoltan Varga [Mon, 14 Mar 2011 22:07:57 +0000 (23:07 +0100)]
Avoid calling class cctors during JITting when the same class needs initialization more than once during a method. Fixes #679467.
Atsushi Eno [Wed, 16 Mar 2011 11:54:03 +0000 (20:54 +0900)]
Enable behaviors in mobile profiles for WebHttpBinding.
Atsushi Eno [Wed, 16 Mar 2011 11:51:41 +0000 (20:51 +0900)]
Enable more behavior interface member in NET_2_1.
Atsushi Eno [Wed, 16 Mar 2011 11:41:53 +0000 (20:41 +0900)]
Enable more behaviors use in NET_2_1 land, toward WebHttpBinding.
Atsushi Eno [Wed, 16 Mar 2011 11:32:21 +0000 (20:32 +0900)]
Implement more encodings than binary frame with dictionary, in TCP manager.
(not known to not regress in nunit tests..)
Atsushi Eno [Wed, 16 Mar 2011 11:30:30 +0000 (20:30 +0900)]
Fix MessageID element name in discovery contracts.
Koushik Dutta [Wed, 16 Mar 2011 07:22:55 +0000 (00:22 -0700)]
Fix bug where if a task is Start-ed with a specific scheduler,
that scheduler is ignored if it is in a thread owned by another
scheduler. Tasks should not be locked to the scheduler that
owns the calling thread.
Fix bug where TryExecuteTask does not actually try to execute
the task. Instead, TryExecuteTaskInline is called, which is
abstract. The TpScheduler implementation, the default, then
calls the internal method Task.Execute which then actually
executes the task. The problem with this is that only 3rd
party schedulers, can't actually execute a task, thus making
extending TaskScheduler impossible. (Unless they use some
serious Mono specific reflection hacks as I am now.)
Jérémie Laval [Wed, 16 Mar 2011 08:30:14 +0000 (09:30 +0100)]
Correctly implement enumerating CyclicDequeue.
Fix #679174
Atsushi Eno [Wed, 16 Mar 2011 08:20:00 +0000 (17:20 +0900)]
Add endpoint behavior support in NET_2_1, which involved not a few additions.
Atsushi Eno [Wed, 16 Mar 2011 07:40:48 +0000 (16:40 +0900)]
Revert XPathNodeIteratorNodeListIterator2-based iterator.
Fixed #679425, but it may regress since no test case is provided.
Gonzalo Paniagua Javier [Wed, 16 Mar 2011 05:59:40 +0000 (01:59 -0400)]
Fix g_get_charset for windows.
Patch by Horst Kakuschke that fixes bug #660412.
Gonzalo Paniagua Javier [Wed, 16 Mar 2011 05:47:43 +0000 (01:47 -0400)]
[io-layer] Handle process waits when SHM is disabled.
When SHM is disabled, handle SIGCHLD and either fill the info for the
process handle or just wait for the process to avoid zombies.
Fixes bug #668867.
Miguel de Icaza [Wed, 16 Mar 2011 05:51:19 +0000 (01:51 -0400)]
Re-enable the Decimal(double) constructor that uses our direct transformation
from a double into a decimal.
This is too good to be true. The only change was to set the rounding bit in the
call to rescale the results.
This should fix bug #584736, and hopefully does not regress anythign else. The
decimal test suite in corlib passes.
Marek Habersack [Wed, 16 Mar 2011 01:31:00 +0000 (02:31 +0100)]
Compilation fix
Jason Cohen [Wed, 16 Mar 2011 01:30:11 +0000 (02:30 +0100)]
[asp.net] Fix for bug #678705. Menu list rendered properly closes the list now.
Bassam Tabbara [Wed, 16 Mar 2011 00:10:55 +0000 (01:10 +0100)]
[asp.net] Fix for bug #667513. Implement support for PathInfo in Route.GetRouteData
Jb Evain [Tue, 15 Mar 2011 21:18:36 +0000 (22:18 +0100)]
Handle conversion to System.Enum
Jb Evain [Tue, 15 Mar 2011 21:18:04 +0000 (22:18 +0100)]
Add test for bug ug #678897
Gonzalo Paniagua Javier [Tue, 15 Mar 2011 20:28:13 +0000 (16:28 -0400)]
[Semaphore] Remove warnings
Rodrigo Kumpera [Tue, 15 Mar 2011 17:45:56 +0000 (18:45 +0100)]
Reintroduce support for orig_ex_ctx
Rodrigo Kumpera [Tue, 15 Mar 2011 17:43:38 +0000 (18:43 +0100)]
Fix signature
Rodrigo Kumpera [Tue, 15 Mar 2011 17:16:25 +0000 (18:16 +0100)]
Add mono_sgen_thread_info_current to speedup self lookups.
* sgen-gc.c: Add mono_sgen_thread_info_current which
make self lookups much faster by avoiding a hashtable
lookup.
Veerapuram Varadhan [Tue, 15 Mar 2011 17:15:39 +0000 (22:45 +0530)]
[ado.net]fixes 672113 - Keep a copy of columns array in constraints than
a reference
Rodrigo Kumpera [Tue, 15 Mar 2011 16:31:24 +0000 (17:31 +0100)]
Use constant stack space for STW under darwin.
* sgen-gc.h: Since darwin doesn't use signals to
stop the target threads, we must reserve space for
register in SgenThreadInfo.
* sgen-os-mach.c (mono_sgen_thread_handshake): Don't
alloca inside the loop. Make sure each thread registers
are copied to the right place.
Rodrigo Kumpera [Tue, 15 Mar 2011 16:02:39 +0000 (17:02 +0100)]
Leverage SgenThreadInfo::mach_port.
* mach-support-*.c (mono_mach_arch_get_tls_value_from_thread):
This function now receives pthread_t instead of mach_port
as argument, so avoiding an expensive call to
pthread_from_mach_thread_np.
* sgen-os-mach.c (mono_sgen_thread_handshake): Loop over
the registered threads insted of asking the kernel to enumerate
them. Avoid calling pthread_from_mach_thread_np which takes
a lock and is O(n) on the number of threads.
Rodrigo Kumpera [Tue, 15 Mar 2011 15:35:09 +0000 (16:35 +0100)]
Store the mach port on SgenThreadInfo
Jackson Harper [Tue, 15 Mar 2011 16:03:47 +0000 (12:03 -0400)]
Add prefix to cref link, fixes link breakage in Kipunji.
Atsushi Eno [Tue, 15 Mar 2011 12:01:31 +0000 (21:01 +0900)]
avoid NRE on non-binary encoding use in TcpTransport.
Gonzalo Paniagua Javier [Tue, 15 Mar 2011 02:50:10 +0000 (22:50 -0400)]
Appdomain refs can be NULL in pop_refs
This fixes a bunch of test I broke with my previoius commit.