Mark Probst [Mon, 18 Jun 2012 20:17:01 +0000 (22:17 +0200)]
Merge remote-tracking branch 'public/master'
Rodrigo Kumpera [Mon, 18 Jun 2012 19:37:15 +0000 (16:37 -0300)]
Fix the String.Intern test to reflect the fact that String.Intern can return a different result.
Marek Safar [Mon, 18 Jun 2012 18:28:50 +0000 (19:28 +0100)]
Disable few more tests
Marek Safar [Mon, 18 Jun 2012 18:28:04 +0000 (19:28 +0100)]
Fix Microsoft.Build.Tasks tests
Marek Safar [Mon, 18 Jun 2012 15:29:47 +0000 (16:29 +0100)]
Disable more failing tests
Rodrigo Kumpera [Mon, 18 Jun 2012 15:12:50 +0000 (12:12 -0300)]
Improve Delegate::Combine error message.
Miguel de Icaza [Mon, 18 Jun 2012 12:41:01 +0000 (05:41 -0700)]
Merge pull request #332 from robwilkens/Bug2663-fix
Bug 2663: Regular Expression Bug Fixes
Rob Wilkens [Mon, 18 Jun 2012 11:38:57 +0000 (07:38 -0400)]
Bug 2663: Regular Expression Bug Fixes
What this fixes:
IF you were checking a regex which contained something like "(A|AB)C" and then you
checked something like "ABC" against it, it would fail previously, because its
first trip thru the regex it would match "A" first and short circuit out of the
"or" (|) then next try to match "C" but find "B" and fail. In this case, it should
be obvious that it needs to, after it fails, go back and try "AB" rather than "A"
and that's where this patch comes in.
Brief summary of each change in order that "git diff --staged" is giving them to
me:
This first one summarizes the background of goal of project:
New Function: EmitJumpTest
For when we are evaluating Alternatives (or's) we now want to be able to go back
and try or paths we haven't already tried if and only if we fail. This alternate to
EmitJump instead of jumping to target if we have a match immediately, will
on first attempt do the jump, but later if we have already tried this jump
combination, it will jump to ElseTarget, which is the equivalent of this test
failing on subsequent attempts with the same combination of 'or's passing.
RxCompiler:
EmitJumpTest isn't implemented for RxCompiler because i didn't have sample
code to test it on, so it falls back to a regular jump, nothing changes in
RxCompiler in other words other than having this required fucntion front.
arch.cs:
New OpCode added for JumpTest (see EmitJumpTest above)
compiler.cs:
EmitJumpTest added here for regular compiler, it now takes two arguments (two
items on stack) first was the standard where to jump to address, the second
argument is where to jump to in case where we have already tried this
combination)
interpreter.cs:
JumpTestEntry - What we keep track of to know if we've been here before, for
now i presumed just 'pc' (program counter') and 'ptr' (pointer - where we are)
were enough to tell us if we've been to this particular spot before.
Eval has been moved into Eval_Real
Eval if it gets called with parameters indicating we've already been here
(i.e we're being called recursively) just passes the call directly to eval_real
as-was.
Otherwise eval will loop on eval_real while we fail and haven't tried every
possible path through all the or's. (Note: The special case of where we're
running a 'test' (i.e. checking !(a|b|c) rather than just matching (a|b|c)),
and if we're running a test, we turn off JumpTestTracking while it's in its
recursive section. The reason for this is because while we can rightly check
all the options of (a|ab|abc) first for a then try again with ab then try again
with abc, we cannot do the same for a not (i.e. !(something or something else)
is really (not something AND not somtehing else), and it is not (not something
or not something else))
JumpTestList tracks our current run's JumpTest calls...
TriedCombo's tracks all the combos (all the JumpTestList results) that we've
already tried.
All calls to anything which calls Eval were modified to call eval passing
the optional new parameters that we now need, and remember if we call
eval with those parameters having a value, it will just forward the call
to Eval_Real.
This included modifying TryMatch because it calls Eval.
OpCode.JumpTest handler was added, what it does is first check if we need
to ByPass to jump to 'else' right away, which again happens when we're in
a test recursive call (Checking not, for example).
Next, it will create and populate a new JumpTestEntry with the current values.
It then calls CheckComboMatch() which sees if we match a combo already on file.
If we don't have a Match we jump to the first label (at pc+1) which is the
regular jump call. If we have a match, though, it will jump to the else label
which is now at (pc+2).
CheckComboMatch had to be broken up into two functions because it was going
too deep in terms of nesting. What it does by now should be somewhat understood
it will see if we have a match between our current run and previous runs, and
if we have a match, it returns true. If we don't have a match, it returns
false. I have some doubts about whether this function is 100% correct, there
may remain a bug or two, but it does pass all the "System" unit tests which
includes all the regular expression tests, plus it works for all the tests
in the bug report, so i have little reason to mess with it.
syntax.cs:
Here's where i modified so that when evaluating alternatives ("or"s or "|"s)
we instead call EmitJumpTest rather than just a regular EmitJump.
RegExBugs.cs:
This is the unit test (a bunch in one) which fails on mono without this patch
but succeeds with it
commit
48027ac2bdd9b60d18985ec2537eb188607f8164 1 parent
91c4180d55
This patch was originally submitted under another branch which had a bunch of
unrelated commits in it. I'm hoping if i did this right, these changes stand
alone.
Marek Safar [Mon, 18 Jun 2012 08:40:34 +0000 (01:40 -0700)]
Merge pull request #331 from viniciusjarina/uri_lite2
Removed RegularExpressions dependency from UriParser
Steven Boswell II [Mon, 18 Jun 2012 05:49:03 +0000 (07:49 +0200)]
Fix OneClickComboBoxCell test on Windows
Thomas Goldstein [Sun, 17 Jun 2012 22:20:02 +0000 (00:20 +0200)]
Reformatting to match Mono coding style guidelines
Steven Boswell II [Sun, 17 Jun 2012 22:13:56 +0000 (00:13 +0200)]
Make it so the last-edited cell change is committed rather than not lost, when the user leaves the DataGridView. Fixes Xamarin bug 5420.
Vinicius Jarina [Sun, 17 Jun 2012 22:11:46 +0000 (19:11 -0300)]
Removed RegularExpressions dependency from UriParser
Zoltan Varga [Sun, 17 Jun 2012 00:46:07 +0000 (17:46 -0700)]
Merge pull request #330 from metanest/freebsdtla_2012Jun_spike
To use thread local alloc in FreeBSD
KISHIMOTO, Makoto [Sun, 17 Jun 2012 00:02:28 +0000 (09:02 +0900)]
To use thread local alloc in FreeBSD
Zoltan Varga [Sat, 16 Jun 2012 18:48:57 +0000 (20:48 +0200)]
Change some GC defines to runtime checks in metadata/.
Zoltan Varga [Sat, 16 Jun 2012 09:58:26 +0000 (02:58 -0700)]
Merge pull request #328 from metanest/bsdsendfile_2012Jun_spike
any BSD's sendfile has 6 arguments
KISHIMOTO, Makoto [Sat, 16 Jun 2012 02:04:33 +0000 (11:04 +0900)]
any BSD's sendfile has 6 arguments
Zoltan Varga [Fri, 15 Jun 2012 23:52:15 +0000 (01:52 +0200)]
Implement column number support in sdb.
Zoltan Varga [Fri, 15 Jun 2012 21:38:55 +0000 (14:38 -0700)]
Merge pull request #327 from metanest/mincorevisibilityproblem_2012Jun_spike
mincore(2) isnot X/Ooen standard
KISHIMOTO, Makoto [Fri, 15 Jun 2012 21:15:46 +0000 (06:15 +0900)]
mincore(2) isnot X/Ooen standard
Marek Safar [Fri, 15 Jun 2012 18:33:12 +0000 (19:33 +0100)]
Testing wrench build
Marek Safar [Fri, 15 Jun 2012 15:13:59 +0000 (16:13 +0100)]
Try to fix Microsoft.Build.Tasks tests
Marek Safar [Fri, 15 Jun 2012 15:04:08 +0000 (16:04 +0100)]
Try to fix Directory.EnumerateFiles for hidden files
Marek Safar [Fri, 15 Jun 2012 13:36:09 +0000 (14:36 +0100)]
Add SqliteTest.db to dist
Atsushi Eno [Fri, 15 Jun 2012 13:03:59 +0000 (22:03 +0900)]
Do not use @ which is not always available. Use "" instead (which is not perfect but should be better).
Atsushi Eno [Fri, 15 Jun 2012 13:02:58 +0000 (22:02 +0900)]
do not bundle mscorlib.dll that is running mkbundle.exe. Bundle explicitly passed one instead.
Marek Safar [Fri, 15 Jun 2012 12:50:23 +0000 (13:50 +0100)]
Few few httplistener races
Marek Safar [Fri, 15 Jun 2012 10:24:56 +0000 (11:24 +0100)]
Print failure message
Marek Safar [Fri, 15 Jun 2012 10:21:03 +0000 (11:21 +0100)]
Update SqliteTest.db
Marek Safar [Fri, 15 Jun 2012 10:18:55 +0000 (11:18 +0100)]
Fix TestMenuItemsDispose test
Marek Safar [Fri, 15 Jun 2012 10:15:57 +0000 (11:15 +0100)]
Add timeout to webrequest tests
Marek Safar [Fri, 15 Jun 2012 09:30:18 +0000 (10:30 +0100)]
Fix column info for binary expressions
Zoltan Varga [Fri, 15 Jun 2012 07:29:40 +0000 (00:29 -0700)]
Merge pull request #326 from metanest/master
newlines at end of some files in mono/metadata/
KISHIMOTO, Makoto [Fri, 15 Jun 2012 05:02:34 +0000 (14:02 +0900)]
newlines at end of some files in mono/metadata/
Zoltan Varga [Thu, 14 Jun 2012 23:53:31 +0000 (01:53 +0200)]
Make keepalive processing in sdb resilient to the syscall interrupts caused by GCs. Fixes #4725.
Zoltan Varga [Thu, 14 Jun 2012 19:07:06 +0000 (21:07 +0200)]
Stringify SET_KEEPALIVE protocol message in sdb logging.
rick@gibbed.us [Thu, 14 Jun 2012 18:18:33 +0000 (20:18 +0200)]
Do not serialize ListViewItem.Group if it's null. Fixes Xamarin bug 3840.
Zoltan Varga [Thu, 14 Jun 2012 17:05:10 +0000 (19:05 +0200)]
Fix the AOT excluded optimization check in
94e15085d5bb0ecc9bd3e25af63c14d3a9d0e53b.
Marek Safar [Thu, 14 Jun 2012 16:11:47 +0000 (17:11 +0100)]
Disable some deadlocking plinq tests
Marek Safar [Thu, 14 Jun 2012 15:09:33 +0000 (16:09 +0100)]
Disable failing tests
Marek Safar [Thu, 14 Jun 2012 15:00:52 +0000 (16:00 +0100)]
Disable failing tests
Marek Safar [Thu, 14 Jun 2012 14:49:40 +0000 (15:49 +0100)]
Add some logging to failing test
Marek Safar [Thu, 14 Jun 2012 14:44:35 +0000 (15:44 +0100)]
Clean up some NET_2_0
Marek Safar [Thu, 14 Jun 2012 14:08:08 +0000 (15:08 +0100)]
Fix some failing tests
Marek Safar [Thu, 14 Jun 2012 13:00:51 +0000 (14:00 +0100)]
When checking override base method also check for declaring type visibility
Marek Safar [Thu, 14 Jun 2012 07:08:59 +0000 (00:08 -0700)]
Merge pull request #324 from adbre/master
Fix for bug #4814
Adam Brengesjö [Wed, 13 Jun 2012 21:24:27 +0000 (23:24 +0200)]
Add Assert.Fail if no FormatException is thrown.
Adam Brengesjö [Tue, 12 Jun 2012 15:53:12 +0000 (17:53 +0200)]
Check if number format info properties are empty first.
Fixes issue #4814
https://bugzilla.xamarin.com/show_bug.cgi?id=4814
Adam Brengesjö [Tue, 12 Jun 2012 16:20:41 +0000 (18:20 +0200)]
Add NUnit tests for bug #4814
Thomas Goldstein [Wed, 13 Jun 2012 19:23:08 +0000 (21:23 +0200)]
Fix minor whitespace issues
Thomas Goldstein [Wed, 13 Jun 2012 19:14:39 +0000 (21:14 +0200)]
Unit test for bug 3418
eb1@sil.org [Wed, 13 Jun 2012 19:13:14 +0000 (21:13 +0200)]
Make it so disposing of a Menu causes its MenuItems to get disposed too. Fixes Xamarin bug 3418.
Marek Safar [Wed, 13 Jun 2012 14:17:35 +0000 (15:17 +0100)]
Include source line column info in MDB files
Marek Safar [Wed, 13 Jun 2012 08:02:38 +0000 (09:02 +0100)]
Add Write7BitEncodedInt test
Martin Baulig [Tue, 12 Jun 2012 16:26:00 +0000 (18:26 +0200)]
Fix prepared queries.
You may pass either 0 or -1 as initial value of sp_prepare's @Handle
parameter, but not null. Tested with MS SQL 2008 RC2 Express and
MS SQL 2012 Express.
Atsushi Eno [Tue, 12 Jun 2012 10:08:13 +0000 (19:08 +0900)]
Revert "attempt to fix parallel build in RabbitMQ dir."
This reverts commit
3f89a6cfcf9e0461d538e04f75712663418c4298.
Atsushi Eno [Tue, 12 Jun 2012 10:07:50 +0000 (19:07 +0900)]
Revert "Those new hacky RabbitMQ sources files need to be included in dist."
This reverts commit
cfc5d8ae339c6212ac26ca1d522da3408a2cc508.
Atsushi Eno [Tue, 12 Jun 2012 10:07:38 +0000 (19:07 +0900)]
Revert "doh, miscopied file names."
This reverts commit
4c28538190cd04db181e1dd4e0506f44ae43c5aa.
Atsushi Eno [Tue, 12 Jun 2012 10:03:25 +0000 (19:03 +0900)]
doh, miscopied file names.
Atsushi Eno [Tue, 12 Jun 2012 09:57:48 +0000 (18:57 +0900)]
Those new hacky RabbitMQ sources files need to be included in dist.
Zoltan Varga [Tue, 12 Jun 2012 09:26:31 +0000 (11:26 +0200)]
Merge remote-tracking branch 'raof/aot-cpu-safety'
Zoltan Varga [Tue, 12 Jun 2012 09:26:15 +0000 (11:26 +0200)]
Revert "Merge pull request #321 from RAOF/aot-cpu-safety"
This reverts commit
f5303070433d282c19d37cfbb5cbfb9dc3d02d7e, reversing
changes made to
70927ed41c5e9075196372a6bb5aa1ef20f1d236.
Zoltan Varga [Tue, 12 Jun 2012 09:26:00 +0000 (11:26 +0200)]
Revert "Revert "Refuse to load AOT images using unsupported SIMD instructions""
This reverts commit
9fe654ddf34fd1643e6eadfd7033ad57934994f4.
Atsushi Eno [Tue, 12 Jun 2012 08:52:28 +0000 (17:52 +0900)]
attempt to fix parallel build in RabbitMQ dir.
Its' nasty, but who cares? (if whoever does, fix it.)
Marek Safar [Tue, 12 Jun 2012 07:50:43 +0000 (08:50 +0100)]
Make debug options case insensititive
Atsushi Eno [Tue, 12 Jun 2012 06:56:03 +0000 (15:56 +0900)]
bring back CodeContracts to mobile profiles.
Christopher James Halse Rogers [Mon, 11 Jun 2012 11:55:51 +0000 (21:55 +1000)]
Refuse to load AOT images using unsupported SIMD instructions
Contributed under MIT/X11 License
Christopher James Halse Rogers [Mon, 11 Jun 2012 07:51:27 +0000 (17:51 +1000)]
Fix spelling of confusingly-named mono_arch_cpu_optimizazions
Contributed under MIT/X11 License
Christopher James Halse Rogers [Mon, 11 Jun 2012 07:42:58 +0000 (17:42 +1000)]
Refuse to load an AOT image built with unsupported CPU optimisations
Contributed under MIT/X11 License
Rodrigo Kumpera [Mon, 11 Jun 2012 23:20:25 +0000 (20:20 -0300)]
Release gc roots of dynamic assemblies before calling mono_gc_clear_domain.
* domain.c (mono_domain_free): We clean all dynamic assemblies
of GC roots before asking the GC to clear the rest of the heap.
This is required since the GC expects all roots to be free
of refs to the dying domain before been invoked.
Fixes System.Runtime.Serialization test suite under sgen.
Rodrigo Kumpera [Mon, 11 Jun 2012 23:20:09 +0000 (20:20 -0300)]
Clear nursery fragments before doing xdomain checks before a collection.
Rodrigo Kumpera [Mon, 11 Jun 2012 23:19:25 +0000 (20:19 -0300)]
Fix verify-before-collect deadlock.
Zoltan Varga [Mon, 11 Jun 2012 20:53:17 +0000 (22:53 +0200)]
Correctly link the seq point for ENDFINALLY with its successors. Fixes #5566.
Steven Boswell II [Mon, 11 Jun 2012 19:53:07 +0000 (21:53 +0200)]
Make it so getting a DataGridViewComboBoxCell to drop down doesn't require extra clicks
Martin Baulig [Mon, 11 Jun 2012 17:59:50 +0000 (19:59 +0200)]
MS SQL Server 2012 Express doesn't like null here.
Martin Baulig [Fri, 8 Jun 2012 16:01:56 +0000 (18:01 +0200)]
Sync parameter names in System.Data with .NET.
Martin Baulig [Thu, 7 Jun 2012 18:09:39 +0000 (20:09 +0200)]
Use 'mcs' for .NET 4.5.
Marek Safar [Mon, 11 Jun 2012 15:01:34 +0000 (16:01 +0100)]
Fix CancellationTokenSource cancellation during Dispose
Zoltan Varga [Mon, 11 Jun 2012 14:54:17 +0000 (16:54 +0200)]
Revert "Refuse to load AOT images using unsupported SIMD instructions"
This reverts commit
888231ca2d85257823dabcd9432c386833707c5c.
Revert until there is a licensing statement.
Mark Probst [Mon, 11 Jun 2012 14:13:43 +0000 (16:13 +0200)]
[sgen] Fix uninitialized vars in the toggleref code.
Mark Probst [Mon, 11 Jun 2012 14:01:50 +0000 (16:01 +0200)]
Merge remote-tracking branch 'public/master'
Mark Probst [Mon, 11 Jun 2012 14:00:46 +0000 (16:00 +0200)]
[sgen] Add some explanatory comments.
Zoltan Varga [Mon, 11 Jun 2012 13:50:06 +0000 (06:50 -0700)]
Merge pull request #321 from RAOF/aot-cpu-safety
AOT CPU safety
Carlos Alberto Cortez [Mon, 11 Jun 2012 13:22:40 +0000 (08:22 -0500)]
[System.Web] Re-enable SessionStateModule.OnSessionExpired as needed.
SessionStateModule.OnSessionExpired is used as a callback for its
'handler' field (SessionStateStoreProviderBase.SetItemExpireCallback),
and is normaly enabled in Init, as well as disabled in OnReleaseRequestState
if the container is abandoned.
However, since the module may stay around being re-used, it may continue
working *without* this callback being invoked/enabled anymore -causing a number of
nasty, hard to debug side effects, as session data ending up in the void-.
So we enable this callback again in OnAcquireRequestState, which is the
point at where we know we have a brand new, working container.
Christopher James Halse Rogers [Mon, 11 Jun 2012 11:55:51 +0000 (21:55 +1000)]
Refuse to load AOT images using unsupported SIMD instructions
Christopher James Halse Rogers [Mon, 11 Jun 2012 07:51:27 +0000 (17:51 +1000)]
Fix spelling of confusingly-named mono_arch_cpu_optimizazions
Christopher James Halse Rogers [Mon, 11 Jun 2012 07:42:58 +0000 (17:42 +1000)]
Refuse to load an AOT image built with unsupported CPU optimisations
Marek Safar [Mon, 11 Jun 2012 11:06:24 +0000 (12:06 +0100)]
Fix async statements with unused return value. Fixes #5602
Marek Safar [Mon, 11 Jun 2012 11:05:17 +0000 (12:05 +0100)]
Improve task test
Mark Probst [Mon, 11 Jun 2012 10:22:28 +0000 (12:22 +0200)]
[sgen] Fix a variable name typo.
Steven Boswell II [Sun, 10 Jun 2012 14:04:41 +0000 (16:04 +0200)]
Implement the DataGridView.EditingControlShowing event. Fixes Xamarin bug 5419.
Steven Boswell II [Sun, 10 Jun 2012 10:16:05 +0000 (12:16 +0200)]
Fix DataGridView.SelectionChanged event firing differences with .NET
Steven Boswell II [Sat, 9 Jun 2012 19:38:25 +0000 (21:38 +0200)]
Decrement ComboBox SelectedIndex when an item before the selected index gets removed. Fixes Xamarin bug 5595.
Zoltan Varga [Sat, 9 Jun 2012 18:26:40 +0000 (11:26 -0700)]
Merge pull request #320 from konrad-kruczynski/dyn_method_on_iface_array
Dyn method on iface array
Konrad M. Kruczynski [Sat, 9 Jun 2012 17:46:09 +0000 (19:46 +0200)]
Added missing spaces.
Konrad M. Kruczynski [Sat, 9 Jun 2012 17:43:31 +0000 (19:43 +0200)]
Reduced code duplication.
Konrad M. Kruczynski [Sat, 9 Jun 2012 17:38:04 +0000 (19:38 +0200)]
Fix for creating dynamic method with owner being array or iface.
It shouldn't be possible, according to MSDN documentation. Two
test cases included.
Steven Boswell II [Sat, 9 Jun 2012 17:00:27 +0000 (19:00 +0200)]
Do not throw an exception when trying to remove a ComboBox item that doesn't exist, to match .NET
Steven Boswell II [Sat, 9 Jun 2012 06:59:13 +0000 (08:59 +0200)]
Fix the appearance of disabled ListBox controls