mono.git
13 years agoMIPS: Take operand size into account when inverting stack offsets
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.

13 years agoMIPS: Sanity check stack unwinding progress using frame pointer, not PC
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.

13 years agoMIPS: Remove unused variables in mono_arch_find_jit_info
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.

13 years agoMIPS: Delete unused function glist_to_array
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.

13 years agoMIPS: Switch from register to on-stack arguments before looking at stack_size
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.

13 years agoMIPS: Fix IMT thunk size computation
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.

13 years agoMove MonoContext to mono-context for mips
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.

13 years agoFix build
Miguel de Icaza [Sat, 19 Mar 2011 02:13:43 +0000 (22:13 -0400)]
Fix build

13 years ago[windows] Make the connect hack work again.
Gonzalo Paniagua Javier [Fri, 18 Mar 2011 23:40:43 +0000 (19:40 -0400)]
[windows] Make the connect hack work again.

13 years agoRevert "Replace old connect hack with _pipe on windows."
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.

13 years agoRevert "Remove unneeded function and use same code for win/lin"
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.

13 years agoMust pass null to overloaded constructor instead of wrapper lambda (TaskCompletionSou...
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)

13 years agoIf the function is null Wait will not get called and will not check if Future is...
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

13 years agoContinuation options should be checked as flags
Rafael Munitic [Fri, 18 Mar 2011 22:08:22 +0000 (18:08 -0400)]
Continuation options should be checked as flags

13 years agoAmend last commit
Marek Safar [Fri, 18 Mar 2011 18:44:33 +0000 (18:44 +0000)]
Amend last commit

13 years ago[677173] Use independent clone context for probing type expression
Marek Safar [Fri, 18 Mar 2011 18:38:25 +0000 (18:38 +0000)]
[677173] Use independent clone context for probing type expression

13 years agoFix exception handling on windows x64.
Mark Sciabica [Fri, 18 Mar 2011 16:59:28 +0000 (17:59 +0100)]
Fix exception handling on windows x64.

13 years agoRemove more static references
Marek Safar [Fri, 18 Mar 2011 16:51:35 +0000 (16:51 +0000)]
Remove more static references

13 years agoUse stdint.h in eglib when using VS 2010.
Zoltan Varga [Fri, 18 Mar 2011 16:36:20 +0000 (17:36 +0100)]
Use stdint.h in eglib when using VS 2010.

13 years agoFix some warnings.
Zoltan Varga [Fri, 18 Mar 2011 16:31:32 +0000 (17:31 +0100)]
Fix some warnings.

13 years agoRemove some internal functions from mono.def.
Zoltan Varga [Fri, 18 Mar 2011 16:12:42 +0000 (17:12 +0100)]
Remove some internal functions from mono.def.

13 years ago[mdoc] Flush expected test output.
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.

13 years agoFixes variance check for interface properties with only one accessor
Marek Safar [Fri, 18 Mar 2011 15:37:11 +0000 (15:37 +0000)]
Fixes variance check for interface properties with only one accessor

13 years agoAdd a missing newline.
Zoltan Varga [Fri, 18 Mar 2011 14:58:53 +0000 (15:58 +0100)]
Add a missing newline.

13 years ago[679530] Fixed size buffers are not subject to definite assignment checking
Marek Safar [Fri, 18 Mar 2011 14:32:51 +0000 (14:32 +0000)]
[679530] Fixed size buffers are not subject to definite assignment checking

13 years agoCRLF conversion
Marek Safar [Fri, 18 Mar 2011 12:40:01 +0000 (12:40 +0000)]
CRLF conversion

13 years agoBetter error message for identical type names
Marek Safar [Fri, 18 Mar 2011 12:38:59 +0000 (12:38 +0000)]
Better error message for identical type names

13 years ago[678726] Dynamic inside anonoymous methods does not always mutate calling types
Marek Safar [Fri, 18 Mar 2011 12:33:39 +0000 (12:33 +0000)]
[678726] Dynamic inside anonoymous methods does not always mutate calling types

13 years agoin XamlXmlReader, read <FooType.BarMember>-style element.
Atsushi Eno [Fri, 18 Mar 2011 08:23:20 +0000 (17:23 +0900)]
in XamlXmlReader, read <FooType.BarMember>-style element.

Fixed bug #680385.

13 years agoXamlType lookup from xml name failed when [XmlnsDefinition] is involved.
Atsushi Eno [Fri, 18 Mar 2011 06:57:09 +0000 (15:57 +0900)]
XamlType lookup from xml name failed when [XmlnsDefinition] is involved.

13 years agoFix the host name returned in GetHostEntry.
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.

13 years agoMove get_hazardous_pointer to utils/hazard-pointer.
Rodrigo Kumpera [Fri, 18 Mar 2011 00:14:02 +0000 (01:14 +0100)]
Move get_hazardous_pointer to utils/hazard-pointer.

13 years agoMove hazard pointer and small_id code 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.

13 years agoRemove NET_2_0
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 22:53:39 +0000 (18:53 -0400)]
Remove NET_2_0

13 years agoRemove unneeded function and use same code for win/lin
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 21:06:47 +0000 (17:06 -0400)]
Remove unneeded function and use same code for win/lin

13 years agoReplace old connect hack with _pipe on windows.
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 20:56:10 +0000 (16:56 -0400)]
Replace old connect hack with _pipe on windows.

13 years agoSwitch to the domain of the assembly in question while executing CMD_ASSEMBLY_GET_TYP...
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.

13 years agoUpdate the mcs -pkg suggestions, i.e. use gtk-sharp-2.0 instead of gtk-sharp.
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.

13 years agoFix for #475124. DowngradeFromWriterLock only resets to a reader lock state
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

13 years ago[asp.net] Return the correct Mime type for 304.
Gonzalo Paniagua Javier [Thu, 17 Mar 2011 16:49:31 +0000 (12:49 -0400)]
[asp.net] Return the correct Mime type for 304.

13 years ago[sgen] A small Mach thread handshake fix.
Mark Probst [Thu, 17 Mar 2011 16:11:15 +0000 (17:11 +0100)]
[sgen] A small Mach thread handshake fix.

13 years ago[asp.net] Test for bug #655474
Marek Habersack [Thu, 17 Mar 2011 15:36:50 +0000 (16:36 +0100)]
[asp.net] Test for bug #655474

13 years ago[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:23 +0000 (16:15 +0100)]
[asp.net] Fix for bug #655474. Don't assume an Uri being serialized is an absolute one

13 years ago[asp.net] Test compilation fix for System.Web.Extensions
Marek Habersack [Thu, 17 Mar 2011 15:15:15 +0000 (16:15 +0100)]
[asp.net] Test compilation fix for System.Web.Extensions

13 years agoRemoved debug noise
Marek Habersack [Thu, 17 Mar 2011 14:41:07 +0000 (15:41 +0100)]
Removed debug noise

13 years ago[asp.net] Fix for bug #678473. Do not map paths of absolute file paths when passed...
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

13 years agoMerge branch 'bugfix'
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)

13 years ago[asp.net] Fix for bug #670714. Menu is rendered correctly in 4.0 now (highlighting...
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)

13 years agoFix build; remove extra !NET_2_1.
Atsushi Eno [Thu, 17 Mar 2011 12:14:12 +0000 (21:14 +0900)]
Fix build; remove extra !NET_2_1.

13 years agoFix Buildin typo
Marek Safar [Thu, 17 Mar 2011 11:47:18 +0000 (11:47 +0000)]
Fix Buildin typo

13 years agoUpdate to the latest IKVM reflection
Marek Safar [Thu, 17 Mar 2011 11:35:25 +0000 (11:35 +0000)]
Update to the latest IKVM reflection

13 years agonet.tcp Sized message with non-binarysession encoding should work now.
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.)

13 years agoSupport encoding record other than binary session in TCP channel frame reader.
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.

13 years agoHook ProopertyNotified event on data sources
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.

13 years ago[Threadpool] Handle multiple calls to cleanup
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.

13 years agoMore NET_2_0 define removal
Miguel de Icaza [Thu, 17 Mar 2011 01:46:02 +0000 (21:46 -0400)]
More NET_2_0 define removal

13 years agoStyle changes as I edit this file
Miguel de Icaza [Thu, 17 Mar 2011 01:25:44 +0000 (21:25 -0400)]
Style changes as I edit this file

13 years agoSpeed up the StringReader by not scanning twice for the end-of-the-line
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

13 years agoComplete previous XmlNodeList revert to get it working again.
Atsushi Eno [Thu, 17 Mar 2011 01:00:42 +0000 (10:00 +0900)]
Complete previous XmlNodeList revert to get it working again.

13 years agoMerge branch 'bugfix'
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.

13 years ago[asp.net] Fix for bug #670874. Match request URLs against precompiled dictionary...
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.

13 years agoFix the title of the Mono.Debugger.Soft assembly monodoc.
Zoltan Varga [Thu, 17 Mar 2011 00:27:07 +0000 (01:27 +0100)]
Fix the title of the Mono.Debugger.Soft assembly monodoc.

13 years ago[asp.net] Fixes bug #676008. HtmlForm 'name' attribute rendering fixes.
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

13 years agoRevert "[io-layer] Handle process waits when SHM is disabled."
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>).

13 years ago[io-layer] Don't use Get/SetLastError after wapi shutdown.
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.

13 years ago[io-layer] Make my previous patch signal safe.
Gonzalo Paniagua Javier [Wed, 16 Mar 2011 17:44:20 +0000 (13:44 -0400)]
[io-layer] Make my previous patch signal safe.

13 years ago[asp.net] Fix for bug #668696. Handle recursive locks gracefully.
Marek Habersack [Wed, 16 Mar 2011 15:17:41 +0000 (16:17 +0100)]
[asp.net] Fix for bug #668696. Handle recursive locks gracefully.

13 years agoFix support for generic virtual thunks in full-aot.
Zoltan Varga [Wed, 16 Mar 2011 13:42:05 +0000 (14:42 +0100)]
Fix support for generic virtual thunks in full-aot.

13 years agoAdd local symbols for imt/trampolines etc. in AOT.
Zoltan Varga [Wed, 16 Mar 2011 13:41:08 +0000 (14:41 +0100)]
Add local symbols for imt/trampolines etc. in AOT.

13 years agoAdd a cache for virtual generic thunks to avoid freeing those created by 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.

13 years agoPretty print MonoVTable in xdebug.
Zoltan Varga [Mon, 14 Mar 2011 22:09:06 +0000 (23:09 +0100)]
Pretty print MonoVTable in xdebug.

13 years agoAvoid calling class cctors during JITting when the same class needs initialization...
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.

13 years agoEnable behaviors in mobile profiles for WebHttpBinding.
Atsushi Eno [Wed, 16 Mar 2011 11:54:03 +0000 (20:54 +0900)]
Enable behaviors in mobile profiles for WebHttpBinding.

13 years agoEnable more behavior interface member in NET_2_1.
Atsushi Eno [Wed, 16 Mar 2011 11:51:41 +0000 (20:51 +0900)]
Enable more behavior interface member in NET_2_1.

13 years agoEnable more behaviors use in NET_2_1 land, toward WebHttpBinding.
Atsushi Eno [Wed, 16 Mar 2011 11:41:53 +0000 (20:41 +0900)]
Enable more behaviors use in NET_2_1 land, toward WebHttpBinding.

13 years agoImplement more encodings than binary frame with dictionary, in TCP manager.
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..)

13 years agoFix MessageID element name in discovery contracts.
Atsushi Eno [Wed, 16 Mar 2011 11:30:30 +0000 (20:30 +0900)]
Fix MessageID element name in discovery contracts.

13 years agoFix bug where if a task is Start-ed with a specific scheduler,
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.)

13 years agoCorrectly implement enumerating CyclicDequeue.
Jérémie Laval [Wed, 16 Mar 2011 08:30:14 +0000 (09:30 +0100)]
Correctly implement enumerating CyclicDequeue.

Fix #679174

13 years agoAdd endpoint behavior support in NET_2_1, which involved not a few additions.
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.

13 years agoRevert XPathNodeIteratorNodeListIterator2-based iterator.
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.

13 years agoFix g_get_charset for windows.
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.

13 years ago[io-layer] Handle process waits when SHM is disabled.
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.

13 years agoRe-enable the Decimal(double) constructor that uses our direct transformation
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.

13 years agoCompilation fix
Marek Habersack [Wed, 16 Mar 2011 01:31:00 +0000 (02:31 +0100)]
Compilation fix

13 years ago[asp.net] Fix for bug #678705. Menu list rendered properly closes the list now.
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.

13 years ago[asp.net] Fix for bug #667513. Implement support for PathInfo in Route.GetRouteData
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

13 years agoHandle conversion to System.Enum
Jb Evain [Tue, 15 Mar 2011 21:18:36 +0000 (22:18 +0100)]
Handle conversion to System.Enum

13 years agoAdd test for bug ug #678897
Jb Evain [Tue, 15 Mar 2011 21:18:04 +0000 (22:18 +0100)]
Add test for bug ug #678897

13 years ago[Semaphore] Remove warnings
Gonzalo Paniagua Javier [Tue, 15 Mar 2011 20:28:13 +0000 (16:28 -0400)]
[Semaphore] Remove warnings

13 years agoReintroduce support for orig_ex_ctx
Rodrigo Kumpera [Tue, 15 Mar 2011 17:45:56 +0000 (18:45 +0100)]
Reintroduce support for orig_ex_ctx

13 years agoFix signature
Rodrigo Kumpera [Tue, 15 Mar 2011 17:43:38 +0000 (18:43 +0100)]
Fix signature

13 years agoAdd mono_sgen_thread_info_current to speedup self lookups.
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.

13 years ago[ado.net]fixes 672113 - Keep a copy of columns array in constraints than
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

13 years agoUse constant stack space for STW under darwin.
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.

13 years agoLeverage SgenThreadInfo::mach_port.
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.

13 years agoStore the mach port on SgenThreadInfo
Rodrigo Kumpera [Tue, 15 Mar 2011 15:35:09 +0000 (16:35 +0100)]
Store the mach port on SgenThreadInfo

13 years agoAdd prefix to cref link, fixes link breakage in Kipunji.
Jackson Harper [Tue, 15 Mar 2011 16:03:47 +0000 (12:03 -0400)]
Add prefix to cref link, fixes link breakage in Kipunji.

13 years agoavoid NRE on non-binary encoding use in TcpTransport.
Atsushi Eno [Tue, 15 Mar 2011 12:01:31 +0000 (21:01 +0900)]
avoid NRE on non-binary encoding use in TcpTransport.

13 years agoAppdomain refs can be NULL in pop_refs
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.