Compare commits

...
5183 Commits
Author SHA1 Message Date
Martin Baulig f4d96d2fff Fix UdpClientTest.UdpClientBroadcastTest().
You must not use Send() with an endpoint after using either the
hostname constructor or calling Connect(); see the MSDN docs.
2012-06-27 02:26:07 +02:00
Martin Baulig cad82120b6 Fix UdpClientTest.Constructor6(): UDP port 0 seems to be invalid. 2012-06-27 02:10:00 +02:00
Marek Safar c14e6390bd Don't register namespace of predefined (optinal) types 2012-06-26 22:59:00 +01:00
Marek Safar c93e1bb404 Remove wrong usings 2012-06-26 22:59:00 +01:00
Martin Baulig 5d6a94128e UdpClientTest.Constructor5 now works on the Mac. 2012-06-26 21:52:45 +02:00
Martin Baulig 96664d782c create_object_from_sockaddr(): map ::ffff:0:0 to :: (bug #5502).
::ffff:0:0 is the IPv4 mapped address 0.0.0.0, translate this to ::
(IPAddress.IPv6Any).
2012-06-26 21:43:24 +02:00
Martin Baulig 6354893b8c Fix race condition in TimerTest.TestChange().
Set the first interval to 10 milleseconds, not just one.  Then read
the bucket.count again after changing the interval, the callback may
fire a few times while we execute the Assert() and t.Change() callls.
2012-06-26 18:52:07 +02:00
Martin Baulig 93d6345086 Fix DateTime.ToFileTimeUtf (bug #5697). 2012-06-26 18:44:36 +02:00
Marek Safar f93ac4c461 Bump DoubleWaitTest timeout 2012-06-26 13:57:55 +01:00
Marek Safar 2d2796f07b Fix System.Core reference in VS projects 2012-06-26 13:26:56 +01:00
Marek Safar f293d90615 Fix few warnings 2012-06-26 13:26:56 +01:00
Marek Safar a97b3ca8f0 Update VS project files 2012-06-26 13:26:55 +01:00
Marek Safar 344880366e Remove static file index from location and fix few hidden xml parser bugs 2012-06-26 13:26:55 +01:00
Zoltan Varga a7067cfd1f Merge pull request #353 from robwilkens/bug2014
For Bug 2014: map FcntlCommand to local system command for fcntl_lock
2012-06-26 01:02:25 -07:00
Miguel de Icaza 0c25179e0b Use Ordinal string comparison here. 2012-06-26 00:57:09 -03:00
Martin Baulig 5bbca26cf0 Merge branch 'master' of github.com:mono/mono 2012-06-26 05:56:15 +02:00
Miguel de Icaza 52f8349613 Merge pull request #334 from robwilkens/bug5747
Bug 5747 (MacOSX)Fix: KeventWatcher didn't return subdir names in filenames
2012-06-25 20:54:37 -07:00
Martin Baulig cf13fd846c Include quotation marks in cookie value. 2012-06-26 05:53:51 +02:00
Martin Baulig 15053c403f Oops, actually remove the 'Date' header. 2012-06-26 03:06:56 +02:00
Martin Baulig abab46be8b Fix DateTime.MinValue in HttpWebRequest.Date.
* HttpWebRequestTest.cs: Extend this by adding each DateTimeKind
  and testing the result.  This test now passes again.
2012-06-26 02:51:09 +02:00
Rob Wilkens 0fb2958a66 For Bug 2014: map FcntlCommand to local system command for fcntl_lock
In support/fcntl.c - every time fcntl() was called, it would first map the
cmd from mono's version of it to the system header file version of it.
The only time this wasn't happening was in Mono_Posix_Syscall_fcntl_lock()
and now it does it there too.  This seems to resolve Bug 2014 on both
64-bit linux and on Mac OS X (64-bit).
2012-06-25 20:17:24 -04:00
Martin Baulig cdd89cbad8 Correctly parse cookies.
* System.Net/CookieParser.cs: Replace GetNameValue() with Parse(),
  support multiple cookies, errors and "expires=Day, ...".

* Test/System.Net/CookieParserTest.cs: New nunit test suite for that.
2012-06-26 01:35:58 +02:00
Rodrigo Kumpera d52c080234 Add two test configurations to sgen and silence other sgen tests. 2012-06-25 16:03:10 -03:00
Rodrigo Kumpera 510fedec59 Fix another nursery OOM issue. 2012-06-25 16:03:09 -03:00
Rodrigo Kumpera c4d9b26713 Fix a bunch of bugs in the split nursery allocator.
* sgen-split-nursery.c: Handle nursery OOM correctly for the
	serial and parallel allocators. Introduce a bunch of fences
	to ensure the parallel allocator is non-TSO safe.
2012-06-25 16:03:08 -03:00
Rodrigo Kumpera b5b0f8aa46 Assert on bad arguments to sgen_clear_range. 2012-06-25 16:03:08 -03:00
Rodrigo Kumpera f4dfaf0308 Merge pull request #352 from madewokherd/threadinit
Don't try to register threads created before initialization on Windows.
2012-06-25 11:46:09 -07:00
Marek Safar 4c76782b16 Move add namespace into new method 2012-06-25 19:35:14 +01:00
Marek Safar 1041e924c1 Fix few tests 2012-06-25 19:35:13 +01:00
Vincent Povirk b51d0597ea Don't try to register threads created before initialization on Windows.
Released under the MIT/X11 License.
2012-06-25 13:17:08 -05:00
Rodrigo Kumpera a39bed3ef1 Properly balance local and global interrupt flags. Properly clear interrupt flags on cleanup.
* threads.c: All state changes to MonoInternalThread:interruption_requested must
	be matched to thread_interruption_requested. This means incrementing the global one
	when setting the other and decrementing when clearing.

	We much check the thread flag during cleanup to avoid missing a descrement and leaving
	the global flag with a positive value and make performance suffer due to excessive
	polling.
2012-06-25 11:12:19 -03:00
Marek Habersack c7c0c5a50a Merge pull request #349 from JamesB7/229b363ef861ab9456f8bdc428c550e2241688e9
Unbreak build-mingw32.sh... with this patch, it builds on Debian 6 no trouble. (corrected)
2012-06-25 05:37:07 -07:00
Marek Safar d3e986b275 Implement 4.5 assembly attributes 2012-06-25 13:25:27 +01:00
Marek Safar 8fc4502bf7 Disable more tests 2012-06-25 11:48:38 +01:00
Marek Safar 0950176a56 Disable TestGroupBy 2012-06-25 11:12:42 +01:00
Rolf Bjarne Kvinge 509d9e5240 Sqlite: Map BOOLEAN to System.Boolean. Fixes #5768. 2012-06-25 11:56:02 +02:00
Zoltan Varga 72c896066b Allow TypeBuilder.DefineMethodOverride () to be called multiple times. Fixes #5665. 2012-06-24 22:44:46 +02:00
James Bellinger 229b363ef8 (1) Made build-mingw32.sh build .NET 4.5 as well.
(2) Fixed the version extraction for build-mingw32.sh. It extracted from the wrong line for current configure.in.
(3) configure.in added a line for Clang for the Windows cross-compile just like the Android cross-compile has.
    It can't do the automatic check due to being a cross-compile so manually adding the line makes it possible
    to build. Like Android, if you want to use Clang for the cross-compile, you have to manually set the
    variable to 'yes'.

Summary: With these changes, build-mingw32.sh works nicely and I've successfully built Windows Mono on Debian 6.
         Changelog suggests it may not have been touched/used in a while, so this is an un-break patch.
2012-06-24 15:43:14 -04:00
Zoltan Varga 5309fe8536 Disable LLVM for methods with very long basic blocks. Fixes #5714. 2012-06-24 21:23:56 +02:00
Marek Safar 3d43cfdfcc Merge pull request #347 from JamesB7/master
.NET 4.5 .cctor crash fix for ComIStreamMarshaler
2012-06-24 08:45:24 -07:00
JamesB7 074a90260c BindingFlags.Public needed here as Exception.HResult is now public in .NET 4.5. This solves a NullReferenceException on GetGetMethod, which causes the static constructor to fail. 2012-06-24 12:30:38 -03:00
Thomas Goldstein 18817d9275 Only paint the ToolStripItem BackColor if it's not the default one. Fixes Xamarin bug 5834. 2012-06-24 09:36:34 +02:00
[email protected] 6276853c76 Implement control padding. Fixes Xamarin bug 2562. 2012-06-23 23:43:53 +02:00
Marek Safar 5682dadd41 Merge pull request #345 from erik-kallen/FixTypoDeterminingDynamicAttributes
Fixed typo causing all attributes in the namespace System.Runtime.CompilerServices to be treated as DynamicAttribute
2012-06-23 10:44:33 -07:00
Erik Källén d116e34f0e Fixed typo causing all attributes in the namespace System.Compiler.RuntimeServices to be treated as DynamicAttribute 2012-06-23 19:30:40 +02:00
Marek Safar 0b3da5baa3 Merge pull request #344 from robwilkens/bug1202
Bug 1202 Fix: Adds float.NaN checks to DrawLine
2012-06-23 06:33:06 -07:00
Rob Wilkens 2ab9c2a739 Bug 1202 Fix: Adds float.NaN checks to DrawLine
As reported in Bug1202, Graphics.DrawLine was drawing a line when one of the
x/y parameters was NotANumber.  This differred from Microsoft.NET Behavior.
This patch brings it back in line by adding the checks.

This includes an extended unit test which now fails without this patch and
passes with it.

https://bugzilla.xamarin.com/show_bug.cgi?id=1202

No additional System.Drawing unit tests fail with this patch than without
it, presuming this patch is applied.
2012-06-23 09:07:35 -04:00
Marek Safar f1ea2b2044 Release parser caches immediately after parsing 2012-06-22 19:08:13 +01:00
Marek Safar f6edbba2d1 Cache empty byte arrays 2012-06-22 18:55:51 +01:00
Marek Safar 9069d07837 Don't double dispose web connection 2012-06-22 12:29:11 +01:00
Marek Safar 008b4706d5 Disable another runtime failing test 2012-06-22 12:29:11 +01:00
Marek Safar fc95bbb0f5 Disable failing tests 2012-06-22 12:29:11 +01:00
Marek Safar 2ae66ec552 Merge pull request #343 from paszczi/master
Fix bug (457120 from novell's bugzilla)
2012-06-22 02:57:50 -07:00
paszczi c5b2939e64 Remove unnecessary Changelog commits, fix copyright info 2012-06-22 11:24:02 +02:00
paszczi 7ce10db9e8 Don't wait for client data when authenticating server ssl stream - fix bug 457120 (novell) 2012-06-22 10:12:35 +02:00
Marek Safar bd58a5e6b7 Merge pull request #341 from viniciusjarina/fix_emptys
Fixed string compare ( != '' / Length != 0)
2012-06-21 14:45:16 -07:00
Vinicius Jarina 7984eb11b8 Fixed string compare ( != '' / Length != 0) 2012-06-21 15:31:47 -03:00
Marek Safar b6e396872e Merge pull request #339 from viniciusjarina/fix_uri
Minor Fixes: Uri Parser.
2012-06-21 10:42:28 -07:00
Vinicius Jarina 58fb8ead5f Minor Fixes: Uri Parser. 2012-06-21 13:58:10 -03:00
Marek Safar 218a62e7d1 Don't duplicate DefaultMemberAttribute for interfaces 2012-06-21 17:19:49 +01:00
Marek Safar 9696a57e64 Add Environment::CurrentManagedThreadId 2012-06-21 15:38:45 +01:00
Marek Safar 029fd2f266 Fix typo 2012-06-21 15:15:47 +01:00
Marek Safar c4e5c115b7 make debug-parser reliable 2012-06-21 14:40:11 +01:00
Marek Safar 5aed5c8cba Write correct guid for hash algorithm to symbol files 2012-06-21 14:35:52 +01:00
Marek Safar 2332349a3f Add --disable-bcl-opt to configure 2012-06-21 09:44:33 +01:00
Steven Boswell II b6a687dfd9 Fix bug in ComboBox Text setter, that made it so the Text value was not always set 2012-06-21 08:26:02 +02:00
[email protected] 9cf10a5d95 Adjust DataGridView.RowHeight in VirtualMode. Fixes Xamarin bug 2392. 2012-06-20 23:37:41 +02:00
Rodrigo Kumpera 8743434c6b First round of win32-cygwin bugfixes. 2012-06-20 18:20:40 -03:00
Rodrigo Kumpera c9c85d557c Make some asserts less opaque. 2012-06-20 14:24:09 -03:00
Marek Safar f199d9a16c Merge pull request #336 from linquize/serial-port-read-char-array
Properly implement SerialPort.Read (char[], int, int)
2012-06-20 07:43:56 -07:00
Linquize dd74d48913 Properly implement SerialPort.Read (char[], int, int) 2012-06-20 22:26:33 +08:00
Rodrigo Kumpera 8f07a57a4b Fix DISABLED_TESTS_WRENCH 2012-06-20 10:29:03 -03:00
Rob Wilkens dc98599ec1 Remove unnecessary braces to save vertical space. 2012-06-20 07:21:24 -04:00
Rob Wilkens 7a847d3db5 Coding Style Changements to make patch more in-line with standards 2012-06-20 07:04:31 -04:00
Atsushi Eno 667eb08736 [xbuild] fix regression; when it was remainingArgument, don't try to parse it. 2012-06-20 18:25:58 +09:00
[email protected] bddaaafea6 Tweak control colors, and fix the fact enabled check boxes or radio buttons were darker than disabled ones, on X11. Fixes Xamarin bug 2908. 2012-06-20 08:05:06 +02:00
Martin Baulig 018521fa73 Fix #4327: Properly handle exception from IComparer.Compare.
SortedList throws InvalidOperationException when IComparer.Compare
throws an Exception.
2012-06-20 03:46:00 +02:00
Yves Bastide 330f0eb086 Fix #2363 in Uri.CheckHostName().
FIXME: We still violate RFC 2181 by not checking the total length of the
hostname (maximum 255 bytes), but .NET doesn't check it either.
2012-06-20 03:05:55 +02:00
Rob Wilkens 44addb3224 Bug 5747 Fix: KeventWatcher didn't return subdir names in filenames
Attached extracts the subdirectory by taking a substring of the full
filename path, starting at the length of the watcher filename path
(presuming it matches) plus 1 (to account for the "/" between path and
either subdir or filename).

This only should affect Mac OS -- See this line at top of KeventWatcher.cs:
// System.IO.KeventWatcher.cs: interface with osx kevent
Note the "osx" which is the mac operating system.
2012-06-19 20:45:41 -04:00
Rodrigo Kumpera 8b5f71ef60 Fix a ConditionalWeakTable test. 2012-06-19 18:05:19 -03:00
Mark Probst a7e01cae50 Fix a racy hang in thread6 test.
If the Action thread pulses the monitor before the main thread gets to
its wait then the main thread will wait forever because the monitor is
never pulsed again.
2012-06-19 22:00:46 +02:00
Mark Probst f15b71315d Merge remote-tracking branch 'public/master' 2012-06-19 22:00:40 +02:00
Miguel de Icaza 99b7766e05 Apply patch from Steven Boswell ([email protected]) to fix #5591 2012-06-19 15:33:12 -04:00
Alistair Leslie-Hughes 31a3873602 Assign values to base class. 2012-06-19 15:28:22 -04:00
Alistair Leslie-Hughes e59e9f3a0e Return base CreateParams for Axhost 2012-06-19 15:28:12 -04:00
Miguel de Icaza 4504009221 Remove ToUpperInvariant in the 4.5 version of MEF to fix #5740 2012-06-19 15:25:25 -04:00
Rodrigo Kumpera 0de52babc6 Disable precise marking by default since it broke on non-apple targets as well. 2012-06-19 15:11:01 -03:00
Rodrigo Kumpera 7f38e097ef Fix another race in sgen's STW.
* sgen-os-*: The joined_stw states the current stage in STW
	that a given thread is. We should not transition a thread
	to the next one unless it needs to. IOW, don't suspend threads
	already suspended and don't resume threads not suspended.

	This fixes #1917.
2012-06-19 15:11:00 -03:00
Martin Baulig 8f139731f5 Add additional test for Convert.FromBase64String(): "===" 2012-06-19 19:56:02 +02:00
Martin Baulig 25981a0d42 Merge pull request #325 from adbre/iss5464
Fix for issue #5464
2012-06-19 10:53:29 -07:00
Marek Safar 17bbb2fec6 Remove some odd parser rule I could not hit 2012-06-19 18:25:38 +01:00
Jeremie Laval e2e6974153 [System.Core] Prefer setting PLinq task as long running so that they don't get hit by TP timeout 2012-06-19 17:12:47 +01:00
Jeremie Laval e2429c7013 [System.Core] Restore ParallelEnumerable tests 2012-06-19 17:12:46 +01:00
Jeremie Laval 326544e4b3 [System.Core] Defer temporary area management to external class 2012-06-19 17:12:46 +01:00
Jeremie Laval cfb1b45671 [System.Core] cache array comparison predicate 2012-06-19 17:12:46 +01:00
Jeremie Laval 9aa00ea175 [System.Core] Cache ConcurrentQueue function factory 2012-06-19 17:12:46 +01:00
Rodrigo Kumpera a726b8c02b Reenable a sgen test. 2012-06-19 13:03:58 -03:00
Rodrigo Kumpera cc124288cf Introduce a test-wrench target so we can disable tests only on wrench. 2012-06-19 12:59:42 -03:00
Rolf Bjarne Kvinge b6fee6af5d Sqlite: Map GUIDBLOB to System.Guid. Fixes #5577. 2012-06-19 16:12:34 +02:00
Marek Safar a78965f0ac Add 2.0 test profile path to Microsoft.Build.Tasks 2012-06-19 13:56:10 +01:00
Marek Safar 06c74c6321 Disable failing test 2012-06-19 12:36:08 +01:00
Marek Safar 4dd7b7e524 Enable fixed test 2012-06-19 12:34:51 +01:00
Marek Safar a788028750 Fix tests category 2012-06-19 11:35:05 +01:00
Marek Safar 5d659d3500 Fixes a warning 2012-06-19 10:54:29 +01:00
Marek Safar ff6039eaf1 Disable more failing runtime tests 2012-06-19 10:38:56 +01:00
Marek Safar 71a9d4497c Merge pull request #333 from roji/master
More accurate xbuild cmdline error reporting
2012-06-19 01:20:09 -07:00
Shay Rojansky 54a689690a More accurate xbuild cmdline error reporting
When an unknown switch is passed to xbuild, an explicit "unknown switch" error is reported. Previously, the switch was interpreted as an additional argument and resulted in a "Too many project files specified" error.
2012-06-19 11:07:49 +03:00
Gonzalo Paniagua Javier 271524d471 Aborting a pending request closes the socket now
Aborting an HttpWebRequest whose request stream is not closed yet will
	now close the underlying socket properly.
	Fixes bug #5710.
2012-06-18 22:50:57 -04:00
Martin Baulig eb0ef90fc4 Fix async sockets: don't set Count=0 when reusing SocketAsyncEventArgs.
This reverts commit e2e44bf6f4 (from May
2011).

Added SocketAsyncTest.cs to test this.
2012-06-19 01:10:12 +02:00
Thomas Goldstein 978ee48fce Rewrite next_pixel_offset calculation in a way that makes more sense. Should not have any effect. 2012-06-18 23:06:00 +02:00
Robert Wilkens 42ebb31fc1 Avoid crash when clicking a DataGrid row header with no data or columns. Fixes Xamarin bug 5487. 2012-06-18 22:36:25 +02:00
Mark Probst 92db745a8e Merge remote-tracking branch 'public/master' 2012-06-18 22:17:01 +02:00
Rodrigo Kumpera 5d440c757b Fix the String.Intern test to reflect the fact that String.Intern can return a different result. 2012-06-18 16:44:11 -03:00
Marek Safar 7287c9cb10 Disable few more tests 2012-06-18 19:28:50 +01:00
Marek Safar 7f8df7cd4e Fix Microsoft.Build.Tasks tests 2012-06-18 19:28:04 +01:00
Marek Safar 69729c7e40 Disable more failing tests 2012-06-18 16:30:29 +01:00
Rodrigo Kumpera 0ea2020110 Improve Delegate::Combine error message. 2012-06-18 12:13:24 -03:00
Miguel de Icaza 4f75e8ca3d Merge pull request #332 from robwilkens/Bug2663-fix
Bug 2663: Regular Expression Bug Fixes
2012-06-18 05:41:01 -07:00
Rob Wilkens 60a463c6f3 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.
2012-06-18 07:38:57 -04:00
Marek Safar 50e957a6d8 Merge pull request #331 from viniciusjarina/uri_lite2
Removed RegularExpressions dependency from UriParser
2012-06-18 01:40:34 -07:00
Steven Boswell II 2254afd40f Fix OneClickComboBoxCell test on Windows 2012-06-18 07:49:34 +02:00
Thomas Goldstein 2a89d640b1 Reformatting to match Mono coding style guidelines 2012-06-18 00:21:43 +02:00
Steven Boswell II 508b0c0668 Make it so the last-edited cell change is committed rather than not lost, when the user leaves the DataGridView. Fixes Xamarin bug 5420. 2012-06-18 00:21:42 +02:00
Vinicius Jarina 0090a053dd Removed RegularExpressions dependency from UriParser 2012-06-17 19:11:46 -03:00
Zoltan Varga afcafb118a Merge pull request #330 from metanest/freebsdtla_2012Jun_spike
To use thread local alloc in FreeBSD
2012-06-16 17:46:07 -07:00
KISHIMOTO, Makoto 0247946cd9 To use thread local alloc in FreeBSD 2012-06-17 09:02:28 +09:00
Zoltan Varga ab3835c3f3 Change some GC defines to runtime checks in metadata/. 2012-06-16 20:49:09 +02:00
Zoltan Varga 950eed1a83 Merge pull request #328 from metanest/bsdsendfile_2012Jun_spike
any BSD's sendfile has 6 arguments
2012-06-16 02:58:26 -07:00
KISHIMOTO, Makoto 9e9e2c86c8 any BSD's sendfile has 6 arguments 2012-06-16 11:04:33 +09:00
Zoltan Varga f9d3dedcf2 Implement column number support in sdb. 2012-06-16 01:52:59 +02:00
Zoltan Varga 104c1223dc Merge pull request #327 from metanest/mincorevisibilityproblem_2012Jun_spike
mincore(2) isnot X/Ooen standard
2012-06-15 14:38:55 -07:00
KISHIMOTO, Makoto 7c38dc9817 mincore(2) isnot X/Ooen standard 2012-06-16 06:15:46 +09:00
Marek Safar cb6d6ac5ce Testing wrench build 2012-06-15 19:33:12 +01:00
Marek Safar 9127c171fa Try to fix Microsoft.Build.Tasks tests 2012-06-15 16:13:59 +01:00
Marek Safar e09e64bead Try to fix Directory.EnumerateFiles for hidden files 2012-06-15 16:04:08 +01:00
Marek Safar 1fd51d3e03 Add SqliteTest.db to dist 2012-06-15 14:37:13 +01:00
Atsushi Eno ebcb2ca612 Do not use @ which is not always available. Use "" instead (which is not perfect but should be better). 2012-06-15 22:03:59 +09:00
Atsushi Eno c67160f3c8 do not bundle mscorlib.dll that is running mkbundle.exe. Bundle explicitly passed one instead. 2012-06-15 22:02:58 +09:00
Marek Safar eb4e581e88 Few few httplistener races 2012-06-15 13:50:23 +01:00
Marek Safar b6cb922c4f Print failure message 2012-06-15 11:24:56 +01:00
Marek Safar bf1e2574b3 Update SqliteTest.db 2012-06-15 11:21:03 +01:00
Marek Safar b827712d76 Fix TestMenuItemsDispose test 2012-06-15 11:18:55 +01:00
Marek Safar 5dba4d1e7d Add timeout to webrequest tests 2012-06-15 11:15:57 +01:00
Marek Safar 0fcf330866 Fix column info for binary expressions 2012-06-15 10:30:56 +01:00
Zoltan Varga 0f05b6ab2c Merge pull request #326 from metanest/master
newlines at end of some files in mono/metadata/
2012-06-15 00:29:40 -07:00
KISHIMOTO, Makoto 406e33ea85 newlines at end of some files in mono/metadata/ 2012-06-15 14:02:34 +09:00
Zoltan Varga 090e884a0f Make keepalive processing in sdb resilient to the syscall interrupts caused by GCs. Fixes #4725. 2012-06-15 01:53:31 +02:00
Zoltan Varga 85b4101bd9 Stringify SET_KEEPALIVE protocol message in sdb logging. 2012-06-14 21:07:57 +02:00
[email protected] b9d2457983 Do not serialize ListViewItem.Group if it's null. Fixes Xamarin bug 3840. 2012-06-14 20:19:49 +02:00
Zoltan Varga 95c91eabcb Fix the AOT excluded optimization check in 94e15085d5. 2012-06-14 19:05:43 +02:00
Marek Safar b10a33f7ab Disable some deadlocking plinq tests 2012-06-14 17:11:47 +01:00
Marek Safar efd488911c Disable failing tests 2012-06-14 16:09:33 +01:00
Marek Safar b9923b1969 Disable failing tests 2012-06-14 16:00:52 +01:00
Marek Safar a1f2e7068f Add some logging to failing test 2012-06-14 15:49:40 +01:00
Marek Safar 5b82f0e08c Clean up some NET_2_0 2012-06-14 15:44:35 +01:00
Marek Safar 3f8e66f47c Fix some failing tests 2012-06-14 15:08:08 +01:00
Marek Safar 85ebc98cd8 When checking override base method also check for declaring type visibility 2012-06-14 14:01:49 +01:00
Marek Safar efc7984344 Merge pull request #324 from adbre/master
Fix for bug #4814
2012-06-14 00:08:59 -07:00
Adam Brengesjö d9690fc4b0 Padding character(s) must be at end of string. 2012-06-14 01:34:58 +02:00
Adam Brengesjö 2eef16ad4f Add NUnit test case for bug #5464 2012-06-14 01:34:01 +02:00
Adam Brengesjö 2d372c4dbf Add Assert.Fail if no FormatException is thrown. 2012-06-13 23:24:27 +02:00
Adam Brengesjö 782f7f9a7b Check if number format info properties are empty first.
Fixes issue #4814
https://bugzilla.xamarin.com/show_bug.cgi?id=4814
2012-06-13 21:27:35 +02:00
Adam Brengesjö 2a9bd725bd Add NUnit tests for bug #4814 2012-06-13 21:27:34 +02:00
Thomas Goldstein 2479bea5ca Fix minor whitespace issues 2012-06-13 21:23:08 +02:00
Thomas Goldstein 23bf99cf29 Unit test for bug 3418 2012-06-13 21:16:45 +02:00
[email protected] 6c3c219ad3 Make it so disposing of a Menu causes its MenuItems to get disposed too. Fixes Xamarin bug 3418. 2012-06-13 21:16:44 +02:00
Marek Safar 140be1481b Include source line column info in MDB files 2012-06-13 15:18:44 +01:00
Marek Safar c50576f5a2 Add Write7BitEncodedInt test 2012-06-13 15:18:43 +01:00
Martin Baulig 901938bfd8 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.
2012-06-12 18:28:01 +02:00
Atsushi Eno c89d5cae90 Revert "attempt to fix parallel build in RabbitMQ dir."
This reverts commit 3f89a6cfcf.
2012-06-12 19:08:13 +09:00
Atsushi Eno 3c3927cc90 Revert "Those new hacky RabbitMQ sources files need to be included in dist."
This reverts commit cfc5d8ae33.
2012-06-12 19:07:50 +09:00
Atsushi Eno 1e5d68f32b Revert "doh, miscopied file names."
This reverts commit 4c28538190.
2012-06-12 19:07:38 +09:00
Atsushi Eno 4c28538190 doh, miscopied file names. 2012-06-12 19:04:32 +09:00
Atsushi Eno cfc5d8ae33 Those new hacky RabbitMQ sources files need to be included in dist. 2012-06-12 18:57:48 +09:00
Zoltan Varga ac2f490de3 Merge remote-tracking branch 'raof/aot-cpu-safety' 2012-06-12 11:26:31 +02:00
Zoltan Varga e12dc513cf Revert "Merge pull request #321 from RAOF/aot-cpu-safety"
This reverts commit f530307043, reversing
changes made to 70927ed41c.
2012-06-12 11:26:15 +02:00
Zoltan Varga cb4dfb5d98 Revert "Revert "Refuse to load AOT images using unsupported SIMD instructions""
This reverts commit 9fe654ddf3.
2012-06-12 11:26:00 +02:00
Atsushi Eno 3f89a6cfcf attempt to fix parallel build in RabbitMQ dir.
Its' nasty, but who cares? (if whoever does, fix it.)
2012-06-12 17:52:28 +09:00
Marek Safar 5f1121a776 Make debug options case insensititive 2012-06-12 08:51:57 +01:00
Atsushi Eno d85e63cc39 bring back CodeContracts to mobile profiles. 2012-06-12 15:56:03 +09:00
Christopher James Halse Rogers 52cc526554 Refuse to load AOT images using unsupported SIMD instructions
Contributed under MIT/X11 License
2012-06-12 09:38:09 +10:00
Christopher James Halse Rogers 28596a2167 Fix spelling of confusingly-named mono_arch_cpu_optimizazions
Contributed under MIT/X11 License
2012-06-12 09:38:03 +10:00
Christopher James Halse Rogers 94e15085d5 Refuse to load an AOT image built with unsupported CPU optimisations
Contributed under MIT/X11 License
2012-06-12 09:36:38 +10:00
Rodrigo Kumpera ba5eacd40b 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.
2012-06-11 20:24:34 -03:00
Rodrigo Kumpera add22ee686 Clear nursery fragments before doing xdomain checks before a collection. 2012-06-11 20:24:33 -03:00
Rodrigo Kumpera e094729042 Fix verify-before-collect deadlock. 2012-06-11 20:24:33 -03:00
Zoltan Varga e41081a380 Correctly link the seq point for ENDFINALLY with its successors. Fixes #5566. 2012-06-11 22:53:29 +02:00
Steven Boswell II 1743a005cc Make it so getting a DataGridViewComboBoxCell to drop down doesn't require extra clicks 2012-06-11 21:54:57 +02:00
Martin Baulig 4cfdbe076e MS SQL Server 2012 Express doesn't like null here. 2012-06-11 21:11:51 +02:00
Martin Baulig 2f82cff09c Sync parameter names in System.Data with .NET. 2012-06-11 19:57:09 +02:00
Martin Baulig c07e519661 Use 'mcs' for .NET 4.5. 2012-06-11 19:56:48 +02:00
Marek Safar d5a78c50c1 Fix CancellationTokenSource cancellation during Dispose 2012-06-11 16:02:39 +01:00
Zoltan Varga 9fe654ddf3 Revert "Refuse to load AOT images using unsupported SIMD instructions"
This reverts commit 888231ca2d.

Revert until there is a licensing statement.
2012-06-11 16:54:17 +02:00
Mark Probst 0b5364fcd0 [sgen] Fix uninitialized vars in the toggleref code. 2012-06-11 16:13:43 +02:00
Mark Probst 0e83442cf1 Merge remote-tracking branch 'public/master' 2012-06-11 16:01:50 +02:00
Mark Probst e3a773c73a [sgen] Add some explanatory comments. 2012-06-11 16:00:46 +02:00
Zoltan Varga f530307043 Merge pull request #321 from RAOF/aot-cpu-safety
AOT CPU safety
2012-06-11 06:50:06 -07:00
Carlos Alberto Cortez 70927ed41c [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.
2012-06-11 08:22:40 -05:00
Christopher James Halse Rogers 888231ca2d Refuse to load AOT images using unsupported SIMD instructions 2012-06-11 21:58:51 +10:00
Christopher James Halse Rogers 445a8f6021 Fix spelling of confusingly-named mono_arch_cpu_optimizazions 2012-06-11 21:58:47 +10:00
Christopher James Halse Rogers 14050b3874 Refuse to load an AOT image built with unsupported CPU optimisations 2012-06-11 21:57:55 +10:00
Marek Safar a800e2ce89 Fix async statements with unused return value. Fixes #5602 2012-06-11 12:11:35 +01:00
Marek Safar c0b3d91a9a Improve task test 2012-06-11 12:11:35 +01:00
Mark Probst c46d718d72 [sgen] Fix a variable name typo. 2012-06-11 12:22:28 +02:00
Steven Boswell II f9bea537f1 Implement the DataGridView.EditingControlShowing event. Fixes Xamarin bug 5419. 2012-06-10 16:04:59 +02:00
Steven Boswell II 33831c2a77 Fix DataGridView.SelectionChanged event firing differences with .NET 2012-06-10 12:16:17 +02:00
Steven Boswell II ecd4102694 Decrement ComboBox SelectedIndex when an item before the selected index gets removed. Fixes Xamarin bug 5595. 2012-06-09 21:38:40 +02:00
Zoltan Varga f2d8973cce Merge pull request #320 from konrad-kruczynski/dyn_method_on_iface_array
Dyn method on iface array
2012-06-09 11:26:40 -07:00
Konrad M. Kruczynski 5839ca732b Added missing spaces. 2012-06-09 19:46:09 +02:00
Konrad M. Kruczynski aef3e78304 Reduced code duplication. 2012-06-09 19:43:31 +02:00
Konrad M. Kruczynski 02080f980e Fix for creating dynamic method with owner being array or iface.
It shouldn't be possible, according to MSDN documentation. Two
test cases included.
2012-06-09 19:38:04 +02:00
Steven Boswell II f2b0672d8c Do not throw an exception when trying to remove a ComboBox item that doesn't exist, to match .NET 2012-06-09 19:00:52 +02:00
Steven Boswell II 641ae73033 Fix the appearance of disabled ListBox controls 2012-06-09 09:01:52 +02:00
Marek Safar 5d916704fd Another make dist fix 2012-06-08 17:13:11 +01:00
Marek Safar c2633b86fc Emit sequence point for some member access expressions. Fixes #5387 2012-06-08 16:59:20 +01:00
Marek Safar f1cc9c37c7 Fix make dist 2012-06-08 16:55:47 +01:00
Marek Safar 6a08b2fe32 Merge pull request #319 from pragmatrix/master
In WindowsBase, the Rect.Union() implementation is broken.
2012-06-08 06:40:14 -07:00
Armin Sander 33ca3a4f70 WindowsBase: fix Rect.Union() and add Rect.Union test cases 2012-06-08 15:23:27 +02:00
Marek Safar d5d4b9c22b Fix some warnings 2012-06-08 12:48:08 +01:00
Marek Safar 8566a284a2 Update more 4.5 api 2012-06-08 11:44:55 +01:00
Marek Safar 325319b151 Merge compiler docs 2012-06-08 10:09:17 +01:00
Marek Safar dce6ecaac7 Remove obsolete files 2012-06-08 09:45:58 +01:00
Marek Safar c14d3585bd Update to the latest dlr 2012-06-08 09:40:15 +01:00
Marek Safar 3f0aa3e3c8 Convert crlf to lf 2012-06-08 08:36:55 +01:00
Marek Safar 93e56b120a Add missing CreateReader method 2012-06-07 18:18:24 +01:00
Marek Safar 7d97b4d434 Fix some parameters names 2012-06-07 18:06:55 +01:00
Marek Safar 45ee03cf6e Update System.Net.Http 2012-06-07 17:26:37 +01:00
Marek Safar d9e4371f9e Clean up assembly attributes 2012-06-07 15:17:52 +01:00
Marek Safar d24f2bf83f Update to the latest IKVM.Reflection 2012-06-07 15:01:44 +01:00
Marek Safar 05a45ba7b2 Recover from invalid yield return. Fixes #5064 2012-06-07 14:26:27 +01:00
Marek Safar 5c3df6b95f Mark some Stream members non-serialized. Fixes #5454 2012-06-07 14:25:48 +01:00
Marek Safar cc2bfe19f1 Recover from invalid enum member initialization 2012-06-07 13:58:45 +01:00
Marek Safar 77a16ee827 Recover from invalid return expression. Fixes #5389 2012-06-07 13:51:22 +01:00
Marek Safar 0201ee4db6 Fix more failing tests 2012-06-07 12:19:58 +01:00
Marek Safar a1452e6bde Set fixed test locale 2012-06-07 11:43:34 +01:00
Marek Safar d22cff2d3f Disable not working test 2012-06-07 11:38:53 +01:00
Marek Safar 6ca8ad7642 Remove double null check 2012-06-07 11:38:53 +01:00
Marek Safar f1b0051d92 Add new 4.5 api 2012-06-07 11:38:53 +01:00
Marek Safar e3f041ed65 Implement 4.5 ArraySegment 2012-06-07 11:38:53 +01:00
Marek Safar ce639e29b6 Reformat ArraySegment test 2012-06-07 11:38:52 +01:00
Marek Safar 2d84a89a43 Add some new 4.5 api 2012-06-07 11:38:52 +01:00
Atsushi Eno a882a65ab1 Use non-prefixed namespace output for element when applicable. Fixed bug #5519. 2012-06-07 12:57:31 +09:00
Sebastien Pouliot 903ce57ce7 Propagate all errors to the (old) ICertificatePolicy or (newer) callback. Fix bug #5546 for iOS 2012-06-06 21:11:54 -04:00
Neale Ferguson f3e09ae3b2 Place tls_get in alpha order 2012-06-06 21:01:07 -04:00
Rodrigo Kumpera 4bde8caf22 Sparkle some debug friendly love over those serialization test types. 2012-06-06 13:49:49 -03:00
Rodrigo Kumpera a16a6ac042 Rewrite the version tolerant serialization test suite to use app domains instead of processes.
* BinarySerializationOverVersions.cs: Use appdomains as they are much more robust to
	environmental differences. We don't need to ensure we're using the right mono with
	the right mscorlib.
2012-06-06 13:47:35 -03:00
Rodrigo Kumpera c8c5bf9b87 Move a pair of sgen asserts to debug level 4 so they don't show up in regular builds. 2012-06-06 12:50:05 -03:00
Marek Safar 7478d2e750 Set vts tests environment variables 2012-06-06 15:14:33 +01:00
Marek Safar 73c6db0665 Fix XmlReaderSettings::Clone 2012-06-06 14:59:07 +01:00
Marek Safar 9215ddf7ad Make XmlWriterSettingsTests .net compatible 2012-06-06 14:52:01 +01:00
Marek Safar 19f51123d7 A return keyword must not be followed by any expression when delegate returns void 2012-06-06 14:29:20 +01:00
Marek Safar 6dff1f002e Don't return void result 2012-06-06 14:28:16 +01:00
Marek Safar d6d4f75888 Emit new state machine attributes 2012-06-06 12:13:06 +01:00
Marek Safar 33831d0b51 Add missing dist file 2012-06-06 12:13:06 +01:00
Martin Baulig 8b3b458b19 XmlResolver.GetEntityAsync().
* The default implementation throws NotImplementedException.
* Added nunit tests.
2012-06-06 02:51:44 +02:00
Martin Baulig 0d1aa4f74f More WebClient 4.5 async tests. 2012-06-06 01:09:43 +02:00
Alex Rønne Petersen ea6064365c Merge pull request #316 from decriptor/master
[xbuild] Fixed a typo in MSBuildUtils.cs
2012-06-05 12:48:45 -07:00
Stephen Shaw b67af73b73 [xbuild] Fixed a typo in MSBuildUtils.cs 2012-06-05 13:38:01 -06:00
Rodrigo Kumpera 81871881e0 Correctly report an exception in EndInvoke when BeginInvoke was called with a callback parameter. 2012-06-05 15:55:35 -03:00
Lluis Sanchez aabbc960b7 Improve date serialization compatibility with third party web services
Make XmlCustomFormatter.cs more liberal about the date formats it accepts.
Many third party web services do not format date exactly at 'yyyy-mm-dd'.
The Microsoft implementation is more liberal about accepting other formats
and so the current Mono implementation breaks projects that consume third
party web services when they are ported to Mono.
Based on a patch by Aaron Roydhouse.
2012-06-05 12:35:52 +02:00
Steven Boswell II bcb49c60cd Fire the DataGridView.SelectionChanged event when the selected rows/columns changes. Fixes Xamarin bug 3415. 2012-06-04 23:56:59 +02:00
Miguel de Icaza 0cae3a03ce [corlib/tests] disable the acos test on MacOS, since MacOS acos is broken 2012-06-04 17:41:58 -04:00
Marek Safar 2283c3d5a3 Merge pull request #315 from viniciusjarina/green_build3
Removed broken tests from System
2012-06-04 05:21:28 -07:00
Vinicius Jarina 7c32f15193 Removed broken tests from System 2012-06-04 09:12:20 -03:00
Marek Safar 7d0434bb2c Merge pull request #313 from viniciusjarina/green_build
Green build (1)
2012-06-04 00:12:41 -07:00
Martin Baulig 4c8278ed3b Add .NET 4.5 async methods to XmlReader and XmlWriter. 2012-06-03 04:02:28 +02:00
Martin Baulig 78873611b2 More .NET 4.5 work. 2012-06-03 04:02:28 +02:00
Martin Baulig 7d170f400d Sync parameter names with .NET. 2012-06-03 04:02:28 +02:00
Miguel de Icaza 1c19405a83 [class libraries] drop NET_1_0 definitions 2012-06-02 21:46:34 -04:00
Miguel de Icaza 93b810834d [class libraries] drop ONLY_1_1 2012-06-02 21:31:50 -04:00
Martin Baulig efdd059bdd Add .NET 4.5 async methods to XmlReader. 2012-06-02 21:53:22 +02:00
Martin Baulig e0e29c6140 Add .NET 4.5 async methods to System.Net.NetworkInformation.Ping. 2012-06-02 19:42:40 +02:00
Miguel de Icaza 17ef544aa2 Copyright notices 2012-06-02 13:20:23 -04:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Vinicius Jarina 7b6c98e708 Fixed Test MonoTests.System.Net.HttpListenerRequestTest.HttpBasicAuthScheme 2012-06-02 13:04:30 -03:00
Vinicius Jarina 0c3d9937c2 Removed Not working test: 1) MonoTests.System.IO.Ports.SerialPortTest.NonstandardBaudRate #5446 2012-06-02 13:04:29 -03:00
Martin Baulig 347f5c7bc7 Merge branch 'master' of github.com:mono/mono 2012-06-02 17:44:58 +02:00
Martin Baulig 58218aeb66 Add .NET 4.5 async upload methods to WebClient. 2012-06-02 17:44:21 +02:00
Martin Baulig c1e5cdd85e More .NET 4.5 async work in WebClient.
* System.Net/WebClient.cs: Support cancelation.

* Test/System.Net/WebClientTestAsync.cs: New nunit tests.
2012-06-02 17:44:07 +02:00
Steven Boswell II 3d04a14a27 Fix BackColor on ToolStripItem objects (Novell bug 567331) 2012-06-02 17:37:51 +02:00
Martin Baulig 17958f9bef Add .NET 4.5 async methods to WebClient. 2012-06-02 16:21:36 +02:00
Thomas Goldstein 8bc0639724 Move common code to a sub method to avoid redundancy, and to make sure that the two code paths do not diverge later 2012-06-02 01:08:08 +02:00
Miguel de Icaza 086885471f Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:20:12 -04:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Duncan Mak 00620f0ef0 [System.Web.Extensions] Remember to build standalone-runner-support before run-standalone-test. 2012-06-01 17:53:43 -04:00
Duncan Mak 9da11055f5 [System.Data/Test] Don't hard-code newline in the string, fixes failure in DataTableReadXmlSchemaTest.TestSampleFileImportSimple. 2012-06-01 17:53:43 -04:00
Miguel de Icaza 8d3b80d4fb [net_1_0] Finally all of NET_1_0 is gone from the source files 2012-06-01 16:50:55 -04:00
Rodrigo Kumpera db3d5cbc53 Fix win32. 2012-06-01 16:16:48 -03:00
Miguel de Icaza a759626a14 Fix the comment so our doctools can pick it up 2012-06-01 15:09:20 -04:00
Marek Safar 6ec5717c59 Fix build by removing duplicate custom attribute extensions 2012-06-01 19:14:26 +01:00
Rodrigo Kumpera 12880f415e Promote mono_get_runtime_build_info to the public API.
* jit.h: mono_get_runtime_build_info is now public.
2012-06-01 14:49:16 -03:00
Jonathan Pryor 9d66910069 [corlib] Allow SynchronizationContext.Current to work on MfA
For the main (UI) thread, make SynchronizationContext.Current return
the Android.App.Application.SynchronizationContext property.
2012-06-01 12:48:53 -04:00
Jonathan Pryor 0214d9669a [Mono.Posix] Workaround signal raising behavior.
The effects of Stdlib.raise() aren't immediate on OS X. The result is
that UnixSignalTest.TestDispose1():

	Stdlib.raise (Signum.SIGINT);
	Assert.AreEqual (a.Count, 1);

_may_ fail depending on timing.

Insert some Thread.Sleep()s to try to allow the signal to propogate.
2012-06-01 12:09:37 -04:00
Rodrigo Kumpera 395ec9e448 Implement better pointer spew for the new heap verifier. 2012-06-01 12:49:51 -03:00
Zoltan Varga 80ad5bc5f1 Pass additional cflags to jay to disable -fno-implicit-function-declaration. 2012-06-01 17:43:04 +02:00
Marek Safar 6a715675b0 Fix previous commit to be 4.5 only 2012-06-01 16:36:42 +01:00
Marek Safar 9f01e8e620 Implement CustomAttributeExtensions 2012-06-01 16:35:26 +01:00
Marek Safar f01f91c58c Add state-machine attributes 2012-06-01 15:30:20 +01:00
Zoltan Varga 4fb344dc8c Add -Werror-implicit-function-declaration to CFLAGS later to avoid breaking configure tests. 2012-06-01 16:16:31 +02:00
Marek Safar a678643179 Add IReadOnlyCollection interface 2012-06-01 14:07:18 +01:00
Jeremie Laval c0e097203a [corlib] Fix DoubleWait unit test 2012-06-01 13:22:42 +01:00
Zoltan Varga b5a61875a0 Fix warnings. 2012-06-01 13:58:33 +02:00
Zoltan Varga a563f17249 Make implicit function declarations a build error. They are not 64 bit safe and cause hard to diagnose problems. 2012-06-01 13:46:37 +02:00
Zoltan Varga 174de374ff Fix implicit function declarations on osx. 2012-06-01 13:42:04 +02:00
Marek Safar cd63299374 Build is not yet ready for metadata profile only 2012-06-01 11:42:33 +01:00
Marek Safar 813b48a551 Add missing 4.5 test config 2012-06-01 10:52:41 +01:00
Marek Safar 0f49fd1f6a Fix default infinity symbol to match closely .net 2012-06-01 10:19:44 +01:00
Marek Safar fe19bd6187 Disable verifier checks on 4.0 profile 2012-06-01 09:47:47 +01:00
Marek Safar 5b1a509563 Add new advanced --metadata-only compiler option to produce assembly for references purposes only 2012-06-01 09:43:32 +01:00
Jeffrey Stedfast 53f83c9f56 Fixed regressions in Microsoft.Build.BuildEngine 2012-05-31 14:03:53 -04:00
Jonathan Pryor c706c85127 [Mono.Posix] Fix Group-lookup Tests
Fixes a test failure seen on OS X (and elsewhere), in which
UnixGroupTest.NonReentrantSyscalls() would fail:

	#TRC: Exception constructing UnixGroupInfo: NUnit.Framework.AssertionException:
	#TNRS: construct by name
	Expected: <_appserverusr:*:79:>
	But was:  <_appserverusr:*:79:jon>

The difference is in the group members: the expected value contains no
group members, while the actual value does. They both have the same
gorup name and group id; it's just the member list that differs.

The problem is that the _appserverusr group (and others) is returned
_twice_, once containing group members, and once without. (This is
possibly due to NIS; as per the removed comment.) This is readily
observed in a plain C program on OS X:

	struct group *g;
	setgrent ();
	while ((g = getgrent ()) != NULL) {
		printf ("local group: gr_name=%s; gr_passwd=%s; gr_gid=%i\n", g->gr_name, g->gr_passwd, g->gr_gid);
	}
	endgrent ();

Many groups are listed twice, and if you print out g->gr_mem it's
apparent that only the first invocation contains members, the second
does not, and looking up group info by name (getgrnam(3)) contains
group member info (yay!).

The fix here isn't a fix, it's a workaround: we track which groups
we've seen, and if we see a repeated group name we skip it. Thus, the
first time we see the _appserverusr group, we'll do the full
lookup-by-name-and-compare assertions, and the second time we see the
_appserverusr group we skip it entirely.
2012-05-31 13:22:28 -04:00
Marek Safar 7f1046817a Update to the latest IKVM.Reflection 2012-05-31 16:54:42 +01:00
Marek Safar d4e9fd67b9 Merge pull request #310 from slide/master
Fix unit test for OverwriteReadOnlyFiles
2012-05-31 08:44:20 -07:00
Alex Earl 6abad6ce46 Fix unit test for OverwriteReadonlyFiles 2012-05-31 10:51:09 -04:00
Zoltan Varga 2888c67c5f Change a printf to a log message in sdb. 2012-05-31 16:29:45 +02:00
Zoltan Varga c5bb9fa685 Disable failing LineNumbers() sdb test (#5438). 2012-05-31 16:29:45 +02:00
Jeremie Laval 91fed5ca46 [System] Try to fix Cookies tests
The first part was to try to repro the ordering behavior of MS which seems to be based on the string length of, first, the domain and, then, the path.
Second part was to fix the .local unit test with Dns.GetHostname as some OS (namely Mac) append a '.local' by default to the hostname.
2012-05-31 13:43:06 +01:00
Marek Safar 46e16d2c10 Add missing test sources file 2012-05-31 13:35:45 +01:00
Marek Safar c81c35a8c6 Fix more xml serializer tests 2012-05-31 13:23:55 +01:00
Zoltan Varga b63636692b Disable test_0_stack_unwind () test which fails on x86+llvm (#5432). 2012-05-31 12:33:53 +02:00
Marek Safar 7b3f562eab A fix for failing xml writer tests 2012-05-31 11:25:24 +01:00
atsushieno 5b0b2ec8ed Cleanup WindowsBase test failures.
Some tests are disabled because they need impl. change in WindowsBase.
2012-05-31 17:31:44 +09:00
Miguel de Icaza 1cd507f4e5 Merge pull request #306 from robwilkens/master
Bug # 2234 - This fixes bug as reported, but not sure if wise. - Ignores exception under specific condition
2012-05-30 20:40:12 -07:00
atsushieno 3590a88381 Make those tests look good on net_4_5. 2012-05-31 12:37:14 +09:00
Miguel de Icaza 691cc77cb7 Merge pull request #308 from viniciusjarina/fix242
Fix242
2012-05-30 20:33:01 -07:00
Miguel de Icaza 2ff32b7ea6 [System.Configuration] Fix System.Configuration to cope with XmlReaders which might not be ConfigXmlTextReaders, fixes test suite 2012-05-30 17:55:57 -04:00
Miguel de Icaza 477b011228 [System.Configuration] Disable broken test 2012-05-30 17:55:56 -04:00
Zoltan Varga ae3899993c Fix a race in mono_aot_find_jit_info (). 2012-05-30 23:37:45 +02:00
Miguel de Icaza 16845ce48a [build] attempt to fix the Microsoft.Build.Engine tests 2012-05-30 17:22:11 -04:00
Vinicius Jarina b7b6bbea57 Added unit test for the bug #242 2012-05-30 16:03:02 -03:00
Vinicius Jarina 82570e8ac9 Fix issue #242 DataContractSerializer fails to deserialize List<T> properties 2012-05-30 16:03:01 -03:00
Sebastien Pouliot 003bbd80f3 Create a store when importing from a CspBlob so we can export it with the same KeyNumber (signature vs key exchange). Fix #5299 2012-05-30 14:32:07 -04:00
Marek Safar 38c695168e Update po files 2012-05-30 19:06:15 +01:00
Marek Safar 0b01be241c Improve failing test 2012-05-30 19:03:51 +01:00
Marek Safar 1485c35ac1 Fix failing test 2012-05-30 18:29:00 +01:00
Marek Safar e1fff85ede Add new test 2012-05-30 18:29:00 +01:00
Marek Safar 24698a5eed Merge pull request #307 from crazyjncsu/master
Bug fix to get rid of reference to Microsoft.VisualBasic.dll when compiling a C# XSL script.
2012-05-30 06:59:10 -07:00
crazyjncsu c92da36202 Removed reference for Micrsoft.VisualBasic.dll when compiling C# and JScript XSL scripts 2012-05-30 09:34:37 -04:00
Marek Safar e0c751d31d Fix array binary comparer values ordering. Fixes #5409 2012-05-30 14:30:48 +01:00
Marek Safar eb4c3e6395 REPL type declaration can be declared in their own namespaces 2012-05-30 12:08:09 +01:00
Marek Safar 455b845157 Fix scheduling of inlined tasks. 2012-05-30 12:08:08 +01:00
Zoltan Varga 7871d10add Avoid loading already loaded assemblies in the remote csharp repl. 2012-05-30 01:34:01 +02:00
Zoltan Varga 5c5a7fb778 Fix the remote csharp repl code so it at least starts. 2012-05-30 01:23:58 +02:00
Rodrigo Kumpera 189dd38cd6 Fix major whole-heap verification if the nursery end up partially cleaned. 2012-05-29 18:28:27 -03:00
Robert Wilkens 9a08f3cfd4 This is a clean up of last commit. One line had spaces where there should
have been tabs.
2012-05-29 11:53:33 -04:00
Robert Wilkens 9461fb2015 This updates the tests with suggestions made by
ermshiperete (Eberhard Beilharz).  Re-ran these tests and confirmed they are
o.k.
2012-05-29 11:47:16 -04:00
Marek Safar afd225a496 Update to .NET 4.5 default exception behavior for unobserved exceptions. 2012-05-29 16:13:46 +01:00
Marek Safar 5e812e648f Fix CultureInfo::CreateSpecificCulture 2012-05-29 16:13:46 +01:00
Marek Safar f406340a9d Flush documentation update 2012-05-29 16:13:46 +01:00
Marek Safar 1e3f458c21 Add another Task test 2012-05-29 16:13:45 +01:00
Robert Wilkens 54b943f14f Replaces some tabs with spaces - earlier copy and paste messed this up, this
shouldn't affect any code, just its formatting.
2012-05-29 07:50:48 -04:00
Zoltan Varga 5a3deb839e Add fields in generic instances too when AOTing. Fixes #5316. 2012-05-29 13:27:28 +02:00
Robert Wilkens 30885fd4d7 This addresses bug 2234 - important please verify
https://bugzilla.xamarin.com/show_bug.cgi?id=2234

It includes unit tests.

The point of this is essentially to replicate a behavior of the
Microsoft .NET Platform where exceptions are eaten in the ComboBox
under certain conditions (In the SelectedIndexChanged handler).
2012-05-28 22:22:40 -04:00
Rodrigo Kumpera 872141f2fa Add new whole heap verifier that can catch a whole lot more problems than previous tools did.
* sgen-gc.c Add verify-before-allocs and verify-before-collections experimental
	options to perform heap verification at the many different points in the app.

	This does check all pointers in the heap, so it's much much slower than
	the previous option.
2012-05-28 19:09:49 -03:00
Marek Safar 9481d86a70 Add some compiler documentation 2012-05-28 15:01:23 +01:00
Jeremie Laval c698307f5b [corlib] A CancellationTokenRegistration instance should always have a working GetHashCode method
Reported by knittl
2012-05-28 14:26:00 +01:00
Marek Safar ec445c82f7 Exclude more console code from NET_2_1 2012-05-28 13:47:52 +01:00
Marek Safar 1b32f344a6 Don't report obsole warnings on compiler generated attributes 2012-05-28 13:47:51 +01:00
Zoltan Varga 867b3b5eb2 Cache regex results when comparing mdoc Nodes during sorting. This avoids the creation of about 300k objects and decreases GC time by 100ms during md startup. 2012-05-28 12:47:32 +02:00
Zoltan Varga 5387b0238f Add more caching to the pinvoke loading code, tidy up the logging a bit. 2012-05-26 12:42:14 +02:00
Miguel de Icaza 4ea0e27579 Merge pull request #304 from crazyjncsu/master
Disabling WCF log activity when logging is disabled by configuration
2012-05-25 18:26:47 -07:00
Miguel de Icaza 375901de13 Merge pull request #305 from robwilkens/master
This fixes bug # 853 in ximarin bugzilla.
2012-05-25 18:21:41 -07:00
Sebastien Pouliot 34990a4ccd Add newer (SL5) types to mobile profile. Fix bug #5337 2012-05-25 19:55:17 -04:00
Robert Wilkens 410fbd4e87 This is the associated unit test for the Ximarin Bugzilla #853 bug...
Confirmed it fails without the bug fix, and passes with it.

Also confirmed again that no other System.Data tests failed that weren't
previously failing.  With this test, there were 9 failures before the patch
is applied, and 8 failures after the patch is applied.  Also tested before
I changed anything and previous to my changes 8 tests in System.Data were
already failing.  This patch previosuly committed in other words does not
introduce any new bugs to the system.data tests.
2012-05-25 19:27:46 -04:00
Robert Wilkens 6cfebdcea7 This is a fix for bug # 853 --
see:  https://bugzilla.xamarin.com/show_bug.cgi?id=853

What was happening was ColumnMappings were never being set, so when another
Update function (which this eventually called) went to map the parameters,
it couldn't find any matching column names, so it set all the parameter values
to null.

This code, or very similar code, appeared in:
 public int Update (DataRow [] dataRows)
 public int Update (DataTable dataTable)

But was left out of:
 public int Update (DataSet dataSet, string srcTable)

This code adds the relevant code into the function it was left out of.

Ideally, longer term, this code would be consolidated into a function which
was commonly called by all 3 update functions, but i didn't want to risk
breaking the other two functions which probably already work fine.
2012-05-25 16:33:50 -04:00
crazyjncsu e4dc0cee78 Fixed syntax error in not comparing log_writer with null 2012-05-25 11:21:05 -04:00
crazyjncsu cf46873376 Prevented any logging activity when no logging target is specified rather than synchronizing the entire AppDomain just to write to TextWriter.Null 2012-05-25 11:15:26 -04:00
Rodrigo Kumpera 2f2815acca Small improvements to the concurrent queue.
* mono-cq.c (mono_cq_add_node): Add a store store fence
	between the two stores as they can be observed OOO.

	* mono-cq.c (mono_cq_create): Use precise roots for head
	and tail.
2012-05-25 11:23:09 -03:00
Sebastien Pouliot 8a5ad219ba Avoid having LockRecursionException in both mscorlib and System.Core for the MOBILE profile. Fix bug #5311 2012-05-24 22:12:28 -04:00
Miguel de Icaza bad4e1bee2 Merge pull request #302 from konrad-kruczynski/fast_double_to_from_int64
Double <-> Int64 conversion is much faster now.

Instead of using GetBytes and converting bytes to long, which involves allocation and deallocation of small temporary array, the simple cpu register load is in fact done now. This results in a much faster operation.

With this sample program:

var stopwatch = Stopwatch.StartNew();
var sum = 0L;
for(var i = 0; i < 100000000; i++)
{
    sum += BitConverter.DoubleToInt64Bits(99.9);
}
stopwatch.Stop();
Console.WriteLine(stopwatch.Elapsed);
my results are:

00:00:00.6614282 with my patch;
00:00:19.8135516 without my patch and Boehm GC;
00:00:10.2296766 without my patch and SGEN GC.
I'm doing a lot of this operations in my serialization framework, so it is quite essential to be fast ;) The performance improvement is due to no-allocation nature of the patch vs the old code, which allocated a temporary array (difference between Boehm and SGEN is explained the same way).
2012-05-24 18:56:45 -07:00
Miguel de Icaza 237f8da767 Merge pull request #271 from pruiz/xamarin-bug-4108
Fix for Xamarin's bug #4108 (BrowserCaps compatibility problem with MS.NET)
2012-05-24 17:11:23 -07:00
Konrad M. Kruczynski fdae58587b Double <-> Int64 conversion is much faster now.
Instead of using GetBytes and converting bytes to long, which
involves allocation and deallocation of small temporary array, the
simple cpu register load is in fact done now. This results in
a much faster operation.
2012-05-24 23:45:28 +02:00
Miguel de Icaza 6dbd060675 Merge pull request #283 from robwilkens/master
Bug #4786- fix: Mono.Data.Tds.Protocol.TdsConnectionPool.GetConnection() needs to have result set to null before looping back with goto
2012-05-24 13:50:28 -07:00
Miguel de Icaza 2e928fd718 Merge pull request #289 from alaendle/master
Force disposal of Sqlite commands with using-statements in order to better isolate the unit tests.
2012-05-24 13:35:07 -07:00
Miguel de Icaza da25f624ed Merge pull request #298 from ermshiperete/4921
Xamarin-4921: Fix Listbox.SelectedItem after adding sorted item
2012-05-24 13:30:46 -07:00
Miguel de Icaza 68069f0566 Merge pull request #297 from ermshiperete/4959
Xamarin-4959: Fix copy of clipboard data after app exits
2012-05-24 13:29:39 -07:00
Miguel de Icaza fe3efe8ab3 Merge pull request #296 from ermshiperete/5116
Xamarin-5116: Fix pasting of text with upper-ASCII chars
2012-05-24 13:17:52 -07:00
Jeremie Laval 40a84cbe25 [corlib] Fix ConcurrentStack.TryPopRange and add tests. Fix #5304 2012-05-24 19:05:57 +01:00
Alex Rønne Petersen f78e6f8fee Merge pull request #301 from directhex/master
If Mono's configure script cannot determine the soname of libX11, assume libX11.so.6
2012-05-23 17:30:22 -07:00
Zoltan Varga 1f383813f9 Improve type load errors thrown by the JIT a bit. 2012-05-23 21:44:23 +02:00
Jo Shields add24aaa1f If Mono's configure script cannot determine the soname of libX11,
assume libX11.so.6

The old behaviour is to try a couple of folders to find libX11.so.4,
5, and 6, and if it can't find any of those, assume no soname at all
(i.e. libX11.so). It is reasonable to assume that users will be
running at least XFree86 3.0, so reasomable to assume libX11.so.6 will
be the soname in use.

The edge case "user compiles Mono without X.org installed" is much
more common than "user has X386 1.0 -> XFree86 2.1.1 installed in
a non-standard library folder, and expects a valid dllmap in
/etc/mono/config"
2012-05-23 18:12:47 +01:00
alexrp 7db9e34840 mono/metadata/gc.c: Fix warning due to declaration after statement. 2012-05-23 15:27:35 +02:00
Marek Safar 1479cf60a0 Remove System.Threading.LockRecursionException from mobile System.Core. Fixes #5192 2012-05-23 09:32:37 +01:00
Rodrigo Kumpera 75e931f6eb Fix altstack check to work again on OSX with -O2.
* configure.in: The altstack check depends on raising
	a sigsegv to verify if it works or not. A sigsegv, by its
	own nature is born out of undefined behavior. Such a thing
	the almighty C compilers are free to optimize in whatever
	pleases them the most.

	GCC, under -O2, when it can prove a given memory store will
	lead to undefined behavior will simply remove it leaving no
	trace back. The solution was to use a variable gcc can't get
	frisky with.

	This raises altstack on OSX back from the dead.
2012-05-22 18:48:23 -03:00
Zoltan Varga cbaf09713f Add an unhandled exceptions test to sdb. 2012-05-22 22:04:32 +02:00
Sebastien Pouliot 2bd0b5aa2d Fix IsolatedStorageFile directory creation/deletion with rooted paths. Fix bug #5011 2012-05-22 14:37:13 -04:00
Rodrigo Kumpera d1eddd33e4 Replace some g_assert with g_error. 2012-05-22 12:58:18 -03:00
Rodrigo Kumpera 2c5f69be54 sgen_hash_table_replace can now return the old value. 2012-05-22 12:58:17 -03:00
Rodrigo Kumpera 35321d3abc sgen_hash_table_set_value can now return the old value. 2012-05-22 12:58:17 -03:00
Marek Safar 4dfe75e996 Fix test target for mono-shlib-cop 2012-05-22 08:16:02 +01:00
Zoltan Varga 083ff1ec0d Remove a debug printf. 2012-05-22 01:07:29 +02:00
Zoltan Varga e7f3bbad80 Fix altstack support in libgc by registering the bounds of the normal stack and the altstack with it. 2012-05-22 01:02:27 +02:00
Zoltan Varga 9755d7fdb2 Return the proxied type instead of TransparentProxy for object types in sdb. 2012-05-22 01:02:27 +02:00
Marek Safar bb1d0dced9 Merge pull request #299 from ermshiperete/710512
Fix for Novell-710512 (TimeZone.GetUtcOffset) and failing tests
2012-05-21 13:15:02 -07:00
Eberhard Beilharz 7aa9026022 Novell-710512: Fix GetUtcOffset when called with UTC time
Adjust the behavior of the TimeZone.GetUtcOffset() method to
match the documentation. MSDN says: "If the value of the Kind
property is DateTimeKind.Utc, the method returns an offset equal
to TimeSpan.Zero". Previously we returned the difference between
the current time zone and UTC even when the passed in time was
in UTC.

Change-Id: Icaa233f079a74315ccf1ce95787629c37317b412
2012-05-21 18:01:01 +02:00
Rodrigo Kumpera 8917af002e Fix a very rare hang on sgen.
* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
	When suspending threads, if a given thread was suspended on
	a gc unsafe point we restart it until it land on a safe zone.

	Since we restart the thread, it might die before we get the chance
	to suspend it again, we take this into account except when waiting
	for acks. We mistakenly waited for the same number of acks of the
	restart step. It could have been reduced if a thread died.

	This bug is very very hard to hit as it only happens on linux,
	requires that a thread on an unsafe point dies right after been
	restarted and it must not be a managed thread as those must take
	the GC lock while cleaning up.

	This sums up to a mostly theoretical bug that someone might
	have observed once in the wild. We're better fixing it now
	since further optimization work might make it easier to hit.
2012-05-21 12:37:12 -03:00
Eberhard Beilharz 0e4878e5eb Add unit test for Novell-710512
Change-Id: Id541a554eb07205da45c4b7fdbfba2da1feda362
2012-05-21 16:29:29 +02:00
Eberhard Beilharz a68a905d6b Fix failing test Parse_InvalidShortDate()
Parsing a date/time depends on the local timezone.

This patch also fixes the assertions where expected and actual
value were backwards.

Change-Id: I6a024e97050470fb043bc0d4a97aa39624271fcc
2012-05-21 15:18:59 +01:00
Eberhard Beilharz c2ffae4732 Fix failing tests
Change-Id: Ia0969271d3bf7bdfd78fe17160e09dcb1c278eda
2012-05-21 15:16:27 +01:00
Marek Safar 5dc6a43b84 Emit warning for uninitialized structs. Fixes #4852 2012-05-21 13:12:29 +01:00
Rolf Bjarne Kvinge b0bfb057ed Fix typo 2012-05-21 13:26:07 +02:00
Eberhard Beilharz 759d6501a5 Xamarin-4921: Fix Listbox.SelectedItem after adding sorted item
When we add an item to a sorted listbox the indices of the selected
items change and need to be updated.

Change-Id: Ia32849fe10480354835dcd48b37d326d612af04f
2012-05-21 11:28:55 +02:00
Eberhard Beilharz 444495ff9c Xamarin-4959: Fix copy of clipboard data after app exits
Clipboard.SetDataObject allows to pass a copy parameter that
determines whether the data will be kept on the clipboard after
the app exits or not.

This patch implements this for X11 (or rather GTK).

Change-Id: If69e75239ea35432e44f32a8a5ba54f3fe1fb60a
2012-05-21 11:14:08 +02:00
Eberhard Beilharz 4989bf1040 Unit test for bug Xamarin-4959
Because the clipboard is a shared resource between applications
it is possible that the test sometimes fails for wrong reasons
if another app manipulates the clipboard just at the right time.

Change-Id: I1a52b62d2958ece35c8927172d94ab6ccb3183b0
2012-05-21 11:12:23 +02:00
Eberhard Beilharz 9cba040895 Xamarin-5116: Fix pasting of text with upper-ASCII chars
Text copied to the clipboard by another app may contain
text in Latin-1 with upper-ASCII characters instead of
the UTF-8 encoding we expect.

Also fixed problem unescaping characters when they are
followed by more text.

Change-Id: Ib8d746d42c1d34dccf8ddbf8db28e1515952fe05
2012-05-21 10:10:47 +02:00
Zoltan Varga 5a349bae39 Add support for remoting invokes to sdb. Fixes the runtime part of #4962. 2012-05-20 15:30:44 +02:00
Miguel de Icaza 4366d3650e Fix from Stephen McConnel for bug 5010 2012-05-19 00:51:31 -04:00
Rodrigo Kumpera 7cf8fd69e7 Avoid a deadlock when waiting for pending finalizers.
* gc.c: If the finalizer thread is delay started
	we must ensure that we don't block waiting for finalizers
	until it is live.

	This is required as the delayed start could happen in
	the blocked thread - and deadlock us.
2012-05-18 17:10:35 -03:00
Rodrigo Kumpera 0ed11d795c Handle a race condition between thread registration and sgen's stop the world. Fixes bxc #1917.
Since new threads can come and go while we're stopping the world, we must
	ignore the new ones as they are not supposed to be usable before this STW
	cycle.

	Since thread registration takes the GC lock, once STW starts all new threads
	can't register and thus touch managed memory. This means we can ignore all
	of those not seen in the first suspend pass.

	This bug and the patch was a contribution by Sam Lang.

	Fixes #1917.
2012-05-18 17:10:33 -03:00
Rodrigo Kumpera 67a4eadedf Using libc's free as a constant to mean true is cute, but nothing say it better than TRUE. 2012-05-18 17:10:33 -03:00
Rodrigo Kumpera 6985d9a3bb Parallel gotta be parallel. Parallel nursery should use parallel major allocator. 2012-05-18 17:10:32 -03:00
Rodrigo Kumpera 04a23b93aa Make asserts more usefull. 2012-05-18 17:10:31 -03:00
Marek Safar 6630bd7c3a Insert unattached attributes to AST also for enum members. Fixes #4666 2012-05-18 17:06:53 +01:00
Marek Safar ee505daad9 Better error recovery from incomplete invocation expression. Fixes #4679 2012-05-18 17:06:53 +01:00
Rolf Bjarne Kvinge b543eb4dd6 Sqlite: Map DATETIME to System.DateTime. Fixes #5078. 2012-05-18 14:30:43 +02:00
Zoltan Varga deed908992 Implement full-aot support for ftnptr->delegate conversion using a new MonoNativeFunctionWrapper attribute, which should be attached to the delegate which will be used to wrap the native function. Fixes #4718. 2012-05-18 13:56:43 +02:00
Zoltan Varga 2b68f4bbd6 Implement support for OP_LOADR4_MEMBASE/STORER4_MEMBASE with big offsets on ARM. Fixes #5093. 2012-05-18 00:50:34 +02:00
Marek Safar a5578ead2c Resolve lock temporary variables before any embedded statement. Fixes #4994 2012-05-17 21:40:15 +01:00
Marek Safar 9b9da98634 Merge branch 'master' of github.com:mono/mono 2012-05-17 13:58:09 +01:00
Marek Safar f79acd3c52 Get full expanded interface list when checking for new slot interface implementation. Fixed #5110 2012-05-17 13:56:41 +01:00
Sebastien Pouliot a0769006c6 Add fix and test case from bnc #650402 2012-05-16 16:52:17 -04:00
Rolf Bjarne Kvinge 7e8488dcf5 Add gitignore for Mono.Data.Sqlite 2012-05-16 22:18:50 +02:00
Rolf Bjarne Kvinge 43f0ab74b7 Sqlite: Close the command before the connection when CommandBehavior.CloseConnection is specified. Fixes #5058. 2012-05-16 22:18:49 +02:00
Marek Safar 82169c2244 Add missing dist files 2012-05-16 19:36:46 +01:00
Marek Safar 644aa86a1c This instance is not available in base context for anynymous method 2012-05-16 18:23:24 +01:00
Marek Safar e7bfa90322 Don't report unresolved using clause error in eval mode multiple times 2012-05-16 17:01:28 +01:00
Jeremie Laval b0dcb61630 [corlib] Fix NullRef when using dispose a CancellationTokenRegistration when the initial source has been disposed 2012-05-16 11:50:17 +01:00
Marek Safar 4b4308cf34 Implement DateTime::ToString format specifier for genitive month names. Fixes #4708 2012-05-15 18:34:21 +01:00
Marek Safar 8fc6e042e0 Fix some existing datetime tests 2012-05-15 16:56:36 +01:00
Marek Safar e8fdf00f45 Add gitignore 2012-05-15 13:44:41 +01:00
Marek Safar 2e290094d7 Update locale builder tool 2012-05-15 13:35:39 +01:00
Marek Safar 22f03e5a22 Update locale builder tool 2012-05-15 13:29:41 +01:00
Marek Safar 9d5de96540 Update culture infos and implement missing or not implemented members 2012-05-15 09:44:22 +01:00
Sebastien Pouliot a61485e0ca newer nunit does not require a [TestFixture] attribute and made those fixture fail. Making them abstract fix this 2012-05-14 09:16:28 -04:00
Zoltan Varga 1081bdab8a Check return type compatibility for inlined methods as well. Fixes #5056. 2012-05-14 12:16:20 +02:00
Atsushi Eno 22a4d50a47 Make use of GetPrefixOfNamespace() in XElement.ToString(). Fixed bug #3972. 2012-05-14 18:25:56 +09:00
Atsushi Eno cee1998d08 Add Xml declaration even for such document that lacks XDeclaration.
Fixed bug #4850.
2012-05-14 17:24:32 +09:00
Atsushi Eno cac72ba927 XNodeNavigator could be used for a node tree without XDocument, so make it work for such case.
Fixed bug #4690, patch by eb1 sil.org.
2012-05-14 16:31:54 +09:00
Atsushi Eno 76275d015f In XNodeNavigator, do not start text node skip from current node.
Fixed bug #4739, patch by eb1 sil.org.
2012-05-14 16:23:06 +09:00
Zoltan Varga 8d920a602c Fix mono_nullable_box () in full-aot mode. Fixes #5045. 2012-05-14 03:13:16 +02:00
Zoltan Varga 654e322712 Fix byref stringbuilder marshalling. Fixes #5007. 2012-05-14 02:40:44 +02:00
Zoltan Varga fd5b4a4327 Implement out support in byref string marshalling. Fixes part of #5007. 2012-05-13 16:00:30 +02:00
Marek Safar 0b315c59ae Merge pull request #295 from i59/patch-1
CSharpCodeCompiler ctor: Corrected Windows mcs path, now resides in 4.5 ...
2012-05-13 01:33:25 -07:00
Filip Lundgren b8e54c3796 CSharpCodeCompiler ctor: Corrected Windows mcs path, now resides in 4.5 directory. 2012-05-13 02:42:48 +03:00
Miguel de Icaza abad830415 Merge pull request #293 from viniciusjarina/fix3258
Fix3258
2012-05-11 07:44:12 -07:00
Rolf Bjarne Kvinge 72cabbc10b If the dllname for a dllimport is a full path, try that exact path before anything else. Fixes #4678. 2012-05-11 01:06:42 +02:00
Neale Ferguson 4cd2ccc43e Add seq_point instruction to s390x 2012-05-10 13:45:36 -04:00
Sebastien Pouliot 42daa4fd3a Add some stubs for methods required by the portable class library profiles 2012-05-10 08:45:13 -04:00
Sebastien Pouliot 99b5076786 Add System.Windows.Input.ICommand which is part of 4.5 and the portable class libraries 2012-05-10 08:45:12 -04:00
Zoltan Varga fb4dc80ca8 Stop at catch clauses when doing a step over in sdb. Fixes #4851. 2012-05-10 01:27:17 +02:00
Rodrigo Kumpera d4ab4e3d92 Merge pull request #294 from madewokherd/createsuspended
Fix race condition in mono_threads_CreateThread.
2012-05-09 14:02:16 -07:00
Vincent Povirk 78a5d724e3 Fix race condition in mono_threads_CreateThread. 2012-05-09 15:35:40 -05:00
Jonathan Chambers 9c17da304c Include config.h and use TARGET_X86 and TARGET_AMD64 instead of i386 and __x86_64__. 2012-05-09 15:38:01 -04:00
Jeffrey Stedfast 8187fda98f Added call to GC.SupressFinalize() in CFObject.Dispose() 2012-05-09 14:47:20 -04:00
Sebastien Pouliot a929787f0a Small adjustments needed for Profile[1-4] of the Portable Class Libraries. 2012-05-09 14:36:21 -04:00
Sebastien Pouliot 1eb623e07a Thread.Finalize is needed in Profile3 of the Portable Class Libraries. 2012-05-09 14:36:21 -04:00
Sebastien Pouliot e8c1345162 BinaryWriter.Dispose is needed in Profile[1-4] of the Portable Class Libraries. Fix bug #4871 2012-05-09 14:36:21 -04:00
Jeffrey Stedfast 544aae98c2 [MacProxy] Fixed refcounting and got rid of unneeded attribute flags 2012-05-09 10:45:09 -04:00
Jeffrey Stedfast 0fd6a5a564 WebRequest.GetDefaultWebProxy() must not assume the type of the system proxy. 2012-05-08 18:59:13 -04:00
Jeffrey Stedfast 197498d047 [System.Net.WebRequest] Implemented new and improved proxy support on Mac/iOS 2012-05-08 18:31:05 -04:00
Vinicius Jarina aa6c3ddc4c Added unit test for the bug #3258 (Serialize|Deserialize DateTimeOffset?) 2012-05-08 16:53:15 -03:00
Vinicius Jarina bd167248e9 Fix XML serialization of DateTimeOffset?. Fixes #3258
The nullable DateTimeOffset was not properly handled when serialized.
The deserialization changed to work with DateTimeOffset?.
Avoided "i:type" attribute when serializing Nullable type.
2012-05-08 16:14:23 -03:00
Vinicius Jarina 4ef4e5844b Removed code commented 2012-05-08 16:14:22 -03:00
Rodrigo Kumpera a74a8c7c9c Merge pull request #292 from QuickJack/master
Remaining changes of my corrupted change request #247
2012-05-08 11:38:45 -07:00
QuickJack 117ceb10b7 Fixes a waring in System.Configuration. 2012-05-08 20:28:07 +02:00
Jeffrey Stedfast 0c0b37849c Fixed capitalization 2012-05-07 15:38:19 -04:00
Jeffrey Stedfast 4419f87b75 [Mono.Debugger.Soft] Re-added Dispose() method on VirtualMachine for API compat. 2012-05-07 14:57:18 -04:00
Jeffrey Stedfast c587916ef9 [Mono.Debugger.Soft] Fixed building of tests 2012-05-07 14:50:33 -04:00
Rodrigo Kumpera f6ff534aa3 When cleaning up the finalizers of a domain, do it in a way that reduces the chance of leftover objects.
* gc.c (finalize_domain_objects): When cleaning up a domain, we run two kinds of finalizers,
	those that have already been queued and those for objects that remain alive.

	A common problem we need to deal is that some finalizers allocate other finalizable objects
	when doing seeminly trivial operations such as String.IndexOf - which might require the Thread
	object of the finalizer thread to be instantiated.

	We handle those new objects by draining the registered finalizers set until none shows up. This fails
	if we run the queued finalizers after that.

	The order onto which finalizers are run on domain unload is unspecified and the new behavior can
	be argued to be more natural.
2012-05-07 11:39:02 -03:00
Rodrigo Kumpera 3ff9c8821e Fiz a domain unload race regarding finalizable objects.
* sgen-gc.c (mono_gc_clear_domain): It's possible to have a finalizable object
	survive mono_domain_finalize and leak into mono_domain_free, so we make sure this
	won't crash by removing from the fin hashtable all objects that belong to the
	doomed domain.
2012-05-07 11:39:02 -03:00
Zoltan Varga f473585c11 Raise an exception instead of aborting if a pinvoke method is not found in full-aot mode. 2012-05-06 15:04:29 +02:00
Rodrigo Kumpera c3ea08d937 Add a missing $(srcdir) to bug-3903 build command. Patch by KISHIMOTO, Makoto. 2012-05-04 10:33:05 -03:00
Zoltan Varga a381bdba51 Merge pull request #290 from jbevain-forks/methodbodymirror-exceptions
Add exception handlers to MethodBodyMirror
2012-05-04 02:08:23 -07:00
Jb Evain 583cab9f80 Add exception handlers to MethodBodyMirror 2012-05-04 09:13:22 +02:00
Jeffrey Stedfast f1f1ba6a16 [Mono.Debugger.Soft] Don't make Connection disposable. 2012-05-03 18:08:43 -04:00
Atsushi Eno fe832f6b09 Merge pull request #286 from dafergu2/bug4794
Fix DataContractSerializer with duplicate qname
2012-05-03 11:30:51 -07:00
Atsushi Eno c5a9e2fda0 Merge pull request #288 from ewxrjk/xmlwriter
Fix XmlTextWriter's use of NewLineHandling.
2012-05-03 07:16:37 -07:00
Andreas 7061a65073 Force disposal of Sqlite commands with using-statements in order to better isolate the unit tests. 2012-05-03 14:42:18 +02:00
Robert Wilkens 6df183f52e This is a minor change to earlier commit which removes a commented out
sql server that should not have been there.  It changes nothing functionally,
but the server is a temporary server, so referencing it didn't make sense.
2012-05-03 08:20:37 -04:00
Robert Wilkens fe74cf84a0 This is the addition of a quick and dirty NUnit test for Bug 4786
This bug was fixed in another commit/push by Robert Wilkens (me).
This NUnit test will fail without the patch (It will raise a
NullReferenceException from within mono), but with the patch for that
bug it will not raise an exception and the test will exit cleanly.

Please note, the top of this patch source sets up a temporary network
socket to listen to a port which pool.GetConnection() simply tries to connect
to.  No data is transfered so nothing needed to be done other than to
call Listen() on that socket which was bound to the port.  If the listen fails,
it means something else is listening already, which is fine, so we ignore
any excpetions from this part of the code (catch and ignore).
2012-05-03 08:05:55 -04:00
Zoltan Varga a5b2ba5b5b More fixes for passing/receiving nullables in sdb. Fixes #4659. 2012-05-03 13:53:55 +02:00
Richard Kettlewell b79b1ceaf5 Fix XmlTextWriter's use of NewLineHandling.
- Move the setting of newline_handling early enough that Initialize()
  can see it.
- Reduce the set of characters that trigger the slow path for
  attribute values for the NewLineHandling.None case.
- Rewrite the handling of \t, \r and \n to match the MS docs
  (which match the observed behavior of their implementation)
- Add some tests.
2012-05-03 10:49:54 +01:00
Marek Safar 538641cceb Merge branch 'master' of github.com:mono/mono 2012-05-03 09:00:48 +01:00
Marek Safar 6e11de0a36 Fix parsing of -w argument. Fixes #4853 2012-05-03 08:59:20 +01:00
Dave Ferguson 3b6cb0a486 Fix DataContractSerializer with duplicate qname
- Fix bug 4794 by searching the SerializationMap with both type and
  qname in all but several cases (see bug report comments)

- Add separate list for known types to mimic behavior of the .NET
  runtime

- Make previous test fixtures public so that the unit tests will be run

- Remove unused private method

- Add unit test for bug 4794
2012-05-03 01:56:17 -04:00
Zoltan Varga 91a8d3cae2 Reset the async state and frame info for still running threads when resuming the vm in sdb. Fixes #4737. 2012-05-03 01:28:39 +02:00
Jeffrey Stedfast dbdf6d104e [Mono.Debugger.Soft] Prettified PrimitivateValue ToString for null values 2012-05-02 16:05:55 -04:00
Zoltan Varga 4759537e60 Merge pull request #285 from joncham/eglib-fixes
eglib fixes for windows
2012-05-02 10:30:46 -07:00
Jonathan Chambers cfa274f02d Add tests and correctly handle using '/' in windows paths. 2012-05-02 13:25:20 -04:00
Jonathan Chambers ce5f9b8fef Test paths on windows using valid windows paths. 2012-05-02 13:16:04 -04:00
Jonathan Chambers fedaf9a96d Try try and use *nix style paths on Windows in uri tests. 2012-05-02 13:05:08 -04:00
Jonathan Chambers 7a02a49a23 Adjust linker path to find eglib.lib for test_eglib project. 2012-05-02 12:59:44 -04:00
Marek Safar 80d4f6b4e0 Add more tests 2012-05-02 16:54:07 +01:00
Marek Safar fe4a00dd54 Update wrong test 2012-05-02 15:33:20 +01:00
Marek Safar 26b54ed11a Remove empty cctor 2012-05-02 10:50:03 +01:00
Marek Safar e1d9737063 Remove expensive font initialization from default ThemeWin32Classic constructor, it's used indirectly by resgen 2012-05-02 10:46:07 +01:00
Marek Safar fdf5ca4a32 Check warning number for nowarn option as well 2012-05-02 10:46:07 +01:00
Gonzalo Paniagua Javier 9da7c4b8fd Do not raise the client cert callback twice.
Reverts my own patch from 2009.
2012-05-01 15:09:56 -04:00
Marek Safar 077f824a8c Merge pull request #282 from dafergu2/bug4793
Fix UriTemplate.Match to work with escaped uris
2012-05-01 12:08:39 -07:00
Marek Safar 4ffa40e9dd Remove expensive font initialization from default Theme constructor, it's used indirectly by resgen 2012-05-01 20:05:20 +01:00
Marek Safar baaa7780a5 Merge pull request #284 from pmsanford/patch-1
Fix compile error in VS Project for csharp
2012-05-01 10:53:19 -07:00
pmsanford 8bd5608b3d Fix compile error in VS Project for csharp (this broke as a result of SourceMethodBuilder being moved into its own source file) 2012-05-01 14:49:53 -03:00
Robert Wilkens 58c274a1c0 See Reported Bug #4786 in bugzilla which this attempts to resolve (and seems to succesfully).
This is a one line change:  result = null; had to be set before going back to the 'retry' point in GetConnection..

This is/should-be safe because we had just disconnected result a few lines earlier.

Without this change, under certain conditions which would flag a retry, when it went to the retry point
it wouldn't reset 'result', and as a result the main loop at the top of the GetConnection() function would
be skipped (it has -- while (result == null) -- at the retry point, and it would always be not null when it reached
that on retry), after which point it would just continue to retry on the same result indefinitely, which would eventually
result in an exception being raised.
2012-05-01 13:00:45 -04:00
Marek Safar edfeb7d0a4 Emit iterator finalizer once all nested anonymous methods are resolved. Fixes #4799 2012-05-01 17:09:42 +01:00
Dave Ferguson 825c7a9b79 Fix UriTemplate.Match to work with escaped uris
Fixes bug 4793
2012-05-01 08:42:02 -04:00
Marek Safar 118782916a Implement System.Net.Http content upload 2012-05-01 11:00:39 +01:00
Marek Safar ec7ed0e554 Less debug noise on console 2012-04-30 23:14:13 +01:00
Gonzalo Paniagua Javier 05f25eaaaa Add support for client certificates to HttpListener
Fixes bug #3969.
2012-04-30 17:31:01 -04:00
Gonzalo Paniagua Javier 033a2536df .NET 4.0+ flushes the request stream when content length is not set
Fixes bug #4640
2012-04-30 14:18:53 -04:00
Marek Safar 4f823c55e8 Implement Guid::ToString("X") 2012-04-30 19:02:19 +01:00
Marek Safar 5b57f80218 Fix Guid::CompareTo. Fixes #4721 2012-04-30 19:02:19 +01:00
Jonathan Chambers 1ef1593a0d Use TaskConstants in MOBILE profile as well. 2012-04-30 12:46:42 -04:00
Jeffrey Stedfast ea20a1a7e5 [Mono.Debugger.Soft] Updated PointerValue 2012-04-30 12:10:17 -04:00
Duncan Mak 20bf543db3 Add missing semicolon to fix the build. 2012-04-30 00:28:42 -04:00
Gonzalo Paniagua Javier 1af679d4d9 Merge pull request #281 from JamesB7/master
Bug 4723 fix: Socket bounds checks not correct for two's complement math
2012-04-29 21:08:22 -07:00
JamesB7 23df5e1d5b Fixed a typo and a whitespacing mistake.
Also made CheckRange more descriptive - no performance loss since the conditions were ORed before and so both got checked anyway.
2012-04-29 19:40:38 -03:00
JamesB7 d9d66c6465 Finished making the changes.
There are two types of checks that were being done before:
(1) offset < 0? size < 0? offset + size > buffer.Length? This is trivial to get around. If I make both offset and size positive but have the sum overflow, it will pass all three checks.

(2) offset in range? size in range? If the buffer is very large this might run into overflow issues with its checking, though fine most of the time...

Is the offset in range? And is the size in range against buffer.Length - offset (which we know to be >= 0 from the earlier offset check)? This method of bounds checking is not in any danger from two's complement overflows.
2012-04-29 19:34:47 -03:00
JamesB7 c03eccac3c Fix for two's complement overflow. Doing it just for BeginReceive first in case GitHub's code editor screws up again. 2012-04-29 19:15:14 -03:00
Zoltan Varga ec1ee63871 Insert sequence points based on the debug info emitted by mcs instead of littering the JIT with heuristics. 2012-04-28 15:03:26 +02:00
Zoltan Varga 1e7bc8f5af Revert some debug logging. 2012-04-28 14:28:25 +02:00
Zoltan Varga 328fb471cb Fix asserts/hangs when random addresses are passed to mono_aot_find_jit_info (). 2012-04-28 09:35:25 +02:00
Jeffrey Stedfast b417f35336 [Mono.Debugger.Soft] Added PointerValue.cs 2012-04-27 20:49:07 -04:00
Zoltan Varga 8702fe79f8 Add support for --llvm option to mono_jit_parse_options (). Fixes #4704. 2012-04-28 00:07:46 +02:00
Gonzalo Paniagua Javier 0ec96ead95 Do not attempt to write 0 bytes.
Fixes bug #4669.
2012-04-27 15:43:52 -04:00
Gonzalo Paniagua Javier d4326f2103 Do not send all the DNs on the server upon establishing a connection. 2012-04-27 15:07:52 -04:00
Marek Safar 12a948c37f Switch Cecil to common git://github.com/mono/cecil.git 2012-04-27 19:43:16 +01:00
Marek Safar 97cc622799 Don't create temporary module builder for dynamic context, compiler no longer relies on SRE 2012-04-27 19:17:02 +01:00
Marek Safar 3c9dbb0d28 Fix range check in string::Split 2012-04-27 17:25:57 +01:00
Duncan Mak 049e89e85f Fix the linux build that broke because of 786db71d 2012-04-26 17:58:39 -04:00
Zoltan Varga 597ad4d8ab Emit seq points after all call which return a value. 2012-04-26 20:02:38 +02:00
Zoltan Varga 969e62d053 Remove the g_mem_set_vtable () code, eglib doesn't support it. 2012-04-26 20:02:38 +02:00
Jeffrey Stedfast feaece0354 [xbuild] We still need to throw if we fail to import something. 2012-04-26 13:51:10 -04:00
Marek Safar bfe4ded32a Pass correct cancellation token to Task::Delay continuation 2012-04-26 17:21:03 +01:00
Marek Safar 92d8961e0b Canonicalize path on windows. Fixes #4625 2012-04-26 16:17:19 +01:00
Marek Safar 30cfc34b1d Fix simple return from async non generic Task methods 2012-04-26 15:35:08 +01:00
Marek Safar 15273f2e87 More work on System.Net.Http 2012-04-26 13:50:05 +01:00
Marek Safar c4c9b306ca Add System.Net.Http project files 2012-04-26 13:50:04 +01:00
Marek Safar 0b1498f1a2 Capture anonymous method variables into separate storey when inside iterator. Fixes #4641 2012-04-26 13:50:04 +01:00
Marek Habersack 786db71db8 Include MVC3 and aspnetwebstack assemblies pkg-config files 2012-04-26 12:14:51 +02:00
Neale Ferguson be0123a22e Revert previous fix for 3205 2012-04-25 17:49:19 -04:00
Rodrigo Kumpera 186eebdebb Merge pull request #279 from alexrp/master
Replicate .NET behavior for exceptions in the finalizer thread.
2012-04-25 14:07:27 -07:00
Neale Ferguson 36a57a0e92 Fix bug #3205 2012-04-25 15:49:02 -04:00
Marek Safar 9357719cdb Issue error for recursive generic constructors. Fixes #4647 2012-04-25 19:42:42 +01:00
Jérémie Laval 36da304d01 Fix constructor call in QueryConcatNode 2012-04-25 19:29:20 +01:00
alexrp 59883a0399 Replicate .NET behavior for exceptions in the finalizer thread.
On .NET, when an exception occurs in the finalizer thread, it is
printed, the AppDomain.UnhandledException event is raised, and
the runtime is aborted (exact same thing as what happens when an
exception is thrown in a thread pool thread).

We now do the same.

Note that this is a breaking change; previously, we just silently
swallowed exceptions that occurred in the finalizer thread. Given
this, a test had to be adjusted (and renamed). An extra test has
been added to verify that the UnhandledException event is raised
correctly.
2012-04-25 19:05:34 +02:00
Marek Safar faa06c117a Merge pull request #278 from JamesB7/patch-1
See bug 4543: This fixes Mono's Windows serial support for COM10+, ...
2012-04-25 07:03:54 -07:00
Marek Safar bfea12c482 Add exception ignore mode to HttpWebRequest 2012-04-25 14:26:56 +01:00
Marek Safar 9c4d2fc20f Make System.Net.Http.HttpClient tests more robust 2012-04-25 14:26:56 +01:00
Zoltan Varga 8960ec52a5 Turn on global single stepping for STEP_OUT too. Fixes #4549. 2012-04-25 12:33:51 +02:00
Zoltan Varga a4d0184c2b Allow setting nullable values in sdb. Fixes #4385. 2012-04-25 11:11:19 +02:00
Rodrigo Kumpera 11f6ebea80 Make sure no live object is left unscanned before we process disappearing links & finalizable objects. 2012-04-25 00:00:00 -03:00
Rodrigo Kumpera 8379d2c805 Add regression test for #3903. 2012-04-24 16:39:11 -03:00
Rodrigo Kumpera 5f3f4fb110 Use MonoClass::element_class for non array types when computing array interfaces. Fixes #3903.
* class.c (get_implicit_generic_array_interfaces): When computing the interfaces
	of Array::InternalEnumerator<T> don't use element_class for array types as we
	only want to do that to drop from enum to base type and uint->int.

	Fixes #3903.
2012-04-24 16:39:11 -03:00
Marek Safar 0d147007c6 Fix WebMatrix.Data tests 2012-04-24 18:14:04 +01:00
Marek Safar d4f6c46e62 Fix setting cookie port from uri 2012-04-24 18:12:36 +01:00
JamesB7 caadb77507 This fixes Mono's Windows serial support for COM10+, while also not breaking compatibility with Mono for Windows programs that rely on the earlier incorrect behavior. 2012-04-24 13:33:16 -03:00
alexrp d8cc1eabbd 'make check' build fixes in Mono.Parallel and WebMatrix.Data. 2012-04-24 17:51:47 +02:00
Marek Safar 8f5d249d2b Add missing reference 2012-04-24 16:23:24 +01:00
Marek Safar 27ebd353cd Fix programs clean target 2012-04-24 15:36:09 +01:00
Marek Safar 50e6b2e3c0 No tests for xbuild.exe 2012-04-24 15:35:38 +01:00
Marek Safar 502ff40579 Revert part of a93835169b 2012-04-24 10:09:31 +01:00
Gonzalo Paniagua Javier 9007f5e043 Avoid deadlocking when getting the ServicePoint
SSL connections were deadlocking when getting the service point for the
	connection in the last few releases of 2.10.x and in master.

	Fixes bug #4599.
2012-04-24 04:54:54 -04:00
Zoltan Varga 8847bd4260 Make sure we are processing the wrappers during single stepping instead of the icall methods. Fixes #4519. 2012-04-24 10:20:18 +02:00
Miguel de Icaza a93835169b AOT not supported on Windows, warn the user 2012-04-24 00:08:16 -04:00
Miguel de Icaza cad2cb445e Add these to MOBILE as well 2012-04-23 18:49:48 -04:00
Rodrigo Kumpera 972d52774f Handle type merging when there is a shared iface. Fixes #4180. 2012-04-23 15:38:20 -03:00
Jeremie Laval e94a4514f7 [build] Try to enable parallel make on RPM build 2012-04-23 19:17:08 +01:00
Marek Safar 907bb552a5 Implement more System.Net.Http tostring methods 2012-04-23 18:44:39 +01:00
Sebastien Pouliot 338dbe42de Fix leak by releasing the certificate elements from the CFArray since it was created with a null CFArrayCallBacks 2012-04-23 13:40:58 -04:00
Sebastien Pouliot 3a33710b7e Fix leak when an error message is returned from sqlite3_exec 2012-04-23 13:34:42 -04:00
Rodrigo Kumpera 6b9f06b57c Merge pull request #277 from konrad-kruczynski/master
FIx for problem with MRES.Wait(timeout, token) with not immediate Set
2012-04-23 09:38:30 -07:00
Marek Safar 46dacaa4cb Bump test timeout 2012-04-23 17:06:43 +01:00
Marek Safar 92c0b7cff2 Disable failing test 2012-04-23 17:02:32 +01:00
Marek Safar 7b63847907 Add another partially working parser hack. Fixes #4556 2012-04-23 17:02:32 +01:00
Konrad M. Kruczynski 73ca5b067f Another fix and unit test added.
Now all three possible cases are tested (and working).
2012-04-23 15:44:16 +02:00
Zoltan Varga 7c1984f41d Avoid setting thread->abort_exc in mono_raise_exception_with_ctx too (). 2012-04-23 15:19:43 +02:00
Zoltan Varga 200c6e7274 Avoid setting thread->abort_exc in mono_raise_exception (), it was already done. Fixes #4413. 2012-04-23 15:15:17 +02:00
Zoltan Varga 628e025476 Avoid keeping the dummy values computed by setup_interface_offsets () when it is called from mono_class_setup_interface_offsets (). Fixes #4440. 2012-04-23 14:34:44 +02:00
Konrad M. Kruczynski 83c06e2b22 Fixes as per the Rodrigo's comment.
Wait now throws an exception in case of cancellation token was
cancelled.
2012-04-23 12:02:09 +02:00
Miguel de Icaza 3038872e19 When running in MonoTouch, compare against a reference image, instead of generating the reference image 2012-04-22 21:11:09 -04:00
Rodrigo Kumpera 20793f3f3c Add concurrent-sweep to sgen's testing matrix. 2012-04-22 21:09:27 -03:00
Rodrigo Kumpera 5b3f143191 Fix concurrent sweep thread start code to actually work. 2012-04-22 21:09:26 -03:00
Konrad M. Kruczynski e6e63c0aa6 Fix for bug in ManualResetEventSlim.
The problem occured when one waited for an event with the
cancellation token and the wait was successful but not
immediate. In that case Wait returned false instead of true,
because of wait handle number mismatch. Also the unit test was
added.
2012-04-22 22:24:14 +02:00
Miguel de Icaza 78ad4f8c1f Add inline api docs for mono_dll_insert 2012-04-20 21:26:19 -04:00
Rodrigo Kumpera e778f28877 Update man page with valid values for new parameters. 2012-04-20 20:35:22 -03:00
Duncan Mak 170d0dda1c Remove the element if SetElement sets the value to null. 2012-04-20 17:28:41 -04:00
Miguel de Icaza 0c248689d3 Bump version 2012-04-20 16:24:37 -04:00
Jeremie Laval 05eca7f0ee [monodoc] Fix XSL issue with Microsoft/.NET XSL compiler 2012-04-20 19:52:54 +01:00
Jeremie Laval e0f93b755b [monodoc] Fix XSL extension object incompatibility to run on Windows/.NET 2012-04-20 19:52:54 +01:00
Gonzalo Paniagua Javier 7dd124f59c Avoid key duplication error from bogus ContentType
Fixes bug #4542.
2012-04-20 13:57:22 -04:00
Marek Safar 284234c359 Fix aspnetwebstack 2012-04-20 16:13:25 +01:00
Marek Safar 88c7f11d51 Report less cascading errors 2012-04-20 16:12:43 +01:00
Marek Safar 40822aea36 Remove runtime regression tests, nobody is going to fix them anyway 2012-04-20 16:12:42 +01:00
Marek Safar 8e68cca941 Avoid duplicate errors on indexer parameters 2012-04-20 16:12:42 +01:00
Marek Safar f8a9982c5b Don't run member verification twice on nested types 2012-04-20 16:12:42 +01:00
Marek Safar 074e6665e6 Fix wrong error message 2012-04-20 16:12:42 +01:00
Marek Safar 062c246dcc Clear session error messages after successful type inference 2012-04-20 16:12:41 +01:00
Marek Safar bec31f6745 Add new test 2012-04-20 16:12:41 +01:00
Marek Safar c23a7f49d1 Fix task delay tests 2012-04-20 16:12:41 +01:00
Marek Safar efc5ffb373 Implements System.Net.Http MultipartContent 2012-04-20 16:12:41 +01:00
Atsushi Eno 73a79debf6 add bonus mobile build in System.Data.Linq (not sure if it works well yet). 2012-04-20 23:11:34 +09:00
Miguel de Icaza 0e011eb7af Some small changes to assist Coregraphics System.Drawing 2012-04-20 00:36:55 -04:00
Rodrigo Kumpera 426188e897 Document new sgen options in the man page. 2012-04-19 18:35:12 -03:00
Rodrigo Kumpera 628320e3fc Add two tunning knobs to the split nursery. 2012-04-19 18:35:11 -03:00
Rodrigo Kumpera ebf0f889fd Adjust split nursery defaults to be more aggressive. In line with common workloads. 2012-04-19 18:35:11 -03:00
Rodrigo Kumpera 282f118a48 Speedup minor collections a small bit.
* sgen-split-nursery.c: The alloc functions are only called
	for nursery objects during a minor collection. So we can move
	this check to a separate function and let only the major GC
	pay for it.
2012-04-19 18:35:11 -03:00
Rodrigo Kumpera d91cf4a5dd Implement aging for the parallel nursery. 2012-04-19 18:35:10 -03:00
Rodrigo Kumpera 0e3af05102 Implement aging in the split nursery.
* sgen-split-nursery.c: Implement aging. Age information is
	stored in 512 byte buckets in parallel to the nursery.
	This increases our bandwidth requirements by a small bit
	but has the advantage not requiring us to mess with the
	status word of objects.

	Reducing the number of available bits for hashing sounded
	like a specially bad idea since ages above 1 are not very
	usefull unless you're a long living object.

	The object promotion code was split into a fast/slow path
	since we now have per-age bump allocators. The fast path
	is extremely efficient and does only 3 comparisons and a
	bunch of cache hot lookups.
2012-04-19 18:35:10 -03:00
Jeffrey Stedfast 5a5128b2d8 [Mono.Debugger.Soft] Added method invokation support to PrimitiveValue
Needed to fix bug #1258.
2012-04-19 17:21:17 -04:00
Rolf Bjarne Kvinge b3014f2bcc Fix XmlAttributes to ignore all XmlAttributes if XmlIgnore is present 2012-04-19 23:04:16 +02:00
Rolf Bjarne Kvinge 5d7c168eba Ignore XmlIgnore attributes when importing members in XmlReflectionImporter. Fixes #4367. 2012-04-19 23:04:15 +02:00
Marek Safar 664de1044a Set path for a custom tests 2012-04-19 20:14:21 +01:00
Jeremie Laval bd86454c0d [monodoc] Remove System.Web.dll dependency
Since this was causing problems for Windows and the calls used (UrlDecode/Encode) could be easily replaced by Uri methods, I just ripped out the dependency althogether.
2012-04-19 18:00:40 +01:00
Miguel de Icaza b3370ec2d2 remove this internal getter, from https://github.com/jbevain/cecil/commit/e9f7b3bf39567cb7268e3e7490ab0c253b990606#commitcomment-1230204 2012-04-19 11:06:09 -04:00
Miguel de Icaza 520b70deff Small touch up in the DrawingTest 2012-04-19 10:57:47 -04:00
Marek Safar fcecc3481a Fix make dist 2012-04-19 11:56:13 +01:00
Marek Safar bcb1a61b7b Fix make dist 2012-04-19 10:55:35 +01:00
Marek Safar cfd5ce853c Fix test file 2012-04-19 10:49:38 +01:00
Marek Safar 646d7d9962 Delete obsolete files 2012-04-19 10:44:58 +01:00
Marek Safar 3b8b49c90a Fix VersionTolerantSerialization to use active profile 2012-04-19 10:44:58 +01:00
Marek Safar b8d0df63f5 Add new test 2012-04-19 10:44:58 +01:00
Marek Safar e1e946437c Check for duplicate class name in different source files. 2012-04-19 10:44:57 +01:00
Marek Safar 6d71eb32a0 Better check for missing dependencies for method overloads. Fixes #4457 2012-04-19 10:44:57 +01:00
Marek Safar 54261b5971 Add missing reference. 2012-04-19 10:44:57 +01:00
Marek Safar 09087df0bc Add 4.5 example to help page 2012-04-19 10:44:57 +01:00
Marek Safar 8896fb641a Clean up session error reporting used for lambdas type inference 2012-04-19 10:44:56 +01:00
Marek Safar 31307580bc Merge upstream ikvm reflection bug fix 2012-04-19 10:44:56 +01:00
Miguel de Icaza 55fe58358b Bring jbevain/cecil's commit 7d9999c60bd538a19a84f1211064ef104f07ee82, Fix writing of delay-signed assemblies 2012-04-18 18:54:20 -04:00
Miguel de Icaza 1d12bef0d7 Bring jbevain/cecil's commit fb8dcbabcfbb611faeb47f1db53d54022ead2551, style fixes 2012-04-18 18:54:20 -04:00
Miguel de Icaza 2e565690dc Bring jbevain/cecil's commit 4ef434e294031c985cc98a81004d254e6ecb269a, Do not write a reloc section for pe64 assemblies 2012-04-18 18:54:20 -04:00
Miguel de Icaza a42e4b3a40 Bring jbevain/cecil's commit a2c944bd45b81443fd61cfd27d98ff551fa6938c, Add enum value and properties for Windows Runtime.. 2012-04-18 18:54:19 -04:00
Miguel de Icaza 16f1e04fc1 Bring jbevain/cecil's commit 4b68f887b9a6a0a2b5ae268545f8d2d8ae3abe0d, Add support for reading the new target platforms in C# 5: ARM and AnyCPU32BitPreferred. 2012-04-18 18:54:19 -04:00
Miguel de Icaza f2ad9db458 Bring jbevain/cecil's commit dfb8329f5ac41f7eaffaef00d3de8b75f4308c87, Fix ComputeStackDelta() for calli instruction. 2012-04-18 18:54:19 -04:00
Miguel de Icaza bf6b9b637a Bring jbevain/cecil's commit 1d446c76e9a706b9e8d3950760fe30dd09d1efed, Expose the debug header 2012-04-18 18:54:19 -04:00
Miguel de Icaza a3c686cad3 Bring jbevain/cecil's commit cf83e6fdbe0f6b676521ba641174a3085af60d0b, Expose ModuleDefinition.SymbolReader 2012-04-18 18:54:19 -04:00
Miguel de Icaza 1b40d83d19 Bring jbevain/cecil's commit 5d43150aed836ce3fee9fb26f33d0673a29d8697, Avoid creating unecessary instances 2012-04-18 18:54:18 -04:00
Miguel de Icaza 55053aed47 Bring jbevain/cecil's commit a43bc63f8e7668cbdba2dea44dd8465f73781cfb, Fix handling of explicit this call convention. 2012-04-18 18:54:18 -04:00
Miguel de Icaza bb5890363f Bring jbevain/cecil's commit 19ba9cd4664f135963b52abd633485e2bec8da4a, Fail earlier when trying to process primitive types 2012-04-18 18:54:18 -04:00
Miguel de Icaza 7ee490c5ad Bring jbevain/cecil's commit 58c287883107819f9c73c336a940a5383e97f5a2, improve last test 2012-04-18 18:54:18 -04:00
Miguel de Icaza de67a50082 Bring jbevain/cecil's commit 854a5c473a236dcda5d107d0939fcc6b9f4b351b, Fix TypeDefinition.IsPrimitive for Object 2012-04-18 18:54:18 -04:00
Miguel de Icaza 0c90846bcf Bring jbevain/cecil's commit df324526cff399a1a16d9fc62311463d13438981, Make TypeDefinition.IsPrimitive and .MetadataType match the behavior …. 2012-04-18 18:54:17 -04:00
Miguel de Icaza 23851a9d1f Bring jbevain/cecil's commit 5e1d16e8d15973d10ade78b9f784b6bec7ee1bad, Properly write pe32+ binaries. Fixes bug #86. 2012-04-18 18:54:17 -04:00
Miguel de Icaza 4711f586f5 Bring jbevain/cecil's commit 435974a4994e06b5065ea77057de899dd53729bb, Reduce the number of resize required to read most method bodies 2012-04-18 18:54:17 -04:00
Miguel de Icaza db8755f94e Bring jbevain/cecil's commit 1f6385763d04e69441e464c5d20e9b70cd8fa4fc, Custom attributes with a null blob are allowed now 2012-04-18 18:54:17 -04:00
Miguel de Icaza 71dfcc0ad6 Fix the build, introduce back the set method 2012-04-18 18:54:17 -04:00
Miguel de Icaza 91a8b4dec8 Bring jbevain/cecil's commit d934d35c94eb5d9c82ef825613108d84fbff068a, Fix issue with CustomAttributeSignature. 2012-04-18 18:54:16 -04:00
Miguel de Icaza 2005980e4c Bring jbevain/cecil's commit 74a697171cfc784ea856527730c1ffd1abb8ba2c, Use ordinal comparer for string keyed dictionaries 2012-04-18 18:54:16 -04:00
Miguel de Icaza a29ede8018 Bring jbevain/cecil's commit e9f7b3bf39567cb7268e3e7490ab0c253b990606, Fix MethodReturnType.Parameter.Method 2012-04-18 18:54:16 -04:00
Miguel de Icaza 493c34b0ef Bring jbevain/cecil's commit 5490b9bc05bd2efa8ed0e18f1c2da10e8e75f56b, Fix ThisParameter for static methods, and for instance methods of value types, Cecil #82 2012-04-18 18:54:15 -04:00
Miguel de Icaza ad04ef5641 Bring jbevain/cecil's commit 4b4568d274560cb7334e0e2a08d12bd67effb610, fsharp enum 2012-04-18 18:54:15 -04:00
Miguel de Icaza 9df683a250 Bring jbevain/cecil's commit abbedab2d7b215ee94c5eab894d86d010d105de6, style fix 2012-04-18 18:54:15 -04:00
Miguel de Icaza 1215565403 Bring jbevain/cecil's commit 96c93706ee1de0d70098db35515cdf94654fcf04, Fix the method field of the special this parameter 2012-04-18 18:54:15 -04:00
Miguel de Icaza 74ec21a361 Bring jbevain/cecil's commit 5c88b826aeb02cccda0d779514d5986c8b0c987c, some pinvokes methods have no map 2012-04-18 18:54:15 -04:00
Miguel de Icaza ad3d8461b9 Bring jbevain/cecil's commit 1fe347b3f985d0a5f92f0b3127f3f5194c87a284 2012-04-18 18:54:14 -04:00
Rodrigo Kumpera f5d6a7278f Fix typo. 2012-04-18 15:56:48 -03:00
Rodrigo Kumpera 4e92f89dc3 Fix serial range allocator. 2012-04-18 15:56:47 -03:00
Rodrigo Kumpera e001e7fc41 Fix int -> size_t api change. Might break some 64bits configurations. 2012-04-18 15:56:46 -03:00
Rodrigo Kumpera c99c576209 Merge pull request #276 from bholmes/wsq-deadlock-12-04
Work Stealing Queue Deadlock fix... fix
2012-04-18 11:50:22 -07:00
William Holmes d3818605a1 Fixing some problems with my previous commit.
threadpool.c (async_invoke_thread) :
	1) Decrease the thread pool waiting count if the dequeue was successful.
	2) Do not call dequeue_or_steal while gc skip thread is true.
2012-04-18 14:31:47 -04:00
Gonzalo Paniagua Javier dae0e64518 Merge pull request #275 from bholmes/wsq-deadlock-12-04
Work Stealing Queue Deadlock fix.
2012-04-18 10:55:55 -07:00
Miguel de Icaza 61180e52f2 [warnign fix] Make my_charset const 2012-04-18 13:48:25 -04:00
William Holmes f2f98b1bb5 threadpool.c (async_invoke_thread) :
Check that all the work stealing queues are empty before entering the wait loop.

	If another thread adds a wsq job after the previous call to dequeue_or_steal
	but before the InterlockedIncrement call deadlock can occur.
2012-04-18 12:25:50 -04:00
Jeffrey Stedfast 80ed5ee5b5 [xbuild] Add a Microsoft.Portable.CSharp.targets file 2012-04-17 16:45:17 -04:00
Gonzalo Paniagua Javier cf4f5673b3 Use sys/inotify instead of hardcoded syscalls.
Patch by Adrian Bunk.
	Fixes bug #4347.
2012-04-17 15:35:34 -04:00
Marek Safar 730b181406 Add new tests 2012-04-17 18:31:14 +01:00
Marek Safar 9818a0fae5 Better import of contraints with missing references 2012-04-17 18:31:14 +01:00
Marek Safar 8a8d0d0b8e Add test 2012-04-17 18:31:14 +01:00
Marek Safar b2a7835333 Update to the latest ikvm reflection 2012-04-17 18:31:13 +01:00
Marek Safar 0dcb829e5e Convert old unit tests 2012-04-17 18:31:13 +01:00
Marek Safar a060f8a36e Add missing references 2012-04-17 18:31:13 +01:00
Marek Safar d360d37e6f Fix test 2012-04-17 18:31:12 +01:00
Zoltan Varga 9faa3c475e Merge pull request #274 from iainlane/master
Merge two smallish fixes
2012-04-17 09:34:48 -07:00
Rodrigo Kumpera 9e83a3442e Use mono_gc_memmove instead of memcpy to ensure store atomicity. 2012-04-16 15:14:21 -03:00
Rodrigo Kumpera 0dd1b9fc35 When range allocating, pick the largest available block that fits minimum_size. 2012-04-16 15:14:21 -03:00
Rodrigo Kumpera 971a4e1a16 Handle fragment alignment for split nursery correctly.
* sgen-split-nursery.c (prepare_to_space): If a fragment is not
	aligned to the nursery alloc granule, we must insert phony arrays
	for those areas as they might be needed by pinning and fragment
	building.
2012-04-16 15:14:20 -03:00
Rodrigo Kumpera e833d3ad2c Fix the signature of range allocs. 2012-04-16 15:14:19 -03:00
Marek Safar 91fd88ea6d Increase timeout for some task tests 2012-04-16 17:49:38 +01:00
Marek Safar 0c8d99da56 Fix time zone test 2012-04-16 17:36:00 +01:00
Marek Safar eadfd5181e Convert old unit tests 2012-04-16 17:36:00 +01:00
Marek Safar 09c8a72611 Fix checking of index parameters for master infos 2012-04-16 17:35:59 +01:00
Marek Safar 0f7de17e3f Remove 1.1 only members with wrong profile check 2012-04-16 17:35:59 +01:00
Marek Habersack 50fb860bbf Fix System.Net.Http.Formatting compilation 2012-04-16 16:33:44 +02:00
Marek Habersack d4b18ef684 MVC3 compilation fix 2012-04-16 16:28:48 +02:00
Marek Habersack 21f8792d83 Updated aspnetwebstack 2012-04-16 15:30:13 +02:00
Rodrigo Kumpera 18793e82cd Add serial range alloc and export range alloc functions. 2012-04-16 10:13:44 -03:00
Jeremie Laval 12e16734dc Change missing Task parent reference 2012-04-16 14:10:13 +01:00
Marek Habersack a35bf7c38b System.Net.Http.Formatting, System.Web.Http and System.Web.WebPages updates 2012-04-16 14:15:40 +02:00
Marek Habersack 9d864c65c6 Updated aspnetwebstack to the latest upstream 2012-04-16 14:15:40 +02:00
Marek Habersack b71bebc222 Fix compilation of tests in the 4.5 profile 2012-04-16 14:15:40 +02:00
Jeremie Laval fa8a7b41b8 Fix Task child waiting for RunSynchronously 2012-04-16 12:38:00 +01:00
Jeremie Laval 3fe545acdb Change how parent is selected during Task creation and do not force continuation's parent as they are not necessarily the same as their ancestor 2012-04-16 12:38:00 +01:00
Atsushi Eno b456ed5ec2 Remove/fix invalid Ststem.Json tests. 2012-04-16 19:51:16 +09:00
Iain Lane d6dcfb27fc Ensure compiler flags are passed into build system
This issue was discovered when it was noted that Debian's hardening
buildflags weren't being propogated to all binaries.

The patch is from Simon Ruderich <[email protected]> and originated on
a Debian bug[0].

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657518
2012-04-15 15:16:24 +01:00
Iain Lane 32c1b70ad1 Fix ARM printf format problems
When building with -Werror=format-security on ARM, mono fails to build
due to incorrect format strings in arm-dis.c
2012-04-15 14:49:55 +01:00
Gonzalo Paniagua Javier 8d59c332ef Remove HasCacheControl from here too (fixes the build) 2012-04-14 22:28:33 -04:00
Gonzalo Paniagua Javier dc75067d8d Fix issues with caching
When the 't' parameter was specified, we returned a 304 if the
	timestamp matched the assembly timestamp, even if the client
	needed the entire body. We were also setting the 304 response
	cachebility as public to further mess things up.

	Fixes the treeview in the class status pages.
2012-04-14 15:27:41 -04:00
Duncan Mak ef1823ab80 [Mono.Debugger.Soft] Don't use Enum.HasFlags because it's not available in net_2_0. 2012-04-14 00:41:10 -04:00
Jeffrey Stedfast 7aaa8a21a8 [Mono.Debugger.Soft] Implemented TypeMirror.GetMethodsByNameFlags() for older runtimes. 2012-04-13 19:23:19 -04:00
Sebastien Pouliot b5573f22de Parse floating point values with negative exponent correctly. Fix bug #4415 2012-04-13 19:19:13 -04:00
Neale Ferguson bf914be5cf Fix long standing cast problem that truncated doubles 2012-04-13 16:10:51 -04:00
Jeremie Laval 366aa16f08 Don't overwrite the current variable without first saving its value in case a Task is executed inline inside another task 2012-04-13 20:11:03 +01:00
Rodrigo Kumpera 78589792ea Fix a warning about an unused function. 2012-04-13 14:45:03 -03:00
Rodrigo Kumpera 9380add937 Restore nursery sizing option. 2012-04-13 14:44:46 -03:00
Rodrigo Kumpera d1d9a89717 Fix more formating warnings. 2012-04-13 14:34:59 -03:00
Rodrigo Kumpera 7596fab6d7 Fix darwin pthread macro hack to explose pthread extensions. 2012-04-13 14:34:59 -03:00
Rodrigo Kumpera b42364b3e4 Use the right formating (%td) for mword. Fix tons of warnings on OSX. 2012-04-13 14:34:59 -03:00
Marek Safar e89f494937 Add missing file 2012-04-13 18:04:58 +01:00
Jeremie Laval a3ed8990eb Correctly propagate faulted status and exception from child to parent in attached case 2012-04-13 17:25:48 +01:00
Marek Safar 989100d5f0 Fix calling await on base expressions 2012-04-13 17:09:52 +01:00
Marek Safar f97e03f284 Implement more of System.Net.Http 2012-04-13 17:09:52 +01:00
Marek Safar b72fc75052 Fix uri escaping to match .net 4 2012-04-13 17:09:52 +01:00
Rodrigo Kumpera 8b1ef45243 Avoid crashing creating a process when workdir is null. 2012-04-13 11:26:05 -03:00
Marek Safar dfc2349c82 Add out of range check to exponent parsing. 2012-04-13 09:12:56 +01:00
Zoltan Varga 488858b5eb Fix warnings on OSX. 2012-04-13 09:00:58 +02:00
Miguel de Icaza c2a3b43156 Bring this test to the new NUnit syntax 2012-04-12 23:26:07 -04:00
Miguel de Icaza bea98513ec Fix the build, add PDComparer to the Makefile 2012-04-12 23:26:06 -04:00
Miguel de Icaza dfb6317f7f Add some changes to work on MonoTouch 2012-04-12 23:26:06 -04:00
Marek Safar 997c36839d Fix parsing of invalid int* exponents. Fixes #4396. 2012-04-12 15:48:13 +01:00
Marek Safar 64f549cab9 Implement ContentDispositionHeaderValue 2012-04-12 15:48:13 +01:00
Zoltan Varga 88befa7ee2 Fix setting of byref variables in sdb. Fixes #4362. 2012-04-12 11:22:57 +02:00
Jeremie Laval 9738fcb590 Improve ManualResetEventSlim consistency with new algorithm 2012-04-11 14:58:21 +01:00
Marek Habersack 47f4be4435 [asp.net] Fix for bug #4135. Do not unescape request path in HttpRequest.Path, it's done by the worker 2012-04-11 12:18:22 +02:00
Marek Safar 5b9a3f9e9a Remove unused parameter 2012-04-11 10:01:17 +01:00
Marek Safar 4a09ddbf31 Implement Task::LongRunning option 2012-04-11 09:53:43 +01:00
Marek Safar 5bd87b2923 Add more visitors 2012-04-11 08:44:06 +01:00
Marek Safar 5adb75b822 Keep enum base type in ast event if it's invalid 2012-04-11 08:29:42 +01:00
Jeffrey Stedfast 43c8f1f4fc [xbuild] Don't evaluate an import unless the file actually exists
Fix for bug #4365.
2012-04-10 15:21:33 -04:00
Marek Safar 2bef836711 Try to recover incomplete case label. Fixes #4004 2012-04-10 19:05:56 +01:00
Marek Safar 0d2db974dc Better error recovery wrong invalid conditional expression. 2012-04-10 17:31:43 +01:00
Jeremie Laval a221409ade Use .NET 4.5 implementation of Task's WhenAll/WhenAny for TaskFactory's ContinueWhenAll/ContinueWhenAny
The diff noise in Task.cs is just moving WhenAllCore and WhenAnyCore outside of their NET_4_5 region
2012-04-10 16:37:25 +01:00
Jeremie Laval 790411c617 Better argument checking in TaskFactory's ContinueWhen* methods 2012-04-10 16:37:25 +01:00
Paolo Molaro ac5aa5ce65 Revert "Remove MONO_OPT_SCHED; we don't actually use it and it's misleading."
This commit breaks binary compatibility for no good reason.

This reverts commit cd794a67a6.
2012-04-10 17:08:58 +02:00
Paolo Molaro 02880c6334 Load the llvm module from the lib dir of an installed mono before the system dirs.
Get the executable binary name on OSX, too.
Fix private symbol use in mini-llvm.c.
2012-04-10 17:07:38 +02:00
Marek Safar 032d867a7d Add more incomplete statements to AST. Fixes #4361. 2012-04-10 15:18:35 +01:00
Marek Safar 5684f1ac83 Create better expression type for incomplete new expression. Fixes #4361. 2012-04-10 15:06:17 +01:00
Marek Safar 1e26e13104 Better error recovery from incomplete argument expression. Fixes #4156 2012-04-10 14:41:23 +01:00
Marek Safar bb0c527f68 Recover attributes from incomplete parameters declaration. Fixes #4058. 2012-04-10 14:41:23 +01:00
Jeremie Laval 6db76648fb Add unit test for bug #2007 2012-04-10 14:24:45 +01:00
Jeremie Laval 38c3d85451 Remove now useless barriers in ManualResetEventSlim since Interlocked do the job for us
Related to f8b8ea08f6
2012-04-10 12:48:03 +01:00
Jeremie Laval 7167f57c4d Rework CancellationTokenSource to remove locking. Fix #4173.
Issue reported by MartinG, unit test code based on his repro.
2012-04-10 12:39:03 +01:00
Jeremie Laval a9d60b1175 Do not execute a Task continuation when it has already been canceled externally 2012-04-10 12:39:03 +01:00
Jeremie Laval b8abfaae4e Update copyrights 2012-04-10 12:39:02 +01:00
Jeremie Laval a3713f1843 Add consistency unit test for ManualResetEventSlim between internal state and WaitHandle abstraction 2012-04-10 12:39:02 +01:00
Jeremie Laval f8b8ea08f6 Switch from boolean to count mode to safely detect disposability in ManualResetEventSlim.
Having two concurrent operations of Set/Reset who succeeded in fetching the handle before it was disabled all the while trying to dispose may have caused a early release of the handle.
2012-04-10 12:39:02 +01:00
Jeremie Laval d878721e31 Refactor TaskTests.WaitChildTestCase test 2012-04-10 12:39:02 +01:00
Marek Safar 6b19d13573 Fix nullable binary comparison with lifted unboxed expression. Fixes #4340 2012-04-10 12:32:46 +01:00
Marek Safar faff96e916 Better error message for misused property. Fixes #4338 2012-04-10 10:38:09 +01:00
Marek Safar a5940858b9 Fix test target 2012-04-10 09:59:50 +01:00
Rodrigo Kumpera 504b6baa4e Add split minor collector to the test matrix. 2012-04-09 21:52:14 -03:00
Rodrigo Kumpera ec9e715ec2 First rounds of fixes to the split nursery. 2012-04-09 21:17:02 -03:00
Rodrigo Kumpera afe9dfd908 Move the scan/copy fast functions to the nursery collectors.
The minor copy/scan functions used to be specialized based on the
major collector. It's better to do so based on the nursery collector
since we expect that more objects are internally promoted than moved
to the major heap.
2012-04-09 16:52:24 -03:00
Rodrigo Kumpera d7a20d43a1 Bring back the old nursery design and make it runtime selectable. 2012-04-09 16:52:24 -03:00
Rodrigo Kumpera 9528bd0e83 Document usages of sgen_nursery_is_to_space. 2012-04-09 16:52:23 -03:00
Rodrigo Kumpera c2b1e4a0f9 Update documentation. 2012-04-09 16:52:23 -03:00
Rodrigo Kumpera 4605b10a68 First take on split nursery. 2012-04-09 16:52:22 -03:00
Rodrigo Kumpera ec2bf6b59b Introduce SgenObjectOperations that holds all copy/scan functions needed by a given collection configuration. 2012-04-09 16:52:22 -03:00
alexrp 5ece205aa6 Fix Mono.Options tests build. 2012-04-09 21:21:53 +02:00
alexrp b0929c60b8 Fix Mono.Debugger.Soft tests build. 2012-04-09 21:03:11 +02:00
alexrp f5fcc7fba7 Ignore *.mlpd. 2012-04-09 21:02:58 +02:00
alexrp cd794a67a6 Remove MONO_OPT_SCHED; we don't actually use it and it's misleading. 2012-04-09 20:41:18 +02:00
Marek Safar a11e7c4c27 Fix tests build 2012-04-09 19:39:02 +01:00
Zoltan Varga af66071c0c Merge pull request #272 from metanest/scriptpathproblem_2012Apr_spike
script path modify. to build in not souce tree.
2012-04-09 02:11:08 -07:00
KISHIMOTO, Makoto acf8367a52 script path modify. to build in not souce tree. 2012-04-09 17:13:14 +09:00
Zoltan Varga b37ce6bf9b Avoid using the -e argument to echo in patch-quiet.sh, it doesn't work with osx's echo. 2012-04-09 08:52:49 +02:00
Zoltan Varga 35e14ee70b Allow setting the name of threadpool threads. Fixes #4269. 2012-04-09 08:30:01 +02:00
Marek Safar 323dc450d9 Handle --fatal during parsing 2012-04-08 22:41:56 +01:00
Zoltan Varga c14f1026f9 Fix the domains of the objects returned by AssemblyMirror.GetAssemblyObject ()/TypeMirror.GetTypeObject (). Avoid caching empty strings in AppDomainMirror.FriendlyName. Fixes #4223. 2012-04-07 06:04:33 +02:00
Miguel de Icaza b0061420a5 Split the for loop in different states to produce a complete For loop node in the AST, to support MonoDevelop, fixed #3578 2012-04-06 17:04:16 -04:00
Miguel de Icaza d5ed0d5a67 Update version 2012-04-06 17:04:16 -04:00
Miguel de Icaza bf1d286b72 Merge pull request #216 from ilkerde/master
Better CS1529 Compliance for CSharp Code Generator
2012-04-06 11:03:35 -07:00
Marek Habersack 09a73ad0d1 [corlib] Correctly recurse directories in Directory.EnumerateFiles if the first entry is a directory
If the first entry in a directory happened to be another directory, the code wouldn't descend if
SearchOption.AllDirectoris was specified.
2012-04-06 19:35:38 +02:00
Andreia Gaita 7337ab453b Merge pull request #270 from bholmes/COM_cctor
__ComObject.cs (Initialize) :
2012-04-05 17:48:47 -07:00
Marek Safar f0023a272e Add missing assembly references to test targets 2012-04-05 23:20:28 +01:00
Marek Habersack 30b3555e5f Replaced git submodules docs with a link to the wiki 2012-04-05 22:27:39 +02:00
William Holmes 28525ec041 cominterop.cs : Unit test to ensure that the static ctor has been called
for the target type being instantiated.   This is a problem when using
      System.Activator.CreateInstance to create a COM object.
2012-04-05 15:52:28 -04:00
Jonathan Pryor f12dacdc78 [System] Fix MacOsNetworkInterface.ImplGetAllNetworkInterfaces()
On my (cursed?) MacBook Pro, calling
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()
results in an exception:

	System.ArgumentException: length
		at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00000] in <filename unknown>:0
		at System.Net.NetworkInformation.MacOsNetworkInterface.ImplGetAllNetworkInterfaces () [0x00000] in <filename unknown>:0
		at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () [0x00000] in <filename unknown>:0

Some printfs later, and we see why:

	Array.Copy(array.Length=12, 3, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 4, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 4, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 3, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 3, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 3, array.Length=8, 0, 4)
	Array.Copy(array.Length=12, 4, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 8, array.Length=6, 0, 6)
	# BOOM!

(Apparently I have 8 interfaces: lo0, gif0, stf0, en0, en1, fw0, p2p0,
and vboxnet0.)

The problem is readily obvious: we're trying to read 6 bytes of data
when only 4 are available, and Array.Copy() complains appropriately.

The fix -- which looks to almost contradict a02076ba -- is to use
`sockaddrdl.sdl_data.Length - sockaddrdl.sdl_nlen` instead of
`sockaddrdl.sdl_data.Length - macAddress.Length` (or sdl_alen).
sdl_nlen is the offset into the source sockaddrdl.sdl_data array, and
in this case sockaddrdl.sdl_alen (the length of the destination
macAddress) isn't the same as sockaddrdl.sdl_nlen, hence the breakage.
2012-04-05 15:39:45 -04:00
Marek Habersack 9f954a0a1e Updated README with submodule maintenance instructions 2012-04-05 20:53:42 +02:00
Pablo Ruiz Garcia 05325691a2 Fix browser capabilities compatibility with ms.net by 1) Avoid issues with capabilities defined with same name, but diferent case. and 2) favor majorversion/minorversion capabilities, but fallback to majorver/minorver if not found, to preserve compatibility with previous versions. 2012-04-05 20:22:19 +02:00
Marek Safar 9a8e03aca0 Add missing assembly references to test targets 2012-04-05 19:00:07 +01:00
Marek Safar 79959d9a81 Emit callvirt for non-virtual object methods called over generic type parameter 2012-04-05 19:00:07 +01:00
Alan McGovern 5e2b88f86e Add the update_submodules script to EXTRA_DIST 2012-04-05 17:29:59 +01:00
Marek Safar a4ce0bd79d Be less pedantic when issuing CS0219 warning (some people write crappy code) 2012-04-05 16:46:39 +01:00
Marek Safar c911cc7aa2 Force all test assemblies references to be explicit 2012-04-05 15:46:26 +01:00
Marek Safar aab6b9a30b Move System tests to System assembly 2012-04-05 15:46:26 +01:00
Marek Safar 8074a7d31e Update csproj files 2012-04-05 15:46:25 +01:00
Marek Safar bf7d4d0e39 Convert some old unit tests 2012-04-05 15:46:25 +01:00
Marek Safar d365718f2b Fix some API mismatch 2012-04-05 15:46:25 +01:00
William Holmes 84c2edcfa8 __ComObject.cs (Initialize) : Ensure that the static ctor has been called
for the target type being instantiated.  This is a problem when using
  System.Activator.CreateInstance to create a COM object.
2012-04-05 10:34:51 -04:00
Alan McGovern 9b5c99300a [build] Improve our git submodule update handling
This is a two pronged commit. Firstly we need to handle older versions
of git which lack support for recursively updating git submodules. In
order to handle this we try three separate git commands until one
succeeds and print warning/error messages as appropriate.

Secondly we should really update git submodules when 'make' is invoked.
Currently we only do this from the root makefile, though if we care enough
we can do it elsewhere in our build tree too. This means we no longer have
to run configure every time a submodule is updated just to get git submodule
update to execute.
2012-04-05 14:32:53 +01:00
Marek Safar 1517116c12 Fix parsing of conditional expression with lambda block statement 2012-04-05 11:21:42 +01:00
Marek Safar 35ca4a994f Implement more Task 4.5 members 2012-04-05 11:21:42 +01:00
Marek Habersack e123cb70d7 aspnetwebstack update 2012-04-05 12:19:48 +02:00
Rodrigo Kumpera 5091f77953 Use a single name prefix for sgen symbols. All non private symbols myst be prefixed with sgen_. 2012-04-04 16:39:23 -03:00
Zoltan Varga e8eb3439a8 Fix debugger invokes which return pointer types. Fixes #4214. 2012-04-04 21:08:48 +02:00
Rodrigo Kumpera ae1d395bfc Fix x86 FP stack code to not break prev links in a BB. 2012-04-04 12:15:26 -03:00
Rodrigo Kumpera 1eab2132e0 Fix the IR class of OP_NEWARR to be of the array type and not element's. 2012-04-04 12:15:26 -03:00
Rodrigo Kumpera db9db0797c Extend --compile-all to take a count parameter to recompile the same assembly multiple times. 2012-04-04 12:15:25 -03:00
Rolf Bjarne Kvinge 1a237e871d Ensure we get the correct StartWWAN overload. 2012-04-04 16:02:45 +02:00
alexrp 95287bacc0 configure.in: Don't print parallel mark twice. 2012-04-04 15:19:07 +02:00
Marek Safar e6b35a697d Hide internal member 2012-04-04 10:38:20 +01:00
Marek Safar 40c3a4c5f2 Implement Task::WhenAll 2012-04-04 10:38:20 +01:00
Sebastien Pouliot 0615698272 Apply SHA256 optimizations (single buffer allocation, inlining and better locality) to SHA224 so their performance match 2012-04-03 09:58:39 -04:00
Sebastien Pouliot 71c3c775c4 Ensure a default key is available, if none is set, when using ARC4Managed 2012-04-03 09:58:39 -04:00
Marek Safar ec47a5a912 Better handling of OperationCanceledException 2012-04-03 13:43:19 +01:00
Marek Safar 474544b3bb Hide internal invoke methods in debugger 2012-04-03 13:43:19 +01:00
Marek Safar 06a1cd7045 TaskScheduler.FromCurrentSynchronizationContext cannot be constructed from null context 2012-04-03 13:43:19 +01:00
Andreia Gaita 6dd38a46c6 Merge pull request #249 from pcc/xgetinputfocus
If the window manager does not support _NET_ACTIVE_WINDOW, fall back to ...
2012-04-02 18:11:13 -07:00
Neale Ferguson 68840d6566 Merge branch 'master' of ssh://github.com/mono/mono 2012-04-02 13:32:09 -04:00
Jeremie Laval bb18687e76 [monodoc] Try to fix some issue with URL creation in ecma provider when overloads and generic types are involved 2012-04-02 18:31:34 +01:00
Jeremie Laval ec11b1227a [monodoc] For search index creation: restore .ctor processing and fix the way we create XPath expression to extract doc
Re-enabling .ctor processing uncovered a serious issue with method and constructor overload handling which could cause an incorrect Doc element to be used or not all Doc elements.

This stemmed from two factor:
  1- Overloaded .ctor XPath expression was based on their relative position inside the tree but this position isn't necessarily the same in the documentation XML resulting in mismatched Member/Doc
  2- Because methods overloads are situated one level deeper in the tree, only their summary was processed which in turn meant only the Doc of the first overload would be taken into account

This commit also fix the conversion operator handling which was similar in nature to the method overloads problem (one tree level deeper + CTS type conversion).
2012-04-02 18:31:34 +01:00
Neale Ferguson 903bf1f14c s390x-codegen.h - Define s390_SP and s390_BP
sgen-major-copy-object.h - Correct assertion test
sgen-os-posix.c - Prevent race condition between restarting and suspending a thread
2012-04-02 13:30:43 -04:00
Zoltan Varga 422866794e Fix the addresses of handler clauses when using LLVM + thumb. 2012-04-02 18:23:46 +02:00
Marek Safar 10cf23f37a Fix hoisting of method parameters when both async and lambda expression use it 2012-04-02 16:46:06 +01:00
Jeremie Laval 1b0903313d [monodoc] Also fixup URL of parameter-less ctor 2012-04-02 12:03:07 +01:00
Jeremie Laval 5d76805fea [monodoc] Rename related sample section to 'Samples' simply 2012-04-02 12:03:07 +01:00
Jeremie Laval cb4d9b063a [monodoc] Open links in new window 2012-04-02 12:03:06 +01:00
Rolf Bjarne Kvinge acb426be97 Fix mono_path_canonicalize to not canonicalize the root directory to an empty string 2012-03-31 00:13:39 +02:00
Rodrigo Kumpera cb1e1e9731 Remove some silly dead code. 2012-03-30 16:17:30 -03:00
Rodrigo Kumpera 96dec56e7e Extract the fragment allocation code from the nursery allocation entrypoints. 2012-03-30 15:46:23 -03:00
Rodrigo Kumpera 1a60868534 Add par_alloc_object to the major collector function table. 2012-03-30 13:39:09 -03:00
Rodrigo Kumpera f9cf0d880d Rename mono_sgen_nursery_is_object_alive to mono_sgen_is_object_alive. 2012-03-30 13:39:08 -03:00
Marek Safar 142d3ec253 Fix System.Web.Razor embedded resouces namespace 2012-03-30 16:41:17 +01:00
Marek Safar ac706e0db8 Fix System.Json resources to be embedded 2012-03-30 15:14:11 +01:00
Marek Safar e4135cfcbb Convert literals to constants when reducing literal value 2012-03-30 15:14:11 +01:00
Marek Safar f7fee5a636 Use correct location when reporting constant conversion errors 2012-03-30 15:14:11 +01:00
Marek Safar 7666ffb384 Fix cloning of foreach statement 2012-03-30 15:14:11 +01:00
Marek Safar fd54eed62c Add more literal to constant expression conversions. Fixes #4125 2012-03-30 15:14:10 +01:00
Rolf Bjarne Kvinge da333100c1 Fix g_strreverse to handle empty strings 2012-03-30 13:44:03 +02:00
Marek Safar 0d5bb49660 Don't install Newtonsoft.Json 2012-03-30 09:59:22 +01:00
Zoltan Varga 08315dbce2 Disable wrapper generation code when DISABLE_JIT is defined. 2012-03-30 07:53:12 +02:00
Rolf Bjarne Kvinge 0527bcaaec Log profiler: don't ignore return values from select, in particular not EINTR. 2012-03-30 00:44:29 +02:00
Alex Corrado 73e6bfe92b Update spec for the rest of the mvc3/razor additions 2012-03-29 17:30:10 -04:00
Marek Habersack a037b4f8fc Version mvc3 properly 2012-03-29 19:31:04 +02:00
Zoltan Varga f53d2e7aa0 Merge pull request #266 from joncham/bug-struct-pack-size
Raise TypeLoadException for invalid StructLayout Pack size rather than a...
2012-03-29 10:13:16 -07:00
Marek Safar 6eef852779 Import Newtonsoft.Json 2012-03-29 18:08:57 +01:00
Jonathan Chambers cd970c186c Raise TypeLoadException for invalid StructLayout Pack size rather than aborting. 2012-03-29 13:00:50 -04:00
Marek Habersack 8588dfee42 Added the Newtonsoft.Json submodule 2012-03-29 18:12:49 +02:00
Rolf Bjarne Kvinge 976279bba5 Add most of the Debug class (with related tracing types) to the mobile build. Fixes #3754. 2012-03-29 17:53:04 +02:00
Marek Habersack 3f4e22a0ce MVC3 integrated, with some changes to make it compile on Mono and with Razor2 2012-03-29 17:50:23 +02:00
Marek Safar a3bd80feb8 Import System.Web.Http 2012-03-29 16:17:33 +01:00
Marek Safar dea48b1249 Implement more of System.Net.Http 2012-03-29 16:17:33 +01:00
Marek Habersack 9bb385756a Added -delaysign to mcs parameters 2012-03-29 16:43:58 +02:00
Marek Habersack d071482b45 Remove unnecessary assembly attributes 2012-03-29 16:23:37 +02:00
Marek Habersack 829858b9dd System.Web.WebPages, System.Web.WebPages.Deployment, System.Web.WebPages.Razor integrated 2012-03-29 16:22:49 +02:00
Marek Safar eedf18dd31 Remove unwanted assembly attributes 2012-03-29 15:15:00 +01:00
Marek Safar 2b0185bfea Ignore binary resouces 2012-03-29 15:02:39 +01:00
Marek Safar ec886ad334 Import System.Net.Http.Formatting 2012-03-29 15:02:38 +01:00
Marek Safar a5af971ddd Add System.Net.Http .net 4.5 beta members 2012-03-29 15:02:38 +01:00
Marek Habersack dea208a985 System.Web.WebPages imported 2012-03-29 15:47:45 +02:00
Paolo Molaro 706aaed7c7 Use proper ABI alignment rules for fields in structs (xambug# 4123).
* mono/metadata.c: __alignof__ doesn't provide the ABI value which
	is needed when interoperating with C code, but a compiler-assumed
	optimal value. Always use the ABI value from now on.
	Hopefully not too many programs depended on the invalid values.
	* tests/libtest.c: remove workaround for the same bug.
2012-03-29 15:42:55 +02:00
Marek Habersack 999f8f7ca8 Use correct name for the razor assembly 2012-03-29 14:58:15 +02:00
Marek Habersack 0b9c9ce27c Remove old System.Json sources 2012-03-29 14:46:09 +02:00
Marek Habersack 27c54b1fb0 Fix resource compilation for imported modules so that they don't put results in the submodule directory 2012-03-29 13:46:22 +02:00
Atsushi Eno 4751bee296 (monodroid) Do not crash with LogcatTextWriter.Write(null). 2012-03-29 18:20:55 +09:00
Marek Safar eaf5222c10 Dist more test files 2012-03-29 10:10:51 +01:00
Marek Safar a2f7cae522 Add more missing files to dist 2012-03-29 10:05:56 +01:00
Marek Safar f1a6fcca40 Fix mono path for corlib vts tests 2012-03-29 09:50:20 +01:00
Marek Safar e8fac50f9d Build System.Web.Razor in all 4+ profiles 2012-03-29 09:13:37 +01:00
Marek Safar 724829bffd Change async host type to struct to run on .net (broken for reference types) 2012-03-29 09:00:08 +01:00
Marek Safar 42199d8ec5 Use correct context type parameters when resolving documentation cref values 2012-03-29 09:00:08 +01:00
Zoltan Varga 557356ee88 Register vtables in runtime data structures after they have been completely initialized, since other threads can access them without locking. Fixes #3676. 2012-03-29 08:51:15 +02:00
Alex Corrado 14e5f928c5 Add System.Web.Razor.dll to the spec file 2012-03-29 01:50:25 -04:00
Miguel de Icaza 0d1d256eac Update 2012-03-28 23:21:41 -04:00
Gonzalo Paniagua Javier ee1bf7caed Welcome to the future 2012-03-28 22:50:29 -04:00
Alan McGovern 394088b75b Only try to check the submodule out if we have a git checkout.
We also should execute this every time so that if the submodule has
been updated on the remote, the users checkout reflects that change
too.
2012-03-29 03:00:38 +01:00
Alan McGovern 08e9fae9bd Use the readonly git url (non-ssh form) for the aspnetwebstack submodule 2012-03-29 02:42:25 +01:00
Atsushi Eno c6ef1f7953 new System.Json is now coming from submodule (and already merged my changes), so remove this. 2012-03-29 10:11:49 +09:00
Marek Habersack e51f6a458b System.Web.Razor integrated 2012-03-28 23:32:01 +02:00
Marek Habersack 79f1922e35 Use more common code in System.Json 2012-03-28 22:53:15 +02:00
Marek Habersack 4fbdf4aa1f Include the entire external/ directory in dist 2012-03-28 22:53:15 +02:00
Marek Habersack 96931074cb Updated the aspnetwebstack module 2012-03-28 22:53:15 +02:00
Rodrigo Kumpera 74bceb7cae Cleanu thep fragment allocation mess by putting alloc and region heads in a struct.
* sgen-nursery-allocator.c: Due to how we release fragments, we must keep
	both allocator and region head in sync when manipulating them. Doing it
	in an adhoc way after each call to the relevant functions was messy and
	bug prone.

	Introduce the FragmentAllocator struct that holds both heads and pass it around
	so all functions that change one can do it to the other.

	This eases the transition to multiple heads.
2012-03-28 16:32:21 -03:00
Rodrigo Kumpera e3e3be0573 Add a comment to code that needs cleanup. 2012-03-28 16:32:20 -03:00
Rodrigo Kumpera bd8deb19cc Clean up liveness functions to be easier to understand.
* sgen-gc.c: Kill object_is_fin_ready in favor of properly named functions
	that depends on a single function that tells if an object survived.
2012-03-28 16:32:19 -03:00
Marek Habersack f28dc14452 Compile System.Json using the upstream sources 2012-03-28 21:10:19 +02:00
Marek Habersack 3853c85bd4 Updated aspnetwebstack to include System.Json changes 2012-03-28 21:10:19 +02:00
Marek Habersack fc81c08a00 If external/aspnetwebstack is not found, init and update the submodule 2012-03-28 21:10:19 +02:00
Sebastien Pouliot fdee8dbfb7 Adjust unit tests wrt Gonzalo fix for NTLM - commit 214741630f 2012-03-28 13:20:39 -04:00
Sebastien Pouliot 637810eb7a Fix tests where a DSA CA certificate expired at the end of 2011 2012-03-28 13:20:38 -04:00
Marek Habersack ddf86608b8 Added aspnetwebstack submodule 2012-03-28 19:06:25 +02:00
Zoltan Varga 7f2d690bd5 Merge pull request #262 from joncham/bug-fail-multi-invocation
Fail the invocation instead of aborting the runtime when there are overl...
2012-03-28 09:37:54 -07:00
Tak d08604f86c Fail the invocation instead of aborting the runtime when there are overlapping debugger invocations. 2012-03-28 10:50:12 -04:00
Atsushi Eno 998a69a6b1 Add new System.Json assembly sources based on http://aspnetwebstack.codeplex.com/ 2012-03-28 21:12:54 +09:00
Marek Safar 4557955387 Fix JsonReaderWriterFactory parameters names 2012-03-28 11:26:07 +01:00
Marek Safar 1a6ef570d7 Check whether mcs output name is valid 2012-03-28 11:26:07 +01:00
Marek Safar a650e3b85e Update hoisted this variable to anonymous methods/state machine split 2012-03-28 11:26:06 +01:00
Zoltan Varga be82cfd86b Fix a memory overwrite in mono_gc_bzero (). Fixes #4095. 2012-03-28 12:06:56 +02:00
Zoltan Varga 62822b3a37 Merge pull request #259 from joncham/bug-profiler-thread-detach
Send thread end profiler message on thread detach.
2012-03-27 20:59:48 -07:00
Zoltan Varga 12c99202fa Merge pull request #261 from joncham/bug-null-interface-bitset
NULL global interface bitset on deletion.
2012-03-27 20:59:11 -07:00
Jonathan Chambers 09c1aa8bf9 Default COM visilibity to true. 2012-03-27 21:50:52 -04:00
Tak 75e2291651 NULL global interface bitset on deletion.
Fixes runtime crash on shutdown.

MIT/X11 License
2012-03-27 21:40:28 -04:00
Zoltan Varga fb8dacd56e Update the LLVM EH frame reader code to the latest llvm code. 2012-03-27 22:02:28 +02:00
Zoltan Varga 89ef4e4622 Fix the --disable-executables change. 2012-03-27 22:00:35 +02:00
Zoltan Varga fb39575a5e Merge pull request #258 from joncham/bug-debugger-tls-verify
[Debugger] Verify TLS lookup.
2012-03-27 12:55:00 -07:00
Zoltan Varga 40dc579128 Add a --disable-executables configure option to disable the generation of runtime executables and the libraries required by them, to speed up builds in embedding scenarios. 2012-03-27 21:51:59 +02:00
Tak 55894ac071 [Debugger] Verify TLS lookup.
* debugger-agent.c: Verify TLS lookup in thread_end callback.

License: MIT/X11
2012-03-27 15:10:11 -04:00
Jonathan Chambers 59763287a6 Send thread end profiler message on thread detach.
Contributed under MIT/X11 License
2012-03-27 15:08:15 -04:00
Rodrigo Kumpera 681ea245a0 Use g_error instead of fpritnf so target like android see it. 2012-03-27 15:36:55 -03:00
Jonathan Chambers e1ccc6fd26 Check lmf_addr_tls_offset for size greater than 64 like other tls offsets. 2012-03-27 14:27:56 -04:00
Sebastien Pouliot 1a843974f3 Fix bug #4101 when using a deep hierarchy of directories in isolated storage. 2012-03-27 08:39:34 -04:00
Marek Safar c865d029ec Make monodoc 4.0 lib when mdoc is 4.0 app 2012-03-27 12:25:51 +01:00
Marek Safar 5492a8fc86 Add missing dist for test file 2012-03-27 12:18:42 +01:00
Marek Safar 21d709b3ff Fix wrong WindowsBase method signatures 2012-03-27 12:06:34 +01:00
Marek Safar 78e6f2ce3f Don't throw when loading expressions wrongly marked as constants. Fixes #4105 2012-03-27 11:35:30 +01:00
Marek Safar f80d815d69 Emit smaller iterator dispose method 2012-03-27 09:36:38 +01:00
Marek Safar b9be37e5e4 Emit iterators finally block only once. Fixes #4052. 2012-03-27 09:36:38 +01:00
Marek Safar cf354d56d3 Simplify mutator check 2012-03-27 09:36:38 +01:00
Sebastien Pouliot 859e29e694 Move RijndaelTransform code from RijndaelManaged.cs to RijndaelManagedTransform.cs to ease code reuse 2012-03-26 14:36:13 -04:00
Neale Ferguson 8d586abc00 * sgen-alloc: Use CEE_STIND_I4 for non-MONO_BIG_ARRAYS references to max_length
* cpu-s390x.md, mini-gc.c, mini-s390x.c mini-s390x.h, mono-context.h: Add gc mapping for s390x
* Makefile.am: Don't run bridge tests for s390x
2012-03-26 12:11:10 -04:00
Zoltan Varga abbf25eb86 Fix the build. 2012-03-26 17:15:11 +02:00
Zoltan Varga a5f5025646 Fix debugger invokes when the runtime is suspended multiple times. Partly fixes #3927. 2012-03-25 16:57:51 +02:00
Marek Safar 8bccd06232 Merge pull request #257 from nestalk/master
Fixes to Issues in the test libraries
2012-03-25 02:33:22 -07:00
Neil Stalker c901363203 Fix building of winform tests 2012-03-24 21:10:26 +00:00
Neil Stalker a8a14e4b4a Fix access modifiers to allow test library to build 2012-03-24 18:52:12 +00:00
Neil Stalker c28729348c Test passes on Mono and MS, no need to ignore 2012-03-24 16:36:59 +00:00
Neil Stalker e2b9054399 en-US culture returns PM not p.m. in both .NET and Mono 2012-03-24 16:30:47 +00:00
Gonzalo Paniagua Javier 18e8dae438 Merge pull request #256 from flow3r/patch-1
Binding socket with specified IP address if possible.
2012-03-24 08:59:22 -07:00
Yeonwoon Jung 1874406ac0 Binding socket with specified IP address if possible.
HttpListener uses this class to manage endpoint listener. URI prefix usually looks like 'http://address:port/', with the specified URI, EndPointListener should bind IP address and port. But, without this change, EndPointManager passes IPAddress.Any instead of IP address given by URI prefix. This behavior is not only different with .NET class lib, but also could be security hole on server, which machine has multiple network interfaces combined public/private IP addresses. It always opens both public/private even if it is not intended.
2012-03-24 22:07:11 +09:00
Marek Safar fc1e350e3e Merge pull request #255 from nestalk/master
Fix test data
2012-03-23 15:38:14 -07:00
Neil Stalker 21457db456 Fix test data 2012-03-23 21:50:12 +00:00
Rodrigo Kumpera 03f1c043b2 It turns out the bridge code needs to distinguish bridges on a per-object basis.
* sgen-bridge.c: In additin to the per-class bridge check, restore the
	per object one. The per-class one still a major win as it allows clients
	to do the more expensive checks upfront.
2012-03-23 16:01:20 -03:00
Rodrigo Kumpera d147291bb8 Improve Missing Field error message. 2012-03-23 16:01:20 -03:00
Marek Safar 587a5f055d More work on separation of state machine and anonymous method 2012-03-23 17:58:46 +00:00
Jeremie Laval 3877fab371 [monodoc] LinkId for method needs to display parentheses in all cases so that overloads can work 2012-03-23 17:55:29 +00:00
Jeremie Laval 17584a1e37 [monodoc] Fix XPath query in image attribute creation 2012-03-23 17:54:53 +00:00
Jeremie Laval 4faaeced6e [monodoc] Add recipe related content processing 2012-03-23 16:35:01 +00:00
Sebastien Pouliot f805fe66ed Fix FindBySubjectName to find anything in the subject name (except the oid acronyms). Fix bug #3897 2012-03-23 11:51:08 -04:00
Sebastien Pouliot c5cdb7991b Ignore two more tests with [Category(NotWorking)] for NET_2_1/nunitlite 2012-03-23 10:15:35 -04:00
Rolf Bjarne Kvinge a1ca1b964c Ignore more files. 2012-03-23 15:09:43 +01:00
Rolf Bjarne Kvinge 5e055071e7 [mkbundle] Fix native warnings 2012-03-23 15:09:43 +01:00
Sebastien Pouliot 11b8dd58cb Fix ArgumentOutOfRangeException in PKCS1MaskGenerationMethod + unit tests. Fix bug #3777 2012-03-23 09:10:27 -04:00
Sebastien Pouliot 4e60ea839a Fix old test cases so it's easier to reuse for the mobile profile / nunitlite 2012-03-22 20:34:34 -04:00
Sebastien Pouliot 2b2c3495c3 Fix finalizer where a NRE can occur if the ctor fails to complete 2012-03-22 20:20:22 -04:00
Marek Safar 35e58ea3da Merge pull request #254 from viniciusjarina/fix_build
Fix broken test
2012-03-22 06:25:51 -07:00
Vinicius Jarina cf6d258e8b Fix broken test 2012-03-22 13:36:31 +01:00
Marek Safar 02fe8863c8 Initial separation of state machine and anonymous method story to allow both of them exist in same block 2012-03-22 11:39:12 +00:00
Marek Safar 6eb389c78b Decorate local variable names in same way in all state machines 2012-03-22 11:39:11 +00:00
Marek Safar c9e247e6d6 Report less cascading errors 2012-03-22 11:39:11 +00:00
Gonzalo Paniagua Javier 30dcaff4b9 Trigger the UploadProgressChanged event wen uploading a file.
Fixes bug #3100.
2012-03-22 00:17:48 -04:00
Gonzalo Paniagua Javier 1b9640df15 Fix the previous fix. 2012-03-21 23:15:12 -04:00
Gonzalo Paniagua Javier 2bd2130379 Fix possible nullref 2012-03-21 23:09:20 -04:00
Gonzalo Paniagua Javier 53aaa8c37f Merge pull request #253 from sblom/master
Fix bug in System.Json ToString implementation
2012-03-21 18:45:59 -07:00
Scott Blomquist a8628869f4 Add check for null JsonArray elements. 2012-03-21 18:20:16 -07:00
Rodrigo Kumpera eeb6c66e9c Fix compilation of System.Configuration test suite. 2012-03-21 18:25:32 -03:00
Rodrigo Kumpera ba0d918de5 Fix compilation issue with corlib 2.0 test suite. 2012-03-21 18:20:06 -03:00
Rodrigo Kumpera 5a30d2fa35 Rework fragment reclamation to remove one CAS from the hot path.
* sgen-nursery-allocator.c: Since we only reclaim fragments with the world stopped
	it doesn't make sense to concurrently build the free list. We can simply bulk
	release all fragments before building a new set.

	We repurpose the next_free slot to be used to hold the list of all active fragments.
	Together with a new list head, bulk release is easier to understand and verify for
	correctness.
2012-03-21 18:15:28 -03:00
Rodrigo Kumpera f35be3ff15 Merge pull request #252 from joncham/trigger_cleanup
Cleanup trigger pages in mono_arch_cleanup
2012-03-21 12:27:12 -07:00
Tak 95d752ab51 [Fix] Additional cleanup on runtime shutdown.
* mini-x86.c: Cleanup trigger pages on runtime shutdown.

License: MIT/X11
2012-03-21 15:11:03 -04:00
Rodrigo Kumpera 9710e394c8 Increase degradged_mode so we trigger a nursery gc every nursery_size degrated mode alloc. 2012-03-21 14:21:43 -03:00
Rodrigo Kumpera 3cdb386345 Kill some unused vars. 2012-03-21 14:11:55 -03:00
Rodrigo Kumpera 444c3a6904 Use mono_sgen_clear_range in place of memset everywhere. 2012-03-21 14:11:43 -03:00
Rodrigo Kumpera 7eb5c49acd Clear discarded frags using mono_sgen_clear_range. 2012-03-20 18:59:06 -03:00
Rodrigo Kumpera 99acb6f344 Fill scan starts with phony arrays. 2012-03-20 18:58:29 -03:00
Rodrigo Kumpera e77ae9958f Rename set_nursery_scan_start to mono_sgen_set_nursery_scan_start and move it to sgen-gc.h. 2012-03-20 18:56:01 -03:00
Rodrigo Kumpera a6e933211c Extract mono_sgen_clear_range. 2012-03-20 18:42:34 -03:00
Rodrigo Kumpera 8b2895284a Don't loop when processing finalizers, no reason for it. 2012-03-20 18:12:45 -03:00
Rodrigo Kumpera 8d77ddd99b Handle OOM and finalizable objects.
* sgen-gc.c: If we OOM when promoting a nursery object that
	is fin ready we end up with it in the fin ready list.

	Then, on the next nursery collection, if we don't scan such
	list we end up corrupting the heap.

	To handle it we scan the fin ready lists on each nursery
	collection. This helps us be future proof when finalizing
	objects while they are in the nursery becomes common.
2012-03-20 17:17:46 -03:00
Rodrigo Kumpera bd82fc80a8 Handle an OOM corner case during a nursery collection.
* sgen-gc.c: During a nursery collection, trim the pinning queue
	after we're done with it. Otherwise if we OOM and do pinning during
	promotion we can end up with a queue that contains interior pointers.
2012-03-20 16:34:35 -03:00
Rodrigo Kumpera 84c607e055 Improve io-layer error logging. 2012-03-20 14:06:11 -03:00
Marek Safar 5226dfa9a2 Emit symbol file entry for lambda expressions. 2012-03-20 09:24:30 +00:00
Marek Safar b7d94d9530 Fix typo 2012-03-20 09:06:54 +00:00
Marek Safar c7e5dd22e9 Remove OpenSubKey Mono limitation 2012-03-20 09:05:00 +00:00
Peter Collingbourne f7874dc890 If the window manager does not support _NET_ACTIVE_WINDOW, fall back to XGetInputFocus 2012-03-20 03:47:42 +00:00
TalAloni dacbfabcb0 Bug Fix: OpenSubKey will open key as writable when RegistryKeyPermissionCheck is set to ReadWriteSubTree 2012-03-19 20:17:45 -03:00
TalAloni 5ae8462066 Make sure a proper 'Not Implemented' exception is thrown instead of an 'Out of Range' exception. 2012-03-19 20:17:31 -03:00
TalAloni 363fd54f0b Fixed an ANSI to managed string conversion bug on native to managed callback functions. 2012-03-19 20:15:53 -03:00
Rodrigo Kumpera c51f3e2059 Add tests for LpStr and LpWStr marshalling. 2012-03-19 17:47:40 -03:00
Miguel de Icaza 43fac74fa3 Silence compiler warnings for methods that are P/Invoked: provide prototypes 2012-03-19 15:35:35 -04:00
Miguel de Icaza 5b10670612 Update email address for licensing Mono in LICENSE file 2012-03-19 15:35:34 -04:00
Marek Safar fdd9ba8b57 Better error recovery from missing select or group clause. Fixes #3907. 2012-03-19 18:33:08 +00:00
Marek Safar 5dd3e25912 Update test 2012-03-19 18:27:44 +00:00
Marek Safar da07d66c83 Attach more misplaced attributes in full ast. Fixes #3947 2012-03-19 17:15:50 +00:00
Marek Safar 26a9ba9b74 Add new 4.5 stream overloads 2012-03-19 17:15:49 +00:00
Marek Safar c40620bc21 Add missing null check to Directory enumerators 2012-03-19 17:15:49 +00:00
Marek Safar 22c09b95aa Implement Comparer::Create 2012-03-19 17:15:49 +00:00
Miguel de Icaza e7951e6ee0 Merge pull request #205 from m3rlinez/master
System.Configuration: Matched `configSource` behavior with MS.NET
2012-03-19 08:54:51 -07:00
Miguel de Icaza 7afc0e951d SqlBulkCopy.WriteToServer: Check array length before accessing first element; Patch from damoxc/github.com 2012-03-19 11:53:10 -04:00
Miguel de Icaza 99209c62ee (write_serial): fix the variable holding the return value of write(2) which is a ssize_t, not a size_t. This fixed a problem where we would not exit the loop, as negative values would never be set, fix from GitHub.com's konrad-kruczynski 2012-03-19 11:31:55 -04:00
Miguel de Icaza 30c89a6bc9 IntPtr: Add the various operator overload features for arithmetic to mobile 2012-03-19 11:31:55 -04:00
Miguel de Icaza 612cb3e75b Update some copyrights 2012-03-19 11:31:55 -04:00
Miguel de Icaza ad606e3362 Merge pull request #248 from pcc/toolstrip-flow
Fix several bugs relating to ToolStrips with Flow layout
2012-03-19 08:25:17 -07:00
Zoltan Varga 8737307567 Rework the way synchronized wrappers recursion avoidance is implemented. Instead of doing fragile checks in mini-trampolines.c which didn't work with full AOT, uses a dummy wrapper around the method which is called. Fixes #3904. 2012-03-19 05:49:37 +01:00
Peter Collingbourne fbe0f6acc4 Fix several bugs relating to ToolStrips with Flow layout
Specifically:
  - Do not take into account unavailable ToolStripItems.
  - Use preferred size of ToolStripItems instead of current size.
  - Take into account the ToolStrip's padding.
  - Do not fill the ToolStrip height during layout, which is wrong
    for multi-row ToolStrips.  This reverts commit f124ea39, which
    fixed Novell bug #469196.  As an alternative fix for that issue,
    set ToolStripSeparator's Dock to Fill in its constructor.
2012-03-19 03:46:19 +00:00
Gonzalo Paniagua Javier c64a76e3aa Redirect right after NTLM authentication works now
Fixes bug #3894.
2012-03-18 17:44:30 -04:00
Zoltan Varga e5c782bdb6 Fix llvm+direct icalls. Fixes #3925. 2012-03-18 00:22:49 +01:00
Marek Safar 6d0662243d Release captured reference type stack variables 2012-03-16 16:52:01 +00:00
Marek Safar 5d624eb52a Emit better code for binary await expression with constants 2012-03-16 16:52:01 +00:00
Marek Safar bc865e6d85 Emit less awaiters when existing ones can be reused 2012-03-16 16:52:01 +00:00
Marek Safar 71be73bff4 Emit better code for await in array initializer 2012-03-16 16:52:01 +00:00
Marek Safar b7d58816d5 Don't mangle compiler generated local variable names 2012-03-16 16:52:00 +00:00
Zoltan Varga 20fbfd2432 Merge pull request #246 from joncham/bug-configure-clang
Use cache variable when checking for clang.
2012-03-16 08:44:47 -07:00
Jonathan Chambers c6c3a736b1 Use cache variable when checking for clang, so it can be set and avoided during cross compiling. 2012-03-16 10:34:30 -04:00
Gonzalo Paniagua Javier 41b91a23a2 Last commit was not entirely correct... 2012-03-16 00:31:34 -04:00
Zoltan Varga 447d946c1e Fix the printing of parameter type namespaces in stack traces. 2012-03-15 22:52:43 +01:00
Zoltan Varga 449a475078 Fix the previous change again. 2012-03-15 22:24:08 +01:00
Zoltan Varga a7e3526afa Fix build on platforms without MONO_ARCH_HAVE_TLS_GET defined. 2012-03-15 22:12:07 +01:00
Zoltan Varga c15f682374 Add missing eglib remappings. 2012-03-15 22:12:07 +01:00
Rodrigo Kumpera 65c9b41864 Merge pull request #245 from Sectoid/master
Solution for bug #3912
2012-03-15 09:25:04 -07:00
Gleb Golubitsky a0181c6c91 Fixing formatting glitches in my previous bug #3912 solution
Signed-off-by: Gleb Golubitsky <[email protected]>
2012-03-15 18:06:25 +02:00
Gleb Golubitsky f1fd6a5db9 Fix and a test case for the bug #3912 [1].
Merge branch 'parameter-builder-set-constant-enum-fix'

[1] - https://bugzilla.xamarin.com/show_bug.cgi?id=3912

Signed-off-by: Gleb Golubitsky <[email protected]>
2012-03-15 17:14:42 +02:00
Gleb Golubitsky 2aa0c70246 test case
Signed-off-by: Gleb Golubitsky <[email protected]>
2012-03-15 17:12:49 +02:00
Gleb Golubitsky f218bddfeb the patch fixing issue
Signed-off-by: Gleb Golubitsky <[email protected]>
2012-03-15 17:12:49 +02:00
Sebastien Pouliot 7716318487 Change type-check to allow inheritance in the steps, also throw if a step can't be inserted 2012-03-15 10:37:37 -04:00
Marek Safar 6d02d73936 Update translation files 2012-03-15 14:07:00 +00:00
Marek Safar 4bdd2d7170 Fix few unit tests 2012-03-15 14:06:46 +00:00
Marek Safar 86be85336e Update async codegen to require INotifyCompletion implementation 2012-03-15 13:02:57 +00:00
Marek Safar 3742361e58 Less cascading errors 2012-03-15 13:02:57 +00:00
Zoltan Varga 4b51bbf829 Add hand-specialized versions of the various Array.Sort () methods for the items=null case to speed it up, and to avoid the generation of strange methods like qsort<double, System.Reflection.CustomAttributeTypedArgument> () when using full-aot. 2012-03-15 03:00:59 +01:00
Gonzalo Paniagua Javier a631cd38fb Merge pull request #241 from viniciusjarina/fix2843
Fix bug 2843 (Deserialization Nullable user-type) + Unit tests
2012-03-14 13:23:15 -07:00
Neale Ferguson 6d57d718dd Merge branch 'master' of ssh://github.com/mono/mono 2012-03-13 19:18:12 -04:00
Neale Ferguson 26d73958f5 Enable s390x to use TLS variables like amd64 and x86; Enable sgen tests for s390x 2012-03-13 19:15:29 -04:00
Alex Corrado 59e0b4d070 Final spec file changes for 2.11 packaging. Adds back a couple files that were lost in my last commit. 2012-03-13 13:23:42 -04:00
Gonzalo Paniagua Javier 864d354b59 If we read an entire chunk, return it in the next read operation
When waiting for the chunk trailer, we can return the data read
	so far.
2012-03-13 11:57:51 -04:00
Rolf Bjarne Kvinge 17f7c3dbb7 Include System.Collections.Generics.SortedSet in the mobile profile. Fixes #3827. 2012-03-13 12:37:59 +01:00
Marek Safar 111b29f244 Add System.Net.Http to spec file 2012-03-13 10:26:12 +00:00
Marek Safar e78dc11214 Implement C#5 foreach scope rules 2012-03-13 10:24:14 +00:00
Marek Safar 8a0176e80a System.Web.Mvc is 2.0 profile only 2012-03-13 10:24:14 +00:00
Marek Safar 945f5328c8 Add new test 2012-03-13 10:24:14 +00:00
Marek Safar 3d8c6795b9 Default parameters are ignored for method group conversion. Fixes #3849 2012-03-13 10:24:14 +00:00
Zoltan Varga 4a057ac91a Derive a dreg > 0 relation from ldaddr in ABCREM. 2012-03-13 01:09:58 +01:00
Rodrigo Kumpera 5d805d1305 Properly handle ASLR randomization of the main thread stack on darwin. 2012-03-12 19:51:49 -03:00
Rodrigo Kumpera 19ae91d160 Under full-aot process the types of method arguments that are called from other methods. Fixes #3735.
* aot-compiler.c: If we call a sharable generic method that takes a parameter that
	isn't shareable we must include that type or we risk failing at runtime.

	Fixes #3735.
2012-03-12 19:51:49 -03:00
Alex Corrado 49742a9a33 Add back the 4.0 profile assemblies to the spec.
The 4.0 assemblies are not used at runtime, but the metadata is needed to build against the 4.0 profile.
When there is time, we might consider running mono-cil-strip on these to reduce package size.
2012-03-12 18:37:55 -04:00
Alex Corrado 5c31e2e1b9 Update mdoc.exe from 2.0 to 4.5 in the spec 2012-03-12 14:51:09 -04:00
Alex Corrado fe87a87420 Add unpackaged 4.5 install files to the spec 2012-03-12 14:44:08 -04:00
Marek Safar f5dbc1ee55 Update spec file to 4.5 profile 2012-03-12 11:38:12 +00:00
Zoltan Varga 4a011d8a5e Add a string ctor test to objects.cs. 2012-03-11 19:11:46 +01:00
Zoltan Varga 50f4d7f636 Make mono_lookup_internal_call () return ves_icall_System_String_ctor_RedirectToCreateString for string icalls if the icall tables are disabled, since some code depends on it. 2012-03-11 19:10:31 +01:00
Zoltan Varga 3c0ff7b311 Fix the previous patch. 2012-03-11 18:19:22 +01:00
Zoltan Varga 5d8b1ad68d Move the thread attach code for native-to-managed wrappers to method_to_ir (), instead of emitting it by hand for each architecture. Also make it save/restore the current domain. Fixes #3623. 2012-03-11 17:53:59 +01:00
Zoltan Varga 8814ddb2da Merge pull request #242 from NN---/patch-1
Fix Nemerle compilation (Do same as .Net)
2012-03-11 08:48:56 -07:00
Zoltan Varga 0412841a06 Merge pull request #243 from konrad-kruczynski/bug3661
Fix for bug #3661.
2012-03-11 08:45:42 -07:00
Konrad M. Kruczynski 99d6e93a71 Fix for bug #3661.
Before this fix midpoint rounding mode was lost in case digits = 0.
Now this case is checked on the managed side and Round2 is only
used for digits > 0.
2012-03-11 13:04:43 +01:00
Marek Safar 311616efa5 Merge pull request #240 from idank/master
small doc fix
2012-03-11 04:22:05 -07:00
NN 87d0277077 Make code behaving like .Net.
The original discussion is here:
https://bugzilla.novell.com/show_bug.cgi?id=689533
And this is the proposed patch:
https://bugzillafiles.novell.org/attachment.cgi?id=426501
2012-03-11 09:07:40 +02:00
Vinicius Jarina 32b939f496 Add unit test for bug 2843 (Serialization/Deserialization Nullable Enum). 2012-03-10 21:01:34 -03:00
Vinicius Jarina 5a4135fde4 Add unit test for Serialization/Deserialization with Nullable using Dictionary/Lists 2012-03-10 20:58:40 -03:00
Vinicius Jarina 2bfced8937 Fix bug #2843: WCF: SerializationException when processing response that contains a nullable enum
Fix deserialization of objects with Nullable user-types. Deserialize use internal user-type of a Nullable object to lookup QName on deserialize.
2012-03-10 20:55:33 -03:00
Idan Kamara f9c48549fa Fix typo 2012-03-11 00:18:58 +02:00
Sebastien Pouliot f63e0394b8 Tests from bug #3677 (works on master, fails in MonoTouch) 2012-03-10 11:58:19 -05:00
Zoltan Varga d522208413 Add basic quoting support to MONO_ENV_OPTIONS. Fixes #792. 2012-03-10 16:44:31 +01:00
Marek Safar 15de0217e3 Don't build symbol files for profiles never used for execution 2012-03-10 10:53:42 +00:00
Gonzalo Paniagua Javier 3ed1da7461 Add another default format
Patch by Tom Hindle.
	Fixes bug #3392.
2012-03-09 23:43:20 -05:00
Alex Corrado b08b618c8b Update a couple more tools in the spec that moved 4.0 to 4.5 2012-03-09 21:57:01 -05:00
Alex Corrado 2ae38d26c8 Update spec file to reflect tools that moved from the 4.0 to the 4.5 profile 2012-03-09 18:23:06 -05:00
Alex Corrado 7fa219effe Add some missing 4.5 xbuild target files to the dist 2012-03-09 16:57:36 -05:00
Duncan Mak f0430643ba Add TimeZoneInfo.MonoTouch.cs so that it's included in dist 2012-03-09 14:59:07 -05:00
Alex Corrado 8ed5cc5c53 Include the spec file in the tarball 2012-03-09 14:59:06 -05:00
Marek Safar 7d3fff7638 Add missing files from last commit 2012-03-09 19:37:13 +00:00
Jonathan Chambers a2978ea072 Fix output names for libmono.vcxproj. 2012-03-09 10:08:24 -05:00
Atsushi Eno 8062ba1e7b Fixed bug #3504 - implemented ValidateEndElement() var argument support.
It is documented in MSDN and I could implement it.

For the actual implementation of object-to-string conversion, I could pick
up dead old XmlValueConverter class from pre-RTM .NET 2.0(!).
It is now added to the sources where applicable.
2012-03-09 23:52:34 +09:00
Marek Safar 518bd2254d Remove one of never used icalls 2012-03-09 14:41:05 +00:00
Marek Safar ce517bce3b Add more async predefined members 2012-03-09 14:11:59 +00:00
Marek Safar 68eb25d021 Check out parameter flag correctly 2012-03-09 14:11:59 +00:00
Marek Safar 0b36a89985 Add new async interfaces 2012-03-09 14:11:58 +00:00
Atsushi Eno 09d3ef3aea Fill XmlSchemaInfo validity for attributes (some were missing). Part of bugfix #3504. 2012-03-09 21:51:19 +09:00
Atsushi Eno d7d2e98d94 Added test case for #3003. 2012-03-09 18:59:46 +09:00
Atsushi Eno f717ddb496 part of fix #3003 - attached properties are also subject to SetValue event flow. 2012-03-09 18:01:51 +09:00
Atsushi Eno 4a9240c3bf Part of fix #3003 - use On[Before|After]Properties event on XamlObjectWriterSettings. 2012-03-09 17:51:35 +09:00
Atsushi Eno f60f834cbc Part of fix #3033 - support ISupportInitialize and relevant XamlObjectWriterSettings events. 2012-03-09 17:35:08 +09:00
Atsushi Eno bf48e7823d Part of fix #3003 - events do not prevent invoker setter unless Handled is true. Also use parent object as eventSender. 2012-03-09 16:59:57 +09:00
Atsushi Eno 1899ac381b lookup interface implementation of "Add" method. Fixed bug #2980. 2012-03-09 14:43:24 +09:00
Zoltan Varga b4bf149514 Fix the previous change. 2012-03-09 05:03:52 +01:00
Zoltan Varga a049889897 Allow mono_lookup_internal_call () to return the dynamically registered icalls even if the icall tables are disabled. 2012-03-09 04:06:40 +01:00
Zoltan Varga 8b296a7f2c Add a few cominterop icalls stuff for the DISABLE_COM case. 2012-03-09 02:47:26 +01:00
Zoltan Varga ec7f628040 Fix LLVM type mapping so classes and generic instances are mapped to the same type. 2012-03-09 00:08:37 +01:00
Zoltan Varga 9558f1df89 Add a configure option to make all icalls non-static. Add another option to disable the icall tables. 2012-03-08 23:16:22 +01:00
Marek Habersack 16317446d9 Merge pull request #234 from kripper/master
Fixes Bug #333898 / Fixes Bug of losing ASP.NET sessions (InProcSessions) when using Phalanger with Mono
2012-03-08 14:12:30 -08:00
Gonzalo Paniagua Javier 70c64f12c3 Fix multiple async accepts
Running multiple BeginAccepts or AcceptAsync at the same time on the
	same socket requires serialization.
	Fixes bug #3805.
2012-03-08 14:32:49 -05:00
Gonzalo Paniagua Javier 02b1ec7da9 Initialize struct 2012-03-08 14:32:49 -05:00
Gonzalo Paniagua Javier 0491a2cd54 Just in case... 2012-03-08 14:32:48 -05:00
Gonzalo Paniagua Javier 4d8b98a09b Remove warning 2012-03-08 14:32:48 -05:00
Gonzalo Paniagua Javier 1f58521e21 ReadTimeout and WriteTimeout
They were returning a 0 timeout when it should be Infinite.
2012-03-08 14:32:48 -05:00
Jeremie Laval 286337ab95 [mdoc] Properly recognize external img resources 2012-03-08 16:36:28 +00:00
Atsushi Eno 2927d27304 bugfix #3231 - when XmlWriterSettings specifies Indent, some WriteWhitespace() is ignored. 2012-03-08 22:42:10 +09:00
J. Christopher Pereira cfc15c20af Update mcs/class/System.Web/System.Web.SessionState_2.0/SessionStateModule.cs 2012-03-08 05:28:43 -05:00
Atsushi Eno d1761d0700 Fix XLinq decimal value formatting to become invariant. Fixed bug #3634. 2012-03-08 18:25:58 +09:00
Atsushi Eno fe6e513cf7 Revert previous XPath fix. Fix is rather needed in XPathNodeIterator.GetEnumerator().
The thing is, XPathNodeIterator itself is stateful and does not behave
like IEnumerable, thus GetEnumerator() should not iterate nodes within
*itself*. Rather, it should have returned a clone of it.

After all we didn't have to damage performance to fix bug #3705, which is nice.
2012-03-08 18:11:30 +09:00
Marek Safar 11b18898e8 Add better errors for async 2012-03-08 08:37:24 +00:00
Atsushi Eno b88e6a3206 Reuse of XPathNavigator instance is error-prone. Fixed bug #3705. This may significantly harm performance though... 2012-03-08 17:32:16 +09:00
Zoltan Varga ca245f60df Add AOT support for calling icalls directly without going through the GOT. 2012-03-08 01:35:08 +01:00
Alex Corrado fde2b2acaf Fix make dist after the reorganization of the msvc project files 2012-03-07 18:15:21 -05:00
Alex Corrado 50643e1ebd Disable running commits-to-changelog.py as part of 'make dist' because it causes wrench to timeout 2012-03-07 16:27:30 -05:00
Zoltan Varga c4c2f8c5ae Merge pull request #239 from joncham/msvc-updates
Msvc updates
2012-03-07 12:53:37 -08:00
Jonathan Chambers 23410780cf Merge remote-tracking branch 'local/msvc-updates' into msvc-updates 2012-03-07 15:34:38 -05:00
Jonathan Chambers 34ee909723 Rework vcxproj files to match Makefile based build. Build libmonoutils and libmonoruntime seperate from libmono. Initial work on building sgen enabled mono with VS. 2012-03-07 15:07:49 -05:00
Jonathan Chambers 37334fef53 Add platform TARGET_* macros to winconfig.h instead of setting in VS project file. 2012-03-06 21:54:35 -05:00
Jonathan Chambers 247d913cf6 Check for _WIN32 in addition to __WIN32__. 2012-03-06 21:53:14 -05:00
Jonathan Chambers 64dd5ac9f8 Check for TARGET_* defines in addition to compiler specific arch defines. 2012-03-06 21:49:43 -05:00
Jonathan Chambers 5e7fe16f76 Wrap #include <unistd.h> inside an #ifdef HAVE_UNISTD_H. 2012-03-06 21:46:51 -05:00
Gonzalo Paniagua Javier c10e388ea7 Fix rethrow of the interrupted exception
Fixes bug #2483.
2012-03-06 20:56:15 -05:00
Rolf Bjarne Kvinge 257b82a20a Mono.Data.Sqlite: Add support for TIMESTAMP / UnixEpoch column. Fixes #638. 2012-03-07 00:45:47 +01:00
Rolf Bjarne Kvinge 06c520194d Mono.Data.Sqlite: Fix type name comparison to compare the entire name, not just a substring. 2012-03-07 00:45:47 +01:00
Zoltan Varga 13d2567345 Revert "Move the thread attach code for native-to-managed wrappers to method_to_ir (), instead of emitting it by hand for each architecture. Also make it save/restore the current domain. Fixes #3623."
This reverts commit 9e0ebefaba.
2012-03-06 20:39:42 +01:00
Marek Safar 4cb0663f05 Remove no longer needed explicit -langversion:future argument 2012-03-06 17:28:12 +00:00
Marek Safar d1ca3e3909 Implement C# 5 caller attributes 2012-03-06 17:28:12 +00:00
Marek Safar d9a7a4eab0 Clean up parameter modifiers 2012-03-06 17:28:12 +00:00
Marek Safar ce88206afa Add 4.5 Caller attributes 2012-03-06 17:28:11 +00:00
Jonathan Pryor 14c86dfd6e [Mono.Posix] Add UnixFileSystemInfo.TryGetFileSystemEntry()
UnixFileSystemInfo.GetFileSystemEntry() throws a
DirectoryNotFoundException when provided an invalid path (e.g.
/path/to/filename.ext/extra), because lstat(2) returns ENOTDIR.

Add UnixFileSystemInfo.TryGetFileSystemEntry() as a non-throwing
variant which returns the UnixFileSystemInfo as an `out` parameter.
This allows avoiding the exception, if desired.
2012-03-06 08:13:37 -05:00
Jeremie Laval ac759e6aa9 Correct CancellationTokenSource locking. Fix #3756. 2012-03-06 10:20:00 +00:00
Sebastien Pouliot 50a382e4b3 Change MarkStep.MarkMethods visibility to protected 2012-03-05 21:35:59 -05:00
Zoltan Varga 14e4ef6ac3 Quiet the sgen tests. 2012-03-06 00:29:02 +01:00
Marek Safar 4d6256f031 Merge pull request #238 from knocte/master
corlib: return a non-empty array if RemoveEmptyEntries is not passed
2012-03-05 14:52:01 -08:00
Miguel de Icaza 7b07672528 Revert the change to syslog message formatting, as JonP's code already does escaping in managed code, see: https://github.com/mono/mono/commit/f49164bf7658855390b2c19574b170f8728a99ff#commitcomment-1044747 2012-03-05 16:43:44 -05:00
Andres G. Aragoneses b40913b2d4 corlib: Simplify logic for String.Empty.Split(char[], RemovEmptyEntries)
Simplified as per Marek Safar's suggestion.
2012-03-05 20:50:58 +00:00
Andres G. Aragoneses 4fc9ee5caf corlib: return a non-empty array if RemoveEmptyEntries is not passed
Keep the previously correct behaviour about returning new String[1]{Empty} if StringSplitOptions.RemoveEmptyEntries is not passed, and add a test for it (it wasn't being tested before).
2012-03-05 18:32:09 +00:00
Marek Safar 559c3363e2 Merge pull request #237 from knocte/master
corlib: String.Split() now returns empty array too for Empty when splitting chars
2012-03-05 10:29:44 -08:00
Andres G. Aragoneses 61f33b0e41 corlib: String.Split() now returns empty array too for Empty when splitting chars
String.Empty.Split(char[]) didn't have the same behaviour as String.Empty.Split(string[]).
2012-03-05 18:08:26 +00:00
Marek Safar c7ad7403e9 Update to the latest IKVM.Reflection 2012-03-05 14:13:23 +00:00
Marek Safar ac6b1bd5d3 Fix symbol file entry for using dispose call 2012-03-05 13:28:30 +00:00
Marek Safar 6c63057c26 Move remaining compiler settings out of temporary report printer 2012-03-05 11:29:36 +00:00
Marek Safar a9f7419546 Better error message for misused namespace simple name. Fixes #3737 2012-03-05 11:27:53 +00:00
Marek Safar 7044729f79 Update mcs translations 2012-03-05 10:11:16 +00:00
Marek Safar 05fa820b32 Remove old dmcs project 2012-03-05 10:05:18 +00:00
Marek Safar 1f1e766b55 Merge pull request #235 from plobsing/cs0656-bug
CS0656 Bug
2012-03-05 01:46:29 -08:00
Zoltan Varga 9e0ebefaba Move the thread attach code for native-to-managed wrappers to method_to_ir (), instead of emitting it by hand for each architecture. Also make it save/restore the current domain. Fixes #3623. 2012-03-04 20:51:21 +01:00
Marek Safar b92403cbdf Merge pull request #236 from plobsing/mmf-view-bug
MemoryMappedFile view accessor bug
2012-03-04 11:47:37 -08:00
Peter Lobsinger 3cfa897b9b Limit ReadArray to only reading up to the requested number of elements. 2012-03-04 11:02:50 -05:00
Peter Lobsinger 75f83a1581 Add test for System.IO.MemoryMappedFiles.MemoryMappedViewAccessor.ReadArray(). 2012-03-04 00:34:28 -05:00
Peter Lobsinger ea938c7bad Provide a TypeParameter object when constructing the typespecs on the method signature of compiler-required method System.Threading.Interlocked.CompareExchange<T>. 2012-03-03 19:46:36 -05:00
Peter Lobsinger 9cd7a20d67 Add test for missing compiler-required method System.Threading.Interlocked.CompareExchange<T>. 2012-03-03 19:45:01 -05:00
kripper 4388133908 Fixes BUG https://github.com/mono/mono/pull/229#issuecomment-4212737 2012-03-03 19:42:46 -05:00
Gonzalo Paniagua Javier 214741630f 2 fixes for NTLM authentication
-Set the correct flags when the domain is not set. This fixes
	authentication with an empty or null domain name.
	-Allow domain\user and domain/user as the user name and set domain and
	user accordingly.
2012-03-03 16:46:05 -05:00
Zoltan Varga e034c4b25c Fix an aot assertion if the monitor fast path wrapper does not exist. 2012-03-03 17:16:41 +01:00
Zoltan Varga 6c0c226bed Revert "Get rid of the <foo>-static libraries, libtool doesn't know that they need to be compiled only in static mode, so each source file was compiled up to 8 times. Pass -static in the _LDFLAGS for the mono executables instead."
This reverts commit 8e386cce7f.

The libtool convenience libraries only contain the PIC versions of object files, causing fast tls support to fail.
2012-03-03 17:16:41 +01:00
Alex Corrado 48d2444470 Fix make dist
Search and replace all the files renamed in 9dd69426
 and removed in 70cc60e
2012-03-02 18:59:50 -05:00
Rodrigo Kumpera 4f29b21417 Fix a mach race condition between a thread triggering a NRE and another aborting the former. 2012-03-02 15:08:04 -03:00
Marek Safar 6b12b0e600 Use simple Convert when storing registry values 2012-03-02 16:57:08 +00:00
Marek Safar f7cb2da4ef Implement some async System.Net.Http methods 2012-03-02 16:57:08 +00:00
Marek Safar 5740cbe74c Allow await after member access cast. 2012-03-02 16:57:08 +00:00
Marek Safar 445484b649 Add new compiler platform options 2012-03-02 16:57:07 +00:00
Marek Safar dba4ae6b96 Add some new System.Reflection flags 2012-03-02 16:57:07 +00:00
Marek Safar 4451e96c20 Tweak comparison inside string.Split 2012-03-02 16:57:07 +00:00
Miguel de Icaza 8ac964ef2c Remove footer, since not all docs rendered are by Mono 2012-03-02 10:11:08 -05:00
Miguel de Icaza 873816ba5d Revert "Remove footer, since not all docs rendered are by Mono"
This reverts commit 6cd93dd2e8021db7e0f94e32477d019655cab381.
2012-03-02 10:11:08 -05:00
Miguel de Icaza bed8fb5528 Remove footer, since not all docs rendered are by Mono 2012-03-02 10:11:08 -05:00
Marek Safar 828a44c2b6 Merge pull request #233 from knocte/master
corlib: List's enumerator should not mutate after being disposed
2012-03-02 05:01:55 -08:00
Andres G. Aragoneses 1611e51eec corlib: List's enumerator should not mutate after being disposed
List<T>.Enumerator is a struct so current Dispose() implementation was causing mutability on it.
Depending on this behaviour may seem overkill but some codebases may implement IEnumerator<T> themselves by caching the enumerator of their initial readonly list.

Making Dispose() not do anything may seem incorrect, but it is not. For a good read about this, take a look at Stephen Cleary's first comment in:
http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/f5a59eac-4a3e-4417-99a8-83d4a6a9e41d

(Added NUnit tests that demonstrate the issue too.)

For a good example: this fix makes a simple HelloWorld System.Web.IHttpHandler work in Mono within the OpenRasta framework (at least tested with the stable branch).
2012-03-02 12:50:19 +00:00
Atsushi Eno 9c9546c9ea Revert previous non-standard "ends-with" function.
A valid way to do equivalent, from IRC:

[12:05] <eno> miguel: I believe you shouldn't add non-standard "ends-with" as the standard XPath implementation. Use extension framework instead.
[12:05] <eno> regarding https://github.com/mono/mono/commit/9b07497f9067ab4d3f4a7964f2868c7eafef1b5d
[13:39] <migueld> Seems like it is XPath 2.0
[13:46] <eno> Yes, XPath 2.0 contains that one. .NET implementation is for 1.0.
[13:46] <eno> This would help you to use XSLT extension http://msdn.microsoft.com/en-us/library/tf741884.aspx
[13:47] <eno> or this might be handy: http://msdn.microsoft.com/en-us/library/wxaw5z5e.aspx
[13:49] <eno> Add this under <stylesheet> or <transform> : <msxsl:script language="C#" implements-prefix="x" xmlns:msxsl="urn:schemas-microsoft-com:xslt">public bool ends_with (string s, string target) { return s.EndsWith (target); }</msxsl:script>
[13:49] <eno> and use "x:ends_with(foo, bar)" instead
2012-03-01 23:51:55 +09:00
Marek Safar c0f70291ed Better exception message 2012-03-01 12:44:22 +00:00
Marek Safar 3b0b5cad82 Don't resolve partial method default parameters twice 2012-03-01 12:44:22 +00:00
Marek Safar 4a5a228293 Extension methods can also be found in non-static partial classes 2012-03-01 12:44:21 +00:00
Jeremie Laval b082c17865 Fix #3639
The search code was taking care of hash collision for different objects inside the collection but it didn't handle properly the case where the supplied search key has the same hash than a different object inside the collection.
2012-03-01 13:05:33 +01:00
Marek Safar 97b0462e02 Add one more missing .csproj 2012-03-01 10:54:03 +00:00
Marek Safar d9a66a296f Add System.Net.Http to build 2012-03-01 10:54:02 +00:00
Marek Safar cd09b91a86 Fix --fatal exception throwing 2012-03-01 10:54:02 +00:00
Gonzalo Paniagua Javier e7dad83e27 Merge pull request #232 from justincc/159271bfbe2202e1a4b23b7607be60d408f86e40
Generate ServerProtocolViolation If WebConnection.GetResponse() returns -1 in ReadDone()
2012-03-01 00:37:06 -08:00
Miguel de Icaza 9b07497f90 Add ends-with function to our XPath processor 2012-02-29 20:44:39 -05:00
Justin Clark-Casey 159271bfbe If WebConnection.GetResponse() returns -1 in ReadDone() then also treat this as a ServerProtocolViolation rather than failing with an exception later on.
We occasionally see this happen in the OpenSimulator project when web requests are made (the project makes a lot of these).
I'm reasoning that a -1 from GetResponse() also indicates that the response is badly formatted (wrong number of parts or not properly terminated) as well as catching an Exception.
Making this change removes the issues that we see.
2012-03-01 01:06:08 +00:00
Zoltan Varga 7098fad34c Fix llvm on x86. Fixes #3689. 2012-03-01 01:58:20 +01:00
Zoltan Varga f823cedf3d Fix a warnings. 2012-03-01 01:55:24 +01:00
Zoltan Varga 51bafcc886 Wrap exceptions thrown by property getters into TargetInvocationExceptions even when using the optimized getter delegates in PropertyInfo.GetValue (). Fixes #3690. 2012-02-29 23:52:29 +01:00
Marek Safar e60a5e03c8 Implement content support for System.Net.Http 2012-02-29 18:09:53 +00:00
Marek Safar 64240c3872 Add list of .net 4.5 assemblies 2012-02-29 18:09:53 +00:00
Marek Safar a8a89778be Report less cascading errors 2012-02-29 18:09:53 +00:00
Marek Safar db7131d010 Change few Assertions to Asserts 2012-02-29 18:09:52 +00:00
Zoltan Varga 48832969ff Fix some configure tests so they work with clang. 2012-02-29 17:50:30 +01:00
Zoltan Varga 1cdafa6797 Fix warnings reported by clang. 2012-02-29 17:50:30 +01:00
Zoltan Varga df6eff2691 Disable -Wswitch-enum, its part of -Wall for clang. 2012-02-29 17:50:29 +01:00
Marek Safar 0aedc3f6fb Merge pull request #231 from linquize/a853199c497bb0977970974303fac7e42080809d
Add Encoding iso_2022_kr -> euc_kr
2012-02-29 00:29:18 -08:00
Gonzalo Paniagua Javier 59a7bda970 Add MinimumLength when formatting 2012-02-29 01:38:33 -05:00
Jeffrey Stedfast a34ad43524 [Mono.Debugger.Soft] Made Connection disposable. 2012-02-28 19:55:43 -05:00
Jonathan Pryor 4546abda7e [System.Data.Services.Client] Compile in string resources.
System.Data.Services.Client uses System.Resources for localization
purposes (even though only one language is provided...). Consequently,
to get _useful_ strings (read: error messages) out of
System.Data.Services.Client, System.Resources needs to be able to find
them, such that the following works:

	$ csharp -r:System.Data.Services.Client;
	Mono C# Shell, type "help;" for help

	Enter statements below.
	csharp> using System.Resources;
	csharp> using System.Data.Services.Client;
	csharp> var a = typeof(SendingRequestEventArgs).Assembly;
	csharp> var r = new ResourceManager("System.Data.Services.Client", a);
	csharp> r.GetString("AtomMaterializer_PropertyNotExpectedEntry");

If `r.GetString()` fails, it'll throw an exception instead of
returning a useful string, which is bad. Unfortunately, it failed.

To fix this, we use `resgen` to compile
Client/System.Data.Services.Client.txt into a .resources file and
compile the .resources file into the assembly with `gmcs -resource:`,
which allows the above `csharp` fragment to work w/o throwing (and
thus allows OData users to get useful, meaningful error messages).
2012-02-28 19:36:49 -05:00
Alex Corrado 52abc5d8a5 Fix prepending $(CURDIR) to paths failing under cygwin 2012-02-28 17:39:55 -05:00
Duncan Mak 5996062400 Fix the .gitattribute file for 'System.Runtime.Remote.Channels.Tcp'.
It was accidentally corrupted by af53850f.
2012-02-28 17:37:40 -05:00
Zoltan Varga f4c9dab6e4 Increase generic trampoline sizes on amd64 to avoid an assertion introduced by 948f06a03f. 2012-02-28 18:53:55 +01:00
Jonathan Pryor 163f9061e1 [MonoPosixHelper] Allow MmapFlags.MAP_ANON use on OS X.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=3419

The problem is that OS X defines MAP_ANON but not MAP_ANONYMOUS, AND
MAP_ANON and MAP_ANONYMOUS have the same value. Furthermore,
create-native-map doesn't have any special support for constants with
the same value, so it emits the validation independently.

The result is that the following fails on OS X:

	$ csharp -r:Mono.Posix.dll
	csharp> int r;
	csharp> using Mono.Unix.Native;
	csharp> NativeConvert.TryFromMmapFlags(MmapFlags.MAP_ANONYMOUS, out r);
	false
	csharp> r;

The (hackish) fix is to provide MAP_ANONYMOUS on OS X, thus allowing
the existing validation logic to work as expected.
2012-02-27 17:41:37 -05:00
Rodrigo Kumpera 1fd5f9af5b Let the metadata verifier access the new agressive inlining bit. 2012-02-27 16:20:23 -03:00
Marek Safar 0c7782ddc4 Convert some old nunit tests 2012-02-27 16:59:01 +00:00
Zoltan Varga 948f06a03f Add stack alignment checking to the amd64 trampolines and align the stack properly in the handler block trampoline. Fixes #2642. 2012-02-27 17:15:41 +01:00
Gonzalo Paniagua Javier 4cb9ef3186 DELETE can have a request stream
Fixes bug #3276.
2012-02-27 10:53:41 -05:00
Marek Safar d7e8752f50 Abstract override does not implement base method. Fixes #3647 2012-02-27 10:24:28 +00:00
Zoltan Varga 198df14777 Load JIT AOT info eagerly when running under sdb, since loading it lazily is not signal safe. Hopefully fixes #3411. 2012-02-26 15:43:18 +01:00
Miguel de Icaza 788c77379d mono: work around an Xcode 4.3/llvm bug with __alignof__ that reported 64-bit values on 32-bit mode to be 64-bit aligned, whicih is not the case 2012-02-24 18:47:24 -05:00
Miguel de Icaza 3a5dd7f2df [corlib-tests] If MONO_IOMAP=all, special case the IsPathRooted tests to cope with its semantics 2012-02-24 17:46:30 -05:00
Miguel de Icaza ebcf266731 Fix the previous patch 2012-02-24 17:22:55 -05:00
Miguel de Icaza 846864a466 [registry] fix for #3632 2012-02-24 16:14:49 -05:00
Marek Safar 8d67149fc0 Turn LookupExtensionMethod into an instance method 2012-02-24 15:21:22 +00:00
Marek Safar 0ed3827be3 Use correct count length in string split 2012-02-24 15:00:01 +00:00
Marek Safar a1fc1ea059 Add reading from stream support to MonoSymbolFile and clean up Cecil ifdefs 2012-02-24 14:50:12 +00:00
Marek Safar 8d1d2b7d0b Comment out unused internal call 2012-02-24 14:43:42 +00:00
Marek Safar a83cae38b4 Make some mcs methods static 2012-02-24 13:48:08 +00:00
Marek Safar b1683b85d3 Remove some unused code 2012-02-24 13:14:08 +00:00
Marek Safar 98c599ca5b Remove some string.Empty references 2012-02-24 11:41:14 +00:00
Marek Safar d0ef6a346d Remove static whitespace characters from string, speed up Split for whitespace characters up to 10x 2012-02-24 11:41:14 +00:00
Marek Safar 9b3232e7df Merge pull request #228 from QuickJack/3e163743eda89cc8c239779a75dd245be12aee3c
Fixes a bunch of warnings in System.Configuration
2012-02-24 00:21:12 -08:00
QuickJack 3e163743ed Fixes a bunch of warnings in System.Configuration. 2012-02-23 23:42:05 +01:00
Rodrigo Kumpera daceedf11b Fix the guard to disable precise stack scanning on OSX. 2012-02-23 19:22:45 -02:00
Rodrigo Kumpera 0e2873980e Properly compute end_data for the nursery section. This makes nursery walking work again. 2012-02-23 19:22:44 -02:00
Rodrigo Kumpera c154c85000 Handle filler objects when walking the nursery. 2012-02-23 19:22:44 -02:00
Marek Safar d2300b6454 Fix user currency parsing for core types 2012-02-23 16:03:51 +00:00
Zoltan Varga 1d569b23b9 Add an IsNativeTransition property to StackFrame which marks whenever the frame transitions to native code. Add a GetMethodImplementationFlags () method to MethodMirror. Add a NativeTransitions static property to ThreadMirror which sets whenever GetFrames () should return frames for managed-to-native transitions. 2012-02-23 13:13:55 +01:00
Zoltan Varga 8e8e14efda Really fix the previous sdb change. 2012-02-23 12:37:50 +01:00
Zoltan Varga f308266295 Fix the previous sdb change. 2012-02-23 12:31:15 +01:00
Zoltan Varga a16815186f Add a NATIVE_TRANSITION to StackFrameFlags in sdb, which would allow the debugger to display managed-to-native transitions in stack frames. Not exposed in the API yet. 2012-02-23 11:48:45 +01:00
Marek Safar a52a2a6850 Fix datetime miliseconds parsing. Fixes #992 2012-02-22 16:51:46 +00:00
Marek Safar fe25c70d0f Try to recover from incomplete method header. Fixes #3577 2012-02-22 15:33:26 +00:00
Marek Safar 2cc80d8ac9 Try to recover from incomplete constraint clause. Fixes #3576 2012-02-22 14:45:14 +00:00
Marek Safar 197b3010de Better check for System.Void usage. Fixes #3571 2012-02-22 11:07:59 +00:00
Marek Safar 26ba1ef537 Try to recover from base type syntax error. Fixes #3356 2012-02-21 19:43:31 +00:00
Marek Safar 9d8d49b746 Set unreachable flowanalysis context for unreachable blocks. Fixes #3553 2012-02-21 15:21:33 +00:00
Jeremie Laval 38405d3ee0 [monodoc] Fix previous xpath expression 2012-02-21 15:19:58 +01:00
Jeremie Laval 19e807c074 [monodoc] Don't start a parameter constraints list if the constraint is about covariance/contravariance 2012-02-21 14:34:15 +01:00
Miguel de Icaza 55eb0db6c6 Update documentation to include Mono.CSharp and Mono.Data.Sqlite 2012-02-21 08:18:13 -05:00
Marek Safar 51196ff8ed Fix few DateTime parse tests 2012-02-21 11:30:32 +00:00
Marek Safar 7da68eed06 Implement numbers exponent parsing. Fixes #2516 2012-02-21 11:30:32 +00:00
Marek Safar 7e8166b4da Make strings PadLeft|PadRight homogeneous 2012-02-21 11:30:31 +00:00
Sebastien Pouliot 39f4c8b1c4 Allow inheriting and customizing the MarkStep 2012-02-20 19:07:24 -05:00
Sebastien Pouliot 575c50fd30 There can be more than one base method to consider (e.g. interfaces). Fix from MMP code base. 2012-02-20 19:07:24 -05:00
Marek Safar b42a20c0e4 string.Split method should look for delimiters by performing comparisons using case-sensitive ordinal sort rules. Fixes #3534 2012-02-20 14:48:29 +00:00
Marek Safar 255a36860f Emit debugger hidden attribute for more compiler generated members 2012-02-20 14:12:05 +00:00
Marek Safar 373bede761 Don't write duplicate symbols for partial types 2012-02-20 09:48:30 +00:00
Miguel de Icaza 610ee10008 Document the iOS5 specific connection string features 2012-02-19 15:58:41 -05:00
Miguel de Icaza 8fbfccc3e6 Add the inline docs into the documentation using: mdoc update -i doc.xml -o Documentation/en ../../class/lib/net_4_5/Mono.Data.Sqlite.dll 2012-02-19 15:58:41 -05:00
Miguel de Icaza eddc0c204d Add stubs for Mono.Data.Sqlite 2012-02-19 15:58:40 -05:00
Gonzalo Paniagua Javier bd0c4311b3 Merge pull request #226 from petejohanson/uri-templates-unprefixed-wildcard
Fix Bug #658, allowing uri templates with no text preceding a wildcard.
2012-02-19 09:08:57 -08:00
Zoltan Varga fcb00cefa9 Add a Filter property to StepEventRequest allowing the filtering of locations where the single step should stop. Currently only filtering of static cctors is suppored. Part of a fix for #3272. 2012-02-19 16:10:47 +01:00
Zoltan Varga 31c9856c9f Quiet a debugger test. 2012-02-19 16:10:46 +01:00
Miguel de Icaza 90e7626599 Add iOS FileProtection attributes to the Connection String 2012-02-18 21:54:14 -05:00
Sebastien Pouliot 5e339010d4 merge back definitions from mmp 2012-02-17 16:30:23 -05:00
Sebastien Pouliot 1e526be3be Ensure we remove any debugging or configuration items if the assembly is not required 2012-02-17 16:27:34 -05:00
Sebastien Pouliot 9359f799eb For MonoTouch we fallback to NSLocale if we can't determine the current RegionInfo using CultureInfo 2012-02-17 13:24:27 -05:00
Marek Safar 9c372f0dac Report better error message when local name binds to a type 2012-02-17 16:33:36 +00:00
Marek Safar f7763d0d78 Fix few more warnings 2012-02-17 12:37:26 +00:00
Marek Safar 3001d86d28 Guard against inverted sequence point Mark logic 2012-02-17 12:37:26 +00:00
Marek Safar e0df76bb7e Don't check CLS overloaded methods on inflated instances 2012-02-17 12:37:25 +00:00
Marek Safar 2869713c48 Fix some compiler warnings 2012-02-17 12:37:25 +00:00
Marek Safar 76dac96b4b Cleanup some assembly attributes 2012-02-17 12:37:25 +00:00
Marek Safar 2531552bdc Reduce warning level for external libraries 2012-02-17 12:37:25 +00:00
Marek Safar 6e61f64e92 Add few missing csproj files 2012-02-17 12:37:24 +00:00
Marek Safar 70cc60e957 Optimize debugging symbols writing 2012-02-17 12:37:24 +00:00
Gonzalo Paniagua Javier c251b192a5 Merge pull request #217 from QuickJack/master
Fixes several bugs and issues in Mono's configuration stack
2012-02-17 04:03:07 -08:00
Sebastien Pouliot 04addcabdb Add warning and unit tests about RegionInfo fields ordering. Fix for #3476 2012-02-16 20:44:31 -05:00
Zoltan Varga 7cb3abcc35 Add an additional nop to the end of seq points so skipping the bp doesn't cause the ip to point to another IL offset. Fixes #3472. 2012-02-16 20:29:07 +01:00
Sebastien Pouliot 670fa9a727 Ensure match between native/managed fields representation so we retrieve the right values 2012-02-15 16:55:12 -05:00
Jeffrey Stedfast 5245b9c97a [Mono.Debugger.Soft] Reverted non-working support for MethodMirror.IsGenericMethod on older versions 2012-02-15 16:19:59 -05:00
Zoltan Varga aade1509ce Implement TypeMirror/MethodMirror GetGenericArguments () method. Fixes #3482. 2012-02-15 21:31:00 +01:00
Zoltan Varga 7582ad9668 Fix handling of fp arguments in the LLVM backend, they were copied using OP_MOVE, leading to various problems. 2012-02-15 20:12:47 +01:00
Marek Safar 73e8fe2029 Don't allocate unused string buffer with path when reading file attributes 2012-02-15 17:12:42 +00:00
Marek Safar bf813d8b78 Fix sequence points for more statements 2012-02-15 17:12:42 +00:00
Jeffrey Stedfast bf29483748 [Mono.Debugger.Soft] Reverted non-working support for MethodMirror.IsGenericMethod on older Monos 2012-02-15 12:03:14 -05:00
Atsushi Eno 02fab8ece0 Add Microsoft.CSharp.dll to monodroid build. 2012-02-15 14:52:22 +09:00
Zoltan Varga 3d9a9fa8ff Avoid putting two sequence points at the same IL offset. Fixes #3452. 2012-02-14 20:34:08 +01:00
Marek Safar f0f8f072f7 Emit sequence point at the beginning of return expression. Fixes #3420 2012-02-14 19:09:48 +00:00
Zoltan Varga 09848a4b52 Fix recursive calls betwqeen mono_thread_get_and_clear_pending_exception () and mono_thread_execute_interruption (). 2012-02-14 19:19:23 +01:00
Marek Safar 585df56150 Fix last commit unwanted char change 2012-02-14 17:48:52 +00:00
Marek Safar a445f69c86 Use correct type when setting UnattachedAttributes. Fix the error message not to display {0} 2012-02-14 17:46:55 +00:00
Zoltan Varga dc8020ea02 Allow make in mcs/ by calling make -C ../runtime. 2012-02-14 18:04:08 +01:00
Zoltan Varga 366d59462b Make mono_set_pending_exception () work on all platforms. Fixes #3399. 2012-02-14 17:54:43 +01:00
Zoltan Varga 3fab3e67ea Get rid of the if (IS_LLVM_MONO_BRANCH) conditionals. 2012-02-14 17:33:25 +01:00
Marek Safar 61f9e5938d Make string::Trim .net 4 compatible. Fixes #3408 2012-02-14 16:05:46 +00:00
Marek Safar e270257d60 Make string::Split .net 4 compatible 2012-02-14 16:05:46 +00:00
Marek Safar e7dff297cf Speedup Char::IsWhiteSpace 2012-02-14 16:05:46 +00:00
Marek Safar 394b93c241 Add more char tests 2012-02-14 16:05:46 +00:00
Martin 231819c3b2 Completes commit https://github.com/QuickJack/mono/commit/1daeb920c64e47b4671e6ce4ea8c83158e6e7e6e 2012-02-14 16:46:13 +01:00
Martin 1daeb920c6 Implements Grendello's suggestions to WebConfigurationManager class 2012-02-14 16:42:50 +01:00
Peter Johanson bb8d09d41d Fix Bug #658, allowing uri templates with no text preceding a wildcard. 2012-02-14 08:17:06 -05:00
Atsushi Eno f1f23e1c2d forgot to add new sources files for my previous change. 2012-02-14 12:48:39 +09:00
Atsushi Eno 29e92bbabe add dlr to monodroid build. 2012-02-14 12:21:46 +09:00
Miguel de Icaza 2e58611046 Use 1518 and be more precise 2012-02-13 22:05:11 -05:00
Miguel de Icaza e6b6fc7b71 [mcs] The parser can now track in FULL_AST mode dangling attributes at the end of a namespace, fixes #3377 2012-02-13 22:01:48 -05:00
Miguel de Icaza 135b6e0f09 [mcs] The parser can now track in FULL_AST mode dangling attributes at the end of a type definition, fixes #3377 2012-02-13 21:55:25 -05:00
Zoltan Varga da3e85007e Allow an open generic method instance to match its instantiations when setting breakpoints. Fixes #3422. 2012-02-13 19:30:13 +01:00
Marek Safar 95becb75eb Fix sequence points for more statements 2012-02-13 17:40:20 +00:00
Marek Safar 2a8b79ec1d Emit correct sequence info for iterators 2012-02-13 17:40:20 +00:00
Jeremie Laval ed7e45e364 [monodoc] Add BaseFilePath property to HelpSource to determine the full folder path in which they are
This module is really one of the most ugly looking code you will ever find in the Mono tree. A savory mix of all .NET idioms since 1.1, totally anarchic class layout, helpers and hacks everywhere make your eyes bleed continously.
2012-02-13 17:45:27 +01:00
Sebastien Pouliot 385ae9f41f Just like Flush catch more than IOException on Write overloads, e.g. UnauthorizedAccessException can occur too (ref: assistly #7431) 2012-02-13 10:44:40 -05:00
Marek Safar 261e0ba03b Merge pull request #225 from mistoll/master
bug 3412 unit test
2012-02-12 09:14:39 -08:00
Michael Stoll 6bfc9f01db Added unit test for bug #3412 2012-02-12 18:08:49 +01:00
Gonzalo Paniagua Javier 57c592b6d2 Merge pull request #224 from ewxrjk/unixstream
Stop UnixStream.Dispose() throwing if the stream is already closed.
2012-02-11 16:19:50 -08:00
Richard Kettlewell bfabb204c8 Stop UnixStream.Dispose() throwing if the stream is already closed.
This (re-)establishes the invariant that once the object has been
constructed it can be disposed, making it suitable for use in 'using'
statements; and allows it to be used with a StreamReader in the same
way as other stream classes.
2012-02-11 23:03:49 +00:00
Jérémie Laval ea89db1edd Fix AggregateException.GetBaseException behavior 2012-02-11 22:15:59 +01:00
Marek Safar 88fde5a568 Add VS project files for test project 2012-02-10 14:56:23 +00:00
Marek Safar 510a2941c4 Move ConcurrentBag tests to System assembly 2012-02-10 14:56:23 +00:00
Gonzalo Paniagua Javier bd6f2b765a Chunked read error reporting improvement
Reset the chunked read variables before reading the chunk size and
	provide a better error in case of a protocol problem.
2012-02-10 02:14:36 -05:00
Marek Safar 91d40d754d Update class library csproj files 2012-02-09 11:25:18 +00:00
Marek Safar 0e72f48e81 Fixes cloning of DateTimeFormatInfo, added more arguments checks. Fixes #3279 2012-02-09 10:55:58 +00:00
Zoltan Varga 79f12832b4 Invalidate the context as well at the end of ss_start (). Fixes #3272. 2012-02-09 01:46:58 +01:00
Zoltan Varga 8e386cce7f Get rid of the <foo>-static libraries, libtool doesn't know that they need to be compiled only in static mode, so each source file was compiled up to 8 times. Pass -static in the _LDFLAGS for the mono executables instead. 2012-02-08 21:04:31 +01:00
Marek Safar 112eb895ba Add test reference file 2012-02-08 19:09:19 +00:00
Marek Safar c2d66ec40c Fix sequence points for foreach/for statements 2012-02-08 19:03:10 +00:00
Marek Safar d850d44f63 Fix implicit conversion from dynamic array to underlying array interfaces 2012-02-08 19:03:10 +00:00
Marek Safar cd0b3cb4be Emit correct sequence points for more statements 2012-02-08 19:03:10 +00:00
Rodrigo Kumpera 125d34c2bf Cleanup the mess that ptr_in_nursery became with all file split going on.
* sgen-gc.c: Move all nursery bounds information to sgen-nursery-alloc.c,
	rename to something with proper scoping and visibility. YAY!

	* sgen-gc.h: Move some defines to here so everyone can enough fast
	ptr_to_nursery.

	* sgen-conf.h: Move another configuration knob to here.
2012-02-08 16:07:33 -02:00
Rodrigo Kumpera 8a9dd93fd0 Precise stack mark remains broken on OSX. Disable again till we fix the whole thing. 2012-02-08 16:06:21 -02:00
Zoltan Varga df60e1f371 Fix the previous commit. 2012-02-08 15:11:18 +01:00
Zoltan Varga ce992c6c6f Avoid compiling libmonoruntime and libmono when --disable-boehm is used. 2012-02-08 15:02:26 +01:00
Zoltan Varga 6f77e3bc2a Insert sequence points for CIL nop instructions. Fixes #3237. 2012-02-08 12:42:42 +01:00
Zoltan Varga 564012fd6b Fix the length of seq_point on amd64. 2012-02-08 12:42:42 +01:00
Zoltan Varga 81f39101c5 Fix the quiet build code so it works with a separate build dir too. 2012-02-08 12:42:42 +01:00
Jeremie Laval d6402f3b8c [monodoc] Add missing source-id parameter feeding when XSLT-ing namespaces 2012-02-08 12:42:04 +01:00
Zoltan Varga 0fc84299a4 Revert part of 62b8512f2b. Profiler modules can use libmono-2.0.la. 2012-02-08 01:43:29 +01:00
Zoltan Varga 18d061a1bc Revert "Disable profiler modules when --disable-shared is used."
This reverts commit 1d73043451.
2012-02-08 01:20:58 +01:00
Rolf Bjarne Kvinge e372723706 Add an explicit ctor reference to a ctor used by reflection for MonoTouch. 2012-02-08 01:01:19 +01:00
Zoltan Varga 1d73043451 Disable profiler modules when --disable-shared is used. 2012-02-08 00:55:06 +01:00
Zoltan Varga 62b8512f2b Fix the --disable-shared build. 2012-02-08 00:05:46 +01:00
Zoltan Varga 6836df18bc Enable system AOT on darwin. 2012-02-07 23:03:18 +01:00
Marek Safar 37587b370f Mark more blocks as compiler generated 2012-02-07 17:41:00 +00:00
Marek Safar f174510809 Allow setting a breakpoint on automatically implemented properties 2012-02-07 17:40:59 +00:00
Marek Safar 98e6167a7d Emit anonymous types with dynamic arguments without dispatch call 2012-02-07 17:40:59 +00:00
Marek Safar cea83d6c0c Fix debug symbols for try/catch/finally 2012-02-07 17:40:59 +00:00
Martin e63b96685a "tree.SetSelectedNode (null, false)" will cause the OnSelectedNodeChanged event to be fired. The problem is, that e.Node is null which is not allowed. e.Node must contain the newly selected node. 2012-02-07 16:36:40 +01:00
Jeremie Laval c644c84615 [monodoc] Try at a more comprehensive full search 2012-02-07 13:09:21 +01:00
Jeremie Laval 03a6e3c94f [monodoc] MonoTouch/MonoMac export should be at same boost level than type member 2012-02-07 13:09:20 +01:00
Atsushi Eno 40f84f3082 Do not call WriteString() for whitespace XText. 2012-02-07 15:24:03 +09:00
Zoltan Varga f2d85926e1 Implement support for file checksums in sdb. 2012-02-06 22:58:41 +01:00
Zoltan Varga 257adf6079 Add support for returning source file checksum information to the internal runtime debugger apis. 2012-02-06 22:29:14 +01:00
Marek Safar 1b464a8c41 Emit better debug info for explicit blocks 2012-02-06 17:26:25 +00:00
Marek Safar 11df072ef3 Allow codegen optimizations only when specified to enable better debugging experience 2012-02-06 12:26:21 +00:00
Marek Safar 396726b991 Check arguments of -debug options 2012-02-06 12:01:34 +00:00
Sebastien Pouliot caa800ed37 Add WebClient.Proxy unit test 2012-02-05 11:55:36 -05:00
Martin 38e3af5810 Extents #217 by brackets according to gonzalo's suggestion. 2012-02-05 13:35:21 +01:00
Martin fb8f50a75a Removes unnecessary whitespace which was added in #217 2012-02-05 13:30:44 +01:00
Jérémie Laval 8427a8b6e5 Rework Parallel.Invoke and add tests 2012-02-05 12:36:18 +01:00
Jérémie Laval 06646f30fd Add test case for bug #2513. 2012-02-05 12:03:29 +01:00
Zoltan Varga 6743f339b4 Fix Parallel.Invoke () with only one action. Fixes #3225. 2012-02-04 23:20:15 +01:00
Michal Srb bbd7034b8c Avoid NullReferenceException in Mono.Unix.UnixDriveInfo.GetDrives () when fs_file is null. Fixes #3219. 2012-02-04 15:09:10 +01:00
Zoltan Varga 1e8603b039 Add support for the #line directive to sdb. Fixes part of #3217. 2012-02-04 12:35:30 +01:00
Rolf Bjarne Kvinge 9ab872cb69 System.ServiceModel: Make FaultContractInfos available (and therefore deserialized correctly) in mobile profiles. Fixes #1437 and 2859. 2012-02-04 03:04:34 +01:00
Marek Safar 88867d5eea Simple block does not create scope barrier. Update local names check to reflect that. Fixes #3187 2012-02-03 17:00:39 +00:00
Jérémie Laval eea2894929 Fix RunSynchronously behavior with children Task. Fix bug #2777 part 2. 2012-02-03 15:38:15 +01:00
Zoltan Varga a1035d0780 Avoid returning a one element line number table from mono_debug_symfile_get_line_numbers () for methods with no line number table. Fixes #3181. 2012-02-03 13:25:15 +01:00
Marek Safar 2284e7b52c When dispatching dynamic method calls over value types check the instance is actually available. Fixes #3215 2012-02-03 11:03:55 +00:00
Marek Safar 7e3c10976f Update test files checksum 2012-02-03 11:03:55 +00:00
Marek Safar 29ae4c9aa7 Reuse existing code for parsing numeric value 2012-02-03 11:03:55 +00:00
Zoltan Varga ba22ac09fe Compute an initial sequence point for step into as well. Fixes #3181. 2012-02-03 11:24:58 +01:00
Marek Safar ea6e252128 Add first sequence point tests. Correctly implement #line hidden directive 2012-02-03 10:13:53 +00:00
Marek Safar 6e7a35aeb0 Write file checksum to symbol file tests 2012-02-03 10:13:53 +00:00
Jérémie Laval e325ea3653 Fix Task AttachedToParent behavior. Fix bug #2777 part1.
The problem was two folds. First, a parent task wasn't correctly waiting on the inner task continuations that were setup. Second, the way the Task parent field was re-used with a continuation collided with the parenting behavior of AttachedToParent (if the continuation was also created that way), the fix is to have two Task fields to differentiate between the two cases.
2012-02-03 03:56:18 +01:00
Rodrigo Kumpera 78b232a0d7 Make test more reliable under virtualized setups with high thread startup time. 2012-02-02 23:45:47 -02:00
Rodrigo Kumpera 8fbfb32748 Someone (me) pushed some braindead spurious changes. 2012-02-02 23:44:28 -02:00
Rodrigo Kumpera 778894bdf1 Fix linux build. 2012-02-02 23:34:52 -02:00
Rodrigo Kumpera f92659a138 Switch all time counters to use the new counter type to increase precision. 2012-02-02 17:10:05 -02:00
Rodrigo Kumpera 57c57d5a4f Add new counter type for time intervals. 2012-02-02 17:09:29 -02:00
Rodrigo Kumpera b8cf1a5737 Use the bridge callback to speedup bridge object detection. 2012-02-02 15:55:53 -02:00
Rodrigo Kumpera c504c3a847 The bridge callback now is per-class and not per-object. Introduce versioning to reduce the chance of breakage. 2012-02-02 15:36:59 -02:00
Rodrigo Kumpera f59126177e Make more bits in the vtable available to the GC.
* class-internals.h (MonoVTable): There's a spare nimble after
	those one bits flag fields. We reserve those leftovers to our
	GCs to use.
2012-02-02 14:57:05 -02:00
Rodrigo Kumpera 7c29394fef Move some defines to sgen-conf.h so managed wrappers are actually used. 2012-02-01 22:57:19 -02:00
Rodrigo Kumpera 06e7d1dd77 Grand finalle to this long patch series. Move remembered set implementation to use a vtable-like schema.
* sgen-gc.c: Kill use_cardtable and replace it with indirect calls thru a pointer table.
	This might be a bit slower on some configurations but it make the whole thing a hell lot neater.
2012-02-01 22:40:17 -02:00
Rodrigo Kumpera 74b67e0a33 Move more cardtable specific code to its file. 2012-02-01 19:06:20 -02:00
Rodrigo Kumpera 5d649d08c5 More write barrier clenaups. 2012-02-01 19:06:19 -02:00
Rodrigo Kumpera a647483ed3 Fix visibility of ssb globals and cleanup other visibility hacks. 2012-02-01 19:06:19 -02:00
Rodrigo Kumpera 284b8b6a50 Move ssb thread registration and globals to its file. 2012-02-01 19:06:18 -02:00
Rodrigo Kumpera 70ae3567ab This test spews tons of finalizable objects, cleanup & wait for them. 2012-02-01 19:06:18 -02:00
Rodrigo Kumpera d5ff8ee22b Fix heavy stats. 2012-02-01 19:06:18 -02:00
Rodrigo Kumpera 9fc586ff6a Move remset stats to its file. 2012-02-01 19:06:17 -02:00
Rodrigo Kumpera af53850f4b Move remset scan code to its file. 2012-02-01 19:06:17 -02:00
Marek Safar cee7f1b7bf Fix sequence symbol generation for constructors 2012-02-01 17:57:32 +00:00
Marek Safar cd8036fa92 Add compiler tests check for method attributes 2012-02-01 17:57:31 +00:00
Marek Safar b69246762d Add symbol file testing to compiler tester 2012-02-01 17:57:31 +00:00
Marek Safar d39cc1baeb Fix single test 2012-02-01 17:57:31 +00:00
Marek Safar a631caf525 Remove NET_2_0 conditional 2012-02-01 17:57:31 +00:00
Marek Safar 9dd7272586 Remove some unwanted explicit casts 2012-02-01 17:57:30 +00:00
Marek Safar 008d2fdbe9 Remove writing of namespace usings into symbol file. It's useless without project file. 2012-02-01 17:57:30 +00:00
Zoltan Varga c8ff15ce83 Enable some previously disabled optimizations when using sdb. 2012-02-01 11:48:49 +01:00
Jeremie Laval 59fff09d9d [monodoc] Implement range Lucene.NET search 2012-01-31 19:26:24 +01:00
Alan McGovern bea8ec1b5b Revert "[Profiler] Add a new profiler module to track GCHandle allocations"
This reverts commit a5e3e50512.
2012-01-31 17:39:37 +00:00
Alan McGovern dedfc703d5 Revert "FIX a compilation linker error with static mono-sgen and dynamic libmono"
This reverts commit abbdf9b70a.
2012-01-31 17:39:22 +00:00
Alan McGovern 58c89af6d9 Remove an extra comma from 'Xamarin Inc'. 2012-01-31 17:37:55 +00:00
Alan McGovern abbdf9b70a FIX a compilation linker error with static mono-sgen and dynamic libmono
with the ghcnalde profiler
2012-01-31 17:37:33 +00:00
Alan McGovern a5e3e50512 [Profiler] Add a new profiler module to track GCHandle allocations
This profiler was initially developed for Moonlight to diagnose and
fix issues where objects were never being GC'ed due to gchandles
being attached to objects and not freed. This profiler is just as
useful for other frameworks which rely on GCHandles to provide memory
management facilities such as gtk-sharp.

The aim of this profiler is to allow you to easily see how many instances
of each class are being kept alive by GCHandles and also the stacktrace
from where the GCHandle was allocated.

The profiler also tracks when instance delegates are passed to/from native
code as this can be a severe performance hit if it is done frequently.

Conflicts:

	mono/profiler/Makefile.am
2012-01-31 17:37:33 +00:00
Neale Ferguson 4871d61dff Merge branch 'master' of ssh://github.com/mono/mono 2012-01-31 11:38:53 -05:00
Neale Ferguson 353be2f05d Add TLS_GET support for s390x 2012-01-31 11:38:11 -05:00
Jeremie Laval be171d27d4 [monodoc] Also fill in fulltitle info for enum and delegates 2012-01-31 14:47:21 +01:00
Marek Safar d2a7ad5e9a Fix type inference of recursive explicit type parameters. Fixes #3142 2012-01-31 10:41:44 +00:00
Marek Safar 448a197771 New test 2012-01-31 10:41:44 +00:00
Marek Safar d92e12ea62 Remove obsolete code 2012-01-31 10:41:43 +00:00
Marek Safar 9d55721020 Add test for reusing compiler settings 2012-01-31 10:41:43 +00:00
Marek Safar edc8051d40 Update compiler documentation. 2012-01-31 10:41:43 +00:00
Sebastien Pouliot 6e2273a126 Floating point numbers needs to be encoded using the invariant culture. Fix bug #3137 2012-01-30 18:45:34 -05:00
Jeremie Laval 10444d19bd [monodoc] Process MonoTouch's [Since] attribute and shows it in Requirements section 2012-01-30 23:16:42 +01:00
Zoltan Varga 0e6f381a7c Fix the encoding of strings in the sdb wire protocol. 2012-01-30 18:31:18 +01:00
Jeffrey Stedfast b1ea381dfd [Mono.Debugger.Soft] Oops, fixed build. 2012-01-30 12:29:49 -05:00
Jeffrey Stedfast 31cc3ab061 [Mono.Debugger.Soft] Implement IsGenericType/Method for protocol < 2.12 2012-01-30 11:59:43 -05:00
Miguel de Icaza 7d1fa7f227 Document new setting 2012-01-30 11:38:09 -05:00
Miguel de Icaza cbf0612b7d Sort the options 2012-01-30 11:38:08 -05:00
Jeremie Laval bf0f0a3a52 [monodoc, mdoc] Recognize and process a documentation 'Related Content' section 2012-01-30 17:33:56 +01:00
Jeremie Laval 2499997f24 [monodoc] Add value of MTouch/MMac Export attribute to search index 2012-01-30 15:15:17 +01:00
Jeremie Laval 737b295103 [mdoc] change index subparameters and explain them 2012-01-30 15:15:17 +01:00
Rolf Bjarne Kvinge 4d4cf6256c AOT: add support for calling pinvoke methods directly, instead of going through dlsym. 2012-01-30 14:48:10 +01:00
Marek Habersack 1fc0a3a453 Merge pull request #222 from pruiz/httpreq-validation-fix
Ensure only first call to HttpRequest.QueryString should trigger validation exception. Just the same behaviour of HttpRequest.Form && HttpRequest.Cookies.
2012-01-30 00:46:41 -08:00
Pablo Ruiz Garcia b0031fd4a4 Ensure only first call to HttpRequest.QueryString should trigger validation exception. Just the same behaviour of HttpRequest.Form && HttpRequest.Cookies. 2012-01-30 00:35:15 +01:00
Rodrigo Kumpera 9d1e7c3e13 Guard against lazy initialization of idepth. 2012-01-29 13:00:15 -02:00
Zoltan Varga 7329b6aff4 Implement IsGenericType etc. in TypeMirror/MethodMirror. 2012-01-29 11:16:03 +01:00
Zoltan Varga 866ada23cf Fix gshared support in sdb. 2012-01-29 10:36:41 +01:00
Rodrigo Kumpera 9317a3571c Last round of fullaot fixes for lazy init'ng supertypes. 2012-01-29 01:20:24 +00:00
Zoltan Varga 94b662ddb6 Disable some TLS fallback code on ppc as it does not work. Fixes #2717. 2012-01-28 17:59:51 +01:00
Zoltan Varga a4bac65058 Add precise location info for this/rgctx in gshared methods, to avoid crashes in get_generic_info_from_stack_frame (). Fixes #2862. 2012-01-28 10:29:08 +01:00
Rodrigo Kumpera 7cf42ffe68 Fix linux builds. 2012-01-28 02:33:36 +00:00
Rodrigo Kumpera 0092be1dfa Move clear_remsets to ssb file. Cleanup remset major initialization. 2012-01-27 23:03:57 -02:00
Rodrigo Kumpera 9ffcb00037 Move the bulk of mono_sgen_add_to_global_remset to separate files. 2012-01-27 22:33:47 -02:00
Rodrigo Kumpera 115ce35999 Mark some cardtable functions as inline. 2012-01-27 22:24:43 -02:00
Rodrigo Kumpera da7a2a02de Move the global remset location cache to its own file. 2012-01-27 21:03:19 -02:00
Rodrigo Kumpera ee2eb1a504 Move ssb thread cleanup to its file. 2012-01-27 20:32:54 -02:00
Rodrigo Kumpera a435c5292d Move dummy_use to a header and give it a sucky MSVC implementation. 2012-01-27 19:10:16 -02:00
Rodrigo Kumpera fc50e7da30 Move the bulk of all custom write barriers to each implementation (card table, seq store buffers) file. 2012-01-27 18:08:02 -02:00
Marek Safar 8d817df251 Add new test 2012-01-27 15:34:17 +00:00
Marek Safar e518617541 Remove unit index from Location to allow compilation from text buffer 2012-01-27 15:34:17 +00:00
Marek Safar b2f4d1e012 Move all remaining compiler settings into Settings class 2012-01-27 15:34:16 +00:00
Zoltan Varga 3047a4f080 Fix infinite loop in TestDriver.cs when using the -v option. 2012-01-27 15:54:42 +01:00
Marek Habersack 707951b570 Revert ".NET 4.5 targets should use dmcs"
This reverts commit d259c15ad8.

The fix doesn't work
2012-01-27 15:25:53 +01:00
Miguel de Icaza fae601a857 Fix typo 2012-01-26 23:23:11 -05:00
Miguel de Icaza 2bd0eed084 Fix the debug-parser target 2012-01-26 21:03:44 -05:00
Miguel de Icaza 0a5426328e Update the compiler docs 2012-01-26 21:02:03 -05:00
Rodrigo Kumpera 8ce71f9619 Fix aot miscompilation due to the lazy supertypes initialization. 2012-01-26 17:26:18 -02:00
Rodrigo Kumpera 97ce680cfc Great new file sgen-ssb.c to get all sequential store barrier awesomeness. 2012-01-26 17:26:18 -02:00
Rodrigo Kumpera 49b52cc8dd Implement clone wbarrier for cardtable. 2012-01-26 17:26:17 -02:00
Zoltan Varga ad4bda82fd Fix support for synchronized methods + ldftn. Fixes #3088. 2012-01-26 20:14:03 +01:00
Marek Habersack d259c15ad8 .NET 4.5 targets should use dmcs 2012-01-26 16:24:45 +01:00
Marek Safar dd9434f368 Use correct time zone offset for invariant DateTimeOffset formats 2012-01-26 07:16:13 -05:00
Marek Safar 53cb96d0a1 Fix time zone dependant test 2012-01-26 05:19:38 -05:00
Marek Safar 93e3ad1cf1 Update to the latest IKVM.Reflection 2012-01-26 05:00:33 -05:00
Marek Safar af3b1c985d Don't try to emit closed containers 2012-01-26 08:44:15 +00:00
Marek Safar 2f100b9143 Use same members for partial classes as normal classes or MD cannot see them 2012-01-26 08:44:15 +00:00
Marek Safar da4d0b51f4 Update to the latest ikvm reflection 2012-01-26 08:44:14 +00:00
Marek Safar e0ff70fb26 Optimize extension methods lookup 2012-01-26 08:44:14 +00:00
Marek Safar 74f8080490 Cache extension methods lookup failures 2012-01-26 08:44:14 +00:00
Marek Safar 40cd1b914b Make private fields not visible 2012-01-26 08:44:13 +00:00
Zoltan Varga d5695fd550 Avoid an assert in sdb if a method doesn't have seq point info. 2012-01-25 17:49:35 +01:00
Zoltan Varga c8032de0d8 Fix asserts in add_var () when sdb encounters a dead variable because of an aot image compiled without 'soft-debug'. Fixes #3043. 2012-01-25 17:41:41 +01:00
Rodrigo Kumpera 61a2cc3e63 Fix consumers of supertypes information to account for lazyness.
* class-internals.h (mono_class_has_parent): Convert this macro into
	an inline function that guards against non initialized supertypes info.

	Fix random breakage all over the place.
2012-01-25 14:13:29 -02:00
Zoltan Varga db0b932cd6 Fix the returning of cattr field information in sdb. 2012-01-25 02:19:00 +01:00
Rodrigo Kumpera 104beffbfa Init the unwind state struct so callers can rely on its content on failure. 2012-01-24 16:12:29 -02:00
Rodrigo Kumpera 8817cc8e26 Enable fast tls on amd64, so sgen works. 2012-01-24 14:37:45 -02:00
Zoltan Varga f0429f6ca4 Rename test_sgen make target to test-sgen. 2012-01-24 17:36:57 +01:00
Marek Safar 22f79e7a7f Disable identifiers interning for full ast mode 2012-01-24 15:17:12 +00:00
Marek Safar d127cb0936 Remove some static fields 2012-01-24 15:17:11 +00:00
Marek Safar 52224d28ab Emit MethodAttributes.HideBySig for static constructors 2012-01-24 15:17:11 +00:00
Zoltan Varga bba4a72c94 Fix the build. 2012-01-24 15:58:56 +01:00
Marek Safar 4e27e86d53 Keep order of parsed members (required by MD) to be more compatible with csc 2012-01-24 13:27:53 +00:00
Zoltan Varga bfeac699e2 Merge pull request #220 from metanest/includeproblem_2012Jan_spike
fix including basesystem's gc.h problem
2012-01-24 01:28:34 -08:00
KISHIMOTO, Makoto ba98c5aa3f rename LIBGC_INCLUDES to LIBGC_CPPFLAGS 2012-01-24 17:51:05 +09:00
Zoltan Varga 8ccb430a66 Enable support for OP_MEMORY_BARRIER on llvm+arm, newer llvm versions support it. 2012-01-24 07:14:31 +01:00
Zoltan Varga a88d47400d Add a nunit-console4 script. Fixes #2156. 2012-01-24 06:48:23 +01:00
KISHIMOTO, Makoto 1e28a605e2 fix including basesystem's gc.h problem 2012-01-24 12:05:20 +09:00
Zoltan Varga e448bde2e2 Allow assemblies without AOT images in full-aot mode if they don't have any methods. 2012-01-24 03:06:00 +01:00
Rodrigo Kumpera 7cb135ae5a A regression test for bxc #795. 2012-01-23 22:51:33 -02:00
Rodrigo Kumpera 00e043a7ea Be lazy'er when setting up supertype information. Fixes bxc #795
* class.c (mono_class_setup_parent): We can't setup supertypes here
	since we might be initializing our parent as well, which will cause
	the current type to have broken values.

	Since we're lazier, we need to check for it in more places.

	Fixes bxc #795.
2012-01-23 22:51:33 -02:00
Rodrigo Kumpera d42f82a1b2 Lazily nit mono_class_setup_supertypes correctly. 2012-01-23 22:51:32 -02:00
Rodrigo Kumpera 620926d35e Improve test. 2012-01-23 22:51:32 -02:00
Jonathan Pryor 6c38da68a9 [mdoc] Generate docs for nested protected types.
Nested `protected` types are accessible from subclasses, and thus
should be documented just as `public` nested types are.
2012-01-23 17:40:55 -05:00
Jonathan Pryor 229e266551 [mdoc] Fix make run-tests
The `all` make target no longer creates ./mdoc.exe (!), so create
./mdoc.exe so that the test targets can run $(PROGRAM) as expected.
2012-01-23 17:17:56 -05:00
Miguel de Icaza 380c4b769a Updated API docs 2012-01-23 15:52:19 -05:00
Rodrigo Kumpera 9f96593b51 Enable fast tls on LMF for OSX. 2012-01-23 16:12:47 -02:00
Rodrigo Kumpera ec6b56f943 Finish fast tls support on OSX.
* mini-x86.c (mono_arch_emit_prolog): Use proper functions to
	emit tls access.

	Add mono_x86_emit_tls_set to emit tls stores.
2012-01-23 16:12:47 -02:00
Rodrigo Kumpera 5f9c404ef1 Rename mono_arch_setup_jit_tls_data to mono_arch_finish_init. 2012-01-23 16:12:46 -02:00
Rodrigo Kumpera 282f86d635 Call mono_arch_setup_jit_tls_data during mini_init after metadata.
* mini.c (mini_init): Explicitly call mono_arch_setup_jit_tls_data
	to initialize tls offsets. This used to be called on a per-thread
	basis but no arch every did anything but init offsets.

	We do it after metadata is initialized so we can catch dynamic
	offset for the appdomain key.
2012-01-23 16:12:46 -02:00
Rodrigo Kumpera 3dd15441f9 Fix another stack alignment issue under osx-x86. 2012-01-23 16:12:45 -02:00
Rodrigo Kumpera 384f55118f If we call mono_pmip from a detached thread, try looking up in the root domain instead of crashing. 2012-01-23 16:12:45 -02:00
Rodrigo Kumpera 121edd9b99 Fix darwin specific code to support fasttls on the lmf var.
* mini-darwin.c (mono_thread_state_init_from_handle): If fast
	tls is enabled for the lmf var, we need to fetch it in the
	same way as jit_tls and appdomain.
2012-01-23 16:12:44 -02:00
Rodrigo Kumpera ecd475fe21 Use MONO_FAST_TLS_ADDR instead of explicitly taking the address of mono_lmf. 2012-01-23 16:12:44 -02:00
Rodrigo Kumpera 0c7d0cad58 Add MONO_FAST_TLS_ADDR so we can get the address of a fast tls var. 2012-01-23 16:12:43 -02:00
Rodrigo Kumpera 189c505880 Add mono_mach_get_tls_address_from_thread for arm/x86/amd64. 2012-01-23 16:12:43 -02:00
Rodrigo Kumpera 9fe7832a4c Better assembly dump experience on OSX. 2012-01-23 16:12:42 -02:00
Miguel de Icaza 9846dee770 Disable debugging parser on the default compiler build 2012-01-22 19:25:19 -05:00
Miguel de Icaza a4f6611a12 mcs/parser: make it so that an incomplete statement without a semicolon
continue parsing as if there was a brace as the next token in the stream.

This allows the following sample to report only the missing semicolon
as error 1525:

using System;
class Program
{
   public static void Main ()
   {
       TestMethod (delegate (object sender, EventArgs args) {

       })
   }
}

Instead of reporting both 1525 and later on a second 1525 for the
end-of-file token
2012-01-22 19:19:39 -05:00
Miguel de Icaza fb0fdcd98c mcs/error recovery: handle errors caused by closing braces after a statement expression manually.
This allows the statement to be added after the error has been reported, this helps
MonoDevelop code completion.
2012-01-22 19:04:04 -05:00
Zoltan Varga 67d7382a58 Add a test for #2775. 2012-01-22 21:43:15 +01:00
Zoltan Varga 86445fa3e9 Fix the setting of sp in mono_monoctx_to_sigctx () on arm. Fixes #2775. 2012-01-22 21:42:42 +01:00
Zoltan Varga 0c4f4c0346 Fix the build. 2012-01-22 12:00:43 +01:00
Zoltan Varga 0d0ef30a13 Implement GetFolderPath(Environment.SpecialFolder.UserProfile) on unix. Fixes #2873. 2012-01-22 10:37:49 +01:00
Atsushi Eno f10c986b5e Merge pull request #219 from dhasenan/master
Fix SOAP binding configuration for WCF services
2012-01-21 20:44:37 -08:00
Christopher Wright c7228c9944 Fix SOAP configuration error
Was getting a configuration error saying that the type of the default
value for these two configuration options does not match the type of the
configuration options. Fixed by changing the literals to be longs
explicitly.
2012-01-21 22:33:45 +00:00
Zoltan Varga 7d302ae338 Fix reading of freed memory in GetVolumeInformation () on osx. Fixes #1885. 2012-01-21 03:06:10 +01:00
Zoltan Varga 5ac11eeecf Make the sorting done by MSCompatUnicodeTable stable. Fixes #1358. 2012-01-21 02:22:52 +01:00
Zoltan Varga e628aa44ca Fix an out-of-bounds write in the llvm backend initialization code. 2012-01-21 02:22:52 +01:00
Marek Safar 6e50a7aa08 Implements more System.Net.Http.Headers 2012-01-20 17:39:14 +00:00
Marek Safar 6a51b39b7d Run check for unused fields only when compilation succeeded 2012-01-20 17:39:13 +00:00
Marek Safar 7a92fa4fbf Implement DateTimeOffset quoted values parsing 2012-01-20 17:39:13 +00:00
Zoltan Varga e8078894d0 Invalidate the frame info computed in ss_start (), since it becomes invalid after we continue. 2012-01-20 12:32:21 +01:00
Kevin Houlihan 75791d273f Change to ensure that correct BufferHeight and BufferWidth are returned after terminal resize.
Console.BufferHeight and Console.BufferWidth were returning incorrect values after a terminal window resize on Linux (bug 874). I added CheckWindowDimensions calls to the getters of these properties to ensure that the values are up to date.
2012-01-20 06:36:01 +01:00
Zoltan Varga d5a7b7c8c6 Fix Type.GetType () when an assembly resolver is used without a type resolver. Fixes #644. 2012-01-20 06:32:40 +01:00
Jonathan Pryor 00e29089c7 [System.ServiceModel] Don't try to deserialize void messages.
Fixes: http://bugzilla.xamarin.com/show_bug.cgi?id=1164

The breakage reported in #1164 was caused by commit 106fdeb4, which
fixed bxc206. The problem is that in fixing bxc206, response messages
of a type having a MessageContractAttribute custom attribute were
changed to have a `void` return type, according to the
MessageDescription's Body.ReturnValue.Type property.

This fix is correct, in that it's what .NET does, but it broke XML
deserialization which expected the "actual" return type to exist, not
`void`.

Case in point: the added IService1.EndJSMGetDatabases() method will
have a MessageDescription with a Body.ReturnValue.Type=typeof(void).
The problem is that deserializing this message will fail:

	System.Runtime.Serialization.SerializationException: Deserializing
	type 'System.Void'. Expecting state 'EndElement'. Encountered state
	'Text' with name '' with namespace ''.

Obviously this is not good. ;-)

The fix is simple: don't use the MessageDescription's ReturnValue if
it's `typeof(void)`.

There are two added wrinkles:

 1. Writing a test case for the above.

 2. The test case broke with another error: a NRE within
    BaseMessagesFormatter.MessageObjectToParts(). This is because
    when ContractDescriptionGenerator.GetMessage() sets the
    ReturnValue for a response message, it doesn't set
    MessagePartDescription.MemberInfo.
    BaseMessagesFormatter.MessageObjectToParts(), meanwhile, was
    checking the ReturnValue's MemberInfo...which was null.

    Add a null check here so that the actual bug can be tested.
2012-01-20 00:18:54 -05:00
Jonathan Pryor 5a6f9b7e52 [System.ServiceModel] Speed up Bug652331_2Test test execution.
For reasons I currently can't explain, the Service1Client test type
appears to support having only one async operation "in flight" at a
time. As a result of this, calling multiple Async methods on the
Service1Client instance, as was done previously, would result in not
all of the event handlers being invoked, and the test timing out
after 60s instead of exiting quickly because all event handlers had
been raised.

I don't understand enough of WCF & this code to say why Service1Client
can have only one async operation in progress at once, but making this
change so that each async operation operates on a separate instance
speeds up the Bug652331_2Test execution from 60s to 5s.
2012-01-20 00:18:53 -05:00
Zoltan Varga b42fb3a0fa Avoid passing a Module to the GetSigHelper methods (), which can happen if an ILBuilder is used from a dynamic method. Fixes #1900. 2012-01-20 05:56:48 +01:00
Eberhard Beilharz 5427d4d901 Xamarin-2938: Fix Screen.FromControl
We have to convert the location of the control to screen coordinates
so that we end up with the correct screen in a multi-monitor setup.
This patch fixes Screen.FromControl, Screen.FromHandle, and
Screen.GetWorkingArea.

Change-Id: I6c4fd65833d012e832d97d610c79abc792e57adf
2012-01-19 22:01:53 -05:00
Zoltan Varga 5861686574 Fix -O=shared support in mono_delegate_ctor (). 2012-01-20 02:35:32 +01:00
Gonzalo Paniagua Javier c621b27d45 UploadFile+PUT does not wrap the file in a multipart envelope
When using PUT as the method to upload a file using WebClient, the file
	is uploaded as-is, without the multipart boundaries, headers,...
	Fixes bug #2970.
2012-01-19 12:23:24 -05:00
Marek Safar 18386d4e72 Restore original compiler generated block when linq expression cannot be parsed 2012-01-19 12:07:26 +00:00
Marek Safar 53dfab1291 Fix range variable name collision check for nested linq queries 2012-01-19 12:00:05 +00:00
Atsushi Eno 82f61e9074 Fix bug 998 - in XmlResolver.ResolveUri(), make some policy change on "how to determine a string as an absolute URI.
It's a bit difficult decision, as the "relative URI" could be any path string
that contain colons as a *valid* path (especially on *nix land).
We historically did allow such string that contain "http:" etc. as to be
treated as absolute (which historically worked long time).
But this test case uncovered possible other cases.
Hopefully this does not bring issues that is pretty much anticipated. Such
issues could also happen in older code anyways.
2012-01-19 20:45:42 +09:00
Atsushi Eno e642e68ad8 Fix bug #1558 - return editable XPathNavigator from editable navigator's CreateNavigator(). 2012-01-19 20:01:04 +09:00
Atsushi Eno df47a233bb Fix bug #2146 - create snapshot copy of nodes before removal in Remove<T>(). 2012-01-19 19:51:44 +09:00
Atsushi Eno 7b24c6d906 Fix bug #2383 patch by Weeble - in XPathExtensions.Evaluate(), return IEnumerable of the underlying object, not XPathNavigator, for node-set values. 2012-01-19 19:39:08 +09:00
Atsushi Eno d18e065225 Fix bug #2564 - give .NET compatible namespace prefixes for XElement with namespace that XAttribute provides.
This makes XElement.WriteTo() pretty much slower.
2012-01-19 19:21:06 +09:00
Atsushi Eno a890db1917 Fix bug #2956: XmlReader.HasValue became virtual (from abstract) in .NET 4. 2012-01-19 18:52:36 +09:00
Atsushi Eno 62537fdd3c Fix bug #2927: lookup event bound methods from root instance, not current object. 2012-01-19 18:30:33 +09:00
Miguel de Icaza ea978eba81 Fix my last commit 2012-01-19 00:08:31 -05:00
Marek Safar f750d62a7d Implemented more System.Net.Http.Headers 2012-01-18 18:07:50 +00:00
Miguel de Icaza 30ae1f0cbf Prevent race conditions for this cached variable, by using a temporary variable, fixes #2952 2012-01-18 11:18:51 -05:00
Martin 821a558b5d Fixes a bug in WebConfigurationManager
Following is a step by step guide to create a testing project:

(1) Create an ASP.NET project in MonoDevelop
(2) Create a folder "base"
(3) Create two subfolders called "sub1" and "sub2" inside of "base"
(4) Create a web.config file in both sub folders "sub1" and "sub2" and enter the following code:

<configuration>
  	<appSettings>
		<add key="myText" value="src=sub1"/>
	</appSettings>
</configuration>

Set the "value=" element to the appropriate value of the corresponding sub folder.

(5) Enter the following code in Default.aspx.cs
public void Page_Load(object sender, EventArgs args)
{
	//c2.ConfigPath contains wrong path
	Configuration c1 = WebConfigurationManager.OpenWebConfiguration("~/base/sub1");
	Configuration c2 = WebConfigurationManager.OpenWebConfiguration("~/base/sub2");
			
	//myText_sub2 refers to the wrong AppSettings entry
	KeyValueConfigurationElement myText_sub1 = (KeyValueConfigurationElement)c1.AppSettings.Settings["myText"];
	KeyValueConfigurationElement myText_sub2 = (KeyValueConfigurationElement)c2.AppSettings.Settings["myText"];
}
2012-01-18 10:50:23 +01:00
Martin 132c8fd83a Provides basic support for ConfigurationElement.ElementInformation.IsPresent. 2012-01-18 10:45:58 +01:00
Martin 103ec0854c Provides basic support for ConfigurationElement.ElementInformation.IsPresent 2012-01-18 10:38:44 +01:00
Rolf Bjarne Kvinge 0a0d353473 DateTime.FromFileTimeUtc should return a DateTime with DateTimeKind.Utc. Fixes #2936. 2012-01-18 00:44:50 +01:00
Rolf Bjarne Kvinge 656ca11722 System.Data: DataTable.ImportRow should be able to handle columns with different types. Fixes #2926. 2012-01-17 22:15:51 +01:00
Marek Safar c73165ea6c Fix ParsedValue buffer length when putback character is doubled 2012-01-17 14:06:29 +00:00
Marek Safar dff3590549 Use correct offset when setting comples struct field assignment. Fixes #2861 2012-01-17 12:34:13 +00:00
Marek Safar acdb58d09f Don't report ambiguous error when a user operator conflicts with build-in type user operator 2012-01-17 12:34:12 +00:00
Zoltan Varga 15a7064ddf Don't delete some RabbitMQ.Client generated files since they are checked in. 2012-01-17 03:21:10 +01:00
Zoltan Varga 3f43a32f51 Don't delete some RabbitMQ.Client generated files since they are checked in. 2012-01-17 03:15:14 +01:00
Zoltan Varga e5fc085aa8 Don't delete basic-profile-check.{exe,out} if the profile check fails. 2012-01-17 03:00:44 +01:00
Rolf Bjarne Kvinge 8928c1bf2d threadpool: Disable the gc for threadpool threads while waiting for work. Fixes #2619 2012-01-17 00:35:17 +01:00
Rolf Bjarne Kvinge 2d739f3c7a sgen: Add support for disabling the gc for a thread 2012-01-17 00:35:17 +01:00
Zoltan Varga 2f0ae87071 Avoid passing methodspec tokens to mono_aot_get_method_from_token (). 2012-01-16 23:16:39 +01:00
Zoltan Varga 6ad31b5157 Fix delegate invokes in shared mode. 2012-01-16 23:15:55 +01:00
Marek Safar cddd83db9a Fix typo 2012-01-16 19:47:22 +00:00
Marek Safar f5b73806e0 Inlcude leading dot in constant ParsedValue 2012-01-16 19:47:21 +00:00
Marek Safar 90144c8305 Keep incomplete constructor initializer colon location 2012-01-16 19:47:21 +00:00
Marek Safar 9dd69426f2 Rename mcs files which now have different content 2012-01-16 19:47:21 +00:00
Miguel de Icaza d7d456d931 Implements TimeZoneInfo.Local for Windows
Fixes #2791, contributed by Jonathan Shore <[email protected]>
2012-01-15 15:10:11 -05:00
Miguel de Icaza 07b6638343 Apply patch from Tom Hindle to fix ##2893 and add a test case.
The serializer interpreted was broken, but the compiled version was fine,
running MONO_XMLSERIALIZER_THS=0 allowed this to run
2012-01-14 15:35:45 -05:00
Tristan Caulfield 149e32cef3 * fix tasklets crash on x86 2012-01-14 19:04:32 +01:00
Zoltan Varga aa3a6e8f42 Respect the SizeConst parameter to UnmanagedType.ByValTStr. Fixes #2567. 2012-01-14 18:58:31 +01:00
Miguel de Icaza 3c91695e5b Merge pull request #213 from linquize/linquize-master
Copy file should preserve modified time and access time
2012-01-14 08:45:55 -08:00
Ilker Cetinkaya d331ccd21f Fixed space indents to tabs to adhere to Mono coding guidelines. 2012-01-14 17:07:00 +01:00
Ilker Cetinkaya ce2de2d1f2 CSharpCodeGenerator now obeys CS1529 when rendering global namespace imports alongside with assembly attribute with GenerateFromCompileUnit. 2012-01-14 12:28:18 +01:00
Ilker Cetinkaya d4687ed1f6 Added test to CSharp Code Generator with global namespace import and assembly attribute to render imports first. (Note: Adresses CS1529 ruling). 2012-01-14 11:56:19 +01:00
Marek Safar a1ee5d2d51 Rework top-level type AST hierarchy to include namespaces. Allows MD to iterate full AST exactly as it was parsed, fixes bugs where namespace without types was ignored completely. 2012-01-14 10:00:20 +00:00
Marek Safar 09eb71f37c Fix MemoryStreamTest tests to compile under 2.0 profile 2012-01-14 10:00:20 +00:00
Miguel de Icaza 31de7582bd Apply fix for 2839 from Michael Mudge 2012-01-13 18:58:53 -05:00
Miguel de Icaza 6245d58fb8 Remove debugging statement 2012-01-13 16:49:01 -05:00
Miguel de Icaza 7a0264e053 Remove the limit on the buffer size, the spec actually calls for supporting messages of up to 0xffffffff bytes in size 2012-01-13 16:49:00 -05:00
Ilker Cetinkaya a461bcf735 Better unit test case and cause description. Added references to CSharp generator and tests. 2012-01-13 20:24:49 +01:00
Ilker Cetinkaya e43a6401f8 Made global namespace import being generated topmost, even before assembly attributes. 2012-01-13 20:23:31 +01:00
Rolf Bjarne Kvinge 994224efd1 sgen: report LOS objects pinned by interior pointers as roots to the profiler 2012-01-13 14:52:08 +01:00
Ilker Cetinkaya fcdbc0df12 Added new test for CodeGenerator.GenerateFromCompileUnit. Verifies that CS1529 rule (imports first) is being obeyed by generator. Test signals, fixup required. 2012-01-12 23:13:47 +01:00
Ilker Cetinkaya dcf5db5021 changed namespace to MonoTests.* in order to be captured by TEST_HARNESS_FLAGS make option. 2012-01-12 22:37:21 +01:00
Sebastien Pouliot 1079d0d03c Bring TaskExtensions to the mobile profile. Fix bug #2769 2012-01-12 16:30:52 -05:00
Sebastien Pouliot e952c9a89b Do not build a managed X509Chain in MonoTouch and simply ask iOS about the chain. Other SSL related checks about the leaf certificate are still required/done. Avoid many internal exceptions since Mono's machine store does not exists inside iOS devices (note: already part of MonoTouch since 4.3) 2012-01-12 15:47:37 -05:00
Gonzalo Paniagua Javier c5b189bb15 Heavy IO load might cause obj to be NULL
Fixes novell bug #704264.
2012-01-12 12:05:17 -05:00
Miguel de Icaza 297f85af87 Add [Exports] from MonoTouch/MonoMac to the documentation index 2012-01-11 20:02:39 -05:00
Miguel de Icaza 7376d1af47 update copyrights 2012-01-11 20:02:39 -05:00
Zoltan Varga b933485209 Disable shared mode for non-corlib and inflated methods since appdomain unloads can invalidate them. 2012-01-11 21:40:16 +01:00
Marek Safar 15af51806d Merge pull request #214 from QuickJack/cd2c570c5543963d987f51080218715407c5d4b9
Fixes 2 problems in Mono's configuration stack.
2012-01-11 11:27:25 -08:00
Marek Safar edb2c7a9a4 Add constructed constructor expression into AST when parsing header 2012-01-11 17:53:03 +00:00
Marek Safar 9350e1aed9 Don't create intermediate NamespaceContainer when iterating parent namespaces 2012-01-11 17:53:03 +00:00
Marek Safar ea6c852fad Remove DeclSpace 2012-01-11 17:53:02 +00:00
Marek Safar 826230f114 Remove GenericMethod 2012-01-11 17:53:02 +00:00
Marek Safar aced03fcd1 Remove GenericMethod from member name construction 2012-01-11 17:53:02 +00:00
Marek Safar 28ff6bbe2e Remove IsGeneric from DeclSpace 2012-01-11 17:53:02 +00:00
Martin 447fb3c842 Extension to commit 17bd0c42c5. This ensures that inheritedLimitIndex will always be >= 0. 2012-01-11 12:12:33 +01:00
Zoltan Varga 123dfb3a94 Don't compile dynamic methods in shared mode. 2012-01-10 22:53:43 +01:00
Gonzalo Paniagua Javier cf20cad809 Use the right socket for the data stream
This fixes bug active data connections.
	Fixes xamarin bug #1294.
2012-01-10 16:34:26 -05:00
Zoltan Varga ccdd91827f Fix an IndexOutOfBounds exception in the sdb packet writer. 2012-01-10 22:15:03 +01:00
QuickJack 17bd0c42c5 Fixes a bug in ConfigurationElementCollection. 2012-01-10 21:02:53 +01:00
QuickJack cd2c570c55 Allows write access to web.config files below an app's root. 2012-01-10 21:01:16 +01:00
Zoltan Varga 098e1c2960 Use mdoc.exe from class/lib since it is now built there. 2012-01-10 20:59:32 +01:00
Rodrigo Kumpera b1522943ac Add test for the previous commit - iteraction between bridge and major evacuation. 2012-01-10 16:02:45 -02:00
Rodrigo Kumpera 26f29ae24c Fix the iteraction between bridge and major evacuation on a minor overflow major collection.
* sgen-gc.c: The bridge code is split into 3 steps, one done when we collect finalizable objects,
	one done before we restart the world and the last right after.

	The first step can be executed twice if an overflow major collection happens. We handled this
	situation by avoiding duplicates in the registration code.

	This works fine except if a registered bridge object is moved by the second collection, which can
	happen when defragmentation kicks in.

	Instead of fixing those pointers, which is quite tricky, we move hash building to happen in the second
	step and discard all elements on the registered bridge array before each collection.  Since all bridges
	collected by the first collection will be collected again on the second, we can do it.
2012-01-10 16:02:44 -02:00
Jeremie Laval 3468d9430f [monodoc] Add a full title field to search result so that more information (like namespace) can be given back 2012-01-10 18:10:18 +01:00
Jeremie Laval 871086e6de [monodoc] Append member type (method, property, ...) to member name 2012-01-10 18:10:18 +01:00
Jeremie Laval 222c96a617 [monodoc] Don't show the massive amount of obsolete warning for bundled Lucene.NET 2012-01-10 18:10:18 +01:00
Zoltan Varga 488d55a58d Add memory barriers to interlocked operations on ARM, since the runtime code depends on it. 2012-01-10 17:42:37 +01:00
Marek Safar 42cdbf3f8f Make System.Web.Script.Serialization.JavaScriptSerializer.ConvertToType(Type, object) public. Fixes #2781 2012-01-09 21:46:52 +00:00
Gonzalo Paniagua Javier 6969f5bc39 Merge pull request #211 from symform/master
Fixed a race condition in WebConnection that was causing it to throw NullReferenceException on Close/Dispose
2012-01-09 09:07:48 -08:00
Marek Safar 450b4a4b60 Remove another layout from TypeParameters parsing, makes it easier for MD to track original locations. Add better caching for resolved type parameter types. 2012-01-09 17:00:28 +00:00
Rodrigo Kumpera 50946b3f46 Revert "do a signal safe unwind on the native crash handler." We're better of taking the chance here.
This reverts commit dd67beedf2.
2012-01-09 14:45:54 -02:00
Rodrigo Kumpera f41759c0d3 Remove a spurious assert. 2012-01-09 14:45:53 -02:00
Linquize 4a8d840d6f Copy file should preserve modified time and access time 2012-01-07 23:31:54 +08:00
Zoltan Varga 93c5d0feb5 Allow enum->basetype argument conversion in CreateDelegate(). Fixes #794. 2012-01-07 00:39:13 +01:00
Zoltan Varga 47b55a2fa8 Call mono_create_jit_trampoline_in_domain () in mono_resolve_patch_target () so shared methods don't end up calling trampolines in another domain. 2012-01-06 22:37:25 +01:00
Zoltan Varga 183d2f34bb Merge pull request #212 from jordanbtucker/master
Bug 2761 - BigInteger constructed with zero-filled byte array raises IndexOutOfRangeException
2012-01-06 12:58:27 -08:00
Jordan Tucker 4be2945202 Fixed Bug 2761: BigInteger constructed with zero-filled byte array raises IndexOutOfRangeException 2012-01-06 12:13:51 -08:00
Marek Safar 5ace7ce140 Insert constructor into AST before initializer is parsed 2012-01-06 12:58:43 +00:00
Marek Safar 7c2c5fa327 Better detection of errors when building anonymous types. Fixes #2656 2012-01-06 11:19:26 +00:00
Marek Safar 9e4e49712f Default non-profile mcs.exe build to build profile 2012-01-06 11:19:25 +00:00
Zoltan Varga 517f0cb5c4 Avoid displaying the 'no thread info in suspend' message in sgen which can happen during normal use. 2012-01-06 04:46:01 +01:00
Zoltan Varga 0db14d5509 Fix stack alignment calculation in mono_arch_setup_async_callback () on amd64. 2012-01-06 03:53:41 +01:00
Zoltan Varga 6768e34407 Remove hazard pointer use from mono_get_cached_unwind_info (), it is still slower than doing no locking at all. 2012-01-06 03:07:01 +01:00
Rodrigo Kumpera dd67beedf2 do a signal safe unwind on the native crash handler. 2012-01-05 21:27:26 -02:00
Zoltan Varga dfaf816eed Fix the build. 2012-01-05 23:48:07 +01:00
Zoltan Varga 21c71df8d3 Extract the SGEN debugging code into a separate file. 2012-01-05 23:29:46 +01:00
Zoltan Varga a2de872de1 Extract SGEN object allocation rountines to sgen-alloc.c. 2012-01-05 23:07:53 +01:00
Zoltan Varga 3cb56379be Implement mono_gc_set_stack_end () for Boehm/null GC to remove the #ifdef HAVE_SGEN_GC dependency from driver.c. 2012-01-05 20:48:48 +01:00
Neale Ferguson bae562f9b1 Merge branch 'master' of ssh://github.com/mono/mono 2012-01-05 12:50:18 -05:00
Neale Ferguson 4109fd65d2 If a parameter is NULL or DBNull then its size needs to be zero otherwise the parameter gets treated as an empty string which is a different thing to a NULL. Microsoft will send a true NULL, this will get mono to do the same. 2012-01-05 12:48:02 -05:00
Marek Safar 0ec2119c7f Build programs directly into class/lib. Fixes random make -j failures 2012-01-05 16:34:36 +00:00
Zoltan Varga 2ac3c54938 Fix crashes in the precise stack marking code if a thread is interrupted during startup. 2012-01-05 17:07:19 +01:00
Marek Safar ff9af04252 Reference equality of identical reference types cannot involve implicit conversion to predefined types. Fixes #2684 2012-01-05 13:20:04 +00:00
Marek Safar 834cc07e54 Use reference comparison when checking interlocked delegate combine/remove 2012-01-05 13:20:04 +00:00
Marek Safar 093fd15f0b Type parameters can be now stored in MemberName directly 2012-01-05 13:20:04 +00:00
Rodrigo Kumpera 6ab8cb5bf0 Add JIT support for 4.5 MethodImplOptions.AggressiveInlining. 2012-01-05 10:59:27 -02:00
Rodrigo Kumpera 1593675c21 disassemble the agressive-inlining flag correctly. 2012-01-05 10:41:25 -02:00
Rodrigo Kumpera 12e1ed682e Add define for new 4.5 method impl flag agressive-inlining. 2012-01-05 10:40:17 -02:00
Rodrigo Kumpera e66adeddcd Add regression test for bxc #1147. 2012-01-05 09:12:02 -02:00
Rodrigo Kumpera 2721a0c23e Properly initialize a rgctx template. Fixes bxc #1147.
* mini-generic-sharing.c (mono_class_get_runtime_generic_context_template):
	When initializing a new rgctx template, we fill it with its parent
	slots.

	When the parent is a non generic class extending a generic class,
	has multiple templates and, finally, the first template has more
	slots that the rest, we would fill more entries than we should
	and later cause an assertion when trying to use those extra slots.

	To fix that we handle it just like a generic parent class and
	count the number of slots each template has.

Fixes bxc #1147.
2012-01-05 09:12:01 -02:00
Jonathan Pryor e35e45293b [System.ServiceModel.Web] Support null as value for DateTime? field.
Fixes assistly #5863.
2012-01-04 16:35:02 -05:00
Rolf Bjarne Kvinge ff344b1c44 FileStream: use 4k as the default buffer size
This way it is not treated as a large object by the GC (which is slower
than normal objects). It also matches MS' default buffer size.
2012-01-04 21:17:36 +01:00
Rolf Bjarne Kvinge 72b8bf6402 Set the end of the stack for the main thread
This helps the GC by minimizing the stack area to scan, while at the
same time reducing the chance of false positives when scanning the stack
for managed objects since we know no managed object can live on the
stack above the main function. This improves memory usage for the test
case in #2619 quite much (but that particular bug isn't fixed by this).
2012-01-04 21:09:14 +01:00
Rodrigo Kumpera 5aea136cd4 Add sgen test for STOBJ of gshared valuetype with a reference T field - this must generate a WB. 2012-01-04 14:54:51 -02:00
Sebastien Pouliot ae5e52145f Implement new FX4 methods to add new algorithms/oids with code (not just machine.config). Fix bug to replace (not just add) algorithms/oids 2012-01-04 10:48:29 -05:00
Zoltan Varga 7b9d1bd8d1 Mark OP_TAILCALL as a GC call site on x86. 2012-01-04 16:14:43 +01:00
Zoltan Varga 8e4bb7c7f5 Enable precise stack scanning by default again. 2012-01-04 15:52:12 +01:00
Zoltan Varga 8a2ebb283f Fix precise stack scanning on OSX. 2012-01-04 15:51:21 +01:00
Marek Safar 226b90572c Don't use MemberName to store parsed member access expressions 2012-01-04 09:32:23 +00:00
Marek Safar 8e33e0d088 Don't allocate intermediate MemberName for member access expressions 2012-01-04 09:32:23 +00:00
symform ccfe7d6e74 Fixed a race in System.Net.WebConnection that was causing it to throw NullReferenceException on Close/Dispose. 2012-01-03 17:22:45 -08:00
Miguel de Icaza 62d7430864 XmlSerializer: Add support to serialize nullable types when the XmlElement has explicity set the DataType
The existing code had a special code path for handling nullables that
ignored the DataType component.

This patch splits the nullable test away, allows the specified XmlDataType
to be probed and then performs the standard type lookup mechanism.

This allows this:

        [XmlElement ("MyNullableTime", DataType="time", IsNullable=true)]
        DateTime? myTime;

To be serialized as a "time" instead of a "datetime".

Fixes bug #329
2012-01-03 19:38:13 -05:00
Zoltan Varga d7f671d0ee Implement ignore-case support for GetTypesForSourceFiles (). Make the type name filters ignore case. 2012-01-03 23:42:08 +01:00
Zoltan Varga d9010616dd Initialize the out arguments at the beginning of mono_lookup_pinvoke_call (). 2012-01-03 20:37:57 +01:00
QuickJack 10dbda2cda Improves the compatibility of Mono's Configuration stack 2012-01-02 21:24:09 +01:00
Zoltan Varga 24cc0edb89 Merge pull request #203 from Jester01/jester/mmap
Make do_mono_image_open try file i/o if mmap fails
2012-01-02 09:20:17 -08:00
Rodrigo Kumpera 42c2e9a0f5 Remove an intermediate buffer in the bridge code. 2011-12-29 21:00:41 -02:00
Rodrigo Kumpera 9e8ddb6f0d Make mono_sgen_gray_object_queue_is_empty inlineable. 2011-12-29 20:47:38 -02:00
Rodrigo Kumpera 2c2a546bd4 Properly export mono_sgen_ptr_in_nursery. 2011-12-29 20:22:28 -02:00
Rodrigo Kumpera 23f98b3c29 Rework the gray queue code to isolate it into a proper module. One less include hack. 2011-12-29 20:16:53 -02:00
Rodrigo Kumpera b2d93744ed Rework the workers code to isolate it into a proper module. One less include hack. 2011-12-29 18:55:12 -02:00
QuickJack 9a209442c5 Fixes some warnings in sqlsharp 2011-12-29 16:59:27 +01:00
QuickJack f66044a1c6 Fixes some warnings in System.Xaml.dll 2011-12-29 16:32:30 +01:00
QuickJack 01e0e7357f Fixes CS0168 in System.ComponentModel.DataAnnotations 2011-12-29 16:04:26 +01:00
QuickJack d0b2d82e13 Fixes some warnings in System.Web.Extensions.dll 2011-12-29 15:59:41 +01:00
Rodrigo Kumpera 7b626a13e1 Fix the build. 2011-12-29 12:39:09 -02:00
Rodrigo Kumpera c77cc14f2c Rework the pin stats code to isolate it into a proper module. One less include hack. 2011-12-29 12:39:09 -02:00
Martin 5aecac0f33 completes commit 4f3d21e46e 2011-12-29 15:38:58 +01:00
QuickJack 4f3d21e46e Fixes CS0168 in System.ServiceModel.dll 2011-12-29 15:28:26 +01:00
Miguel de Icaza 37b85d86ac Allow trailing commas on Json objects 2011-12-29 09:10:26 -05:00
Martin 43abdc0936 completes commit 6744423723 2011-12-29 14:58:18 +01:00
Martin 31ce6e239b commit 945c2a7433 removed 2 method calls 2011-12-29 14:53:48 +01:00
Martin ebb5d2ea2d commit b9ae5e5f7e removed a complete method call 2011-12-29 14:42:55 +01:00
Martin 1586a02a84 commit b9ae5e5f7e removed a complete method call 2011-12-29 14:40:32 +01:00
Martin 5253c48a5b commit 2060853826 removed a complete method call 2011-12-29 14:34:55 +01:00
Martin 90d8a5a9b2 commit 2060853826 removed a complete method call 2011-12-29 14:29:35 +01:00
Martin f37e9a0ba7 commit 2060853826 removed a complete method call 2011-12-29 14:25:37 +01:00
Martin d1d323edd1 commit 2060853826 removed a complete method call 2011-12-29 14:22:53 +01:00
QuickJack 945c2a7433 Fixes some warnings in PEAPI.dll 2011-12-29 13:54:31 +01:00
QuickJack d16f9f1826 Fixes a warning in System.Design.dll 2011-12-29 13:31:49 +01:00
QuickJack 8037341228 Fixes some warnings in System.Runtime.Remoting.dll 2011-12-29 13:14:50 +01:00
QuickJack 3c4b6c2d9c Fixes a warning in System.Web..Services.dll 2011-12-29 13:00:26 +01:00
QuickJack 6744423723 Fixes a warning in System.Web..dll 2011-12-29 12:45:22 +01:00
QuickJack d9df521f57 Fixes a warning in Mono.Data.Sqlite.dll 2011-12-29 12:38:14 +01:00
QuickJack 0d4d0c552e Fixes a warning in System.Windows.Forms.dll 2011-12-29 12:33:18 +01:00
Rodrigo Kumpera 51f47b7ca0 Fix a pesky typo. 2011-12-28 23:25:32 -02:00
Rodrigo Kumpera 542e85383d Rework pinning code to isolate it into a proper module. One less include hack. 2011-12-28 23:09:37 -02:00
Rodrigo Kumpera 34012f47bb Rework the cardtable code to isolate it into a proper module. One less include hack. 2011-12-28 20:35:17 -02:00
Rodrigo Kumpera a50d08eb96 Add test for gc descriptors. 2011-12-28 12:03:59 -02:00
Rodrigo Kumpera 1f502c689a Fix parallel MS pinning code. 2011-12-28 11:36:14 -02:00
Pablo Ruiz Garcia 78fd9af682 Added a ByteSafeEncoding which can be used to implement/debug ByteEncoding derived encodings classes. 2011-12-28 09:54:19 -02:00
Pablo Ruiz Garcia 0f632ac15a Fixed a common buffer overflows to most I18N.Other.* encoders, by which mapping of invalid characters was emiting fallback character twice, thus doubling the amount of space required.
Fixed an CP949 encoding to avoid an off-by-one during character replacement on Getbytes(..)
2011-12-28 09:54:12 -02:00
Pablo Ruiz Garcia f593a78518 Enabled safe-only versions of I18N/CJK encoders. 2011-12-28 09:54:07 -02:00
Pablo Ruiz Garcia 49c6d68789 Another issue #1531 fix (and unit test) 2011-12-28 09:54:02 -02:00
Pablo Ruiz Garcia 2ef76a895a Line-ending fixes over my previous modifications on I18N code. 2011-12-28 09:53:56 -02:00
Pablo Ruiz Garcia 4f0c95d036 Fixed issue #1531: I18N.CJK.CP936::GetBytesCount() returns an invalid len in some cases, causing an OutOfRangeException during the actual convertion (GetBytes method). 2011-12-28 09:52:47 -02:00
Rodrigo Kumpera 771a17f90f Kill size_descr, its usage was replaced by better exploiting gc_descr. 2011-12-27 22:54:22 -02:00
Rodrigo Kumpera cc1dbfefd7 Rework object size calculation code to use the gc descriptor.
* sgen-gc.h (mono_sgen_par_object_get_size): Use gc_descr
	instead of size_descr for size calculation as it's possible
	to use it for more than 90% of the cases.

	This allows us to kill size_descr from the vtable and retain
	the majority of the speedup it brought it.
2011-12-27 22:54:21 -02:00
Rodrigo Kumpera f574f7b447 Rework gc descriptor to include size information in more cases.
* sgen-descriptor.h
	* sgen-descriptor.c: Move the vector/array distrinction to
	be a bit inside the descriptor.

	Align the object size and store it without any shifts. This
	causes no issues with remsets since the relevant code has been
	reworked.

	Try harder to encode the object size for ptrfree objects. When
	not possible use a new kind of descriptor, DESC_TYPE_COMPLEX_PTRFREE.
2011-12-27 22:54:21 -02:00
Rodrigo Kumpera 18fe139447 Bring small bitmap gc descriptor back to life.
* sgen-descriptor.h:
	* sgen-descriptor.c:
	* sgen-scan-object.h: Bring small bitmap back to life.
	It covers most cases large bitmap does and can hold size
	information.
2011-12-27 22:54:20 -02:00
Rodrigo Kumpera ccbd861481 Fix layout computation of array types.
* object.c (mono_class_compute_gc_descriptor): Properly pass
	true/false to mono_gc_make_descr_for_array if the type is
	SZARRAY or ARRAY.
2011-12-27 22:54:20 -02:00
QuickJack b9ae5e5f7e Fixes some warnings in Mono.WeBrowser.dll 2011-12-27 19:35:53 +01:00
QuickJack 2060853826 Fixes some warnings in System.Data.dll 2011-12-27 19:16:04 +01:00
QuickJack 215fca80b8 Fixes a warning in System.dll 2011-12-27 19:05:28 +01:00
QuickJack fd2ece8e63 Removes 2 warnings CS0168 2011-12-27 16:33:31 +01:00
Zoltan Varga d720d9ef0a Use MonoContext on MIPS in sgen-archdep.h. 2011-12-27 15:28:46 +01:00
Zoltan Varga 6b0032a85e Update the LLVM backend to the new LLVM EH architecture. 2011-12-26 19:24:53 +01:00
Zoltan Varga 96993f4112 Update the LLVM backend to use the new LLVM atomic instructions instead of the old atomic intrinsics. 2011-12-26 19:24:53 +01:00
Zoltan Varga 981c3590fd Upgrade to latest LLVM version. Not yet complete, EH is not working due to the extensive changes to the LLVM EH model. 2011-12-26 19:24:53 +01:00
Natthawut Kulnirundorn 9b401610dd Throws ConfigurationErrorsException in case the file specified in configSource does not exist, to match with MS.NET's behavior. 2011-12-26 23:47:19 +07:00
Miguel de Icaza 61494eafd1 Fix history navigation 2011-12-26 08:21:58 -05:00
Zoltan Varga 54d9a08bd7 Allow the placement of breakpoints in wrappers using --break. 2011-12-25 15:08:13 +01:00
Zoltan Varga 1cadb74c0c Fix localloc on MIPS. 2011-12-24 23:03:21 +01:00
Miguel de Icaza 970e3db4d8 csharp: make the prettypring work with poor IEnumerable implementors 2011-12-24 09:37:49 -05:00
Zoltan Varga 726f585964 Add support for --break to mono_jit_parse_options (). 2011-12-24 13:31:19 +01:00
Miguel de Icaza ecb51ce17c Fix move-forward-word by also considering symbols as punctuations (before we could not move-forward 'a>b') 2011-12-22 14:47:13 -05:00
Miguel de Icaza f56700caa8 update copyright 2011-12-22 14:47:13 -05:00
Zoltan Varga 4c8e4a4515 Merge pull request #204 from bholmes/native_to_managed_out_string
emit_marshal_string MARSHAL_ACTION_MANAGED_CONV out param change
2011-12-22 11:37:21 -08:00
William Holmes 9f1e7a233b emit_marshal_string: For the MARSHAL_ACTION_MANAGED_CONV_IN case check,
the param for the out attribute.  Do not call ptr to string if the
 out exists.  This avoids reading uninitialized memory.
2011-12-22 11:40:14 -05:00
Sebastien Pouliot 1adaa6fba6 Do not add the Create flag when ReadOnly is used. Fix http://stackoverflow.com/q/8602726/220643 2011-12-22 10:16:30 -05:00
Zoltan Varga a447814c90 Fix ARCH_STORE_REGS on MIPS. 2011-12-22 12:51:46 +00:00
Rodrigo Kumpera 218df8c4a8 Introduce a size descriptor in the vtable to speed up object size calculation.
* class-internals.h (MonoVTable): Add size_descr right after gc_descr to
	ensure the highest chance of both living in the same cache line.

	* object.c: Initialize size_descr when gc_descr is.

	* sgen-descriptor.c (mono_gc_compute_size_descr): Encode the size
	descriptor of a given class. The current schema is very simple and effective.
	We use a 2 bits tag and have basically 3 types: Fixed size objects, strings and
	arrays. A note on multi-dimentional or bounded arrays, given how rare they are
	it's not worth encoding the array rank in.

	* sgen-gc.h (mono_sgen_par_object_get_size): Compute the object size using
	the new size_descr field in the vtable. The reason behind this change is that
	it reduces the number of memory loads significantly. we can figure out the
	size of a fixed size object with a single, cache hot, load.

	Besides that, we avoid pointer chaising MonoClass, which reduces latency
	quite a bit since it might not be as cache hot as the VTable.

	This change cause a 3-5% speedup on a x86 nehalem synthetic benchmark.
	It should provide much higher speedups on arm since it has a much smaller
	cache and memory bandwidth.
2011-12-21 14:32:41 -02:00
Rodrigo Kumpera 30567608d1 Move the gc descriptor machinery to sgen-descriptor.(c|h). This will make it easier to experiment with different encodings. 2011-12-21 02:33:08 -02:00
Rodrigo Kumpera a5af46ff42 Intruduce sgen-conf.h with fundamental types and all configuration defines. 2011-12-21 02:33:07 -02:00
Rodrigo Kumpera edae486189 Properly align calls to mono_jit_thread_attach from wrappers. Fix pinvoke3 OSX with -O2. 2011-12-21 01:22:24 -02:00
Jeffrey Stedfast ea75e6de64 [MSBuild.Tasks] Simplified RemoveDir exception handling. 2011-12-20 17:38:17 -05:00
Rolf Bjarne Kvinge 114acd6618 Fix gdb backtraces on OSX.
We can't redirect output from gdb: since gdb will suspend us we won't
be able to read from the pipe we've redirected output to, and we'll
end up deadlocking if gdb outputs a lot of data (see bug #2548).
2011-12-20 11:21:29 +01:00
Rolf Bjarne Kvinge 89c74ab37e sgen: Don't report all pinned roots as stack roots. 2011-12-20 02:28:18 +01:00
Rodrigo Kumpera f5d9e976ce Add a missing StructLayout attribute to MonoAsync. 2011-12-19 23:08:51 -02:00
Sebastien Pouliot 5463644837 Provide total, not the number of bytes read, in DownloadData. Fix bug #2482 2011-12-19 14:11:40 -05:00
Zoltan Varga 2e0324b2ff Fix List.LastIndexOf () on empty lists. Fixes #2558. 2011-12-19 12:21:31 +01:00
Zoltan Varga 3c2917bf2d Run the sgen-bridge.exe test at the end of make check. 2011-12-17 11:23:43 +01:00
Zoltan Varga e27143eb28 Treat the 'bounds' array as int32[] in ves_icall_System_Array_CreateInstanceImpl (). 2011-12-17 11:15:32 +01:00
Zoltan Varga ef206f26af Add more options to mono_jit_parse_options (). 2011-12-17 10:43:20 +01:00
Rodrigo Kumpera 407386ddbe The small object check must do an unsigned comparison or it might fail on 64bits. 2011-12-16 19:34:34 -02:00
Zoltan Varga 59f375eb40 Add MIPS/android support to mono-sigcontext.h 2011-12-16 21:00:37 +01:00
Zoltan Varga 3744a1c148 Move mono_break_on_exc to MonoDebugOptions. 2011-12-16 19:50:22 +01:00
Zoltan Varga 9421f15bed Fix tracing on MIPS. 2011-12-16 18:32:14 +00:00
Zoltan Varga ea30873a64 Fix MONO_INIT_CONTEXT_FROM_FUNC () for MIPS. 2011-12-16 13:38:55 +00:00
Zoltan Varga 561f12da76 Merge branch 'master' of github.com:mono/mono 2011-12-16 11:43:55 +00:00
Zoltan Varga e53c5273cc Fix the ucontext handling on MIPS. 2011-12-16 11:43:40 +00:00
Marek Habersack 57f37dc396 Fix tests in the 4.5 profile 2011-12-16 11:57:03 +01:00
Csaba Halasz 4674891268 Make do_mono_image_open try file i/o if mmap fails 2011-12-15 20:25:39 +01:00
Csaba Halasz 7db21936c7 Expose the fallback mmap implementation as mono_file_(un)map_fileio so that it can be used if mmap fails at runtime 2011-12-15 20:22:17 +01:00
Csaba Halasz caad96c567 Use release_fn() instead of free() in mono_file_map since allocation is using alloc_fn() 2011-12-15 20:11:45 +01:00
Zoltan Varga 4fbc1e6c26 Remove ucontext.h include from exceptions-mips.c. 2011-12-15 19:10:16 +01:00
Martin 5291086676 Removes warning CS0219. 2011-12-14 21:12:14 +01:00
Martin 429bcc05ba removes warning CS0168. 2011-12-14 21:09:15 +01:00
Zoltan Varga e4bfd9ce25 Fix a crash in io-layer if an invalid handle is passed to CloseHandle(). 2011-12-14 20:55:35 +01:00
Zoltan Varga 844d5978d6 Enable aot+varargs on x86/arm. 2011-12-14 20:14:18 +01:00
Marek Safar ebd4e5c54f Don't reorder catch clauses in the parser 2011-12-14 16:36:48 +00:00
Zoltan Varga 88166dd0a6 Rework how wrappers are encoded in AOT, instead of doing add-hoc checks to determine the subtype of various wrappers, make the wrapper creation functions encode this information into a WrapperInfo structure in most cases. 2011-12-14 17:13:10 +01:00
Rodrigo Kumpera 5dad476e47 Explain the why's of THREAD_INFO_TYPE. 2011-12-14 13:24:14 -02:00
Rodrigo Kumpera 0b84d87b12 Handle all sorts of corner cases dealing with Type. 2011-12-14 12:13:16 -02:00
Marek Safar 14539704bc Refactor namespace using parsing to work with MD, clean up resolve code from doppelganger 2011-12-14 12:45:05 +00:00
Martin ccf786075c Fixes an ASP.NET postback problem. 2011-12-14 12:11:29 +01:00
Zoltan Varga 112cc0bb77 Only make all basic block starts interruption points in methods with clauses. 2011-12-14 09:13:39 +01:00
Zoltan Varga 884e7be838 Rework the implementation of single stepping in sdb. Instead of checking for single stepping at all seq point locations, implement single stepping using a combination of breakpoints plus checkpoints at a subset of seq points, i.e. at method entry and bb entry. 2011-12-14 09:13:39 +01:00
Zoltan Varga 82f59b8a64 Add mono_reflection_type_get_type () api function to return the MonoType* corresponding to a System.Type. 2011-12-14 09:03:30 +01:00
Rolf Bjarne Kvinge d3e516763f [System.Web.Services] Make sure we don't keep results forever when doing async requests. Fixes #2473. 2011-12-13 23:12:57 +01:00
Rolf Bjarne Kvinge 7aaffd29b0 [System.Data] Fix sorting in DataView when changing sort value/default sort several times. 2011-12-13 23:12:57 +01:00
Paolo Molaro acaa69acb7 Make __data_start a weak symbol, to allow loading modules on mips. 2011-12-13 15:47:31 +00:00
Gonzalo Paniagua Javier c89f1eb275 Fix MAC address for Mac/iOS
The position of the first byte to copy was wrong.
	Fixes bug #2012.
2011-12-13 10:24:30 -05:00
Rodrigo Kumpera f9d9fedb17 Switch to precise scanning of corlib. 2011-12-13 11:57:24 -02:00
Rodrigo Kumpera ee90ffae4c Kill some unused managed type mappings. 2011-12-13 11:57:24 -02:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Marek Safar a0ac884016 Fixes NRE when checking most specific type of default parameters. Fixes #2465 2011-12-13 10:09:12 +00:00
Marek Habersack 694ab7d847 Merge pull request #201 from QuickJack/master
http://bugzilla.xamarin.com/show_bug.cgi?id=2345
2011-12-13 00:02:08 -08:00
Marek Habersack f3c35f9e66 [asp.net] Do not duplicate assembly references passed to mcs
The code uses assembly manifest module UUID to do the matching, that way it works for all the locations the assembly may come from.
2011-12-13 08:59:11 +01:00
Zoltan Varga 3566f018d2 Convert mini-gc.c to use MonoThreadUnwindState. 2011-12-13 06:19:38 +01:00
Miguel de Icaza 833393fe63 Fix x #2191
From Federico Di Gregorio <[email protected]>, allow leading sign
2011-12-12 21:03:26 -05:00
Marek Safar 2bc9b2b359 Merge some MD mcs changes 2011-12-12 21:52:33 +00:00
Zoltan Varga 4f5152f818 Fix a warning. 2011-12-12 21:03:40 +01:00
Zoltan Varga 6e4a106741 Fix regression introduced by 7ff31bb6a5. 2011-12-12 19:53:41 +01:00
Marek Safar 507333f123 Better logic for loading unique assemblies 2011-12-12 16:54:03 +00:00
Marek Safar bf94293b55 Insert more statements into ast in error recovery mode 2011-12-12 16:54:03 +00:00
Marek Safar 61c974f144 Make internal method internal 2011-12-12 16:54:03 +00:00
Neale Ferguson 8d1d2af8bd TdsMetaParameter.cs - fixes 699643. Note as Mono.Data.TdsClient and Mono.Data.SybaseClient have both been removed from mono, support for pre 7.0 version of SQL Server isn't required so this should not break applications.
SqlTransaction.cs - Check if the connection is still active before trying to rollback during Dispose. A loss of a connection is possible which result in an exception that will lead to the closing of the session. This will result in the dispose methods being invoked and if there was an active transaction then a rollback will be attempted. However, if the connection is gone we'll end up raising further exceptions about resources already being disposed.
2011-12-12 09:51:27 -05:00
Martin 3a604b81c5 http://bugzilla.xamarin.com/show_bug.cgi?id=2345 2011-12-12 13:12:07 +01:00
Marek Safar 63604879cc Merge pull request #200 from ch5oh/master
Behaviour for most of SqlBulkCopyOptions was implemented
2011-12-12 01:27:18 -08:00
Zoltan Varga d5a2669383 Add logging for the AOT generics resolution process. 2011-12-12 08:17:12 +01:00
Zoltan Varga b2cd3c4e0c Fix warnings. 2011-12-12 08:10:32 +01:00
Oleg Petrov d42b30f679 Behaviour for most of SqlBulkCopyOptions was implemented. 2011-12-12 02:35:22 +04:00
Rodrigo Kumpera 314b635c8c Pass the paramerer name to ArgumentException constructor. 2011-12-11 19:25:31 -02:00
Rodrigo Kumpera c879b715a7 Tuple structural compare shold return false instead of throwing if comparee is of the wrong type. Fixes bxc #2455. 2011-12-11 19:20:14 -02:00
Rodrigo Kumpera bbfb134315 Add an extra heavy stats for remarked cards. 2011-12-11 17:41:28 -02:00
Rodrigo Kumpera c2d7b52917 Switch from using a staging area to hash filtering.
* sgen-pinning.c: In order to reduce duplicates, we used a
	staging area that would be uniq'd before been flushd. This
	works well but has the disadvantage of not eliminating any
	duplicate addresses between two flushes.

	Instead of that, we introduce a very simple hashtable that
	allow us to remove a lot more duplicates. The hashtable is
	as simple as it can get. We probe a single slot and always
	replace it. No chaining or extra probing.

	On some experimental workloads staging used to fill the
	pin queue with a 300% dup overhead, while with hashing it's
	down to 101%, which.

	Performance for the pinning step of nursery collections is 60%
	smaller.
2011-12-10 16:16:10 -02:00
Rodrigo Kumpera bf45f88f43 Fix some warnings 2011-12-10 16:12:06 -02:00
Rodrigo Kumpera 1283f5d5e2 Improve nursery pining performance by making sure scan starts are filled.
* sgen-gc.c (set_nursery_scan_start): Only set scan start if the
	new value is smaller than the previous one. This check is racy, but
	it's a benign one.

	* sgen-gc.c (mono_gc_try_alloc_obj_nolock): Try harder filling
	scan starts. With this change we go from a 3-20% fill rate to
	over 90% on average.

	Pinning performance increased 6x on an extreme benchmark.
2011-12-10 14:24:35 -02:00
Rodrigo Kumpera 2b9972b797 Moving pin stats gathering under G_UNLIKELY. 2011-12-10 14:24:34 -02:00
Rodrigo Kumpera 337eafb0c7 Make sure we correctly set APC flag when using new interrupt - fixes bxc #530.
* wthreads.c: Split wapi_interrupt_thread into a pair of functions.
	The first half can be done from interrupt context and the second
	once the thread has been resumed.

	* threads.c: Use new the pair of function to properly interrupt
	threads depending on io-layer APC shenanigans.
2011-12-10 14:24:34 -02:00
Marek Safar 44ebec4005 Implement some System.Net.Http.Headers parse methods 2011-12-09 17:05:32 +00:00
Jeffrey Stedfast 8619c0ad2c [GetTimeZoneData icall] Fixed logic for zones where there is only a start date
Thanks to Kirill for this patch.

Bug #2223.
2011-12-09 11:55:07 -05:00
Zoltan Varga cdee173927 Add missing file. 2011-12-09 10:44:30 +01:00
Zoltan Varga 7ff31bb6a5 Fix various AOT limitations uncovered by the mcs test suite. 2011-12-09 10:15:37 +01:00
Zoltan Varga 08dd5eca12 Use find_prev_seq_point () for finding the IL offset for the top frame, mono_debug_il_offset_from_address () doesn't seem to be precise enough. Fixes #2092. 2011-12-09 05:22:35 +01:00
Rodrigo Kumpera 1c0afdb894 On mach, thread_abort_safely can't break sockets syscalls. Switch to thread_abort. Fixes bxc #530. 2011-12-08 17:45:02 -02:00
Zoltan Varga c33f02df6e Merge branch 'master' of github.com:mono/mono 2011-12-08 16:42:27 +00:00
Zoltan Varga ed4015e63c Remove some unused MIPS defines. 2011-12-08 16:41:36 +00:00
Marek Safar e38ecdd52d Build fix 2011-12-08 09:38:21 +00:00
Paolo Molaro f81d76cd89 Do the multiplication/division with floating point numbers in time calculations on win32. 2011-12-08 09:58:30 +01:00
Marek Safar c7e4fd05e7 Add missing file 2011-12-08 08:40:29 +00:00
Rodrigo Kumpera 87889d71bc Add test for sgen-bridge. 2011-12-07 21:13:15 -02:00
Rodrigo Kumpera e6c6682c3a Properly handle domain unloading when sgen-bridge is in use. 2011-12-07 21:13:15 -02:00
Rodrigo Kumpera c1459b1a40 new MONO_GC_PARAMS option bridge. It's internal used only for testing. 2011-12-07 21:13:14 -02:00
Rodrigo Kumpera d8833bc777 Fix severe breakage of sgen bridge code. 2nd and 3rd step where not been called anymore. 2011-12-07 21:13:14 -02:00
Rodrigo Kumpera 79bd39c587 Fix hashtable iteration code to properly work with continue statements. 2011-12-07 21:13:14 -02:00
Marek Safar 3d3fa02079 Implements more System.Net.Http.Headers 2011-12-07 18:34:27 +00:00
Marek Safar 2def7fd9e8 More API updates 2011-12-07 18:34:27 +00:00
Marek Safar ae11667cff WebHeaderCollection fixes 2011-12-07 18:34:27 +00:00
Marek Safar 3462f4b981 Remove NET_2_0 2011-12-07 18:34:26 +00:00
Marek Safar 099d9e7fcc Add some 4.5 api 2011-12-07 18:34:26 +00:00
Marek Safar 11104b4ec8 Fix failing tests on .net 2011-12-07 18:34:26 +00:00
Marek Safar 1624a94ba1 Remove NET_2_0 2011-12-07 18:34:25 +00:00
Rodrigo Kumpera 3fb5e02a64 Fix parameter name in the exception constructor. 2011-12-07 15:19:37 -02:00
Rodrigo Kumpera 94621f4b8f Avoid an assert in bridge code when doing a major collection due to minor overflow. Fixes bxc #2349 and bxc #2091.
* sgen-bridge.c:
	* sgen-gc.c: After we split bridge processing in two, one step with world stopped and
	another with world running, we introduced the following regression:

	A minor collection starts and find an young bridge object ready to be processed.
	Major heap overflows and a major GC is triggered. The object mentioned above will
	remain collectible and will be queued for processing again.
	Since we do the first step in finish_gray_stack, it will be done twice in the above
	scenario. This will cause an assertion due to duplicate entries in the hashtable.

	The solution is to split the step that is performed with world stopped into another two.
	One that happens during collections, that can be done multiple times per duty cycle and
	another one that is done only once before we restart the world.

	This split has the minor advantage of reducing duplicated work for the dfs1 step. Nothing big
	as this is one of the fastest steps.
2011-12-07 15:15:21 -02:00
Rodrigo Kumpera 13a345bf98 Remove some dead code 2011-12-07 15:15:21 -02:00
Ankit Jain ff2b468cab Merge pull request #199 from slide/master
[xbuild] Add 'OverrideReadOnlyFiles' property to Copy task. bug#2239

Also, fixed bug #2239 where the copy task does not
behave the same as msbuild when a file being copied is
ReadOnly. msbuild resets the attributes of the file to
Normal.
2011-12-07 06:05:41 -08:00
Paolo Molaro ccc2a25844 Fix overflow in the win32 monotonic time (xambug #183). 2011-12-07 15:02:20 +01:00
Zoltan Varga 5c732a27f9 Add missing file to fix the build. 2011-12-07 14:33:21 +01:00
Zoltan Varga 5f5fa3af03 Add GetInterfaces () and GetInterfaceMap () methods to TypeMirror to help fix #1841. 2011-12-07 05:55:17 +01:00
Zoltan Varga d7e18a7618 Fix argument checking order in GetInterfaceMap (). 2011-12-07 04:31:58 +01:00
Zoltan Varga 410a200ecd Document MONO_SDB_ENV_OPTIONS. 2011-12-07 04:18:33 +01:00
Zoltan Varga 47d11d9a31 Add a MONO_SDB_ENV_OPTIONS env variable to allow passing extra options like loglevel to sdb. 2011-12-07 04:09:44 +01:00
Gonzalo Paniagua Javier 880bea0e62 Merge pull request #194 from QuickJack/master
Fixes two problems in WebClient/ WebRequest
2011-12-06 17:25:06 -08:00
Slide f2c44f81a3 [xbuild] Add 'OverrideReadOnlyFiles' property to Copy task.
Also, fixed Bugzilla 2239 where the copy task does not
behave the same as msbuild when a file being copied is
ReadOnly. msbuild resets the attributes of the file to
Normal in this case.
2011-12-06 10:00:38 -07:00
Zoltan Varga 4e422a7b35 Merge branch 'master' of github.com:mono/mono 2011-12-06 11:12:02 +00:00
Zoltan Varga 9595076571 Implement generic sharing on MIPS. 2011-12-06 11:11:47 +00:00
Paolo Molaro 8a5e775f05 Fixed path for ilasm. 2011-12-06 07:09:50 +00:00
Zoltan Varga 866925ecf4 Fix the build on platforms without generic sharing. 2011-12-05 16:54:57 +01:00
Paolo Molaro 5003aa7623 Avoid assert and crash when allocating smaller large objects in sgen. 2011-12-05 15:44:51 +01:00
Paolo Molaro 5c8bb7eca1 Fixed crash in sgen when a large array can't be allocated. 2011-12-05 15:27:28 +01:00
Marek Safar 5d59d429ce Update to the latest IKVM.Reflection 2011-12-05 12:17:48 +00:00
Zoltan Varga 0cd02959da Get rid of MONO_ARCH_HAVE_STATIC_RGCTX_TRAMPOLINE, use MONO_ARCH_GSHARED_SUPPORTED instead. Set MONO_ARCH_RGCTX_REG to MONO_ARCH_IMT_REG on most platforms. Fix MONO_ARCH_VTABLE_REG on MIPS. 2011-12-05 10:58:05 +01:00
Zoltan Varga 1f9717fd36 Fix infinite recursion introduced by the previous patch. 2011-12-05 06:00:48 +01:00
Zoltan Varga 9de90968f7 AOT the cctor of generic classes which are referenced by SFLDA patches and superclasses of generic instances. Fixes #2155 2011-12-05 05:52:42 +01:00
Zoltan Varga c33014c087 Disable some unstable Task tests. 2011-12-05 04:16:03 +01:00
Marek Safar b95d36c2d3 Merge pull request #197 from ch5oh/master
Comments for SqlBulkCopyOptions enum describes expected behaviour
2011-12-04 02:03:41 -08:00
Oleg Petrov 16fa1a19a2 Comments for SqlBulkCopyOptions enum describes expected behaviour 2011-12-04 13:12:56 +04:00
Zoltan Varga b7dbba9bbf Implement frame pointer elimination on MIPS. 2011-12-04 04:49:26 +00:00
Zoltan Varga 94c36ea8d3 Only save a subset of registers in the LMF on MIPS. 2011-12-04 04:49:23 +00:00
Zoltan Varga 3b069656f5 Finish sdb support on MIPS. Fix resume_context () to restore all registers. Fix UCONTEXT_ definitions. 2011-12-04 04:49:22 +00:00
Marek Safar 73080cffe9 Merge pull request #196 from ch5oh/master
Argument checks and 2 new ctor tests for SqlBulkCopy class
2011-12-03 05:09:18 -08:00
Oleg Petrov 5e1bf9d63b Initial tests (for constructors) of SqlBulkCopy class 2011-12-03 16:18:01 +04:00
Oleg Petrov 865b9ea2c9 2 new tests for ctors 2011-12-03 16:17:58 +04:00
Oleg Petrov 7ab21da462 Not null checks for ctors 2011-12-03 16:17:08 +04:00
Zoltan Varga de60ac57fb Fix the build. 2011-12-03 01:12:23 +01:00
Miguel de Icaza ee8ad64dc5 Include System.IO.MemoryMappedFiles in the MOBILE profile 2011-12-02 13:15:37 -05:00
Jb Evain 46d3a923f4 Test for assignability of arrays to generic interfaces. Fixes #2304. 2011-12-02 16:45:21 +01:00
Jb Evain 5ea447210d Add test for bug #2304 2011-12-02 16:45:20 +01:00
Marek Safar 27677408c5 New test 2011-12-02 15:40:59 +00:00
Marek Safar d614d33ab8 Implement some System.Net.Http.Headers 2011-12-02 15:40:58 +00:00
Martin 6e9b58656b Removes warning CS0219 in line 1647 2011-12-02 14:43:46 +01:00
Martin 1861a10177 Code formatting fixes. 2011-12-02 14:28:14 +01:00
Zoltan Varga d37c137425 Ongoing MIPS work. Fix varargs, implement delegate trampolines, fix OP_FCALL_MEMBASE. All tests in mini/ and tests/ run now. 2011-12-02 10:19:24 +00:00
Zoltan Varga bd556d13f8 Ongoing MIPS work. Fix mips_load () to be patchable, fix endianness issue in OP_MIPS_MFC1D, fix OP_JMP. make rcheck runs now. 2011-12-02 10:19:21 +00:00
Zoltan Varga 69eed87c79 Change calling convention info on MIPS to use the same terminology as on other platforms. 2011-12-02 10:19:19 +00:00
Zoltan Varga 82951af3b7 Add configure checks for arm hardfp abi, not supported yet. 2011-12-02 03:49:51 +01:00
Zoltan Varga c9a98998c7 Implement mono_arch_setup_resume_sighandler_ctx () on arm to fix sdb+thumb. 2011-12-02 03:14:00 +01:00
Zoltan Varga f42ba4a168 Add a Length property and a GetChars () method to StringMirror. Fixes #2301. 2011-12-02 01:22:25 +01:00
Neale Ferguson 8c325195eb Add change to mono_arch_skip_breakpoint as for other archs 2011-12-01 11:38:56 -05:00
Paolo Molaro 45b28d0324 Initial sgen mips port. 2011-12-01 08:58:08 +00:00
Marek Safar 08bf9c5cd4 Merge pull request #193 from ch5oh/master
Ctor tests for SqlBulkCopy class
2011-12-01 00:42:22 -08:00
Zoltan Varga 4de2d3d283 Implement sdb+aot support for amd64 for completeness. 2011-12-01 02:38:46 +01:00
Zoltan Varga 102c31cad5 Fix an sdb test which got broken by 68005a01a3. 2011-12-01 02:36:48 +01:00
Zoltan Varga a9ba00e72e Emit line number table in the sdb debug log. 2011-12-01 02:22:14 +01:00
Oleg Petrov 729ddf6270 These tests show difference between original .NET behaviour and current Mono implementation 2011-12-01 03:40:16 +04:00
Zoltan Varga 7313ec3231 Fix some gshared+aot problems in sdb. Fixes the crash in #664. 2011-11-30 23:08:58 +01:00
Marek Safar a1d0f2206f Add tests for InternalArray::GetIndex 2011-11-30 14:17:01 +00:00
Marek Safar 349c351876 Initial System.Net.Http.Headers implementation 2011-11-30 13:48:16 +00:00
Marek Safar 69b05e2137 Fix Array::Contains for null items via ICollection<T>. Fixes #2260 2011-11-30 13:48:16 +00:00
Sebastien Pouliot e37850a605 Ensure that [Parameterized]ThreadStart code is always wrapped in a NSAutoreleasePool for MonoTouch. Fix bug #1999 2011-11-29 19:54:44 -05:00
Jeffrey Stedfast 97d4af970d [monodoc] Removed debug spew 2011-11-29 16:11:10 -05:00
Paolo Molaro 39e7b5b5a6 Win32 compilation fixes for sgen. 2011-11-29 16:54:34 +01:00
Martin 485b40e9a2 WebRequest.GetSystemWebProxy() throws a NullReferenceException in case the proxy bypass list is empty or has not been configured for the system. This is true when running MonoDevelop 2.8.2 in Linux to debug an ASP.NET application. In this case, the debugger does not have access to the no_proxy environment variable. As a result, WebClient cannot be used in such an environment. 2011-11-29 14:06:19 +01:00
Martin 7cab44e7fa Commit 6a9937d216 is not correct. WebClient.Proxy should return WebRequest.DefaultProxy if WebClient.Proxy has NOT been set before. 2011-11-29 13:44:54 +01:00
Zoltan Varga f4d8ae185b Disable an assert in mini-gc.c which can be hit. Fixes #2211. 2011-11-28 19:23:54 +01:00
Tom Hindle b67c792ec3 Fix bug #395 (part 2) 2011-11-28 10:52:29 -07:00
Tom Hindle b8fb0fe96f Fix bug #395 2011-11-28 10:49:29 -07:00
Marek Safar c966fd8a42 Add debug parser target 2011-11-28 13:27:47 +00:00
Zoltan Varga 7f50b468c9 Use dwarf unwind info on MIPS. 2011-11-28 03:51:40 +00:00
Zoltan Varga 0beaf031ce Ongoing MIPS work. Fix more endianness issues. Fix order fp compares. 2011-11-27 01:17:51 +00:00
Zoltan Varga aa2d406c5e Fix warnings on MIPS. 2011-11-26 23:19:32 +00:00
Zoltan Varga 24e06ce4f4 Initial soft debugger support for MIPS. 2011-11-26 23:52:45 +01:00
Zoltan Varga 8ec47bdad1 Add a heuristic to insert_breakpoint () to avoid 'Unable to insert breakpoint' errors in some cases, since the set of IL offsets in the debug info doesn't completely match what the JIT generates. Fixes #407. 2011-11-26 18:08:19 +01:00
Zoltan Varga 7a83f83802 Save the stack space used by arguments into MonoJitInfo to avoid calling mono_arch_get_arg_info () during stack walking, since it is not signal safe. Fixes #2190. 2011-11-26 18:08:19 +01:00
Jeremie Laval 0a8a43d90a Add C# errors to search index so that it can be accessed by search tools (like webdoc's fastsearch) 2011-11-26 15:30:45 +01:00
Thomas Goldstein 6664806598 Unit test for bug #821. 2011-11-26 01:26:27 +01:00
Thomas Goldstein a1bf1b7be6 Ensure DataGridViewRowCollection.Insert() doesn't change element type. Fixes bug #821. 2011-11-26 01:17:02 +01:00
Marek Safar d1aa8cb78a Fix type inference for nested non-generic delegates inside generic classes 2011-11-25 20:10:33 +00:00
Marek Safar f795916280 Update expresion visitor based on MD changes 2011-11-25 20:10:32 +00:00
Rodrigo Kumpera 121776defb Fix error message. 2011-11-25 10:03:50 -02:00
Rodrigo Kumpera 355f3ff9dc Improve error reporting on test failure. 2011-11-24 21:03:13 -02:00
Rodrigo Kumpera 9bf28d2447 Make INodeVisitor methods nonvirtual by augmenting nodes with interfaces. 2011-11-24 21:03:12 -02:00
Zoltan Varga 543f0be59a Add an assert () to thread_suspend_func (). 2011-11-24 23:32:51 +01:00
Marek Safar dcd01aad7b Implementations of Uri.Equals must not throw exceptions. Fixes #2023 2011-11-24 13:21:06 +00:00
Marek Safar 7764369a0f Fix 4.5 framework path used by xbuild 2011-11-24 12:59:26 +00:00
Marek Safar a04edc9de8 Clone input collection for ObservableCollection<T>. Fixes #2169 2011-11-24 12:56:50 +00:00
Marek Safar c99040b072 Add System.Collections.ObjectModel tests 2011-11-24 12:27:10 +00:00
Miguel de Icaza 88e2387665 Extend JsonSerializerReader to support nullables and parse a wider range of Date formats, fixes x#163 2011-11-24 01:29:27 -05:00
Zoltan Varga e731bbd461 Fix some endianess problems on mips. 2011-11-24 05:26:27 +00:00
Miguel de Icaza fe4afe4a07 Updated with Xamarin copyrights 2011-11-23 22:47:12 -05:00
Miguel de Icaza cd4603bd94 Updated with Xamarin copyrights 2011-11-23 22:46:04 -05:00
Miguel de Icaza dbbb4c0f74 Updated with Xamarin copyrights 2011-11-23 22:44:58 -05:00
Miguel de Icaza 083d1cfe2c Updated with Xamarin copyrights 2011-11-23 22:43:03 -05:00
Zoltan Varga da776203a9 Always free _WapiFileShare entries using _wapi_free_share_info (), otherwise zeroed out entries remain in the hash table when shared handles are disabled. Fixes #2170. 2011-11-24 02:33:32 +01:00
Rodrigo Kumpera c1852dfe57 Correctly calculate the number of cards to be marked.
* sgen-cardtable.c (sgen_card_table_mark_range): The number of
	pages to be marked must be correctly calculated to avoid the case
	when the in-card offset of the start address is bigger than
	of the end address and cause the last card to be skipped.

	Fixes #1917
2011-11-23 20:53:43 -02:00
Rodrigo Kumpera 1e47c8e933 Speedup get_execution_context_addr.
* threads.c (get_execution_context_addr): This function is called
	by the threadpool machinery and a contention hotspot. So we
	cache the thread local offset per domain.
2011-11-23 20:25:47 -02:00
Rodrigo Kumpera 35945cc4d9 Fix a theoretical deadlock found by valgrind. It was never reported. 2011-11-23 20:25:45 -02:00
Pablo Ruiz Garcia 83d56a4960 An enhanced fix for GB18030's GC problem, by allocating the underlaying table buffer from Marshal.AllocHGlobal, as the previous solution would fail if GC moves the memory pointed to by the static field.. 2011-11-23 20:25:45 -02:00
Pablo Ruiz Garcia 209a3e2d99 Avoid internal character table used by gb18030 (on ms.net) from being collected by GC. 2011-11-23 20:25:44 -02:00
Pablo Ruiz Garcia 2ae5839a82 Fixes #683475: - Fixed ISO2022JPEncoder's GetBytesCount(..) to avoid it from returning invalid calculations leading to buffer overflows during GetBytes(..). - Fixed MonoEncoding::HandleFallback(..) off-by-one error when handling double-byte replacements. - Fixed ISO2022JPEncoder::GetBytes(..) invalid translation of some full width characters (U+FF60 ~ U+FF0A) when using halfwide kana mapping. - Fixed ISO2022JPEncoder::GetBytes(..) invalid translation of IDEOGRAPHIC SPACE (U+3000) character. - Refactor of MonoEncoding::HandleFallback(..) to correctly support replacement of inv. characters by statefull encoders/encodings (like ISO-2022-JP).
NOTE: This fixes were found by creating alternative safe-only implementations of the actual CJK encoders. Such implementations are disabled by default for performance reasons, but can be enabled if needed by using the conditional compiling flag DISABLE_UNSAFE.
2011-11-23 20:25:43 -02:00
Marek Safar a8be336174 Print errors comming from lambda expressions before error mode execution. Fixes #2083 2011-11-23 18:25:28 +00:00
Marek Safar 7b78cf9417 Try to initialize for statement from incomplete statements 2011-11-23 16:08:34 +00:00
Marek Safar 81bd4cf94b Add instance qualifier check to overload resolver. Fixes #2160 2011-11-23 14:09:07 +00:00
Zoltan Varga 159eee26b8 Fix a crash introduced by 64d35e3940. Fixes #2150. 2011-11-22 22:56:58 +01:00
Rodrigo Kumpera d05602e388 Scan all ephemeron arrays during nursery collections.
* sgen-gc.c (mark_ephemerons_in_range): All ephemeron arrays
	must be scanned during a nursery collection since we ignore
	them during remset processing for a good reason.

	In the future we should use cardtable information to avoid
	scanning the whole thing.

	Fixes bxc #1175.
2011-11-22 17:22:46 -02:00
Jonathan Pryor 084803d789 [mdoc-update] Filename comparison should be OrdinalIgnoreCase.
Consider the intermix of a case-sensitive language (C#) and a
case-insensitive filesystem (OSX, Windows):

	namespace A {
		public class Foo {}
	}
	namespace a {
		public class Bar {}
	}

On a case-sensitive filesystem, this will generate the structure:

	en/A/Foo.xml
	en/a/Bar.xml

On a case-insensitive filesystem, we instead get:

	en/A/Foo.xml
	en/A/Bar.xml

The problem with this is that CleanupFiles() uses filenames to index
into the `goodfiles` HashSet<string>`, and the filenames will contain
e.g. "en/A/Bar.xml" for a.Bar, which won't exist in the HashSet, so it
thus thinks the type doesn't exist and removes the file.

This is obviously bad, but the fix is trivial: `goodfiles` should use
an OrdinalIgnoreCase string comparison, as this is what the filesystem
will be using on OS X and Windows.
2011-11-22 12:25:58 -05:00
Marek Safar f3fd92db8d Explictly type SLE member binding type 2011-11-22 16:43:50 +00:00
Paolo Molaro 8397d2885e Fixed StringBuilder.Clear() to properly clear the cached string. 2011-11-22 12:04:05 +01:00
Zoltan Varga 7909b03b3f Fix the build by including net_2_0 in MONO_PATH when running mdoc. 2011-11-22 04:56:51 +01:00
Jonathan Pryor c93b50312a [MonoDroid] Only alias stdout/stderr on Android devices.
Mono for Android uses Mono 2.10 + smcs to build code, which thus uses
an smcs built against the Mono for Android profile assemblies, which
would thus be built with MONODROID defined. Thus (understandably) dies
at runtime with a DllNotFoundException, as liblog.so can't be found.

Fix smcs.
2011-11-21 18:41:46 -05:00
Neale Ferguson f07dea5d00 Implement serialization 2011-11-21 16:32:14 -05:00
Jonathan Pryor f2f9d7933b [MonoDroid] Fix the libmono build.
7e49d08a nee 2763aae9c doesn't build because <fcntl.h> is missing:

	mono/utils/mono-proclib.c:517: error: 'O_RDONLY' undeclared (first use in this function

Fix the build.
2011-11-21 12:55:13 -05:00
Jonathan Pryor 02dd786936 [corlib] On Android, alias stdout/stderr to logcat.
In Mono for Android, stdout and stderr (file descriptors 1 and 2) are
only visible when debugging within MonoDevelop and/or Visual Studio,
which is rather annoying.

This was changed in Mono for Android 1.9.2, by using Console.SetOut()
and Console.SetError() to send stdout/stderr message to both
stdout/stderr and to the Android Debug Log (`adb logcat`), allowing
e.g. Console.WriteLine() output to be viewed outside of a debugger.

Problem: in order to capture user-generated messages at their earliest
point, Console.SetOut()/etc. must be called at the earliest point in
Mono for Android initialization, even if Console.WriteLine() is never
used. Worse, this adds ~180ms of startup overhead on a Nexus One.

The fix here is to move the std*/logcat duplication logic into
mscorlib.dll, so that we can configure things within the
System.Console static constructor. This moves the initialization
penalty onto users of System.Console (instead of all users).
2011-11-21 09:15:02 -05:00
Zoltan Varga bb03080a49 Flush the output file in mono_counters_dump (). 2011-11-20 15:00:45 +01:00
Zoltan Varga 64d35e3940 Free debug info for dynamic methods by storing it in malloc-ed memory instead of the normal debugger tables. Fixes #731579. 2011-11-20 14:09:56 +01:00
Zoltan Varga 6177d7a61e Add back an #ifdef removed by 440d85fdba. 2011-11-20 13:51:54 +01:00
Miguel de Icaza ca55025945 Fix the Stderr StreamWriter
This fixes the initialization of the Stderr property when used in a Console
(no redirected output) to use the CStreamWriter class instead of the
UnexpectionalStreamWriter class.

The CStreamWriter class already ignores IOException problems, just like the
UnexpectionalStreamWriter class, so there is no need to wrap this twice.

Before this fix, interleaved writes to stdout and stderr would keep the
Cursor properties out of sync, as the Stderr output would go directly to the
console, skipping our internal state tracking.

The following sample used to print 0:

Console.CursorTop = 0;
Console.Error.WriteLine ("Boo!");
Console.WriteLine (Console.CursorTop)

Now it prints 1.
2011-11-19 20:45:54 -05:00
Marek Safar 0308f4600a Implement SLE recursive initialization of members of a field or property. Fixes #2082. 2011-11-18 19:46:44 +00:00
Zoltan Varga e05ad6585b Add an 'fd' field to WapiHandle_file, to make it easier to break the fd==handle dependency in the future. 2011-11-17 13:30:40 -05:00
Zoltan Varga e9dc99ada0 Add an explicit initialization function to io-layer, and use it to avoid calling shared_init () from a lot of places on demand. 2011-11-17 05:45:06 -05:00
Zoltan Varga 28bab26328 Remove unused io layer daemon files. 2011-11-17 04:57:53 -05:00
Zoltan Varga 440d85fdba Rework io-layer logging to use a single DEBUG macro instead of #ifdef DEBUG. 2011-11-17 04:53:17 -05:00
Zoltan Varga 3e0d82fcb1 Add a 'tests' target to precompile the tests in mono/tests. 2011-11-17 04:50:33 -05:00
Zoltan Varga 68005a01a3 Add a allow_ctors argument to mono_class_get_methods_by_name (), so sdb can find ctor methods. Fixes #1873. 2011-11-17 02:49:59 -05:00
Jérémie Laval 06af78a76a Fix previous commit 2011-11-16 13:20:28 -05:00
Jérémie Laval de3addcde5 [MonoDroid] Query hardware CPU count for Environment.ProcessorCount 2011-11-16 11:19:25 -05:00
Marek Safar 07eff27570 Don't release temporrary instance variable prematurely. Fixes #2011 2011-11-16 14:18:15 +00:00
Rodrigo Kumpera d47f21331e Add JIT counters to the local set of counters we support. 2011-11-15 21:40:16 -02:00
Zoltan Varga 7ee81e87d3 Revert "Add support for hardfp abi on ARM."
This reverts commit e7055b45b9.
2011-11-16 04:35:31 -05:00
Marek Safar 84ae2479d9 Initial System.Net.Http commit 2011-11-11 19:03:33 +00:00
Marek Safar 0b9bd61dc4 Fix few warnings 2011-11-11 19:03:33 +00:00
Alan McGovern b6e957bde3 [io-layer] Use lstat as a fallback for stat in SetFileAttributes
Make SetFileAttributes consistent with GetFileAttributes - if
stat fails and ENOENT try to use lstat in case it's a dangling
symlink.
2011-11-11 16:55:20 +00:00
Rodrigo Kumpera fd18abfbbc Precise scanning crashes on OSX while compiling corlib. Disabling for now. 2011-11-10 16:08:21 -02:00
Rodrigo Kumpera e0c0eed9a1 Mark a tinny function inline. 2011-11-10 09:30:39 -02:00
Miguel de Icaza 6a39c962af Add locking around the ServiceModel.Logger, fixes a race reported on the mono-devel list 2011-11-09 23:12:51 -05:00
Rodrigo Kumpera fe566bb9ec Minor cleanup of sgen allocation code. 2011-11-09 14:58:13 -02:00
Rodrigo Kumpera 141ba94804 Implement lightweight nursery verification. 2011-11-09 14:58:13 -02:00
Rodrigo Kumpera e3bcd2da73 Cosmetic changes to the nursery allocator. Avoid a CAS & zero memset when possible. 2011-11-09 14:58:12 -02:00
Miguel de Icaza 38edc367c4 Update two days worth of copyrights, many more missing 2011-11-09 10:25:48 -05:00
Zoltan Varga 2b02cf9cac Fix warnings on ARM. 2011-11-09 02:18:00 +01:00
Zoltan Varga 1f57742081 Fix a bug introduced by 3547782185 which killed sgen performance on HEAD. 2011-11-09 02:18:00 +01:00
Zoltan Varga 99cdb7a4d5 Merge branch 'master' of github.com:mono/mono 2011-11-09 02:12:12 +01:00
Zoltan Varga e7055b45b9 Add support for hardfp abi on ARM. 2011-11-09 01:57:12 +01:00
Rolf Bjarne Kvinge 7570720826 Log profiler: fix comment typo 2011-11-09 00:16:06 +01:00
Sebastien Pouliot 8e94a7c129 fix typo in monotouch build 2011-11-08 15:56:19 -05:00
Zoltan Varga 6507c19719 Install the net 4.0 profile for xbuild. 2011-11-08 21:40:10 +01:00
Neale Ferguson 2530f7dccb Merge branch 'master' of ssh://github.com/mono/mono 2011-11-08 14:50:34 -05:00
Neale Ferguson 57c99c9840 Fixes bug 1916 - incorrect appending of string to buffer when remaining buffer size is less than string size. 2011-11-08 14:48:03 -05:00
Marek Safar 0dcaf11de5 Add optimization for Timeout.Infinite 2011-11-08 19:16:42 +00:00
Zoltan Varga bbe67f2123 Fix profiler build if boehm is disabled. 2011-11-08 17:45:40 +01:00
Sebastien Pouliot aa155736de Workaround AOT limitation for bug #1443. Patch by Rodrigo Kumpera 2011-11-08 07:56:40 -05:00
Sebastien Pouliot 43bf08bca3 MonoTouch specific initialization for TimeZone (devices). Fix bug #1790 2011-11-08 07:56:40 -05:00
Sebastien Pouliot 67d6dcdc54 fix compilation under NET_2_0 2011-11-07 21:13:19 -05:00
Marek Safar bd98012400 Fix subtle issues with CancellationTokenSource and implement 4.5 methods 2011-11-07 17:18:26 +00:00
Marek Safar 6de309a215 Output type inference can be run on default parameters. Fixes #1892 2011-11-07 17:18:26 +00:00
Marek Safar 8f96710cca Fix type parameter effective base class lookup for mixed constraints. Fixes #1905 2011-11-07 17:18:25 +00:00
Zoltan Varga c38aedf253 Enable precise stack marking by default so it gets more testing. 2011-11-07 02:13:51 +01:00
Zoltan Varga 4687f79262 Disable a test which depended on COMPILER_ACCESS. 2011-11-07 02:13:31 +01:00
Zoltan Varga dc11292a9c Remove a needless define. 2011-11-06 19:56:40 +01:00
Zoltan Varga ef80033868 Make mono_arch_sigctx_to_monoctx and vice versa use the code in mono-context.h on amd64.c 2011-11-06 19:55:22 +01:00
Zoltan Varga 929b66f583 Get rid of IsCompilerContext, mcs no longer uses SRE. 2011-11-06 19:36:36 +01:00
Zoltan Varga bd7484b557 Fix ARM cross compiling support. 2011-11-06 19:03:36 +01:00
Zoltan Varga d156b8d4c6 Make --enable-mcs-build=no the default when building the AOT cross compiler. 2011-11-06 19:01:20 +01:00
Zoltan Varga e3a440a492 Make mono_arch_sigctx_to_monoctx and vice versa use the code in mono-context.h. 2011-11-06 18:48:31 +01:00
Zoltan Varga a916b013c7 Get rid of MonoContext->sp on ARM, its already stored inside MonoContext->regs. 2011-11-06 18:36:12 +01:00
Zoltan Varga eb91cbf8a7 Clean up the arm MonoContext structure: use arm register names, mgreg_t, fix cross compilation. 2011-11-06 18:24:36 +01:00
Zoltan Varga 6948dff713 Fix a warning. 2011-11-06 17:31:10 +01:00
alexrp 6a56dfd449 Don't allow invoking methods that return by-ref types via reflection. 2011-11-06 16:48:51 +01:00
Gonzalo Paniagua Javier 6e71307ff3 Merge pull request #188 from damageboy/exposed-handle-compat
Matched FileStream behaviour with MS.NET
2011-11-05 18:09:01 -07:00
Zoltan Varga 2500f95e79 Reduce the size of AOT seq points on ARM after the get_ip_for_breakpoint () changes. 2011-11-05 20:08:25 +01:00
Dan Shechter d8b7dfbffb Matched FileStream behaviour with MS.NET 2011-11-05 20:57:32 +02:00
Rodrigo Kumpera 7b3c9bed98 Fix marshaling of Win32_IN6_ADDR. 2011-11-05 13:00:09 -02:00
Robert Jordan 4e87eb1631 [Web] Fix obvious typo in DELETE FROM WHERE statement. 2011-11-05 14:41:08 +01:00
Jeremie Laval 95bcf69094 Remove debug spew 2011-11-05 13:38:41 +01:00
Jeremie Laval a3aa437bb7 Update Lucene to latest Apache version. Make use of the new features in Monodoc searching API. 2011-11-05 13:27:43 +01:00
Zoltan Varga d9c3e861fd Omit 'Tests not run' from nunit output, its rarely used and too verbose. 2011-11-05 00:29:36 +01:00
Zoltan Varga f1f8040250 Define MONO_PATH as an absolute dir for the 'run-test-vts' corlib target, since it is executed from a subdir. 2011-11-05 00:28:52 +01:00
Zoltan Varga b867b4e2c8 Add a 'captured_traces' field to Exception, holding the state captured by ExceptionDispatchInfo. Use this when creating stack traces. Fixes #1857. Bump corlib version because of the layout changes. 2011-11-05 00:14:40 +01:00
Zoltan Varga 2be9db7bb2 Ignore ExceptionDispatchInfoTest:Throw() until it is fixed (#1857). 2011-11-04 19:39:27 +01:00
Zoltan Varga 80ca34eb35 Fix another bug in mono_profiler_load (). 2011-11-04 18:54:11 +01:00
Zoltan Varga b0254ba0ef Throw a nicer error from Process.set_PriorityClass is the process has exited. Fixes #1692. 2011-11-04 18:54:10 +01:00
Sebastien Pouliot 1de44f3165 OSX and iOS does not support CLOCK_MONOTONIC so we use mach_timebase_info instead. Fix bug #1366 2011-11-04 13:15:35 -04:00
Zoltan Varga 123a87c293 Avoid adding a ref in OpenProcess (), it is already added in _wapi_search_handle (). Fixes #1682. 2011-11-04 18:15:10 +01:00
Zoltan Varga 8a3b578bca Fix a crash if a profiler is not found. Fixes #1855. 2011-11-04 16:52:27 +01:00
Marek Safar 874301f506 Don't define eval variable when type could not be resolved 2011-11-04 13:10:19 +00:00
Marek Safar 8d0f0e5d1e The type of an implicitly typed array cannot be inferred from 2 nulls either. Fixes #1848. 2011-11-04 13:10:19 +00:00
Marek Safar 1b25865bfb Fix sbyte/short parse of hexadecimal values. Fixes #981 2011-11-04 13:10:18 +00:00
Marek Safar d09a48d83f Don't cache namespace usings in eval mode 2011-11-04 13:10:18 +00:00
Marek Safar 6fa69fe008 Don't ignore Inherited flag in Attribute.IsDefined. Fixes #181 2011-11-04 13:10:18 +00:00
Marek Safar 0db188bfbb Fix LazyInitializer 2011-11-04 13:10:18 +00:00
Jeremie Laval 51f51a430f Add RwWrite flag to status check when already owning upgradeable lock. Fix #802. 2011-11-04 01:15:29 +01:00
Zoltan Varga 345873e711 Fix some warnings. 2011-11-03 18:49:58 +01:00
Zoltan Varga cb013aede5 Fix a crash which happens when an inlined method ends with a throw inside a branch, i.e. the return value is not on one branch, and not on the other. Fixes #1835. 2011-11-03 18:49:58 +01:00
alexrp 52f0d1c22d cs-tokenizer: Remove old/inaccurate FIXME. 2011-11-03 18:49:28 +01:00
Ankit Jain bd00987862 [xbuild] Pick the correct base path for target frameworks.
Don't depend on Environment.GacPath to figure out the framework
base path ("..../xbuild-frameworks"). This broke on fedora, where
it mapped to $prefix/lib/mono instead of $prefix/lib64/mono .
Which caused framework assemblies to be picked from "lib" instead
of "lib64".
2011-11-03 22:19:11 +05:30
Marek Safar 1883b2a41d Imporove ExceptionDispatchInfo unit test 2011-11-03 15:19:41 +00:00
Marek Safar 511482a2ec Partially implement ExceptionDispatchInfo 2011-11-03 15:14:18 +00:00
Marek Safar 062531744b Fix previous commit 2011-11-03 15:14:18 +00:00
Rodrigo Kumpera 0e7f56bf12 Implement the icalls needed by the new mobile mmap code. 2011-11-03 12:13:29 -02:00
Rodrigo Kumpera b2f29e14ba Implement a mobile ready version of memory mapped files. 2011-11-03 12:13:28 -02:00
Rodrigo Kumpera 60b9bc64ab Move all Mono.Unix deps into a single place and put a skeleton of MOBILE support for mmap'd files. 2011-11-03 12:13:27 -02:00
Marek Safar 11809318dc Fix mdoc execution mono path 2011-11-03 13:10:15 +00:00
Marek Safar e8fdf54c9d Check overloaded method difference for CLS-compliance also with base class 2011-11-03 12:08:04 +00:00
Marek Safar 0a6421deee Fix few more cascading errors 2011-11-03 12:08:04 +00:00
Marek Safar 862cc6e20d Use full type lenght when checking struct fields assignment 2011-11-03 12:08:03 +00:00
Marek Safar 087df80aa2 Update missing extension compiler type error message to workaround stupid MonoDevelop message bubbles 2011-11-03 12:08:03 +00:00
Marek Safar 6e71b43325 Reoder 4.x supported_runtimes versions to load correct mscorlib when <supportedRuntime ../> is used 2011-11-03 12:08:03 +00:00
Marek Safar bf93c1282d Add type forwarding for ExtensionAttribute 2011-11-03 12:08:02 +00:00
Marek Safar b071c20379 Add 4.5 compatible MEF 2011-11-03 12:08:02 +00:00
alexrp 39538a54aa Fix call to mono_sgen_gc_unlock () in mono_gc_toggleref_add (). 2011-11-02 17:25:56 +01:00
Marek Safar f2ba7a6e39 Add few 4.5 types to compile MEF2 2011-11-02 11:09:49 +00:00
Marek Safar 95e7cb6da3 Add new tests 2011-11-02 11:09:49 +00:00
Marek Safar 8bf342011d Fix check for intermediate expression value used by element accessors 2011-11-02 11:09:49 +00:00
Marek Safar 4d27358964 Allow Conditional attribute to be used with a keyword value 2011-11-02 11:09:48 +00:00
Marek Safar 6ac93ef9d7 Check reserved name collision with non-parameter members as well 2011-11-02 11:09:48 +00:00
Marek Safar bf9a580867 Better type parameter value type conversion checks 2011-11-02 11:09:48 +00:00
Marek Safar 3e03af5c18 Check type parameter substitutions for nested interfaces as well 2011-11-02 11:09:48 +00:00
Marek Safar b9b7f7846c Remove duplicate inherited constraint types 2011-11-02 11:09:47 +00:00
Marek Safar 1b1b22be7e Remove unused variable 2011-11-02 11:09:47 +00:00
Marek Safar 0f5a1af71c Nullable types can satisfy only identity or base type constraints 2011-11-02 11:09:47 +00:00
Zoltan Varga ddbc6cf435 Disable TLS on android-x86 2011-11-01 22:09:45 +01:00
Zoltan Varga a2a5dcc5db Add sigcontext support for android-x86 2011-11-01 22:09:32 +01:00
Zoltan Varga 7097b01757 Delete unused link.h include 2011-11-01 20:57:05 +01:00
Jeremie Laval e2e28d46d4 Set success boolean in all cases and avoid state masking. Fix #124 2011-11-01 16:28:24 +01:00
Jeremie Laval 233950b5de Add index creation operations to mdoc 2011-10-31 15:44:28 +01:00
Zoltan Varga bc9cbadf44 Fix a bug in the previous commit (290a4a10ab). The breakpoint instruction needs to be skipped before returning early from process_breakpoint_inner (). 2011-10-31 12:39:17 +01:00
Jérémie Laval 80c449d970 Tiny fix for profiler.c compilation warning 2011-10-31 11:39:16 +01:00
Jérémie Laval a19bd3adab Fix build on NET_2_0 2011-10-31 11:38:52 +01:00
Zoltan Varga 290a4a10ab Rework the breakpoint/single stepping code to get rid of mono_arch_get_ip_for_breakpoint ()/single_step (). Instead of using these functions, simply find the first seq point before/after the ip, since the single step/breakpoint code is placed around the ip saved in the seq point map. 2011-10-31 02:23:37 +01:00
Jeremie Laval 89f6fdab5f Add support for embedding image files in ecma doc 2011-10-30 16:11:43 +01:00
Marek Safar 59b718c534 Run interface method constraints check for implementing base type too 2011-10-29 13:35:02 +01:00
Marek Safar 12d16ae426 Fix unmanaged type check for nested generic types 2011-10-29 13:35:01 +01:00
Marek Safar 0a66e607fc Remove never used Task::Execute parameter 2011-10-29 13:35:01 +01:00
Zoltan Varga 69a0dc6e61 Avoid duplicate successor entries in the seq point map. 2011-10-28 23:53:24 +02:00
Zoltan Varga 0523d7c671 Avoid returning a 0 exit code from xbuild if one of the projects in an .sln file fails to build 2011-10-28 21:35:22 +02:00
Zoltan Varga 2bf6fd899e Fix an uninitialized memory error in the AOT runtime. 2011-10-28 17:55:53 +02:00
Alex Rønne Petersen 7ddaf56120 Merge pull request #186 from QuickJack/master
Fixes an Exception that is being thrown in Linux when the no_proxy environment variable is empty.
2011-10-28 07:43:19 -07:00
Martin 62d56f05a5 Fixes some naming conventions. 2011-10-28 16:41:40 +03:00
Jeremie Laval 348a06f568 Also disable selectively this test at runtime 2011-10-28 14:40:00 +02:00
Jeremie Laval 06ac548268 Refactor unit test a bit 2011-10-28 14:27:14 +02:00
Marek Safar 7f2c2ec315 Enable 4.5 profile parallel build 2011-10-27 19:21:31 +01:00
Marek Safar 811d320d04 Always capture iterator parameters 2011-10-27 17:57:51 +01:00
Marek Safar 2e2b91ac90 Rename RabbitMQ.Client default sources to fix make dist 2011-10-27 17:47:50 +01:00
Marek Safar 09372684b8 Insert incomplete for statement to ast 2011-10-27 16:51:25 +01:00
Marek Safar 232e81e50c Restore using block in case of parser error 2011-10-27 16:05:48 +01:00
Marek Safar 772bff3244 Move TrySet method from TaskCompletionSource to Task, so AsyncTaskMethodBuilder can act as secondary TaskCompletionSource implementation 2011-10-27 11:03:38 +01:00
Zoltan Varga 5b7225d3a1 Fix make dist 2011-10-27 02:01:09 +02:00
Rodrigo Kumpera f868f65013 Implement new toggleref machinery for sgen.
* sgen-toggleref.c: GC backed toggleref machinery. This enables
	embedders to support toggleref style of external memory management
	without hooking up to the host retain/release machinery.

	The API export two entry points. The first let the caller register
	a callback with sgen that decides the state of a given object, by
	probably inspecting its native state. The second allows registration
	of objects with the toggleref machinery.

	The idea of toggleref is that we keep an external reference to an object
	and it can be  either a strong or weak reference. We use a weak reference
	when the external peer has no interest into the object and a strong otherwise.
2011-10-26 12:33:37 -02:00
Rodrigo Kumpera 521ab9aec8 Export a bunch of sgen functions for internal usage. 2011-10-26 12:33:36 -02:00
Rolf Bjarne Kvinge 35277dfbfa Log profiler: ensure the size we pass to getsockname is initalized correctly. 2011-10-26 15:37:35 +02:00
Rolf Bjarne Kvinge 1aa8c37faa Log profiler: flush file after writing to it. 2011-10-26 15:22:34 +02:00
Rolf Bjarne Kvinge a5b997333e Log profiler: add support for writing to an existing file descriptor. 2011-10-26 15:02:31 +02:00
Rolf Bjarne Kvinge 2ebf138da5 Profiler: add support embedded profilers whose entry point ends with _<profiler name>. 2011-10-26 14:56:27 +02:00
Marek Safar dc9110963d Don't allocate TaskActionInvoker for TaskCompletionSource 2011-10-26 11:48:47 +01:00
Jeremie Laval 5a78256af1 Run unobserved task exception processing on the finalizer thread but without the need for a finalizer in Task 2011-10-26 12:32:37 +02:00
Marek Safar d22cf40c1b Delay continuation delegate allocation 2011-10-26 10:44:12 +01:00
Marek Safar d0de7a3721 New test 2011-10-26 10:44:11 +01:00
Marek Safar 97944b0ae8 Reuse captured stack variables 2011-10-26 10:44:11 +01:00
Marek Safar 02295e4894 Capture less local variable in iterator/async context 2011-10-26 10:44:11 +01:00
Lluis Sanchez 4bf60c9c50 [System.Xml] Fix handling of XmlSchemaForm when importing elements
When the schema for is not explicitly set for an element, get the default form specified in the schema, and use 'unqualified' if there is no other default. This fixes bug #41.
2011-10-26 11:27:34 +02:00
Zoltan Varga 3492efa68b Add filtering by type name to TypeLoad events 2011-10-25 19:37:40 +02:00
Zoltan Varga 49c5bb7a37 Add a GetTypes() method to VirtualMachine to search for types with a given name in all appdomains/assemblies. 2011-10-25 19:37:40 +02:00
Atsushi Eno 9f3efdc59e Fix NET_2_1 builds. 2011-10-26 00:35:57 +09:00
Atsushi Eno f04c82230a Fix NET_2_1 builds. 2011-10-26 00:29:28 +09:00
Paolo Molaro ed541952ef Use gint64 to represent time in MonoStopwatch to prevent overflows. 2011-10-25 16:47:48 +02:00
Jeremie Laval 40587094e4 Allow to specify other RootTree for creating indexes 2011-10-25 13:34:37 +02:00
Marek Safar 394140f5a4 Create less anynymous method context classes for async delegates 2011-10-25 10:14:14 +01:00
Marek Safar c722897b1f Remove unwanted WaitHandle finalizer 2011-10-25 10:14:14 +01:00
Jérémie Laval 4d6f6a6956 Remove TaskScheduler useless finalizer 2011-10-25 11:12:02 +02:00
Martin be6b88bc1c Do not throw an exception if Proxy is set to null. Compare this implementation to HttpWebRequest.Proxy. 2011-10-25 10:55:10 +03:00
Martin 6a9937d216 Behaviour of using proxies in WebClient is different compared to .NET
(1) Consider the following example code:

	WebClient client=new WebClient();

If you examine the client.Proxy property when running this code in .NET you will see, that the Proxy property reflects the current system proxy settings. However, Mono initializes the Proxy property in OpenRead()

(2) Mono's implementation of the WebClient.Proxy property described in (1) has a disadvantage. To understand that, consider der following example code:
	
	WebClient client=new WebClient();
	
	client.Proxy=null;

Explicitely setting the Proxy property to null ensures that .NET does not use any proxies when calling further methods of the client object. My patch provides exactly this functionality for Mono's WebClient when using the http or ftp protocol. This functionality can be very interesting for a lot of scenarios.
2011-10-25 10:51:58 +03:00
Martin 69b90e3312 Fixes an Exception that is beeing thrown in Linux when the no_proxy environment variable is empty. 2011-10-25 10:36:37 +03:00
Rolf Bjarne Kvinge 91eb1980e1 When providing stack trace for a crash make sure we attach to the crashed process, not the forked process that will become gdb. 2011-10-24 22:37:41 +02:00
Miguel de Icaza 6e9ec39612 Remove the exit code so that we can get a little bit further on MacOS X 2011-10-24 12:54:04 -04:00
Atsushi Eno caba2b77f9 Give prefix "i" for xsi:nil. Patch by Alexander Riman, fixes pt.2 of #1198. 2011-10-24 23:51:57 +09:00
Marek Safar 9654ae5d35 Report less cascading errors 2011-10-24 14:56:15 +01:00
Marek Safar bc2e2177e9 Add System.Reflection.ReflectionContext 2011-10-24 13:03:49 +01:00
Marek Safar 7acb219a4d Add some missing methods 2011-10-24 12:15:31 +01:00
Marek Safar df0eff5b03 Fix few obvious NREs 2011-10-24 10:11:41 +01:00
Gonzalo Paniagua Javier 6e7b1a5012 Change check to detect Windows. 2011-10-23 02:34:38 -04:00
Zoltan Varga 47abcf7bef Fix a problem in the last banch of AOT optimizations 2011-10-23 18:22:32 +02:00
Miguel de Icaza 676cc2f27a Patch from Mario Kosmiskas for Bug 1460: add support for Path.GetFileName to work with MONO_IOMAP 2011-10-22 21:09:55 -04:00
Gonzalo Paniagua Javier 7e615f4c6d Merge pull request #185 from QuickJack/master
WebRequest.GetSystemWebProxy() does not work in Windows
2011-10-22 15:04:25 -07:00
Miguel de Icaza 1bedeb9b32 Fix from github.com/sehe for passing the command line arguments to the OnStart method 2011-10-22 11:07:22 -04:00
Zoltan Varga ec5ba39ba9 Print timing information for debugger invokes. 2011-10-22 15:47:28 +02:00
Zoltan Varga c0ce64afca Add a stopwatch structure/functions for runtime internal use. 2011-10-22 15:47:28 +02:00
Jeremie Laval 52299fb467 Use only one class hierarchy for task continuations 2011-10-22 12:01:30 +02:00
Zoltan Varga fa9cc4092d Add a GetTypesForSourceFile method to VirtualMachine to obtain the list of types associated with a source file 2011-10-22 01:08:32 +02:00
Zoltan Varga d5b7e222d6 Add a way to filter type load events by the source files associated with the type. 2011-10-22 01:08:32 +02:00
Miguel de Icaza b1e73aa3e2 Make this build on the MOBILE profile 2011-10-21 11:50:17 -04:00
Marek Safar 596a6c5542 Implement ContinueWhenAny/ContinueWhenAll with less temporary tasks 2011-10-21 16:26:11 +01:00
Marek Safar 469ad8cb81 Setup await continuation without extra task 2011-10-21 15:49:44 +01:00
Marek Safar 598fecce9b Don't create wrapper anonymous method for Task.Factory.StartNew 2011-10-21 15:49:43 +01:00
alexrp 0857328fa8 Don't build Mono.Net.Dns in the mobile profile. 2011-10-21 09:08:58 -05:00
Zoltan Varga 5ddbe31ee5 Set tls->context.valid to FALSE if a thread is suspended in native code. Fixes #1540. 2011-10-21 13:23:33 +02:00
Marek Safar 8de6fd6225 Enable volatile tests 2011-10-21 10:15:07 +01:00
Marek Safar adb5835775 Create Task continuation with less intermediate delegates 2011-10-21 10:00:53 +01:00
Zoltan Varga 7448e606d9 Add tests for Thread.VolatileRead/Write 2011-10-20 19:26:39 +02:00
Zoltan Varga c38a9afeab Fix Thread.VolatileRead/Write for floats/doubles. Fixes #1578. 2011-10-20 19:24:02 +02:00
Zoltan Varga 3a85d0cfa7 Load custom attribute data using Cecil if possible in TypeMirror/FieldInfoMirror/PropertyInfoMirror 2011-10-20 18:12:42 +02:00
Marek Safar 5d90352eb0 Run runtime tests with the latest tools available 2011-10-20 15:40:37 +01:00
Jeremie Laval 63de171090 Add a memory barrier after each status change 2011-10-20 14:02:31 +02:00
Jeremie Laval 6acce5e34a Move Thread.MemoryBarrier call into Task for every case 2011-10-20 13:38:40 +02:00
Marek Safar 92d165baf7 Fix empty string switch emit. Fixes #1597 2011-10-20 10:42:19 +01:00
Marek Safar 1b97ce8bf9 Fix make dist 2011-10-19 17:42:27 +01:00
Marek Safar cbab59fb04 Update mcs translations 2011-10-19 17:25:55 +01:00
Marek Safar 690809bb5f Fix 4.5 conditional 2011-10-19 15:39:13 +01:00
Marek Safar f2fdae3283 Implement System.Threading.Volatile 2011-10-19 15:34:24 +01:00
Marek Safar f27f40db80 Fix VolatileRead(uint&), VolatileWrite(uint&,uint) to use correct word size 2011-10-19 15:30:11 +01:00
Marek Safar 6173654845 Fix a race in underlying Task.Wait infrastructure 2011-10-19 11:19:42 +01:00
Sebastien Pouliot b52404b353 Ensure private key flow from the mono store into the X509Certificate2 instance. Patch from bug #1201 2011-10-18 15:49:32 -04:00
Rodrigo Kumpera d515a07e57 Allow null strings to be sent to sdb. They are encoded as -1. 2011-10-18 21:19:41 +02:00
Zoltan Varga 8e83d7b181 Bump sdb protocol version in the runtime. 2011-10-18 21:19:41 +02:00
Rodrigo Kumpera f65a9987f0 Add test for new sdb command. 2011-10-18 21:19:41 +02:00
Zoltan Varga 3f6c85795e Enable optional protocol logging in the sdb managed library. Based on a patch by Rodrigo. 2011-10-18 21:19:41 +02:00
Zoltan Varga fc6a1308e4 Add TypeMirror.GetMethodsByName () method to speed up searching for a method with a specific name, frequently used by md. Based on a patch by Rodrigo. 2011-10-18 21:19:41 +02:00
Rodrigo Kumpera a338daf631 Extract mono_class_get_methods_by_name from ves_icall_Type_GetMethodsByName 2011-10-18 21:19:41 +02:00
Marek Safar 57fc0680d5 Fix few races in ManualResetEventSlim and make it compatible with .net 2011-10-18 17:45:33 +01:00
Alan McGovern e49f4636a9 [WindowsBase] Add better support for Default/Override content_types
System.IO.Packaging already had full support for parsing [Content_Types].xml
if it contained both <Override> and <Default> nodes when specifying content
types for files. However we had taken a shortcut before by explicitly writing
the content type of each file using an <Override> attribute for every file. We
now properly write a <Default> element and only use <Override> attributes when
required.
2011-10-18 11:43:58 +01:00
Alan McGovern 5736b87f2f [System.IO.Packaging] Fix some dispose related issues
Ensure we can call dispose multiple times without blowing up. Also
ensure that we do not close streams which are passed in by the user.
We should only close streams which are implicitly created by the API.
This is a modification of the patch proposed for bug #1464, which is
now fixed by this commit.
2011-10-18 00:45:38 +01:00
Miguel de Icaza 8c4b3c1aca Fix for 1461: Microsoft's generated deserializer call CollapseWhitespace extensively 2011-10-17 17:06:41 -04:00
Marek Safar fa8e1b0785 Compatibility fixes to CountdownEvent 2011-10-17 17:07:07 +01:00
Zoltan Varga 236676a8ab Use Object_GetInfo () in VirtualMachine.GetObject () too to save one request 2011-10-17 16:26:53 +02:00
Marek Safar 81a14dc9be Don't run expensive WaitAll when there is nothing to wait for 2011-10-17 14:28:28 +01:00
Zoltan Varga 8541b2548a Add locking to EventWaitHandle.Set/Reset to avoid crashes when another thread disposes the handle. Fixes #1499. 2011-10-17 15:13:25 +02:00
Rolf Bjarne Kvinge 2ed8d1c9ea Add System.Numerics to the mobile profile. 2011-10-17 13:44:20 +02:00
Tom Hindle c8da57fca0 Apply patch from Stephen McConnel fix bug 677: DataGridView column header misbehavior and crash; also VirtualMode fix 2011-10-17 12:05:54 +01:00
Tom Hindle f4da7d5c1b Apply patch from Stephen McConnel fix bug 919: Form.ShowDialog(null)
can crash with "Forms cannot own themselves or their owners."
2011-10-17 11:50:01 +01:00
Tom Hindle 52d4b4342f Apply patch from Stephen McConnel fix bug 867: Items in a disabled ListView disappear from view 2011-10-17 11:41:28 +01:00
Tom Hindle 305cfa33ac Apply patch from Stephen McConnel fix bug 1212: CheckBoxes do not show indeterminate state properly 2011-10-17 11:33:31 +01:00
Tom Hindle d936d6f94f Apply patch from Stephen McConnel fix bug 586: potential crash in ToolStripItem.HandleClick() 2011-10-17 11:19:55 +01:00
Martin 8ba66e9aa2 Update mcs/class/System/System.Net/WebRequest.cs 2011-10-17 10:08:06 +03:00
Gonzalo Paniagua Javier 4b72b76703 Return the correct length for input streams 2011-10-17 00:45:17 -04:00
Marek Habersack 00903aa629 Do not reference mscorlib explicitly in 4.5, mcs seems to do that despite /noconfig
This fixes ASP.NET/ASP.NET MVC applications using the 4.5 profile
2011-10-17 00:21:48 +02:00
Marek Habersack 85153dad0d Unbreak System.Web tests in the 4.5 profile 2011-10-17 00:21:48 +02:00
Zoltan Varga 2afe4de03d Fix a warning 2011-10-16 21:21:31 +02:00
Miguel de Icaza 33810007df Apply patch from Mario Kosmiskaso fix bug 1210: Correctly propagate the Operation Context on async calls
The OperationContext is a [ThreadStatic] variable therefore when a REST call is
made asynchronously the worker thread will not see a context set and will not
expose any data through the context.

A possible solution (which I implemented in the attached patch) is for
ClientRealProxy to set the context in the channel prior to executing the call
(either sync or async). The ClientRuntimeChannel needs to then properly set and
reset the context in the worker thread.

Because WCF operations marked [OperationContract(AsyncPattern = true)] using
IAsyncResult only generate an outgoing call on End<OperationName> the
ClientRuntimeChannel.EndProcess must not reset the context as it's currently
doing. The context can only be reset after calling EndInvoke because the
request will be only generated at this point.
2011-10-16 11:46:00 -04:00
Miguel de Icaza 8c810e02a3 Apply patch from Mario Kosmiskaso fix bug 1209: Patch to correctly expose WebOperationContext.IncomingResponse
There was apparently no point in the call flow when the reponse message was set
in the context, resulting in WebOperationContext.IncomingResponse always being
null.

After patching WebMessageFormatter to set the response in the context (if
available) the value of WebOperationContext.IncomingResponse was still null. A
bit more investigation showed that IncomingWebResponseContext would construct a
HttpResponseMessageProperty encapsulating the OperationContext at the time the
request was made but before the response was received and cache that object.
That caused the HttpResponseMessageProperty to always have a null value for the
response. The second part of the patch changes this behavior and always creates
a new HttpResponseMessageProperty on GET.
2011-10-16 11:46:00 -04:00
Miguel de Icaza abbb1550d3 Apply patch from Mario Kosmiskaso fix bug 1207: Throw the correct exception when a REST request returns a 404
.NET throws a EndpointNotFoundException encapsulating a WebException when a
REST request returns a 404.

The attached patch tests for a 404 and throws the same exception chain thrown
by .NET.
2011-10-16 11:46:00 -04:00
Miguel de Icaza 1b47742b05 Apply patch from Mario Kosmiskaso fix bug 1207: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.

Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:46:00 -04:00
Miguel de Icaza d82f2131ef Apply patch from Mario Kosmiskaso fix bug 1205: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.

Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:45:59 -04:00
Miguel de Icaza f17f74024a Apply patch from Mario Kosmiskaso fix bug 1204: Add certificate to the HttpWebRequest if configured
System.ServiceModel.Channels.HttpRequestChannel never added the configured
certificate to the HttpWebRequest which prevented client side authentication.

The attached patch does exactly that if a certificate has been configured.
2011-10-16 11:45:59 -04:00
Miguel de Icaza 96e0bed4c8 Fix bug 1203, relaxes the test for the protocol to allow https endpoints 2011-10-16 11:45:58 -04:00
Miguel de Icaza e2c7bf74ec Add Terse syntax to C#, making the last semicolon optional 2011-10-16 11:45:58 -04:00
Martin 09c0349259 Provide proxy support for Windows; completes https://bugzilla.novell.com/show_bug.cgi?id=691291 2011-10-16 15:53:26 +03:00
Martin 0699bf99c8 Provide proxy support for Windows; completes https://bugzilla.novell.com/show_bug.cgi?id=691291 2011-10-16 15:50:50 +03:00
Martin 120aaadf09 respect BypassOnLocal attribute in GetSystemWebProxy(); completes https://bugzilla.novell.com/show_bug.cgi?id=691291 2011-10-16 14:17:10 +03:00
Gonzalo Paniagua Javier aaef22bef8 Fix race condition
Our synchronized Hashtable "set" method is not really locking...
2011-10-16 01:59:22 -04:00
Gonzalo Paniagua Javier 8e67b8c2fc Don't send the buffered request until GetResponse is called
Allows changing some header values after writing the request until the
	call to (Begin)GetResponse()
2011-10-16 01:57:41 -04:00
Gonzalo Paniagua Javier f3013421d0 Don't 404 when any of the hashes has a / in it
This fixes "random" problems getting resources served by
	WebResource.axd.
2011-10-16 00:12:46 -04:00
Neale Ferguson 169d4c6f19 Minor s390x fixes and update for memory barriers 2011-10-15 20:53:24 -04:00
Jérémie Laval 868cff3cb1 Make ManualResetEventSlim Dispose/(Set,Reset) combo a bit safer. Add unit test. 2011-10-15 21:13:36 +02:00
Jérémie Laval 00238873c1 Move files around 2011-10-15 19:48:54 +02:00
Jérémie Laval 54dab2cec8 Remove need for a delegate instance in CountdownEvent and just apply the specific test everytime 2011-10-15 19:41:27 +02:00
Jérémie Laval 80fe94e7a1 First take at an updated Task.WaitAll 2011-10-15 19:34:40 +02:00
Jérémie Laval fa05439ed6 Update lastest two task unit tests 2011-10-15 19:27:06 +02:00
Jérémie Laval f84fddb7ce Fix ListPop 2011-10-15 19:26:37 +02:00
Jérémie Laval 931f0e510e Insert the unregister call in the finally handler too 2011-10-15 16:35:01 +02:00
Jérémie Laval 3a427c424a Clean event registration when wait is unsuccessful 2011-10-15 15:34:56 +02:00
Jérémie Laval a5c7e9c2ff Add unit test for when multiple wait are registered on a single task 2011-10-15 15:34:55 +02:00
Jérémie Laval 5d867bb1cf Ensure there is no mutually exclusive TaskContinuationOptions parameters when registering continuations 2011-10-15 15:34:55 +02:00
Jérémie Laval 73e2273875 Move CompletionContainer to use ConcurrentOrderedList to allows easier removal 2011-10-15 15:34:55 +02:00
Jérémie Laval c6f371fe4f Add a pop front operation to ConcurrentOrderedList 2011-10-15 15:34:54 +02:00
Jérémie Laval adfffa4c5b Remove schedWait event since it's not needed anymore by waiting code 2011-10-15 15:34:54 +02:00
Zoltan Varga e724aba589 Disable the error checking for MONO_GC_PARAMS in boehm, to avoid erroring out when sgen parameters are passed to it 2011-10-14 15:35:59 +02:00
Zoltan Varga 87dd169965 Fix a crash with precise stack marking and dying threads 2011-10-14 15:35:59 +02:00
Jérémie Laval df8783a082 Update Wait and WaitAny with event disposal and single execution flow 2011-10-14 14:50:53 +02:00
Jérémie Laval f1441786ef Call correctly Dipose in CoutdownEvent 2011-10-14 14:50:52 +02:00
Jérémie Laval d691e17299 Update ManualResetEventSlim to handle disposal correctly 2011-10-14 14:50:52 +02:00
Zoltan Varga ecdbb278da Change a g_warning to a DEBUG which can happen in normal use 2011-10-14 14:49:52 +02:00
Marek Safar 98f5784137 Add more Task tests 2011-10-14 13:13:14 +01:00
Jérémie Laval 898387ea75 Don't special casee adding a TaskCanceledException to the AggregateException list 2011-10-14 13:51:44 +02:00
Jérémie Laval abf938e98a Make IsCompleted property faster by doing only one comparison 2011-10-14 13:51:00 +02:00
Jérémie Laval 8ae8031bfb Refactor Wait* task initial parameter checkup 2011-10-14 13:50:16 +02:00
Jérémie Laval 9e8175ffcf Don't fallback to Wait in WaitAny so that undesirable exception aren't propagated 2011-10-14 11:18:36 +02:00
Jérémie Laval be6e0bc8db Remove SchedulerProxy 2011-10-13 22:14:29 +02:00
Jérémie Laval 951f012e43 Fix compilation of Task unit tests for net_4_0 2011-10-13 22:11:45 +02:00
Jérémie Laval a9b5c59e94 Cache watch usage 2011-10-13 22:09:00 +02:00
Jérémie Laval ec7a3894d5 Fix stuff then went awry with the merge 2011-10-13 22:04:18 +02:00
Jérémie Laval 4770b24fa9 Tune Marek's work on Task.WaitAny, Task.Wait and Task.WaitAll 2011-10-13 21:42:21 +02:00
Marek Safar 67ea246398 Fix a race in Task.WaitAny 2011-10-13 19:16:10 +01:00
Marek Safar a3d97ba5df Fixes Task.WaitAny with further fixes to Task.Wait 2011-10-13 17:35:00 +01:00
Marek Safar 122d992ec9 CancellationTokenSource is no longer sealed 2011-10-13 17:35:00 +01:00
Zoltan Varga c08dc24785 Fix a warning plus a typo 2011-10-13 20:04:20 +02:00
Zoltan Varga ad76d240a6 Fix an assert in sgen when mono_gc_set_current_thread_appdomain () is called from within sgen_thread_unregister (). Fixes pinvoke3.exe 2011-10-13 20:04:20 +02:00
Rolf Bjarne Kvinge e62a6d5406 Log profiler: Don't include major collections in ondemand mode. 2011-10-13 14:38:10 +02:00
David Evans 3b2a88a9ef Fix regression to System.Diagnostics.Process.PrivateMemorySize64 (). Fixes #1459 2011-10-13 08:00:43 +02:00
Gonzalo Paniagua Javier c37b5091bc Merge pull request #180 from QuickJack/master
https://bugzilla.novell.com/show_bug.cgi?id=691291
2011-10-12 20:17:20 -07:00
Zoltan Varga 8c20f9ac1e Move generic sharing definitions to mini.h, define a proper enum for the gshared info types 2011-10-12 19:50:57 +02:00
Marek Safar 6dd22367b6 Don't release temporary address too early. Fixes #1447 2011-10-12 14:15:46 +01:00
Marek Safar 01ee3ebae8 Add InfiniteTimeSpan 2011-10-12 13:22:14 +01:00
Marek Safar 7eefa895e9 Reenable disabled test 2011-10-12 12:29:38 +01:00
Marek Safar 675aacc20f Fix wrong conditional 2011-10-12 12:29:17 +01:00
Marek Safar 13a8ad17d5 Fix Task.WaitAll exception handling 2011-10-12 12:24:06 +01:00
Marek Safar 1c5222f0f5 Don't start cancelled task when using task factory. Fixes #1104 2011-10-12 12:24:06 +01:00
Zoltan Varga e9ce55b5d6 Fix a race in an sdb test 2011-10-12 07:19:50 +02:00
Marek Safar 9045d6616f Throw cancellation exception when inspecting cancelled task's result 2011-10-11 18:47:16 +01:00
Marek Safar 8c3fd6835c Partially fixes broken Task.Wait 2011-10-11 18:47:16 +01:00
Marek Safar 99aa27755b Run task continuations when it's canceled 2011-10-11 18:47:15 +01:00
Marek Safar 41b7c34d90 Fix last comment 2011-10-11 18:47:15 +01:00
Jérémie Laval e42fb4ccaf [WindowsBase] Don't treat special file [Content-Types].xml as a part, ends up as a duplicate when writing back a package 2011-10-11 16:14:50 +02:00
Rodrigo Kumpera b441b52163 Ensure proper ordering of hazard pointer reads.
* hazard-pointer.c (is_pointer_hazardous): Reads between the hazard
	pointers of a given thread must be ordered since code such as the
	liked-list-set that does centipede traversal needs it to be correct.
2011-10-11 09:40:36 -03:00
QuickJack cfff94d023 Edited mcs/class/System/System.Net/WebRequest.cs via GitHub 2011-10-11 14:39:40 +03:00
QuickJack 20cbf434f7 Edited mcs/class/System/System.Net/WebRequest.cs via GitHub 2011-10-11 14:27:32 +03:00
QuickJack c54d701db4 Edited mcs/class/System/System.Net.Configuration/BypassElement.cs via GitHub 2011-10-11 14:24:44 +03:00
QuickJack fd7ef08ee9 Edited mcs/class/System/System.Net.Configuration/ProxyElement.cs via GitHub 2011-10-11 14:23:12 +03:00
Marek Safar 6be17f038f Fix crash when resolving base type without being defined. Fixes #1388 2011-10-11 12:07:23 +01:00
Zoltan Varga fd769946c5 Avoid asserts in sdb if a single step operation is started immediately after the VMStart event 2011-10-11 11:03:34 +02:00
Zoltan Varga 48d59c940b Implement registration of new transports in the debugger agent. 2011-10-11 03:49:53 +02:00
Zoltan Varga 6ad5f5c79b Fix 055255aa55. attr_klass can be NULL. 2011-10-11 03:49:52 +02:00
Zoltan Varga bb218f4cde Ignore some corlib tests which fail on linux 2011-10-11 03:49:52 +02:00
Marek Safar c216dd3471 Populate already inflated type instances with defined interfaces. Fixes #1389 2011-10-10 18:41:08 +01:00
Mark Probst e56308e43f [sgen] Don't assert that we can't suspend a thread on Win32.
A thread might die while we're stopping the world.
2011-10-10 18:46:34 +02:00
Marek Safar 1fd191a38b More changes needed for 4.5 profile 2011-10-09 14:04:43 +01:00
Mark Probst 05c7cd052d Merge branch 'sgen-windows' 2011-10-09 15:01:12 +02:00
Mark Probst 83ab9f001d [win32] Query the start of a memory region in mono_vfree().
Since mono_valloc_aligned() doesn't necessarily return the start of
a region as alloced by VirtualAlloc(), we need to determine the start
via VirtualQuery() to pass to VirtualFree().

The VirtualQuery() is obviously not necessary when freeing a region
returned by mono_valloc(), but we do it anyway.  If this ever becomes
a performance issue we might want a separate mono_vfree_aligned().
2011-10-09 11:15:32 +02:00
Mark Probst ef490a0429 [sgen] Managed allocator and wbarrier for Win32 by enabling TLS. 2011-10-09 11:15:31 +02:00
Mark Probst fbe6731a77 [sgen] Get the thread's domain via a callback, not via TLS. 2011-10-09 11:15:30 +02:00
Zoltan Varga 1d55eeb3f2 Fix a windows warning 2011-10-09 09:54:50 +02:00
Zoltan Varga 1150383386 Use HOST_WIN32 in one place 2011-10-09 07:44:17 +02:00
Zoltan Varga 55d2af67c8 Don't define TARGET_WIN32 in cross compilers running on windows 2011-10-09 07:44:15 +02:00
Gonzalo Paniagua Javier 7e6f2734a7 Revert previous quick fix. 2011-10-08 11:09:17 -04:00
Gonzalo Paniagua Javier c9715e17d2 Rename namespace to Mono.Net.Dns 2011-10-08 11:07:03 -04:00
Zoltan Varga aef1d9f42c Allocate non-code memory using mono_domain_alloc0 in mono_create_jit_trampoline_from_token (). 2011-10-09 04:46:35 +02:00
Zoltan Varga 40c7464d4f Disable a single step to speed up an sdb testcase 2011-10-09 04:46:33 +02:00
Gonzalo Paniagua Javier 71239088b0 Merge pull request #176 from jordan0day/master
Fix for typo in wsdl tool error message
2011-10-08 15:58:51 -07:00
Jordan Day 8667a3d88c Fixed typo in wsdl tool error message. 2011-10-08 16:37:35 -05:00
Gonzalo Paniagua Javier c73d6d65b8 Unbreak, take 3 2011-10-08 07:36:38 -04:00
Gonzalo Paniagua Javier 251ff833c1 Unbreak, take 2 2011-10-08 07:22:57 -04:00
Gonzalo Paniagua Javier 69da587d6a Unbreak the build 2011-10-08 07:17:58 -04:00
Gonzalo Paniagua Javier 2be2c0334f Add info to the manual page on MONO_DNS 2011-10-08 00:55:38 -04:00
Gonzalo Paniagua Javier fdd5f1d332 Add support for an alternative managed DNS resolver
The System.Net.Dns class will now use a fully managed implementation of
	a DNS resolver which is much better when doing multiple queries at a
	time.
2011-10-08 00:48:12 -04:00
Zoltan Varga 1c866f2830 Fix named parameter support in the Binder. Fixes #1321 2011-10-08 06:29:22 +02:00
Zoltan Varga 055255aa55 Add a missing arg check to the sdb protocol code 2011-10-08 00:49:27 +02:00
Miguel de Icaza 3f947658fe Add the fallback to MonoDoc 2011-10-07 16:36:45 -04:00
Miguel de Icaza fcd527cdec Avoid loading the same documentation file twice 2011-10-07 16:23:04 -04:00
Marek Safar af2d31d893 Fix cancelation with task start (only for most trivial cases) 2011-10-07 17:17:35 +01:00
Marek Safar da5c7e90b4 Continuation task cannot be started. Fixes #996 2011-10-07 15:43:51 +01:00
Marek Safar 70c56d1f56 Fix unit test 2011-10-07 11:37:55 +01:00
Marek Safar 2c49cea935 Mark System.Data.Services.Client CLS-compliant 2011-10-07 11:10:42 +01:00
Marek Safar 0bfdc35827 Remove some obsolete methods 2011-10-07 10:11:30 +01:00
Marek Safar b0a72b733e Add better diagnostics for tracking crashes in nested types importer 2011-10-07 10:11:30 +01:00
Marek Safar e83e733ec1 Remove Mono.Async 2011-10-07 10:11:30 +01:00
Marek Safar 81cf39742a Update few constant values 2011-10-07 10:11:30 +01:00
Marek Safar 2fe2101b61 Add async methods to SslStream 2011-10-07 10:11:29 +01:00
Marek Safar b7896a8f79 Fix parameter names 2011-10-07 10:11:29 +01:00
Marek Safar 1ce7b6016f Add async methods to System.Net 2011-10-07 10:11:29 +01:00
Marek Safar 166cfb1bd6 Remove few ifdefs 2011-10-07 10:11:29 +01:00
Marek Safar c9b3000b68 Fix parameter names 2011-10-07 10:11:28 +01:00
Marek Safar c68fa87950 Add async methods to System.Net.Sockets 2011-10-07 10:11:28 +01:00
Marek Safar 1f9b71ab9f Remove ifdefs and fix argument names 2011-10-07 10:11:28 +01:00
Marek Safar 2c45045b26 Remove redundant check introduced in previous commit 2011-10-07 10:11:27 +01:00
Paolo Molaro f815427d73 Don't reference WindowsBase in the mobile profiles. 2011-10-07 10:59:24 +02:00
Rolf Bjarne Kvinge bdeecfdbfd [System] Added NetworkCredential.SecurePassword. 2011-10-07 09:38:33 +02:00
Rolf Bjarne Kvinge bdb46ecfc9 [Microsoft.Build] Stub out a lot of classes to make NuGet build with mono. 2011-10-07 09:38:32 +02:00
Rolf Bjarne Kvinge bc635a9b05 Ignore headers generated by dtrace. 2011-10-07 09:38:32 +02:00
Rolf Bjarne Kvinge 9432f97fb8 [System.Data] Clean up temporary file when done generating the parser. 2011-10-07 09:38:32 +02:00
Rolf Bjarne Kvinge d79a15a534 Updated .gitignore to ignore local files MonoDevelop creates. 2011-10-07 09:38:32 +02:00
Rolf Bjarne Kvinge 96cd143eed [Microsoft.Build.Framework] Add a couple of 4.0 interfaces. 2011-10-07 09:38:32 +02:00
Rolf Bjarne Kvinge 1d149efc1c [WindowsBase] Relationship ids must be valid XML identifiers. 2011-10-07 09:38:31 +02:00
Zoltan Varga b2092ea811 Fix the OSX build 2011-10-07 01:33:43 +02:00
Zoltan Varga b9e19b0301 Make the mono_native_thread functions real functions on all platforms 2011-10-06 19:12:39 +02:00
Zoltan Varga aec4f74b1f Fix a windows warning 2011-10-06 19:12:37 +02:00
Zoltan Varga e27c9d4002 Avoid calling mono_monitor_get_fast_path () for the net 2.0 Enter 2011-10-06 19:12:35 +02:00
alexrp 504c7b887f [RabbitMQ.Client] Add spec files for 4.5 profile. 2011-10-06 07:27:15 -05:00
Marek Safar c25d268b63 Fix predefined SetResult parameters filter, so it can be used inside mscorlib 2011-10-06 11:52:04 +01:00
Marek Safar cff23ccb79 Fix a warning 2011-10-06 11:52:04 +01:00
Zoltan Varga 851cfdda48 Use functions instead of macros from the mono_native_thread_... functions, add comments. 2011-10-06 03:01:06 +02:00
Zoltan Varga 7724d95e64 Emit precise GC maps for vtypes passed as parameters, improve debug logging 2011-10-06 02:22:00 +02:00
Sebastien Pouliot 2ce9fc1b0e Ensure consistency when 'emitContext == true' is used in MONOTOUCH profile (since it won't work when the linker is enabled). Fix bug #1144 2011-10-05 17:30:26 -04:00
Sebastien Pouliot a8d733436c Internalize [ComImport] in MONOTOUCH profile since it can make the (unlinked) application code crash (and we better spot this at compile time). Fix assistly #2357 2011-10-05 17:30:26 -04:00
Rolf Bjarne Kvinge d51354356e [System.ServiceModel] Write EndPointAddress properly in the 2.1 profile. Fixes #1244 2011-10-05 22:56:32 +02:00
Marek Safar d99a548946 Report better error for misused await operator 2011-10-05 15:41:38 +01:00
Marek Safar 345cdd0c31 Make C#5 default lang version for mcs compiler 2011-10-05 15:41:38 +01:00
Zoltan Varga 3547782185 Fix a warning 2011-10-05 01:55:03 +02:00
Zoltan Varga 34b476dc6d Fix the build 2011-10-05 00:29:27 +02:00
Zoltan Varga 00e91a0b4b Add runtime support for the .NET Portable Libraries profile, by remapping assembly names with the 'retargettable' flag set to the current framework versions, and remapping System.Net to System 2011-10-04 23:55:38 +02:00
Zoltan Varga a32474313c Fix a warning 2011-10-04 23:55:36 +02:00
Zoltan Varga ef0e0f673e Fix MSVC build 2011-10-04 23:55:34 +02:00
Mark Probst 3b55cd21af Merge branch 'sgen-windows' 2011-10-04 23:19:49 +02:00
Mark Probst 1c0b437c54 [sgen] Small fixes. 2011-10-04 22:36:31 +02:00
Mark Probst bcb58869b3 [sgen] Basic Win32 support. 2011-10-04 22:36:31 +02:00
Mark Probst bd5b15e778 [sgen] Debug print fixes.
Also, flush gc_debug_file after debug prints.  Crashes on Windows don't
flush, so we miss the debug outputs.
2011-10-04 22:36:30 +02:00
Mark Probst e14e2e6f92 [sgen] Simple abstraction for creating native threads. 2011-10-04 22:36:30 +02:00
Mark Probst fcc855cc68 [sgen] Use our mutex abstraction instead of pthreads directly. 2011-10-04 22:36:30 +02:00
Mark Probst 7c936abf87 [sgen] Use our TLS abstraction instead of pthreads directly. 2011-10-04 22:36:29 +02:00
Marek Safar 4d97f8cc45 Correctly capture synchronization context 2011-10-04 19:00:04 +01:00
Marek Safar b6fba368e7 awaiterbuilder cannot be readonly, it causes unexpected behaviour on .net 2011-10-04 19:00:04 +01:00
Paolo Molaro 8e0792472f Introduce a callback API to have notifications when runtime resources exceed preset limits. 2011-10-04 17:52:23 +02:00
Marek Safar 68e1c22bf9 Allow type inference of lambda return type using type argument inside array 2011-10-04 11:19:31 +01:00
Marek Safar f12b165812 Fix recent regression caused by changes to assignment of struct fields 2011-10-04 09:34:31 +01:00
Jonathan Pryor 729b27e7e6 [mdoc] Add tests for C#4 dynamic, default method parameter values. 2011-10-03 15:55:14 -04:00
Jonathan Pryor 19fbbe0750 [mdoc] Add tests for C#4 variance support. 2011-10-03 15:55:13 -04:00
Atsushi Eno 189da5d408 Add ProtectionTokenParameter for mutual nego. Patch by Alexander Riman. 2011-10-04 00:00:43 +09:00
Marek Safar 95473a3a40 Update to the latest ikvm reflection 2011-10-03 13:49:24 +01:00
Marek Safar e4540d85d3 Fix xbuild.rsp install location 2011-10-03 13:22:13 +01:00
alexrp 3b549d9810 configure.{ac,in}: Point to the new Bugzilla. 2011-10-01 01:00:05 +02:00
Marek Safar 3cc951cc91 Add more 4.5 task methods 2011-09-30 19:25:40 +01:00
Marek Safar b7e45d53b0 Mutate async awaiter when it's of generic type 2011-09-30 19:25:40 +01:00
Marek Safar 56dd03f224 Add gitignore 2011-09-30 19:25:40 +01:00
Marek Safar 2db36986a2 Merge pull request #175 from alexrp/master
Use Console.Is*Redirected for the 4.5 profile in csharp's repl.cs.
2011-09-30 02:59:16 -07:00
alexrp 741b25e602 Use Console.Is*Redirected for the 4.5 profile in csharp's repl.cs. 2011-09-30 13:57:28 +02:00
alexrp eb81a0f279 Add new Is*Redirected properties to Console for the 4.5 profile. 2011-09-30 12:56:27 +02:00
Marek Safar cc7b9ed379 Merge pull request #174 from alexrp/master
Add new Is*Redirected properties to Console for the 4.5 profile.
2011-09-30 02:00:36 -07:00
Gonzalo Paniagua Javier 4841411351 Plug an unmanaged memory leak
If Flush() was called with final_flush set to true, we were leaking the
	unmanaged memory in the output stream (if allocated).

	It was "only" an AS leak.

	Thanks to Kumpera for the help debugging this.
2011-09-30 01:22:08 -04:00
Jonathan Pryor 89864dd6a0 Make mdoc a .NET 4.0 profile app.
This isn't so much so that mdoc can use C#4 features. It's instead so
that the mdoc unit tests can use C#4 features. :-)
2011-09-29 12:11:16 -04:00
Jonathan Pryor e8f31be2f6 Include the correct profile directory in MONO_PATH.
Running a 4.0-built mdoc.exe against the 2.0 profile leads to pain.
2011-09-29 12:11:15 -04:00
Gonzalo Paniagua Javier c160422cd3 Merge pull request #167 from konrad-kruczynski/send_async_fix
Fix for Xamarin bug #531.
2011-09-29 08:30:47 -07:00
Jeffrey Stedfast 224769358c [TimeZone] Fixed race condition with renewing the CurrentTimeZone object.
Fixes bug #1055.
2011-09-29 10:56:13 -04:00
Marek Safar a1aed4f8af Fix check for ambiguous async tasks 2011-09-29 15:41:32 +01:00
Marek Safar b0c8f634e4 Search for .net 4.5 corlib in correct profile folder 2011-09-29 15:41:31 +01:00
Marek Safar 6f316320eb Distribute net_4_5 specific data 2011-09-29 15:41:31 +01:00
Rodrigo Kumpera 67ad1328ab Request ObjectMirror type and domain in a single request. 2011-09-29 02:51:35 +02:00
Rodrigo Kumpera 9f1d144c40 Cache thread id. 2011-09-29 02:09:44 +02:00
Rodrigo Kumpera 41dfc8687c Cache source files. 2011-09-29 02:09:26 +02:00
Rodrigo Kumpera e9b685fef0 Cache ObjectMirror type and domain. 2011-09-29 02:08:56 +02:00
Rodrigo Kumpera b4abd5f7e5 Avoid looking up the ctor mirror twice. 2011-09-29 02:07:33 +02:00
Zoltan Varga e0ba01a493 Avoid a crash if mono_debug_open_image_from_memory is called without --debug. Fixes #1093. 2011-09-29 02:01:58 +02:00
Lluis Sanchez 296246af84 [CSharpCodeGenerator] Revert change for not ignoring Final attr on fields
MS.NET does ignore the Final attribute for fields, so we
have to ignore it to be compatible. Also, CodeMemberField
objects are created with the Final flag set, so with this
change all fields were now generated as readonly, which
is a severe regression.
2011-09-28 18:20:42 +02:00
Marek Safar 14d5c30b37 Fix broken task test 2011-09-28 15:25:09 +01:00
Marek Safar 80d112823b Don't crash when constant resolver returns error expression 2011-09-28 13:10:46 +01:00
Marek Safar 9fc134dfe4 Update tools makefile to build with latest profile 2011-09-28 12:35:26 +01:00
Marek Safar d3996eff98 Add 4.5 sdk detection to mcs 2011-09-28 12:33:58 +01:00
Marek Safar fe4b4aa192 Remove unused class 2011-09-28 11:07:51 +01:00
Marek Safar e1298e2d43 Yet another wrong version check 2011-09-28 09:30:29 +01:00
Marek Safar 690b7550f4 Fix another version check 2011-09-28 09:13:50 +01:00
Marek Safar 7b51bb0cb1 Implement stream async methods 2011-09-28 08:09:33 +01:00
Zoltan Varga 6ee6115b3b Save/restore argument registers when instrumenting tail calls. Fixes #971 2011-09-27 20:57:59 +02:00
Jérémie Laval fa78858a6c Fix execution when same continuation is registered several times 2011-09-27 19:07:41 +02:00
Marek Safar 3aaa62fabc Fix TaskFactoryTest 2011-09-27 15:47:38 +01:00
Marek Safar b73c337fcf Fix mcs/doc builds 2011-09-27 14:23:06 +01:00
Marek Safar 5726ba86c4 Add 4.5 profile support to xbuild 2011-09-27 11:51:47 +01:00
Marek Safar 5423d882a7 Another build profile version fix 2011-09-27 11:48:21 +01:00
Marek Safar 802dad7351 Remove 2.0 reference from 4.0 profile xbuild 2011-09-27 10:50:39 +01:00
Marek Safar 5a7b35fcf0 Use correct version of xbuild 4.0 targets 2011-09-27 10:50:39 +01:00
Rodrigo Kumpera c1cf031669 Split bridge processing in two steps.
* sgen-bridge.c: Bridge processing must be split in
	two steps because the object scanning step must be done
	with world stop and before we copy the finalizable objects
	and the ones pointed by them.
2011-09-26 19:21:31 -03:00
Rodrigo Kumpera a37d89027d Fix the interation of non tracking weak refs and ephemerons.
* sgen-gc.c (finish_gray_stack): We must process ephemerons
	before we check for non track weak refs to make sure we mark
	those values whose only root are their keys.
2011-09-26 19:21:30 -03:00
Marek Safar afea432131 Fix another framework version check 2011-09-26 22:37:14 +01:00
Marek Safar 88cb78c323 Clean up mixed tabs and spaces 2011-09-26 22:37:14 +01:00
Rodrigo Kumpera a044e0584a Fix a bunch of data races. 2011-09-26 16:41:38 -03:00
Rodrigo Kumpera 56978d2d35 Fix enter/exit critical region visibility. 2011-09-26 16:41:38 -03:00
Rodrigo Kumpera 2816a9946f Complete acquire/release ops. Make acquire/release have ECMA sematics. 2011-09-26 16:41:37 -03:00
Jonathan Pryor 431e8a6e08 [mdoc-update] Properly implement C#4 dynamic support.
The `dynamic` support in d80fadf was incomplete, in that it would only
find `dynamic` types, and not generic types, e.g.
`Dictionary<string, dynamic>` would be declared as
`Dictionary<string, object>`.

To figure this out, we need to read the
DynamicAttribute.TransformFlags value, which is a bool[] which
specifies which types in the depth-first traversal of the type should
be `dynamic` instead of the actual type, e.g. for
Dictionary<string,object> the bool[] is {false, false, true}.

This requires that we pass a "context" object whenever we have the
"root" of the object, so that we can properly count the depth-first
generic type traversal and generate an appropriate declaration.
2011-09-26 14:26:24 -04:00
Jonathan Pryor e84605dfa1 Run mdoc tests with --debug.
It's more useful to see a stacktrace when things regress. :-)
2011-09-26 14:26:24 -04:00
Marek Safar ed437f0c01 Don't install resgen when cannot be used 2011-09-26 12:27:51 +01:00
Marek Safar 72265b398d Fix System.Threading.Tasks.Dataflow version info 2011-09-26 12:26:40 +01:00
Marek Safar dd9b92a100 Install 4.0 profile as developers package and make 4.5 profile default gac target for 4.x 2011-09-26 12:08:01 +01:00
Gonzalo Paniagua Javier a06852a953 Create the first tp thread right away.
Avoid 500ms delay.  Fixes Xamarin bug #1036.
2011-09-25 02:20:52 -04:00
Jérémie Laval df1e2d9a08 Move things around in Task and Task_T 2011-09-25 18:53:56 +02:00
Jérémie Laval 8f3160093d Optimize more how continuation are registered and executed to avoid extra allocation 2011-09-25 18:36:02 +02:00
Jérémie Laval 4b4c9c15d0 Mimic simpleAction usage in Task<T> to avoid creating an extra delegate in the simple case 2011-09-25 18:31:45 +02:00
Jérémie Laval 802b44f925 Use quicket methods to launch a Task on the threadpool 2011-09-25 18:11:27 +02:00
Jérémie Laval 80a64493af Don't create a delegate each time we use a TaskCompletionSource method 2011-09-25 16:17:29 +02:00
Jérémie Laval 17ae5c4416 Lazy allocate childTasks field in Task 2011-09-25 12:54:36 +02:00
Jérémie Laval 2841c2d1b2 Optimize continuation registration for a single ContinueWith. 2011-09-25 12:53:30 +02:00
Jérémie Laval 99646e4385 Fix build 2011-09-25 12:25:42 +02:00
Jérémie Laval b2fb65cde6 Fix double adding in ConcurrentDictionary ctor with IEnumerable seed. 2011-09-25 11:23:43 +02:00
Jérémie Laval c20f5cab4b Fix for #892 2011-09-25 11:23:42 +02:00
Jérémie Laval e1ec7da0c4 Fix more argument checking for Task<T> 2011-09-25 11:23:42 +02:00
Jérémie Laval c0338ec42f Check that supplied function argument in a Task<T> ctor isn't null 2011-09-25 11:23:41 +02:00
Mark Probst 2cff4163f8 [sgen] If we couldn't evacuate the nursery after a major collection, do a minor collection.
If in the course of a major collection we run out of memory, we might
not be able to evacuate the nursery anymore, which means we'd probably
go into degraded mode soon.  It's very likely, however, that memory is
freed again during the sweep phase, so if we do a nursery collection
after the major collection, we should have a clean nursery again.
2011-09-24 19:45:11 +02:00
Mark Probst a9758cde9e [sgen] Never directly pin objects on the M&S major heap.
We don't use the pin bit in the M&S heap blocks.  If we did that we'd
have to scan them all in the sweep phase, which would not be good
cache behaviour.

Instead, to pin an object we set its mark bit and the block's
has_pinned flag.  We'd need to (should) set the latter anyway, to
avoid evicting other objects out of that block.
2011-09-24 19:45:10 +02:00
Sebastien Pouliot 94edf31d65 Provide binding for sqlite3_config to allow setting the threading model. Fix bug #652 2011-09-24 09:35:23 -04:00
Zoltan Varga 36640a91ad Fix the namespace of a corlib test and quiet some tests. 2011-09-24 03:22:53 +02:00
Marek Safar e06b2f1e5f Add missing RabbitMW source 2011-09-23 22:52:39 +01:00
Marek Safar f09288ff9c Add extra 4.5 conditional 2011-09-23 19:56:46 +01:00
Marek Safar 9b40c7a85b Update gitignore 2011-09-23 19:53:26 +01:00
Marek Safar 3ecb5142f6 Introduce separate .net 4.5 profile 2011-09-23 19:37:04 +01:00
Marek Safar e348cb5e2d Update test with timeout 2011-09-22 18:39:41 +01:00
Marek Safar 4e5add05fc Use correct expression for infered default value argument. Fixes #983 2011-09-22 18:39:40 +01:00
Marek Safar 7f4dbcc68b Add a few new async stream methods 2011-09-22 18:39:40 +01:00
Marek Safar aeac002518 Make CancellationToken more lightweight and fix few bugs in it 2011-09-22 18:39:40 +01:00
Rolf Bjarne Kvinge 65c1456cb9 [Microsoft.Build] Stub out a few types to make nuget run. 2011-09-21 23:27:24 +02:00
Gonzalo Paniagua Javier fe96470fa9 Return the right empty collection in ParseQueryString.
Fixes Xamarin bug #970.
2011-09-21 07:39:01 -04:00
Sebastien Pouliot 340171aba8 Merge pull request #173 from juhovh/master
Bug in HMACSHA384 and HMACSHA512 calculation
2011-09-21 08:17:46 -07:00
Juho Vähä-Herttua 6fd492dcfb Fix HMACSHA384 and HMACSHA512 for key length of [65, 128] bytes. 2011-09-21 17:16:01 +03:00
Marek Safar 8a335c00ae Remove few compiler workarounds 2011-09-21 09:26:25 +01:00
Marek Safar 4ab90e6642 Fix build for 4.0 rtm 2011-09-21 09:24:28 +01:00
Miguel de Icaza 63903e5634 Fix the build, resolve the ambiguity 2011-09-21 02:00:32 -04:00
Marek Safar 235a41e76d Add more task awaiters and optimize existing ones by using new overloads 2011-09-20 19:04:13 +01:00
Miguel de Icaza 8fdd8ebfe6 Fix my profiler loader.
This is what happens when you test on a pre-configured environment that
already worked fine.    This depended on a function that was never called
so we ended up probing for paths on NULL (repeating the same process twice)
instead of loading the profiler from the installation directory.
2011-09-19 22:54:44 -04:00
Miguel de Icaza 16c20d8a08 Update copyrights 2011-09-19 22:22:46 -04:00
Zoltan Varga 8b881625b6 Fix warnings. 2011-09-20 04:08:05 +02:00
Zoltan Varga b0c4e8563e Fix the ObjRefs sdb test 2011-09-20 04:00:51 +02:00
Zoltan Varga 29965e800f Fix debugger invokes when using soft breakpoints on arm, fix setting values in registers 2011-09-20 04:00:25 +02:00
Zoltan Varga 4a59ac0f37 Implement the new interrupt machinery for ARM 2011-09-20 04:00:14 +02:00
Zoltan Varga 455ebc642c Call ensure_synch_cs_set () in thread_cleanup () too, it is needed when disposing the debugger thread 2011-09-20 03:55:37 +02:00
Zoltan Varga 2bc19bd1e8 Allocate a param area in START_HANDLER. Fixes filter-stack.exe on arm 2011-09-20 03:53:52 +02:00
Zoltan Varga e9f4e521fe Fix a timing issue in a test 2011-09-20 03:52:26 +02:00
Jonathan Pryor 77dd97954e [Mono.Options] Don't throw ArgumentOutOfRangeException for trailing whitespace
Trailing whitespace in option description text shouldn't throw an
ArgumentOutOfRangeException.
2011-09-19 15:44:33 -04:00
Marek Safar 11db01b5a1 Add few new 4.5 overloads 2011-09-19 19:34:27 +01:00
Marek Safar e1c66efea8 Add 4.5 readonly collection interfaces 2011-09-19 19:34:27 +01:00
Marek Safar ad78b706d9 Report error about missing async support types 2011-09-19 19:34:26 +01:00
Sebastien Pouliot 13054ea6e0 fix previous fix (wrt #808) 2011-09-19 11:22:36 -04:00
Marek Safar d6b4a3cc3f Move some async types to corlib 2011-09-19 15:01:21 +01:00
Marek Safar b8887fb8c2 Update public corlib api 2011-09-19 15:01:21 +01:00
Michael Hutchinson 4d71a7c977 [Mono.Debugger.Soft] Support custom transports 2011-09-19 13:15:28 +01:00
Marek Safar e85991f322 Allow async block to capture this inside value types 2011-09-19 11:56:41 +01:00
Marek Safar f3c038c952 Better error reporting for special runtime types 2011-09-19 11:56:41 +01:00
Marek Safar 7a4152aedf Update mcs lang version 2011-09-19 11:56:41 +01:00
Marek Safar 72e0ce74cb Better error reporting for async delegates 2011-09-19 11:56:40 +01:00
Sebastien Pouliot d0a0338f4a Fix typo (bug #808) 2011-09-18 10:35:15 -04:00
Sebastien Pouliot 81cd91ebec Expose Dispose under the NET_2_1 based profiles. Fix bug #154 2011-09-18 10:26:13 -04:00
Jonathan Pryor 0b2c04daec [mdoc] Add C#4 default parameter value support. 2011-09-17 10:26:35 -04:00
Jonathan Pryor ac0f91a42b [mdoc-net] Copy 2.0 assemblies for .NET support.
mdoc.exe is built against the 2.0 profile, so copying 4.0 support
assemblies results in runtime errors under .NET.
2011-09-17 10:26:34 -04:00
Paolo Molaro 749c9e7354 GetMarshalledDomainObjRef() is needed also in the 2.1-based profiles for appdomain creation. 2011-09-16 14:07:50 +02:00
Sebastien Pouliot 86b1b8be98 Allow commit/rollback/update events to work under MonoTouch. Fix bug #233 2011-09-15 22:20:11 -04:00
Paolo Molaro d75c928423 Added the new mobile profile to the build. 2011-09-15 17:42:29 +02:00
Gonzalo Paniagua Javier a05c8bebb2 Remove duplicate 'using' statement 2011-09-15 11:34:41 -04:00
Marek Safar 4498a87ff7 Update few async error codes 2011-09-15 16:08:47 +01:00
Marek Safar 2afa23f221 Extension methods cannot be declared on interfaces. Fixes #825 2011-09-15 15:08:24 +01:00
Marek Safar 28cdcddd6c Update test 2011-09-15 13:28:09 +01:00
Marek Safar 3a68d9c2c6 Generate better code for small switch statements 2011-09-15 13:28:09 +01:00
Zoltan Varga d129e6a7f6 Quiet the 'copying selected object files' libtool message 2011-09-15 14:15:57 +02:00
Jonathan Chambers ed95f38d9c Update .gitignore 2011-09-13 21:15:26 -04:00
Gonzalo Paniagua Javier 1eabda3130 Stop lying in the comments 2011-09-13 20:20:04 -04:00
Gonzalo Paniagua Javier 3656ca07da Report compilation errors when the type named in 'class' can't be loaded. 2011-09-13 20:19:24 -04:00
Miguel de Icaza 2852ed0b59 Update copyrights 2011-09-13 18:26:13 -04:00
Rodrigo Kumpera 00e3f277ac Avoid duplicates in the SSC xrefs.
* sgen-brige.c (scc_add_xref): Make sure that the xref
	array is kept sorted by doing sorted insertion for single elements
	and merging for a pair of lists.

	This avoids degenerated cases where performance of the dfs2 step
	goes unbound and slows us down significantly.

	Fixes bxc #496
2011-09-13 15:03:55 -03:00
Rodrigo Kumpera 4b430482d2 Add logging to sgen-bridge. Log times and sizes. 2011-09-13 15:03:12 -03:00
Tom Hindle 62ed1d1253 Store current threads Synchronization Context, if present, on ComObject
creation so that in its finalizer ReleaseInterfaces is called on the correct
thread.

Fixes bug #672879
2011-09-13 17:05:42 +01:00
Rolf Bjarne Kvinge 36469066f5 [System.Data] Delay column expression evaluation after all the columns have been cloned when cloning a table. Fixes #666.
When cloning a table we loop over all the columns and clone them, but if a column
contains an expression with a reference to a later column, we'll throw an exception
unless we delay the expression compilation until all the columns have been added
to the new table clone.

So I've split out the expression compilation logic from the Expression property setter,
and now the column Clone method only sets the field. The Clone caller is responsible
for calling CompileExpression on the cloned column after adding all the cloned columns to
the cloned table.
2011-09-13 14:07:27 +02:00
Rolf Bjarne Kvinge 6c7d6c034a [System.Data] Properly clone a column's extended properties when cloning a table. Fixes #668. 2011-09-13 13:01:16 +02:00
Marek Safar d4d21db33f Check whether parent struct field is assigned when assigning to child field. Fixes #685916 2011-09-13 11:57:48 +01:00
Marek Safar 3ca49569bc Omit struct flow analysis only when resolving member access expression 2011-09-13 11:57:48 +01:00
Gonzalo Paniagua Javier 795b8cb0d9 Delay initialization of the stream until first read
This way uri-based resources are not fetched before they are supposed
	to.

	Fixes Xamarin bug #762.
2011-09-13 01:22:39 -04:00
Gonzalo Paniagua Javier b96b00cb9d Internal worker is kept while there is an ongoing operation
When there is an ongoing operation we can't dispose the internal
	worker because it might be used by the IO threadpool.

	Fixes Novell bug #691076 and Xamarin bug #766.
2011-09-13 00:01:38 -04:00
Sebastien Pouliot 232b6428d8 More fixes for running unit tests under NET_2_1 profile 2011-09-12 10:48:12 -04:00
Miguel de Icaza 8cf313456e Various fixes to the Expression parser, the fixes include:
* Fixes to the SUBSTRING and TRIM function to allow
	  a wider range of functions to be passed as
	  parameters.   This fixes xamarin #665

	* Fix to the Parser.jay grammar to eliminate the
	  reduce/reduce conflicts.

	* Dropping the string concatenation code and instead
	  use the existing arithmetic addition operator which
	  also fixes the concatenation operation in the presence
	  of null values

	* Adds the null literal

With the associated test cases.
2011-09-09 22:02:56 -04:00
Sebastien Pouliot 0466ae48a3 Adjust corlib unit tests to reduce failures when executed on the NET_2_1 profile 2011-09-09 13:43:15 -04:00
Sebastien Pouliot 97d989fa95 fix FileStream test failures under Mac OSX 2011-09-09 13:41:00 -04:00
Sebastien Pouliot 8d641b33e7 Throwing IsolatedStorageException is a Moonlight-behavior and should not have been exposed to other 2.1 profiles 2011-09-09 13:18:37 -04:00
Sebastien Pouliot 7fad18abb0 Ensure we can roundtrip 'Local' (special case) timezone. Fix bug #326 2011-09-09 11:29:52 -04:00
Sebastien Pouliot 99909e0e61 Return null instead of catching Activator exception (and return null). What was a corner case before is now very common when the linker is used (e.g. monotouch, m4a). Reported in assistly #1741 2011-09-09 10:13:43 -04:00
Marek Safar c77b7033f5 Don't back reference local variable from its info 2011-09-08 15:36:38 +01:00
Marek Safar 6f06e65f5c New tests 2011-09-08 15:36:38 +01:00
Marek Safar 2c3b57a928 Run definitely assigned check on dynamic member access. Fixes #593369 2011-09-08 15:36:38 +01:00
Miguel de Icaza 8bee07fc58 Fallback: load profiler from the Mono default path. This in particular allows users to run mono --profiler=log foo.exe without having to set anuy environment variables 2011-09-07 18:47:27 -04:00
Marek Safar 3b078c8214 Fix definitive assignment for imported structs. Fixes #629547 2011-09-07 16:38:44 +01:00
Marek Safar 445db047a0 Assign uninitialized out parameter 2011-09-07 16:38:43 +01:00
Marek Safar cd0b165ea1 New tests 2011-09-07 16:38:43 +01:00
Marek Safar 82f478a4b7 Better fix for fixed buffer definite assignment checks. Fixes #619228 2011-09-07 16:38:43 +01:00
Marek Safar dfc6fd93e6 Run definitely assigned check on extension method argument. Fixes #518349 2011-09-07 16:38:42 +01:00
Sebastien Pouliot 7894348cc8 Add null-check on 'partDesc'. Fix bug #612 (WCF regression) 2011-09-07 11:16:23 -04:00
Marek Safar 5f06457217 Fixes commit f355ebbb77 2011-09-07 10:13:21 +01:00
Marek Safar b6cb16c499 Run definitely assigned check on member access expression where left expression is variable. Fixes #278 2011-09-07 10:13:21 +01:00
Marek Safar 2a3d181f2a Delay foreach variable initialization 2011-09-07 10:13:21 +01:00
Rodrigo Kumpera fdef50957f Let the system figure our permissions instead of doing a poor job at it.
io.c (DeleteFile): We can't forbit a file to be deleted just before
	it's mask is not u+w. We should just call unlink and let the kernel
	figure out permissions.

	We are not SAMBA.

	We're not in the job of trying to mingle windows and unix permissions
	models so we just let the kernel figure it out and translate the appropriate
	errno value to UnauthorizedAccessException.
2011-09-06 19:33:49 -03:00
Jérémie Laval b4ddae3b51 Rework TaskFactory.FromAsync, it was a bit messy. 2011-09-06 23:54:11 +02:00
Jérémie Laval 48a5bbeb93 Use a TaskCompletionSource in non-generic ContinueWhenAny case. Fix #647. 2011-09-06 23:54:11 +02:00
Zoltan Varga c94cbe07d2 Merge pull request #169 from madewokherd/master
replace uint with guint
2011-09-06 13:31:48 -07:00
Vincent Povirk 01df6bfc08 Use guint instead of uint. 2011-09-06 14:44:01 -05:00
Rodrigo Kumpera 08421f6bc8 Improve exception message. 2011-09-06 14:55:13 -03:00
Rodrigo Kumpera 7b409ac57a Add sgen collection pause times to mono trace log. 2011-09-06 14:55:12 -03:00
Marek Safar f355ebbb77 Fix start location of char literals 2011-09-06 15:27:59 +01:00
Marek Safar 230c072510 Persist char literal value under full ast 2011-09-06 13:44:43 +01:00
Marek Safar a4c6f94124 Add more async extensions 2011-09-06 13:20:59 +01:00
Marek Safar 9933358962 make test public 2011-09-06 12:15:30 +01:00
Marek Safar a850901cee Revert part of 4a17e24982 which broke most of existing tests 2011-09-06 11:59:00 +01:00
Marek Safar 7539a97bac Remove NET_2_0 2011-09-06 11:58:59 +01:00
Marek Safar 8fd1f765d7 Fix ResourceSet regression caused by 4a17e24982 2011-09-06 11:58:59 +01:00
Marek Safar f3ebf7cd74 Remove NET_2_0 2011-09-06 11:58:59 +01:00
Marek Safar bf8fe085a2 Fix wrong string unit test 2011-09-06 11:58:59 +01:00
Marek Safar ac96f05be2 Remove NET_2_0 2011-09-06 11:58:58 +01:00
Marek Safar fcdafff83d Don't set NewSlot attribute when base class already implements the interface method and same method exists in derived class 2011-09-06 11:58:58 +01:00
Gonzalo Paniagua Javier 8cf9a08adc Display more debugging info when epoll fails 2011-09-05 21:12:36 -04:00
Gonzalo Paniagua Javier 18ebf2af53 Fallback to poll() if epoll_create() fails
From a patch by Zoltan in bug #705190.
2011-09-05 20:50:05 -04:00
Zoltan Varga 1cb94acd85 Handle threads which die without detaching. 2011-09-06 04:20:51 +02:00
Zoltan Varga c5eeab2751 Add a few missing cases to event_to_string () in sdb. 2011-09-06 04:11:10 +02:00
Zoltan Varga 3d6ade9d45 Remove some unused arguments from mono_arch_handle_exception () / mono_handle_exception (). 2011-09-06 02:41:49 +02:00
Zoltan Varga 38b57626da Implement mono_arch_setup_async_callback () for amd64. 2011-09-06 02:10:04 +02:00
Zoltan Varga 0d563ab02a Fix a warning. 2011-09-06 00:19:41 +02:00
Zoltan Varga 14c5090847 Optimize AOT generics data structures a bit more. 2011-09-05 22:12:38 +02:00
Zoltan Varga 5d79ca5b7f Avoid searching out-of-date AOT modules for 'extra' methods. 2011-09-05 20:53:46 +02:00
Zoltan Varga 32d1cfad7f Remove some AOT assertions left in by mistake. 2011-09-05 20:32:20 +02:00
Marek Safar 482e63b5bd Few corcompare fixes 2011-09-05 19:02:32 +01:00
Marek Safar 4863c3b91a Resolve conditional expression unreachable expression with unreachable flag set 2011-09-05 19:02:32 +01:00
Marek Safar ab89771a48 Unify anonymous method test names 2011-09-05 19:02:32 +01:00
Marek Safar 1bb13c6a68 Fix compilation of array initializer used inside field initializer of an anonymous method 2011-09-05 19:02:31 +01:00
Marek Safar 1e1a8b4a6a Reduced ternary operator expression is allowed as an attribute argument 2011-09-05 19:02:29 +01:00
Marek Safar 5241357859 Remove NET_2_0 2011-09-05 19:02:29 +01:00
Jérémie Laval 6a646fe961 Revert 12fdfa365c and save/restore task status to also fix #561. 2011-09-05 19:21:27 +02:00
Zoltan Varga ba71454249 Rework the encoding of classes in AOT to save space for generic instances. This decreases the size of a full-aot mscorlib by about 50k. 2011-09-05 01:54:05 +02:00
Zoltan Varga dfcac450fa Improve the name of the proxy isinst wrappers. 2011-09-04 19:28:39 +02:00
Zoltan Varga 1decbc7f5c Compute and print the space used by the GOT entry info among the AOT compiler stats. 2011-09-04 19:27:36 +02:00
Zoltan Varga 3db7cd1394 Implement AppDomain.ResourceResolve. Fixes #579. 2011-09-04 03:19:33 +02:00
Zoltan Varga 5e033c8595 Print null MonoVTable's correctly in gdb. 2011-09-04 02:53:37 +02:00
Zoltan Varga 5f11ed2e6f Fix unwinding through an LMF on ARM. 2011-09-04 02:49:57 +02:00
Marek Safar 6c7c0f16a6 Implement Stream ReadAsync/WriteAsync 2011-09-02 16:36:52 +01:00
Marek Safar 50f31db715 Make Stream BeginRead/BeginWrite asynchronous 2011-09-02 16:36:52 +01:00
Marek Safar 1feb50a5cf Make MemoryStream more .net compatible 2011-09-02 16:36:52 +01:00
Marek Safar 7601cbf07b Remove NET_2_0 conditional 2011-09-02 16:36:52 +01:00
Marek Safar 9ade7cbe93 Add new test 2011-09-02 16:36:51 +01:00
Atsushi Eno f925dff3eb XDocument could also be filled IXmlLineInfo. 2011-09-02 18:50:38 -07:00
Rodrigo Kumpera 1e03aa24a1 The fin hashtable holds no value, so revert to tagging in the same way as 2-10 does. 2011-09-01 20:59:20 -03:00
Rodrigo Kumpera 2165ae16a4 Handle finalizable objects pointed by bridge objects. (cont...)
* sgen-fin-weak-hash.c:
	* sgen-gc.c: Bridge objects are used to represent objects
	that have references outside of sgen's control. They are
	kept around until the embedder figures out it's ok to
	collect them.
	Until those bridge objects turn externally unreachable,
	they must be kept around. Up to now, the expected pattern
	was to resurrect them during finalization.
	The problem with this approach is that if they hold references
	to other finalizable, non-bridge objects those will be finalized
	and we will resurrect objects that point to dead ones.

	Think of this:

	class BridgeObject {
 		FileStream stream;
	}

	The bridge object is resurrected on the finalizer and so will
	stream, disposing its native handle and been permanently unusable.

	The solution is to process brige objects before we do ordinary
	finalization. We record all dead bridges and copy/mark them.
	We drain the gray queue on the end, which makes sure all other
	finalizable objects that transitively reachable are too.

	Finally, we introduce a breaking change to the bridge API.
	The bridge must set to NULL the first object of all SCC
	entries that remain alive. Other entries will be considered
	dead and will be subject to regular finalization.

	This way, sgen knows when a given bridge object is completely
	unreachable and provides adequate finalization semantics to
	them and referenced objects.

	This fixes bxc #375
2011-09-01 19:39:15 -03:00
Rodrigo Kumpera 7e244f1e04 Add new sgen-hash method that changes the value of an existing key but doesn't insert when the key is not found. 2011-09-01 19:39:14 -03:00
Marek Safar f5ef306864 Merge pull request #168 from tomaszkubacki/master
added Quit method to csharp eval
2011-09-01 06:25:01 -07:00
Marek Safar 6310867299 Fix wrong condition 2011-09-01 13:31:50 +01:00
Marek Safar 644a44c896 Implement properly TaskFactory::FromAsync 2011-09-01 13:26:51 +01:00
Marek Safar 016ad09406 Add missing finalizer 2011-09-01 13:26:50 +01:00
Marek Safar fcfa09ce84 Make Task debugging more pleasant 2011-09-01 13:26:50 +01:00
Atsushi Eno 1d5a375459 DiffLoader didn't handle encoded name and caused mismatch between .NET. 2011-08-31 17:49:36 -07:00
Atsushi Eno 0a23442387 Fix invalid path check for Windows regarding ':'. 2011-08-31 14:10:43 -07:00
Atsushi Eno 08d304aa03 Add test for bug #545. 2011-08-31 14:10:15 -07:00
Atsushi Eno 5b18ed7d41 EncoderReplacementFallbackBuffer.Reset() did not really reset its internals. 2011-08-31 13:59:56 -07:00
Zoltan Varga aa8cd8e0f7 Disable some invalid string ctor tests 2011-08-31 02:33:39 +02:00
Zoltan Varga 0c02fefac3 Fix the namespace of some corlib tests 2011-08-31 02:33:37 +02:00
Chris Toshok 058515940f prepend $(CURDIR) to jay input files so that the debugging info references the right .jay 2011-08-30 17:06:03 -07:00
Zoltan Varga 7524570a05 Emit a lot message in sdb when returning an ABSENT_INFORMATION error code 2011-08-31 00:52:36 +02:00
Marek Safar fc786a7996 Close defined interface on imported type parameters before importing base class. Fixes #495 2011-08-30 20:54:49 +01:00
Marek Safar 1ec37e34b7 New test 2011-08-30 20:54:49 +01:00
Jonathan Pryor 19103c9e01 Don't use vasprintf on PLATFORM_ANDROID.
This allows sanely using g_log() within signal handlers.
2011-08-30 15:26:15 -04:00
Konrad M. Kruczynski c8d9d4355b Also zeroing in case of exception. 2011-08-30 19:43:46 +02:00
Konrad M. Kruczynski 9c42017230 Fix for bug #531 as proposed by aldem. 2011-08-30 19:38:03 +02:00
Konrad M. Kruczynski 5cf1cb6a13 Revert "Fix for Xamarin bug #531" - it will be fixed another way.
This reverts commit d1d1dd6198.
2011-08-30 18:57:47 +02:00
Zoltan Varga 4218b87cdf Implement support for the new interrupt machinery in sdb. 2011-08-30 18:54:39 +02:00
Zoltan Varga 2c84500c4e Really fix the previous sdb changes. 2011-08-30 16:45:07 +02:00
Zoltan Varga 60be1d5ef2 Fix the sdb changes made by 06ff2031 2011-08-30 16:40:01 +02:00
Atsushi Eno 74230b6804 Implement IXmlLineInfo on XLinq node reader. 2011-08-30 23:13:03 +09:00
Atsushi Eno ae4c581100 LineInfo on namespace nodes were missing. 2011-08-30 20:21:03 +09:00
Marek Safar 80b144d94b Install cccheck script 2011-08-30 09:30:44 +01:00
Tomasz Kubacki 77bf7eff08 added Quit method for script scenerios 2011-08-30 06:18:47 +02:00
Zoltan Varga f913e8b6d7 Disable the new suspend code when using sdb, it doesn't seem to work yet (bxc #525). 2011-08-30 03:55:39 +02:00
Konrad M. Kruczynski d1d1dd6198 Fix for Xamarin bug #531. 2011-08-30 02:05:21 +02:00
Zoltan Varga ef7ed285d0 AOT the v4.0 monitor enter fastpath, not the unused 2.0. 2011-08-30 01:19:53 +02:00
Zoltan Varga b201061122 Fix the taken==true argument check in the v4 monitor fastpath. 2011-08-30 01:17:30 +02:00
Zoltan Varga 44380df8dc Eliminate the by-name encoding for all wrapper methods, instead, encode them directly by encoding signatures etc. using a binary encoding. This saves 30k from the mscorlib AOT image at the cost of some runtime C code. 2011-08-30 00:26:52 +02:00
Jb Evain f8119ca458 Update Mono.Cecil 2011-08-29 15:59:34 +02:00
Jb Evain dc554b16fa Complete README 2011-08-29 15:58:46 +02:00
Jb Evain da218bcae4 Add README to specify Cecil's update procedure 2011-08-29 15:56:26 +02:00
Jb Evain 54426b0f3d Delete deprecated solution file 2011-08-29 15:52:51 +02:00
Sebastien Pouliot 2bf478c24a Fix bug #380. Patch from bnc#605795 were not committed to master but part of MonoTouch 3.x (ended up missing in MT4) 2011-08-29 08:56:33 -04:00
Hin-Tak Leung bc7bd64896 Fix mingw32 cross-build on a git no-branch checkout. Fixes #698446. 2011-08-29 01:22:57 +02:00
Zoltan Varga f8f2da07c9 Allow pointers to structures to be passed in pinvoke, MS seems to allow this at least in some cases. Fixes bxc #158.
This partially reverts c4d9097c57.
2011-08-28 17:50:52 +02:00
Zoltan Varga 0f7afebd75 Change the way unbox trampolines are handled in AOT. Instead of emitting a global 'ut_...' symbol for them, which takes up space in the symbol table, emit a sorted table mapping method indexes to their unbox trampolines. This cuts the size of the static mscorlib AOT image by about 20k. 2011-08-28 17:39:23 +02:00
Jérémie Laval 12fdfa365c Do not set WaitingToRun status when trying to run synchronously. Fix #471. 2011-08-28 15:18:04 +02:00
Jérémie Laval f3cfa2841c Check and throw if a task reportedly executed isn't actually ran. Fix #470. 2011-08-28 15:10:03 +02:00
Jérémie Laval c764bfd4fa Check that CancellationToken coming from OperationCanceledException isn't None. Fix #472. 2011-08-28 14:48:39 +02:00
Zoltan Varga 86dfafe50d Avoid pinning a few stack slots on amd64. 2011-08-28 14:37:12 +02:00
Zoltan Varga 0b787f5c0e Implement precise stack marking for ARM. 2011-08-27 22:50:29 +02:00
Zoltan Varga 3a0faf0d72 Improve precise stack marking on x86. 2011-08-27 19:06:31 +02:00
Zoltan Varga fdf46197c1 Fix the precise stack marking code on x86. Mark x86 register save locations as NOREF. 2011-08-27 14:48:39 +02:00
Jonathan Chambers 3b1120e418 Add new file to project. 2011-08-25 23:44:16 -04:00
Zoltan Varga 77e9155088 Fix the scanning of the register save areas in the precise stack marking code, we were scanning 4/8 slots conservatively instead of just 1. 2011-08-26 01:52:55 +02:00
Zoltan Varga 08bc140ae8 Make the plt symbols used by llvm+aot code more descriptive. 2011-08-26 01:18:50 +02:00
Zoltan Varga e5cd89e21e Name llvm structure types. 2011-08-26 01:07:56 +02:00
Zoltan Varga be2605bd51 Update the LLVM backend to the latest code in the llvm-mono repository. 2011-08-26 00:18:37 +02:00
Alexander Chebaturkin e8352f0bd1 The base architecture for code-contracts analysis 2011-08-24 21:35:02 +01:00
Marek Safar 33d931c95b Check TaskFactory continuation options 2011-08-24 15:00:52 +01:00
Jonathan Pryor 72067aa5e3 [mdoc] Remove monodocer.cs.orig, .monodocer.cs.swp.
These never should have been added in the first place. Oops.
2011-08-24 09:41:58 -04:00
Atsushi Eno ff0aa4e036 Revert GET switch for serializing requests. BodyWriter handles it better. 2011-08-24 18:11:25 -07:00
Atsushi Eno eb1d9dc2da for GET request, just skip the member. It does not contain xml for null. 2011-08-24 16:46:08 -07:00
Atsushi Eno 3d385eb270 Skip serialization when the return type is void.
This batch should fix bug #206.
2011-08-24 12:14:48 -07:00
Atsushi Eno 133c531789 Do not try to output empty message body to logs. 2011-08-24 12:12:04 -07:00
Atsushi Eno bde305b72c When there is void return, the common message formatter should ignore it.
This case occurs when MessageContract is used and there is no member for
the return value.
2011-08-24 12:10:31 -07:00
Atsushi Eno 106fdeb492 ReturnValue in MessageDescription was missing when there was MessageContract. 2011-08-24 12:09:16 -07:00
Atsushi Eno 6bdb4baa47 Differentiate GET query parameter binding from another request binding.
This is one core of the bugfix for #206.
2011-08-24 12:05:05 -07:00
Atsushi Eno 78c5897e95 When there was no path parameter, it ignored the whole path part. 2011-08-24 12:02:38 -07:00
Atsushi Eno 2be522da83 This filter should ignore port, and should not filter out anonymous URIs. 2011-08-24 12:00:59 -07:00
Jérémie Laval f548520c3a Add System.Threading.Tasks.Dataflow assembly to the 4.0 build 2011-08-23 22:28:32 +02:00
Jonathan Pryor 172d3e4ff2 [mdoc-update] Fix interaction between --delete, -fno-assembly-versions.
`mdoc update --delete` is supposed to remove XML for types and type
members that are no longer present. This works sanely if the
type/member has only one assembly version in it, but once a member is
found in multiple versions, --delete only removes for the assembly
version currently being processed, and thus the member may stay in.

Ordinarily this is sufficient, and is why the HTML output lists the
assembly versions the type/member is found in.

However, then we introduce -fno-assembly-versions, which removes the
version store (if present) and doesn't re-generate. Thus, when both
are present, we would expect types and members to be removed,
irregardless of any pre-existing version information (because that
version information will be removed). This didn't happen. Worse,
because we kept re-processing version information, we'd ~never remove
any members even after repeated invocations, because we weren't
properly skipping the version store. Oops.

Fix the interaction, and Add tests so we ensure this works.
2011-08-23 16:11:08 -04:00
Zoltan Varga ca327749fa Allow ldfld/stfld/ldflda to work on static fields by merging the relevant JIT code with the ldsfld/stsfld code. Fixes #705383. 2011-08-23 18:51:37 +02:00
Marek Safar 445d419389 Void type is not convertible to reference types 2011-08-23 15:26:44 +01:00
Marek Safar 2e1972d35a Remove wrong assembly attribute 2011-08-23 15:26:44 +01:00
Marek Safar 0f40d3501b Fix struct cycle detection for static generic type fields 2011-08-23 15:26:44 +01:00
Marek Safar aba797f52a Use inflated version of interfaces when checking base method type parameter contraints 2011-08-23 15:26:44 +01:00
Rodrigo Kumpera dc2211d854 Rework self suspend to avoid a race on Mach.
* mono-threads.c (mono_thread_info_self_suspend): Implement
	self suspend using semaphores in the same way it's done on
	posix.

	* mono-threads-posix.c:
	* mono-threads-mach.c: Remove mono_threads_core_self_suspend
	as this is now done on the platform independent bits.

	* mono-threads.h: Add suspend bits to the state enum.
2011-08-23 10:02:21 -03:00
Marek Safar c4959f4f3b Merge pull request #162 from garuma/tpl-dataflow-blocks
@marek - TPL Dataflow part 4
2011-08-23 05:48:04 -07:00
Atsushi Eno cc8c07fb8c UriTemplate should not be mandatory, make it optional. Fix unit test. 2011-08-23 11:31:06 -07:00
Jérémie Laval 639c8a49b1 Use events to wait for completion (where applicable) in dataflow unit tests 2011-08-23 00:52:28 +02:00
Jérémie Laval 58ab4972e8 Fix file name in source comment 2011-08-23 00:52:27 +02:00
Jérémie Laval dbcf0d4b7f Remove #if NET_4_0 and add MonoTODO attribute 2011-08-23 00:52:27 +02:00
Jérémie Laval 31bb3e1cf8 Add blocks implementation 2011-08-23 00:52:26 +02:00
Zoltan Varga 4890ee981b Link libmono-profiler-cov against eglib as well. 2011-08-23 00:51:29 +02:00
Zoltan Varga 7352461a6d Disable some failing LLVM passes. Should fix bxc #280. 2011-08-23 00:02:36 +02:00
Atsushi Eno da3dc9a8ed Fix mobile builds in the latest Tasks change. 2011-08-22 14:06:15 +09:00
Jérémie Laval bb18a48f32 Update System build too 2011-08-20 17:53:07 +02:00
Jérémie Laval f1a72e6173 Split internal types in their own files 2011-08-20 17:05:11 +02:00
Jérémie Laval 4592da7cbb Throw when a non-finished task is started 2011-08-20 14:59:31 +02:00
Jérémie Laval d2ec51a9ed Make TaskCompletionSource methods thread-safe 2011-08-20 14:51:45 +02:00
Jérémie Laval 17e6b57d07 Move old default task scheduler to Mono.Parallel 2011-08-20 14:12:09 +02:00
Jérémie Laval 3eba2920de Revert "Remove the old PFX Scheduler from the build"
This reverts commit d3f95a5230.
2011-08-20 13:49:13 +02:00
Miguel de Icaza d3f95a5230 Remove the old PFX Scheduler from the build 2011-08-19 23:50:40 -04:00
Rodrigo Kumpera bc1e7adb92 Fix variance test involving nullable types.
* class.c (mono_class_is_variant_compatible): Reject valuetypes
	if not the same straight away. This fixes testing IEnumerable<int?>
	with IEnumerable<int>.

	Fixes bxc #185
2011-08-19 19:13:13 -03:00
Marek Safar 5609133d71 Split TaskFactory.cs file 2011-08-19 16:42:32 +01:00
Mark Probst ba39212a7e [sgen] Pinning and remset statistics per class. 2011-08-19 16:35:25 +02:00
Mark Probst f441a9ffc9 [sgen] Optional equality function for the hash table. 2011-08-19 16:35:24 +02:00
Mark Probst b6c694fa9b [sgen] Use GLib's hash func typedef instead of our own. 2011-08-19 16:35:24 +02:00
Marek Safar bd01619c5b TaskCompletionSource.SetException cannot be used with empty array 2011-08-19 14:44:53 +01:00
Rodrigo Kumpera 549c2e93ef Correctly calculate the size of the freed array buffer.
* sgen-bridge.c (dyn_array_ensure_capacity): We must correctly
	calculate the size as our allocator asserts when we do it with
	very large allocs.
2011-08-18 21:52:58 -03:00
Marek Safar 48f352bf06 Run scheduled continuation on current context 2011-08-18 18:06:22 +01:00
Marek Safar 8dcb5d666d remove bom 2011-08-18 16:26:30 +01:00
Marek Safar fccc5d91af Make await contextual keyword 2011-08-18 16:25:25 +01:00
Marek Safar 2e148555e4 Warn about misused async modifier 2011-08-18 16:25:24 +01:00
Alan McGovern 202db450f5 [LinkedList] Optimise Clear slightly. 2011-08-18 16:00:23 +01:00
Alan McGovern d23d8aa18a Merge pull request #161 from LogosBible/master
Fix bug #311: On LinkedList.Clear, detach each node instead of dropping them en masse.
2011-08-18 07:58:36 -07:00
Marek Safar 1fe0e5f814 Merge pull request #160 from garuma/tpl-dataflow-plumbing
@marek - TPL Dataflow part 3
2011-08-18 06:44:38 -07:00
Marek Safar dd74d35c85 Make async keyword context sensitive 2011-08-18 10:10:28 +01:00
Marek Safar 9bc3024f1e Anonymous methods cannot be used as infered type 2011-08-18 10:10:28 +01:00
Marek Safar 575767de0e Remove unused field 2011-08-18 10:10:27 +01:00
Marek Safar 21812ee0c9 Add new test 2011-08-18 10:10:27 +01:00
Rodrigo Kumpera 505742cb91 Handle android's broken pthread_kill in sgen too. 2011-08-17 22:55:46 -03:00
Rodrigo Kumpera 14cbfff69e Handle android's broken pthread_kill.
* mono-threads-posix.c: Add mono_threads_pthread_kill
	to handle android's pthread bug in which the main-thread
	has an invalid tid.
2011-08-17 22:40:51 -03:00
Todd Foster e787a12ab2 Fix bug #311: On LinkedList.Clear, detach each node instead of dropping them en masse. 2011-08-17 11:30:53 -07:00
Jérémie Laval 79ff0689be Remove #if NET_4_0 2011-08-17 20:03:46 +02:00
Jérémie Laval f6c7434d54 Add plumbing internal classes used throughout the framework 2011-08-17 20:03:46 +02:00
Jérémie Laval 57bfe6463f Fix coding style 2011-08-17 20:02:32 +02:00
Mark Probst 7b577fc4da Merge branch 'sgen-hash-table' 2011-08-17 19:32:06 +02:00
Mark Probst acd590dcbd [sgen] Use the reusable hash table for the bridge hash. 2011-08-17 19:06:22 +02:00
Mark Probst e78b2028e4 [sgen] Use the reusable hash table for the weak link hashes. 2011-08-17 19:06:22 +02:00
Mark Probst 752cc2c28a [sgen] Use the reusable hash table for the roots hashes. 2011-08-17 19:06:21 +02:00
Mark Probst 22e76191be [sgen] Factor out the finalize hash tables into a reusable hash table implementation. 2011-08-17 19:06:21 +02:00
Jb Evain c431eff339 Fix wrong references to Cecil 2011-08-17 18:31:11 +02:00
Sebastien Pouliot 28203284ea Provide an error message if an instance method is decorated with [MonoPInvokeCallback]. Ease finding issues like bug #296 2011-08-17 10:50:50 -04:00
Jb Evain f4df78bd2d update Cecil 2011-08-17 16:09:59 +02:00
Alan McGovern c29472db13 [System.IO.Packaging] Add another test 2011-08-17 13:44:54 +01:00
Alan McGovern b5a0b8e0a8 [minizip] Ensure we don't ever accidentally change calling convention
Make sure we always #define ZCALLBACK to empty so we don't change
the calling convention on windows by including a header which defines
'CALLBACK'. This will keep things as cdecl as required by the c#
pinvokes.
2011-08-17 13:23:05 +01:00
Alan McGovern 2685feb4e7 [System.IO.Packaging] Fix calling convention related issues
The P/Invokes should be Cdecl as the library is compiled with that
calling convention. The delegates passed to native code must also
be marshalled as Cdecl. Fixes BXC #223.
2011-08-17 12:48:57 +01:00
Marek Safar 409d4ac590 Update to the latest IKVM reflect 2011-08-17 09:28:35 +01:00
Marek Safar 7669428502 Do full identity conversion when converting variant interface types. Fixes #293 2011-08-17 09:26:31 +01:00
Marek Safar f838f226d1 Fix resolving of named arguments which break optional arguments into more than 2 sets 2011-08-17 09:05:12 +01:00
Miguel de Icaza 6d5f74852b More updates 2011-08-17 01:18:27 -04:00
Miguel de Icaza 6db9dc225c update copyrights 2011-08-17 00:52:41 -04:00
Rodrigo Kumpera 7e13ad25c6 Fix g_log redirection under android. 2011-08-16 16:29:27 -03:00
Marek Safar de77bb2e50 Implement await dynamic type expression 2011-08-16 16:24:34 +01:00
Marek Safar d478b34ecd Merge pull request #157 from garuma/tpl-dataflow-ifaces
@marek - TPL Dataflow part 2
2011-08-16 05:11:23 -07:00
Jérémie Laval f085591a4f Remove #if NET_4_0 2011-08-16 12:59:35 +02:00
Jérémie Laval ffa53c322c Add Dataflow specific boilerplate & interfaces 2011-08-16 12:59:35 +02:00
Jérémie Laval 87c18a4e3b Correctly check TaskCreationOptions upper bound 2011-08-16 12:48:16 +02:00
Marek Safar 880cdfa341 Enable await expressions to work with dynamic binder 2011-08-15 20:21:18 +01:00
Jeffrey Stedfast 4f2bfccd00 Fix for bug #445855
In this day and age of mobile personal computing devices,
we need to periodically check the underlying system
timezone because the device may have crossed a timezone
boundary.
2011-08-15 15:15:32 -04:00
Zoltan Varga c8d809d59d Don't pass MONO_UNWIND_ACTUAL_METHOD to the stack walker in a signal handler, its not signal safe. Fixes bxc #263. 2011-08-14 22:30:58 +02:00
Gonzalo Paniagua Javier 41d9165da4 [threadpool] Exit on unhandled exceptions only
Unhandled exceptions will only set the exitcode if there is no
	AppDomain unhandled exception handler. When the exitcode is set,
	the TP will exit for unhandled exceptions.

	Fixes bug #227.
2011-08-13 00:32:20 -04:00
Gonzalo Paniagua Javier 8adb509c63 [threadpool] Work around for a race-condition
Under some circumstances new_job was not signaled and the threadpool
	threads didn't realized there was a workitem in the queue.

	Fixes Xamarin bug #12 and Novell bug #690357.
2011-08-12 23:16:31 -04:00
Marek Safar 6d8fab2646 Implement hoisting of anonymous methods with variables inside async body 2011-08-13 18:15:00 +01:00
Marek Safar b2a0c0809d Change the way how using declarators statements are generated to handle await in using body 2011-08-13 18:15:00 +01:00
Marek Safar cafcdbda83 Check using and fixed statement declarators for missing initializer 2011-08-13 18:15:00 +01:00
Marek Safar f80ea372c0 Merge pull request #156 from garuma/tpl-dataflow-tasks
@marek - TPL Dataflow part 1
2011-08-13 04:54:28 -07:00
Chris Toshok 3093cf2d2a force has_finalize to be initialized before we write out the cached class info. We were
ending up with classes that had finalizers in their hierarchy but weren't registering for
finalization when full-aot mode was used.
2011-08-12 18:51:50 -07:00
Miguel de Icaza c236ec5ebc Ship System.Json for 2.0 and 4.0 as well.
Just because the .NET framework does not ship System.Json with their
core profiles does not mean we should not distribuet them.

Bring the joy of System.Json from Silverlight to the desktop

# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	modified:   ../Makefile
#	modified:   Makefile
#	modified:   System.Json.dll.sources
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	../../../eglib/src/gpath.c.orig
#	System.Json/.JsonValue.cs.swp
#	sources
#	../System/System.Net/#WebRequest.cs#
#	../../tools/monodoc/Resources/mono-ecma.css.orig
#	../../../mono.h
#	../../../mono/metadata/y
#	../../../mono/mini/.aot-compiler.c.swp
#	../../../mono/utils/mono-dtrace.h
#	../../../monotouch-enterprise.ashx
#	../../../web/
2011-08-12 18:34:53 -04:00
Sebastien Pouliot 5e2c0fbdb5 Use 'as' for casting certificate extensions since we already deal with null and malformed extensions will throw, hard to debug, ICE when we just want to ignore them 2011-08-12 14:57:16 -04:00
Sebastien Pouliot fa18839750 fix building unit tests 2011-08-12 14:55:52 -04:00
Jérémie Laval f91e711fcf Refactor inner scheduler classes into a single one 2011-08-12 11:31:52 +02:00
Chris Toshok d900f90f1f if we're intentionally using power-of-two sizing for chunks, don't add the header size to it, to keep us from getting a larger bucket from some mallocs 2011-08-11 20:18:52 -07:00
Chris Toshok 147e8aeaef reduce memory required for this table by 32x 2011-08-11 20:15:21 -07:00
Zoltan Varga b2845d5fbe Escape characters in LLVM symbol names 2011-08-12 00:14:15 +02:00
Elijah Taylor 3e6cc348c6 Fix NaCl GC deadlock 2011-08-12 00:11:26 +02:00
Zoltan Varga 3fb24eb76d Bump corlib version since fe3372f423 makes a breaking change to the mscorlib-runtime interface. 2011-08-11 20:34:28 +02:00
Gonzalo Paniagua Javier 07a679d371 Fix the range for rnd.Next() 2011-08-11 14:16:24 -04:00
Rodrigo Kumpera 904cd0c0e2 Add IObserver/IObservable to MOBILE profile. 2011-08-11 13:19:25 -03:00
Jérémie Laval e481fc4989 Remove #if NET_4_0 and add MonoTODO attributes 2011-08-11 14:08:14 +02:00
Marek Safar 6cc6d5a5d7 Remove unwanted dispose flag from async storey. It's needed for iterators only 2011-08-11 12:50:30 +01:00
Marek Habersack 5d29480868 [runtime] Fix for Xamarin bug #99. Don't fail to parse assembly names with spaces surrounding = in key=value pairs 2011-08-11 02:17:32 +02:00
Zoltan Varga 2875cbd25a Get rid of the macros in mono-tls.h to fix many warnings. 2011-08-10 18:34:47 +02:00
Zoltan Varga 295669692e Fix the newly added test_0_llvm_regress_171 (). 2011-08-10 18:10:03 +02:00
Zoltan Varga bd2a6ef973 Wrap pthread_exit () with mono_gc_pthread_exit () since NACL requires it. 2011-08-10 18:07:55 +02:00
Jérémie Laval 748587020d Add standard module directory layout and ConcurrentExclusiveSchedulerPair 2011-08-10 17:37:43 +02:00
Jérémie Laval cd68468d93 Avoid creating a delegate instance in general case when setting up continuations 2011-08-10 17:10:09 +02:00
Rolf Bjarne Kvinge 64fd862f6f Merge pull request #155 from andreazevedo/patch-1
Corrected word spelling
2011-08-10 03:30:57 -07:00
Marek Safar b3cdf89435 Implement await inside try-catch block 2011-08-10 11:04:30 +01:00
Andre Azevedo 2cffaf222d Corrected word spelling 2011-08-10 02:13:26 -03:00
Jonathan Pryor 298a6c4ef9 [System,MOBILE] Add System.Text.RegularExpressions.RegexOptions.Compiled.
Add the RegexOptions.Compiled enumeration value to the MOBILE profile.

Fixes: http://bugzilla.xamarin.com/show_bug.cgi?id=149

MonoTouch and Mono for Android still use `PatternCompiler`, which is
interpreted. Thus RegexOptions.Compiled is ignored, and is present only for
compatibility with Windows Phone 7, which states [0]:

	Present only in Silverlight for Windows Phone, but not supported.

[0] http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexoptions(VS.96).aspx
2011-08-09 21:19:09 -04:00
Elijah Taylor ff7c67833b More NACL updates 2011-08-09 22:03:46 +02:00
Zoltan Varga 04fe536dac Revert "More NACL updates"
This reverts commit ee68c04c10.
2011-08-09 22:02:50 +02:00
Elijah Taylor ee68c04c10 More NACL updates 2011-08-09 21:59:31 +02:00
Zoltan Varga 50d820a9f7 LLVM requires two PHI entries if a previous bblock branches to the current bblock using a conditional branch whose two targets are the same. Fixes #171. 2011-08-09 21:39:34 +02:00
Zoltan Varga 2a6011640d Add support for reference instances of Interlocked.Exchange<T> to full-aot, similarly to Interlocked.CompareExchange<T>. 2011-08-09 19:14:56 +02:00
Jeffrey Stedfast dbff4b9934 If #CONFIGURATION_DEP isn't defined, we still want to get a default proxy 2011-08-09 12:31:50 -04:00
Gonzalo Paniagua Javier 154bc389d5 Merge pull request #152 from bassamtabbara/master
Some fixes to master
2011-08-08 06:25:59 -07:00
Bassam Tabbara f012d0b344 Fixed regression in System.Web.Routing caused by 62b047a. Value and constraint where switched when evaluating regex route constraints. 2011-08-07 23:18:18 -07:00
Bassam Tabbara 1d51e7ac60 Networkstream now throws IOException('connection closed') if the socket was closed/disposed 2011-08-07 23:17:19 -07:00
Atsushi Eno a6fda91520 Merge pull request #151 from kenbell/master
Fix two bugs in System.Security.AccessControl
2011-08-07 22:36:59 -07:00
Kenneth Bell df73c40c3a Fix bug 213 - interpret string identity in RegistryAccessRule constructor as account name.
Previously the string was treated as a SID in string form.  Note Mono can only convert well-known accounts to SID form.
2011-08-07 12:29:04 -07:00
Kenneth Bell f838a86122 Fix infinite loop parsing some SDDL strings
Attempting to parse ACLs containing flags would cause an infinite loop.
2011-08-07 12:29:04 -07:00
Jérémie Laval b21a860ddf Implement proper ctor parameter checking 2011-08-06 21:47:28 +02:00
Marek Safar 825da204dd Implement exception propagation for void async context 2011-08-05 23:19:32 +01:00
Zoltan Varga 1274b345c6 Revert a line from 89d18c331d which breaks the linux build 2011-08-05 23:51:03 +02:00
Marek Safar 47580b82a1 Add more tests 2011-08-05 21:47:23 +01:00
Marek Safar 61226a48f5 Build membercache for imported interfaces in the same way as for compiled types. Fixes #82 2011-08-05 21:47:23 +01:00
Jérémie Laval 4553d5d92a Fix for #162 2011-08-05 22:33:24 +02:00
Zoltan Varga 89d18c331d Make sure the cygwin build uses gcc-3 from the gcc-core package, other version won't work 2011-08-05 21:50:00 +02:00
Zoltan Varga f7de511029 Revert "Use the mingw32 gcc compiler on windows"
This reverts commit 1ae8e0fd94.
2011-08-05 21:49:58 +02:00
Gonzalo Paniagua Javier a4208b4290 Revert "revert change from https://github.com/flutos/mono/commit/124c0ce55f13ca67cf8f7641a9bb3b034ac7dd5e#mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol since it makes the sqlserver calls unstable"
This revert broke the build.

This reverts commit 72a7b7bccb.
2011-08-05 11:44:50 -04:00
Zoltan Varga e2c54479da Remove the configue check for bison, we don't use it anymore 2011-08-05 17:23:28 +02:00
Zoltan Varga 1ae8e0fd94 Use the mingw32 gcc compiler on windows 2011-08-05 17:20:28 +02:00
Elijah Taylor e3386325b5 Fix up bugs in x86-codegen for NaCl. 2011-08-05 17:04:24 +02:00
Elijah Taylor e6d569d643 Fixups for nacl at head revision. 2011-08-05 17:03:02 +02:00
Miguel de Icaza 89bb5b08be Merge pull request #129 from grumpydev/CryptoFixo
Fix for out of bounds exception in Rfc2898DeriveBytes
2011-08-05 06:59:27 -07:00
Miguel de Icaza a794e25f50 Merge pull request #138 from eisnerd/bug-winforms-datagridview-resize-490247
[winforms] DataGridView row height resize handles added for bug #490247
2011-08-05 06:58:20 -07:00
Miguel de Icaza 1dea70ab39 Merge pull request #147 from flutos/master
revert performance patch for TdsComm.cs file

this is in reference to bug 
https://bugzilla.novell.com/show_bug.cgi?id=609109
I was working with Veerapuram to isolate this problem and he was making some progress but this is a complated patch and he is not onto other things right now so given that I was hoping to get the patch that was causing these problems to get reverted from. the offending patch is
https://github.com/mono/mono/commit/124c0ce55f13ca67cf8f7641a9bb3b034ac7dd5e
This patch reverts the offending patch for the file but leave all the subsequent patches for the file in tact. Once Veerapuram has a chance to get back to it we can look at getting this performance patch fixed and reapplied . Since its just a performance patch it shouldnt effect any current functionality.

revert change from https://github.com/flutos/mono/commit/124c0ce55f13ca67cf8f7641a9bb3b034ac7dd5e#mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol since it makes the sqlserver calls unstable
2011-08-05 06:54:57 -07:00
Miguel de Icaza fe3372f423 Merge pull request #141 from LogosBible/surrogtate
[480178] Fix handling of surrogate characters.
2011-08-05 06:52:12 -07:00
Marek Safar f0878e0834 Fix comment typo 2011-08-05 09:39:07 +01:00
Marek Safar 5e73d64179 Fix extension method expression conversion for type parameters 2011-08-05 09:26:24 +01:00
Marek Safar da9d44d3d7 Add exception handling to task awaiters 2011-08-04 21:22:14 +01:00
Miguel de Icaza 98239f488c Add a list of historic Mono branches, before we delete them from the server 2011-08-04 13:04:38 -04:00
Zoltan Varga 0810e8defe Handle slow machines which exceed timeouts in the threadpool-exceptions<N> tests. 2011-08-04 17:33:06 +02:00
Mark Probst c670654157 [sgen] Enqueue finalizers after update the pointer.
If the object was forwarded we read a bogus vtable and hence a bogus
klass.  Did the critical finalizer testcase work just by accident?
2011-08-04 11:45:13 +02:00
Mark Probst 787a327711 Set the WSQ TLS key to inited after initing it.
This bug was introduced in the move to mono-tls.
2011-08-04 11:44:53 +02:00
Ankit Jain e783efa795 [xbuild] RemoveDir - remove only if the dir exists.
Fixes bug #710234.
2011-08-04 13:51:24 +05:30
Atsushi Eno 0ac09f4e2b Merge pull request #146 from flutos/207ce0bccceec3ff7860ea986086fedb5a92d822
fix for bug 708178 that would fail if the type wasnt IEnumerable, should check if it implement IEnumerable rather than is IEnumerable
2011-08-03 17:05:06 -07:00
Rodrigo Kumpera 6eed81ae60 Fix padding of call instructions. 2011-08-03 19:46:36 -03:00
Chris Toshok 0359470b9f don't redefine ABS 2011-08-03 10:35:05 -07:00
scott fluto 72a7b7bccb revert change from https://github.com/flutos/mono/commit/124c0ce55f13ca67cf8f7641a9bb3b034ac7dd5e#mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol since it makes the sqlserver calls unstable 2011-08-03 10:57:35 -06:00
Zoltan Varga e1609a4275 Avoid allocating the memory for all the dominator arrays at once. 2011-08-03 17:51:31 +02:00
Marek Habersack ec2cfa6e0c [runtime, globalization] Fix for Xamarin bug #161. Fix culture info data for certain locale short date formats
Modified locales which don't use '/' as the short date separator.
2011-08-03 16:01:13 +02:00
Marek Safar 3a0824d0c6 Initial support for handling exceptions inside async 2011-08-03 14:06:39 +01:00
Marek Safar f038f2ddb8 All resolve contexts are now SRE-free 2011-08-03 14:06:39 +01:00
Atsushi Eno 2fd45cac84 Fix NET_2_1 builds (regression from the previous SecurityBindingElement fixes). 2011-08-03 13:53:11 +09:00
Rodrigo Kumpera 841e5eca29 Implement fail tramp support on arm for full-aot imt thunks.
* aot-compiler.c (arch_emit_imt_thunk): Implement fail tramp
	support on arm. This enables variance to work under full-aot.
	The code blowout is not really significant as even on non linked
	apps the imt thunk overhead is 0.5%.
2011-08-03 00:30:37 -03:00
Geoff Norton 7f799370ec [gc] Darwin/AMD64 can have 64-bit thread id's, so we need to ensure
we cast properly to make sure the modulus has a valid result.
Additionally add support for x86_THREAD_STATE64.
2011-08-02 21:45:49 -04:00
Atsushi Eno 5fc5f02c46 Merge pull request #145 from ngraziano/99b87f07af0beed3a887
Fix Service Model Xml Serialization and XMLAttributes
2011-08-03 05:54:54 +09:00
Atsushi Eno 693ed85130 Fix bug #707434, check order only when applicable.
Based on the input by Scott Fluto.
2011-08-03 05:35:26 +09:00
Marek Safar a3f5fb31f1 Clean up block return label handling 2011-08-02 19:07:58 +01:00
Alan McGovern 2c78755226 [System.IO.Path] Fix potential infinite loop in Path.GetTempFileName
Refactor this method so that it only attempts alternative filenames if
the filename just attempted already exists. This way we will never end
up looping forever being unable to create the required file. Previously
if we opened the maximum allowed files and then called GetTempFileName
we'd loop forever throwing an IOException in the FileStream constructor
every time.
2011-08-02 17:54:39 +01:00
Marek Safar 0db8e3bf7f Add async exception binding 2011-08-02 15:35:27 +01:00
Atsushi Eno eca7c8246a Merge pull request #143 from mistoll/master
Fixes for WCF BasicHttpBinding with message security
2011-08-02 06:42:44 -07:00
Rolf Bjarne Kvinge b162f9c334 [aot-compiler] Replace assert with descriptive error message. 2011-08-02 14:39:55 +02:00
Michael Stoll deccfc8aad Fixed coding style in SecureMessageDecryptor 2011-08-02 10:34:27 +02:00
Michael Stoll 2b8e60b452 Fixed coding style in SecureMessageGenerator 2011-08-02 10:34:08 +02:00
Michael Stoll 114fb284e8 Fixed coding style for BasicHttpBinding and SecurityBindingElement 2011-08-02 10:23:24 +02:00
Michael Stoll 52d18937cf Fixed coding style in System.IdentityModel 2011-08-02 10:08:25 +02:00
Alex d9661cd3dd Define MONO_ARCH_NOMAP32BIT for DragonFly BSD. 2011-08-02 00:04:19 +02:00
Atsushi Eno 0c7d5fcc14 Fill/reflect ReturnValue to and from corresponding message part.
This may have fixed bug #41.
2011-08-02 09:58:28 -07:00
Atsushi Eno 951a6e6276 part of fix bug #41. MessageParameterAttribute is considered for return value. 2011-08-02 07:41:49 -07:00
Michael Stoll 9d44cf323d Remvoed debug console output
Moved the check for the action header because it is not required in all messages.
2011-08-01 12:30:53 +02:00
Michael Stoll 6aa73d1cae Splitted the SecureMessage method for a better readability.
Fixed message creation for AddressingVersion.None
Fixed the element type of encrypted xml (Content vs. Element)
Fixed GetAction() (Using correct property name)
Fixed message body Id attribute prefix
2011-08-01 12:29:00 +02:00
Michael Stoll 7f871ae603 Fixed the SecurityBindingElement creation of BasicHttpBinding 2011-08-01 12:23:55 +02:00
Michael Stoll c8cab4d89a Added support for negative serial numbers in X509IssuerSerialKeyIdentifierClause as proposed in RFC 5280 2011-08-01 10:38:44 +02:00
Alex ff00657011 Add support for DragonFly and NetBSD to sigcontext. 2011-08-01 10:28:33 +02:00
Jeffrey Stedfast de280aeb05 Fix a compiler warning in mkbundle by #including mono-config.h 2011-07-29 17:01:55 -04:00
Steven Robbins 9ecad51ce4 Minor formatting change 2011-07-29 12:48:11 +01:00
Steven Robbins d76918b529 Added test case for out of bounds exception on multiple calls. 2011-07-29 12:29:15 +01:00
scott fluto 207ce0bccc [708178] - Type check invalid and breaks XmlSerialization if serializing ICollection<> types 2011-07-28 15:19:43 -06:00
Rodrigo Kumpera 15eb1912f6 OSX won't expose IPV6_PKTINFO unless __APPLE_USE_RFC_3542 is defined. 2011-07-28 15:21:45 -03:00
Rodrigo Kumpera d2654c319c Handle a race on thread cleanup.
* mini.c (mini_thread_cleanup): Under some rare cases it's
	possible to have a NULL lmf.
2011-07-28 15:21:40 -03:00
Mark Probst d8e2dd0346 Factor the lock-free growable array out of the lock-free array queue. 2011-07-28 17:19:47 +02:00
Mark Probst e182f7c121 Factor the simple lock-free array queue out of hazard-pointer.c. 2011-07-28 17:19:17 +02:00
Mark Probst d3729e9af4 [sgen] Don't use pthread_once() to init a TLS key, do it at GC init. 2011-07-28 17:19:17 +02:00
Miguel de Icaza 5a35198e2f Merge pull request #93 from konrad-kruczynski/dispatcher_timer_fix
[Fix] Fix for bug #677265 with DispatcherTimer.
2011-07-28 07:32:14 -07:00
Miguel de Icaza f9ed9371c1 Merge pull request #136 from spencerhakim/master
Fixed SKEL_DIRECTORY definition in Release build of jay2010.vcxproj
2011-07-28 07:27:32 -07:00
Miguel de Icaza 29c4351c24 Merge pull request #139 from HorstKakuschke/master
Fix for Xamarin Bug 42: Exception 'TypeConverter cannot convert from System.String' when specifying soapExtensionReflectorTypes
2011-07-28 07:25:00 -07:00
Jérémie Laval 2d4063fcbc Same test for TaskCompletionSource 2011-07-27 19:51:19 -04:00
Jérémie Laval a5ee80a5ee Ensure that Task is in a correct initial state before starting it for real 2011-07-27 19:37:38 -04:00
Jérémie Laval afb94d8c35 Test that futures throw Exception through Result property when they are Faulted 2011-07-27 19:37:31 -04:00
Jérémie Laval acda065aa3 Add test for various AggregateException ctor exception situations 2011-07-27 18:31:13 -04:00
Jérémie Laval ace24af1bd Move innerExceptions internal null check at the right place. 2011-07-27 18:20:57 -04:00
Jérémie Laval 456a3ea9e9 Add testcase to ensure unobserved exception on Task are correctly propagated 2011-07-27 18:13:23 -04:00
Jérémie Laval 8bf33ac28a Makes AggregateException ToString output closer to .NET one 2011-07-27 18:01:22 -04:00
Jérémie Laval 6e81ade371 Fix AggregateException behavior 2011-07-27 17:51:20 -04:00
Jérémie Laval bb18263f72 Allow using a worker number that is greater than Environment.ProcessorCount for parallel loops. 2011-07-27 16:22:24 -04:00
Marek Safar 45630ca8a2 Add missing check for async scope in array access 2011-07-27 18:35:56 +01:00
Marek Safar 2f104f94cd New test 2011-07-27 17:35:09 +01:00
Marek Safar 0b2da26394 [708408] Don't start recursive check when reporting inaccesible base type 2011-07-27 17:35:08 +01:00
Atsushi Eno e7532fc5dd Fix wsdl import wrt element qname (!= type name). 2011-07-27 21:03:31 -07:00
Mark Probst b0b7badc6c [sgen] Don't allow nursery sizes smaller than SGEN_MAX_NURSERY_WASTE.
That's the smallest TLAB size SGen will use, so having a smaller
nursery makes no sense as it will never be used and all allocation
will be degraded.
2011-07-27 13:06:55 +02:00
Mark Probst 48b27dc5c8 [sgen] Construct the array_fill_vtable manually.
For very small nursery sizes the initalization happened too late, and
we can't do it early because we depend on other runtime stuff being
initialized.  This is a clean solution that only requires the byte
class to be initialized.
2011-07-27 13:05:37 +02:00
Mark Probst 6df2e40839 [sgen] Accept numbers without suffixes in env var parameters. 2011-07-27 13:03:00 +02:00
Jeffrey Stedfast 3ccb3a3ce3 Don't invoke libc uname() on non-Unix systems 2011-07-26 18:40:38 -04:00
Marek Safar a5206c4bfc Avoid creating a temporary variable when target await expression is does not include await 2011-07-26 22:15:52 +01:00
Marek Safar f142853d7f Use simple null check for implicitly convertible reference types is check 2011-07-26 22:15:52 +01:00
Mark Probst b46f221e78 [sgen] Use the proper object size when scanning arrays from a card table.
Using the block object size is incorrect since we might scan beyond
the end of the array.
2011-07-26 17:33:49 +02:00
Mark Probst 12d1be9b5d [sgen] Make the card table on AMD64 correct for 64 bit nursery addresses. 2011-07-26 17:12:12 +02:00
Mark Probst ee6a909aa6 [sgen] Print a warning when using binary protocol and card tables. 2011-07-26 16:36:56 +02:00
Mark Probst dac383857b [sgen] Binary protocol for every write barrier, not just the generic store one. 2011-07-26 15:54:36 +02:00
Mark Probst 6b8a258944 [sgen] Make the binary protocol compile and work again. 2011-07-26 15:52:50 +02:00
Mark Probst f52a37d3b3 [sgen] Fix mono_gc_wbarrier_value_copy() for remsets.
We must store the element size, not the size of the whole array.
2011-07-26 15:52:00 +02:00
Mark Probst a509b337d3 [sgen] Make mono_sgen_safe_object_get_size() handle forwarded objects.
This is sometimes called on forwarded objects from the major collector
during finalization.  Now it doesn't crash anymore.
2011-07-26 15:50:05 +02:00
Damien Diederen 4857d28d99 [480178] Fix handling of surrogate characters.
Note: This revision was originally supplied in six parts. Notes
accompanying each of the parts are reproduced below.

[PATCH v5 1/1] System.Char icall: New Unicode category tables compatible with MS .NET

These new category tables, generated using create-category-table(.cs)
available in the mcs sources, make the Mono runtime understand the
same Unicode category codes as recent versions of Microsoft's runtime.

CategoryData_v2 matches versions v2.0.50727 and v3.5.21022 of .NET.

CategoryData_v4 matches version v4.0.30319 of .NET.  The v4 tables can
be disabled by defining the DISABLE_NET_4_0 preprocessor symbol.

Similarly, the astral portions of both tables can be disabled by
defining the DISABLE_ASTRAL preprocessor symbol.

CAUTION: Mcs has to be updated with the corresponding patches, or Mono
will suffer a low-level (internal call) crash when initializing
System.Char.

[PATCH v5 1/5] create-category-table: Utility to generate reasonably-packed Unicode tables

This program generates (partially) bi-level tables encoding the
contents of the Unicode character category database.

Mono embeds a linear table with category codes for the Unicode
BMP (first 65536 codepoints), and lacks information about characters
in the astral planes--leading to requests such as bug 480178.
Extending the linear table to cover the full codespace is not an ideal
solution, as that would expand the embedded "blob" by a factor of 17.

The new tables generated by this program can be used to support the
full range of characters.  An additional level of indirection used for
characters outside the U+0000..U+FFFF range enables "page" sharing, so
that the total amount of embedded data only grows by 13.5kB.

Cf. in-file comments for usage instructions.

[PATCH v5 2/5] System.Char: Handle astral planes in (string,int) overload

If the string element at index starts a surrogate pair, we decode the
full codepoint and "query" the higher planes of the database.

This fixes bug 480178.

CAUTION: This commit depends on the following runtime change:

  System.Char icall: New Unicode category tables compatible with
  MS .NET.

Without it, Mono will suffer a low-level (internal call) crash when
initializing System.Char.

COMPATIBILITY

The updated Mono runtime as been verified to produce the same results
as Microsoft's; here are the MD5 sums of their Unicode category
database dumps (generated via create-category-table --dump, compiled
and executed under the relevant runtime):

    eba45e00acdc82f9a08873465110aef4  v2.0.50727.dump
    eba45e00acdc82f9a08873465110aef4  v3.5.21022.dump
    56fd5c828fbb9083693835680667fd2c  v4.0.30319.dump

    eba45e00acdc82f9a08873465110aef4  gmcs.dump
    56fd5c828fbb9083693835680667fd2c  dmcs.dump

These results will naturally differ if support for .NET v4 or astral
planes is disabled when building the runtime.  Note, also, that these
are different from the results produced by Mono prior to the
introduction of these changes, even for the BMP.

Other versions of the internal database can be easily generated using
create-category-table(.cs), but this currently requires a rebuild.

PERFORMANCE

Direct array indexing is mandatory for code points in the
U+0000..U+FFFF range; as pointed out by Andreas Nahr, performing
bi-level lookups in the Char.Is*(char) predicates cause the JIT to
stop inlining them and results in an important performance drop.

The simple data access pattern used for higher planes, suggested by
Paolo Molaro, is fairly efficient but currenly only used by this
non-optimized method.

[PATCH v5 3/5] Globalization.IdnMappingTest: U+0221 is not unassigned anymore, use U+18B0

U+0221 is LATIN SMALL LETTER D WITH CURL in Unicode 4.0, and is recognized as a
valid letter in recent versions of the .NET framework.  This causes
GetAsciiInvalid to (unexpectedly) succeed, and the test to fail.

Use U+18B0 instead, which is unassigned as of Unicode 5.2 and .NET 3.5 SP1.

[PATCH v5 4/5] CharCategoryTest: Update category dumps to match MS .NET

The category codes in newer versions of Microsoft's framework are not
compatible with the ones encoded in this class, causing tests to fail.
Fix that by using new sets of dumps generated under v3.5.21022 and
v4.0.30319.

Also, drop CharTest.IsWhiteSpace_Complete as the same checks are
performed by CharCategoryTest.IsWhiteSpace.

While we are at it, improve the generator so that:

  - common code is shared between the generator and the test;

  - a number of test cases can be generated at once via
    command-line arguments;

  - the dumps are word-wrapped, enhancing legibility and avoiding
    line length limitations in some compilers.

[PATCH v5 5/5] CharTest: Add tests for astral plane characters/surrogate pairs

  - Show that Char.GetUnicodeCategory(string,int) results in a
    lookup into the higher planes of the Unicode database when invoked
    on a valid surrogate pair, and returns the "normal" category code
    otherwise.

  - Perform a few sanity checks on the results of ConvertFromUtf32
    and GetUnicodeCategory when invoked on codepoints from the
    higher planes.
(cherry picked from commit 70dff8b4272dba83bed23e6502499646526efd59)
2011-07-25 12:43:03 -07:00
Atsushi Eno 70ed30c382 Fix bug #16: use Owner node instead of Parent. Patch by Martin Potter. 2011-07-26 04:26:58 +09:00
Sebastien Pouliot 29cbc706f4 Fixed decoding of PKCS/CMS message with detached ContentInfo. Pull request from Pablo Ruiz Garcia <[email protected]> 2011-07-25 09:58:14 -04:00
Zoltan Varga 4193d0f1f2 Fix windows build. 2011-07-25 15:35:52 +02:00
Miguel de Icaza 16a40cb7b3 Fix invocation to syslog 2011-07-25 19:13:41 -04:00
Zoltan Varga bd0846413e Fix a crash in the soft-float decompose code when a branch following an fcompare is optimized away. Fixes #705186. 2011-07-24 20:41:58 +02:00
Zoltan Varga cc1506743a Add a test for 7cb704d9a9. 2011-07-24 20:23:11 +02:00
Mark Probst c193503268 Remove references to mono_pthread_key_for_tls(). Fixes builds. 2011-07-23 21:32:11 +02:00
Sebastien Pouliot 9f51bfee6c add put support in certmgr (git pull request 124 by rabink) 2011-07-23 15:09:56 -04:00
Sebastien Pouliot a62f13f74f Expose new ReadLines extension methods in the mobile-based profiles 2011-07-23 11:03:44 -04:00
HorstKakuschke 2cec377f62 Fix for Bug 42: Exception 'TypeConverter cannot convert from System.String' when specifying soapExtensionReflectorTypes
Added type conversion via class TypeTypeConverter for configuration property "type"
2011-07-22 19:17:56 +02:00
Atsushi Eno 2602f1367e Merge pull request #137 from eisnerd/bug-xpath-reverse-axes-497017
XPath reverse axes bug #497017
2011-07-22 07:20:08 -07:00
David Eisner dd89fc6998 [winforms] DataGridView row height resize handles added for bug #490247 2011-07-22 13:47:53 +01:00
Mark Probst 0299ffc489 TLS is always fast now, so remove NO_TLS_SET_VALUE in domain.c. 2011-07-22 11:55:30 +02:00
Mark Probst b7a4037b1f Remove io-layer Windows API TLS emulation code.
We should always use native TLS.  The Windows TLS emulation adds
an unnecessary layer and even slows us down considerably on some
platforms: The TlsGetValue() code not only does a TLS get, but,
since it calls SetLastError(), also a TLS set, so on platforms
with slow TLS set, TLS get will also be slow.

This will almost certainly break something.  I beg forgiveness.
2011-07-22 11:48:36 +02:00
Atsushi Eno d64d847622 Avoid possible duplicate xmlns output. Fixes xsp-based hosting somehow. 2011-07-22 14:02:48 +09:00
David Eisner 2c59464850 Removal of XPath debugging code relating to bug #497017, leaving the new test cases 2011-07-21 23:29:21 +01:00
David Eisner 1bcf143d6a XPath test cases and debugging code relating to bug #497017 2011-07-21 23:20:13 +01:00
David Eisner 342df43e69 Corrected XPath iterator for ancestor-or-self axes for runaway behaviour
Adding a test case for ancestor-or-self along the lines of the existing one for ancestor showed runaway, memory-eating behaviour. In changing CollectResults to remove the livelock, it seemed simplest to remove the extra yield of the root from MoveNextCore. I was unable to ascertain a good reason for producing this element in this special way compared to the AncestorIterator.
2011-07-21 23:19:00 +01:00
David Eisner daae18420a Fixed the XPath built-in position function for bug #497017
According to http://www.w3.org/TR/xpath#predicates, a predicate [n] should be equivalent to [position()=n] for a number expression n. However, we currently have a PredicateIterator intepretation of [n] that has been corrected for the issue outlined in the bug report, leaving the position() function behind with an inappropriate, document-order value for reverse axes. Note that [n] is not treated by parsing or transforming to the same form as [position()=n] before evaluation, valid as that would be.

The discussion in that same section of the recommendation about forward and reverse axes and further remarks in http://www.w3.org/TR/xpath#node-sets make it clear that the predicate [1] has the sense of "nearest" rather than "first in the document" which then, depending on the axis type, may be the same or reverse of the document order. It does not seem to me to be so clear whether the order given by a navigator for a location path expression should mirror this or always give the document order. The .Net implementation seems to always give the document order, as well as predicates having the correct reverse/forward senses, so I have added test cases that explore both.
2011-07-21 23:07:02 +01:00
Zoltan Varga 14e3a3c856 Remove obsolete and broken msvc05 files. 2011-07-21 16:33:37 +02:00
Marek Safar 5d44765b71 Include context member name in async wrapper to easier debugging 2011-07-21 12:33:06 +01:00
Marek Safar eb54bbb354 More emit updates to handle await sub-expressions 2011-07-21 11:04:08 +01:00
Atsushi Eno 4fab2dc4c3 Fix bug #703910 - implement Order support in XmlSerializer. 2011-07-21 04:57:32 +09:00
Marek Safar 72b62ae964 Type details are no longer need when emitting ldloc 2011-07-20 18:32:22 +01:00
Marek Safar e0b32d892c Remove failed approach to await stack handling 2011-07-20 18:32:21 +01:00
Marek Safar 1f52f61a7c Handle await in liften binary expression with compound assignment 2011-07-20 18:32:21 +01:00
Marek Safar 23afa3de4a Report full method name for IL code mismatch 2011-07-20 18:32:21 +01:00
Sebastien Pouliot e842246fd1 Allow IsolatedStorage to work on MOBILE profiles even when CAS types are linked out 2011-07-20 13:29:46 -04:00
Sebastien Pouliot e7194f9a11 another case where the linker needs help to eliminate CAS 2011-07-20 11:39:48 -04:00
Spencer Hakim bf103b4473 Fixed SKEL_DIRECTORY pre-processor definition in Release build of jay2010.vcxproj 2011-07-20 10:37:46 -04:00
Sebastien Pouliot 7de2d7b467 Ensure the linker can eliminate most CAS-related types in the MOBILE-based profiles 2011-07-20 08:28:42 -04:00
Sebastien Pouliot a7ee25e84b Ensure the linker can eliminate the *RequestCreator code without extra instructions. 2011-07-20 08:28:42 -04:00
Marek Safar 2739277866 Honour command line checked option during emit phase 2011-07-20 09:04:18 +01:00
Geoff Norton d0c690ad95 Type matching is fun 2011-07-19 22:33:09 -04:00
Geoff Norton 2fca2aca78 info->signal does not exist on MACH either 2011-07-19 22:28:17 -04:00
Geoff Norton 15dcf0603c info->stop_count does not exist on MACH 2011-07-19 22:27:01 -04:00
Miguel de Icaza 60a3628c97 Fix build 2011-07-19 19:35:08 -04:00
Mark Probst 9f8b9cbd42 New function: mono_valloc_aligned().
Some platforms have APIs for this, so it makes sense to
use them instead of our wasteful approach of allocing more
memory and then freeing off the edges.
2011-07-19 19:14:47 +02:00
Mark Probst a0d5a70994 [sgen] rehash_roots() must take an int, not a boolean. 2011-07-19 19:12:20 +02:00
Mark Probst 571c9dd739 [sgen] Use g_usleep() instead of usleep(). 2011-07-19 19:12:19 +02:00
Mark Probst 6b362606f8 [sgen] Include config.h in all of SGen's compilation units. 2011-07-19 19:12:19 +02:00
Jonathan Pryor 7901a9455d Add System.Data.Services.Client to monotouch and monodroid profiles. 2011-07-19 12:01:08 -04:00
Sebastien Pouliot 21f251532a remove unrequired using clauses 2011-07-19 10:34:57 -04:00
Sebastien Pouliot 1db32e3410 avoid potential InvalidCastException when we already deal with bad/non-present extensions (reduce error message when -E:all is used) 2011-07-19 10:34:57 -04:00
Marek Safar e0baa7b79e Fix resolving referenced extension methods used in nested namespace 2011-07-19 14:34:50 +01:00
Marek Safar ffde7e62c3 Emit valid code for nullable mutators used as an expression 2011-07-19 08:56:47 +01:00
Marek Safar 474722490d Await support for more expressions 2011-07-19 08:56:47 +01:00
Atsushi Eno 34041c160f fix build regarding ContentType. 2011-07-19 09:05:27 +09:00
Rodrigo Kumpera f6d15e14c2 Fix the altstack check so it works under osx. 2011-07-18 16:25:03 -03:00
Rodrigo Kumpera 67d238ac06 Do some portability adjustments so altstack works on osx.
* mini-exceptions.c (mono_setup_altstack): Use stack_t instead
	of struct sigaltstack. Don't set ss_flags as OSX doesn't like it.

	* mini-exceptions.c (mono_free_altstack): Use stack_t instead
	of struct sigaltstack.
2011-07-18 16:25:02 -03:00
Rodrigo Kumpera a785c84ddf On OSX do SIGBUS on altstack as well since it's used for *0. 2011-07-18 16:25:02 -03:00
Rodrigo Kumpera 447a38d31a Handle altstack exceptions in a more portable way on x86.
* exceptions-x86.c (mono_arch_handle_altstack_exception): Push a
	MonoContext to the stack instead of an ucontext. It's smaller
	and more portable since we don't have to bother with internal
	pointers.
2011-07-18 16:25:02 -03:00
Rodrigo Kumpera d604965725 Fix stack overflow code to work under darwin-x86.
* mini-x86.h: Respect MINSIGSTKSZ under OSX.

	* mini-amd64.h: Ditto.
2011-07-18 16:25:01 -03:00
Rodrigo Kumpera e72bdcacca Fix mono_thread_get_stack_bounds thread bounds. 2011-07-18 16:25:01 -03:00
Mark Probst 6658082cfb [sgen] Use ptrdiff_t instead of ssize_t. 2011-07-18 20:45:58 +02:00
Mark Probst 355846f2be [sgen] Move all signal stuff into sgen-os-posix.c.
This might make Mach stop working or uncompilable.
2011-07-18 20:45:23 +02:00
Mark Probst a4dc17108b [gc] Don't do unaligned loads in mono_gc_memmove ().
This caused problems on S390x, at least.
2011-07-18 20:05:20 +02:00
Atsushi Eno e8cc6770c2 support action parameter in SOAP 1.2 content type. Close pull request #133. 2011-07-19 02:28:59 +09:00
linquize a853199c49 Add Encoding iso_2022_kr -> euc_kr 2011-07-16 07:44:31 -07:00
Atsushi Eno 2cc686a3af Fix bug 704813: just ignore members of type IEnumerable`1 without Add(). 2011-07-16 06:48:41 -07:00
Rodrigo Kumpera 66332285b7 If a thread abort is fatal, print the exception before dying. 2011-07-15 18:18:25 -03:00
Rodrigo Kumpera e2e9b3bdf3 Improve stacktraces when facing a runtime invoke wrapper.
* mini-exceptions.c (mono_handle_exception_internal_first_pass):
	Don't trim the trace list if we find a filter clause from a wrapper.
	This makes stacktraces across MRI's work.
	Extract trace trimming into a macro to reduce code duplication.
2011-07-15 18:18:22 -03:00
Marek Safar dfb4419c5d Await support for more expressions 2011-07-15 15:53:17 +01:00
Marek Safar fbff787263 Add await support for more expressions 2011-07-14 13:25:41 +01:00
Marek Safar 5f84c66c24 Use array index instead of an iterator when checking interfaces 2011-07-14 13:25:40 +01:00
Mark Probst 3e50ef333b [sgen] Option for an allowance limit.
The metric for deciding when to trigger a major collection assumes
that there's unlimited memory, so it does, especially since it's
probably buggy and certainly not very smart, sometimes allow too much
allocation to happen.  This new option is a way to tell SGen where to
draw the line.  Note that memory will still be allocated, it's just
that once the limit is overstepped, major collections happen more
frequently to keep memory usage down.
2011-07-13 19:08:43 +02:00
Marek Safar 044e88a036 Implement await for new expressions 2011-07-13 17:25:06 +01:00
Marek Safar 37576d9614 Implement async inside a method with MVARs and contraints 2011-07-13 17:00:22 +01:00
Marek Safar cf196a58f7 Await for array access expression 2011-07-13 09:40:31 +01:00
Marek Safar 9417b2c6b0 Return from async method has to also skip following code block 2011-07-13 09:40:30 +01:00
Rodrigo Kumpera e73ed2fdb1 Avoid a .cctor on the initialization path. 2011-07-12 19:49:56 -03:00
Rodrigo Kumpera 0fff367134 Add shared_perfcounters option to enable minimal. 2011-07-12 19:45:12 -03:00
Mark Probst d7f0b5ed25 [gc] Fix a bug in atomic memmove. 2011-07-12 18:02:35 +02:00
Marek Safar 1cc9ff62ac Modify few emits to deal with await expression 2011-07-12 09:29:40 +01:00
Rodrigo Kumpera d671d89b43 Do DISABLE_PORTABILITY more agressively. 2011-07-12 01:35:55 -03:00
Zoltan Varga 4e0b68204b Store precise wrapper info for native-to-managed wrappers, needed by AOT. 2011-07-12 02:49:42 +02:00
Zoltan Varga 7cb704d9a9 Avoid register allocation problems when a try clause is nested inside a handler block. 2011-07-12 02:08:29 +02:00
Zoltan Varga 8cb0373f63 Get rid of the 'ut_e_' symbols in AOT, use the normal 'ut_' symbols for them. 2011-07-11 23:16:40 +02:00
Zoltan Varga 938fb522c8 Fix the length of r4const on arm. 2011-07-11 17:10:25 +02:00
Mark Probst 640271f2b0 [sgen] Debug option for printing the heap usage and minor collection allowance. 2011-07-11 12:23:42 +02:00
Zoltan Varga 4a39d73403 Fix caching in mono_marshal_get_array_address (). 2011-07-11 00:23:36 +02:00
Rodrigo Kumpera 40ae8939f3 Fix signal chaining to handle a stupid previous handler. 2011-07-10 00:15:06 -03:00
Rodrigo Kumpera e3b4534e99 Disable the exception thread under iOS since it's neither needed nor working. 2011-07-10 00:09:55 -03:00
Atsushi Eno 6d85578013 Full equivalence comparison is unnecessary for MessageEncoder ContentType.
based on https://github.com/mono/mono/pull/130
2011-07-09 06:50:58 +09:00
Zoltan Varga b40cd1f8d2 Resurrect the AOT profiler. 2011-07-08 14:38:02 +02:00
Marek Safar cca8f50290 Merge pull request #131 from txdv/master
Encoding constants should be in lower case.
2011-07-08 00:14:17 -07:00
Andrius Bentkus 64a8bec6a5 Fix upper case encoding constants.
name.ToLowerInvariant ().Replace ('-', '_') should ensure that they
are all lowercase.
2011-07-08 06:35:38 +02:00
Jonathan Pobst e8807c5355 'async' is becoming a keyword. Fix variables named async. 2011-07-07 16:52:46 -05:00
Jonathan Pobst 8dd0c2a7b0 Handle DBNull's. 2011-07-07 16:50:49 -05:00
Marek Safar 01daae3e1d Initial skeleton of secondary approach of await stack handling 2011-07-07 16:35:53 +01:00
Marek Safar a55abaae40 Remove debug comment 2011-07-07 16:35:52 +01:00
Steven Robbins 8f2985b24c Fix for out of bounds exception 2011-07-07 12:11:14 +01:00
Jeffrey Stedfast cec7237290 Reverted previous commit, struct sizes vary way too much between platforms 2011-07-06 18:21:29 -04:00
Jeffrey Stedfast e5adf5ecaf Use a struct utsname when calling uname() instead of an 8K buffer 2011-07-06 18:06:14 -04:00
Jeffrey Stedfast ff35fc9ed8 Add System/Platform.cs to *System*.dll.sources 2011-07-06 13:32:05 -04:00
Rodrigo Kumpera d50faed969 Merge pull request #128 from paszczi/master
Fix for bug #701733
2011-07-06 10:01:15 -07:00
Jeffrey Stedfast 40ca6e282d Make internal Platform class static 2011-07-06 12:42:24 -04:00
Jeffrey Stedfast 67e45d8ca4 Load the correct type for MacOSX (as opposed to iOS) 2011-07-06 12:06:12 -04:00
Zoltan Varga 33b51fe9f0 Do some work towards making ARM fp mode runtime configurable, still far from working. 2011-07-06 16:17:09 +02:00
Zoltan Varga c7d967eb91 Prefix ARM FPA codegen macros with 'FPA'. 2011-07-06 16:16:16 +02:00
Zoltan Varga b908803e39 Avoid calling add_method () twice. 2011-07-06 15:37:32 +02:00
Zoltan Varga 928bd3ee2b Add an ExportSymbol property to MonoPInvokeCallbackAttribute to instruct the AOT compiler to generate a global symbol for the native-to-managed wrapper. 2011-07-06 04:14:56 +02:00
Jeffrey Stedfast 70b56e1a2a Oops, we need Platform.cs too 2011-07-05 17:53:54 -04:00
Jeffrey Stedfast 7715de7ad9 Implemented a shared way to do MacOSX detection in System.dll 2011-07-05 17:52:25 -04:00
Jeffrey Stedfast 057b426f7b Doh, do proper OSX detection 2011-07-05 17:00:58 -04:00
Jeffrey Stedfast 7bd517619a Use runtime detection to decide to use CoreFoundation.CFNetwork.GetDefaultProxy() 2011-07-05 16:31:47 -04:00
Jeffrey Stedfast 287a28b0fe On MonoTouch, call CoreFoundation.CFNetwork.GetDefaultProxy() to get the default proxy 2011-07-05 14:10:14 -04:00
Sebastien Pouliot d3ce2bfbba Ensure the .mdb file is copied if the linker decides not the link, but copy, an assembly 2011-07-05 10:17:41 -04:00
Sebastien Pouliot ef3d37a52e Do not mark all static fields when marking a ValueType (except for enums) 2011-07-05 10:17:06 -04:00
Marek Safar 754a4d3463 Reuse fields used by hoisted stack slots 2011-07-05 10:30:11 +01:00
Maciej Paszta 89cf1c22b9 Fix for bug #701733 2011-07-05 07:42:02 +02:00
Marek Safar 8342b65221 Stack forwarder don't not need explicit this when one of the arguments is this 2011-07-04 20:02:58 +01:00
Marek Safar 98014a2644 Implement stack persistance for nested async 2011-07-01 20:56:16 +01:00
Geoff Norton fd4ac545db Merge pull request #127 from trustme/master
Fix crash on Lion when exiting
2011-07-01 09:15:26 -07:00
Duane Wandless 4db9369673 Fix crash on Lion when exiting 2011-07-01 08:46:28 -04:00
Marek Safar d363c5fee7 Fix a race in continuation setup 2011-07-01 12:10:15 +01:00
Marek Safar aff7084f1d Migrate more emit specific code to EmitContext and clean it up for stack tracking 2011-07-01 12:10:15 +01:00
Zoltan Varga fab2a3e2b5 Fix the Thread.Interrupt () test now that it is implemented. 2011-07-01 02:49:08 +02:00
Zoltan Varga 866ea36635 Fix some tests broken by some NET 4.0 changes. 2011-07-01 02:32:25 +02:00
Zoltan Varga 17dc7e9dc9 Fix an enum test. 2011-07-01 01:01:15 +02:00
Zoltan Varga 13d2cbd195 Fix sorting of ulong[] arrays among others when using the non-generic Sort() overloads. 2011-07-01 01:01:15 +02:00
Zoltan Varga 5f381b92e0 Disable a not working delegate test. 2011-07-01 01:01:14 +02:00
Marek Habersack dde59ef9dd [asp.net] Added FormsAuthentication.Timeout 4.0 property 2011-07-01 00:01:59 +02:00
Zoltan Varga ffa448b908 Revert delegate-invoke.exe as the commit it depends on, 929c6bc9b6 has been removed. 2011-06-30 22:41:56 +02:00
Zoltan Varga 4293fa19d1 Disable a test which fails with AOT. 2011-06-30 22:29:39 +02:00
Zoltan Varga 4d778cc3c7 Avoid creating an AssemblyBuilder in DynamicMethod if not needed. 2011-06-30 20:46:44 +02:00
Jb Evain 648425ebe1 Fix handling of null in the non generic implementation of EqualityComparer. Fixes 703027. 2011-06-30 01:24:50 +02:00
Jb Evain af6f63eb79 Add test for bug #703027. 2011-06-30 01:23:24 +02:00
Rodrigo Kumpera e00fb730be Fix more typos. 2011-06-29 11:04:49 -03:00
Marek Safar 89a87e4f15 Use correct method to declare local variable 2011-06-29 10:47:54 +01:00
Marek Safar d62ff66e27 Remove redundant local variable copy 2011-06-29 10:47:54 +01:00
Marek Safar 3185d5eb80 Make continuation jump more explicit 2011-06-29 10:47:54 +01:00
Marek Safar 8d2b54f233 Remove redundant override 2011-06-29 10:47:54 +01:00
Eberhard Beilharz f74292dca8 [PATCH 2/2] Improve code readability
Use enum instead of hard coded values for XLookupStatus values.
2011-06-29 08:32:35 +02:00
Eberhard Beilharz fa87d06888 [PATCH 1/2] Improved fix for mono bug #692206
In contrast to Xutf8LookupString, XLookupString returns the number
of characters stored in the buffer instead of a status. If the buffer
is too small the output is truncated, but we don't know it. However, it
seems pretty unlikely that a buffer of 24 chars shouldn't be enough for a
single key press, so I simplified the code a little bit.
Also, XLookupString converts the keySym to an ISO Latin-1
character so that there is no need to do an explicit conversion.

Add variable to store Ansi encoding so that we have to get it only once.

Fix a few problems encountered debugging this problem.
2011-06-29 08:32:05 +02:00
Jackson Harper 01767e670e We can accidently swallow out of FD errors here since this function is called from a threadpool thread. 2011-06-28 23:22:44 -04:00
Rodrigo Kumpera 427065ea72 Fix typo. 2011-06-28 22:01:27 -03:00
Atsushi Eno 226c2db9ac Implement support for Stream param with WebHttpBinding raw content format. 2011-06-28 20:43:13 +09:00
Atsushi Eno b737e5542f Implement support for generic data contract type name with "{x}". 2011-06-28 18:01:38 +09:00
Marek Habersack 95a0730fc1 Merge pull request #112 from skolima/master
[MSBuild] Preserve comments in build files & use LinkedList to store children
2011-06-27 10:59:03 -07:00
Paolo Molaro 1991b7b15f Add an aot option to override the value of readonly static fields.
If the static constructor of a type has been run, the JIT can perform
some optimizations based on the actual value of static readonly fields.
This isn't possible in AOT mode, since the code won't be ran before compile
time: this option allows to set any number of static readonly fields to
a constant value so that the compiler can perform the same kind of
optimizations.
2011-06-27 16:04:44 +02:00
Paolo Molaro 0e31cd4e85 Remove the data field from MonoVTable to reduce memory usage.
We now store a pointer to the static fields area of a type at the
end of the vtable array only when needed, so we save memory for all
the types that have no static fields.
All the direct accesses to the field have been changed to use the
already existing function accessor.
2011-06-27 16:04:32 +02:00
Leszek 'skolima' Ciesielski 140b75cd2e [MSBuild] Fixed issues found by Paul Selormey.
Unset attributes should return String.Empty, null is only for invalid.
2011-06-25 16:53:56 +02:00
Leszek 'skolima' Ciesielski 7301dc0c98 [MSBuild] LinkedList used for storing children
ProjectElementContainer should now handle modifications faster.
2011-06-25 15:43:40 +02:00
Leszek 'skolima' Ciesielski a24a2fa54b [MSBuild] Preserve comments in build files
Contribution by Paul Selormey
2011-06-25 15:43:40 +02:00
Mark Probst 260177c034 [sgen] Do the bridge callback after the world has been restarted. 2011-06-24 20:49:24 +02:00
Gonzalo Paniagua Javier ed16d9c554 Merge pull request #122 from rabink/master
Added support for p12 files
2011-06-24 10:42:44 -07:00
Gonzalo Paniagua Javier e03d204d7b Merge pull request #121 from LogosBible/processfixes
Fixes crash when calling Process.Start on a file with a ' in the path
2011-06-23 22:03:39 -07:00
Zoltan Varga 4dd9b714a6 Treat CEE_BREAK the same as Debugger:Break (), i.e. route it through sdb. 2011-06-24 00:23:08 +02:00
Zoltan Varga fad8275934 Fix out-of-tree builds on arm. 2011-06-23 21:33:43 +02:00
Zoltan Varga cf833cddbc Fix a warning if MONO_FAST_TLS_DECLARE is not defined. 2011-06-23 21:17:22 +02:00
Zoltan Varga 637ee7cbaa Compile 'arch' before 'utils' since mono-context.h now references generated files from 'arch'. 2011-06-23 21:11:11 +02:00
Rabin Karki 98c3a83455 Allow adding certificates using PKCS12 file 2011-06-23 13:33:08 -04:00
Mark Probst 08d8eacbfc [sgen] Give warnings when degraded allocations happen. 2011-06-23 12:14:46 +02:00
Mark Probst b145a37aa1 [sgen] Don't accept size parameters with incorrect suffix.
Previously if you set, for example, nursery-size=64x, which is
nonsense, it was interpreted as 64 bytes.  Now it'll fail.
2011-06-23 12:14:45 +02:00
Zoltan Varga e84d281a90 Change the importance of MakeDir log messages to 'normal'. 2011-06-23 01:02:09 +02:00
Jb Evain c89d6f1050 Fix queryable enumerable expression transformation 2011-06-23 00:32:27 +02:00
Jb Evain c42ae14d7b Don't emit null queryable constants when rewriting linq queries, fix #701187 2011-06-23 00:18:23 +02:00
Jb Evain 8dd7cde335 add test case for #701187 2011-06-23 00:11:34 +02:00
Sebastien Pouliot 4ad303e2b7 Merge pull request #119 from konrad-kruczynski/SslStreamNoTimeout
Removed hard coded timeout for SslStreamBase.
2011-06-21 17:38:00 -07:00
Rodrigo Kumpera 8560b34149 Fix amd64, again. Damn me. 2011-06-21 18:14:16 -03:00
Rodrigo Kumpera fd576099de Implement an IL version of the cardtable write-barrier. 2011-06-21 14:18:22 -03:00
Rodrigo Kumpera 6167ca2d4a Extract the nursery check code into a separate function. 2011-06-21 14:18:22 -03:00
Rodrigo Kumpera 7d1ea516f5 Fix build. 2011-06-21 13:25:50 -03:00
Marek Safar cd266bc032 Better side effect checks 2011-06-21 15:10:10 +01:00
Konrad M. Kruczynski 7c06fc67b2 Removed hard coded timeout for SslStreamBase.
SslStream had hard coded timeout, so it waited no more than five minutes to have send/receive operation completed and then throwing exception even if underlying stream was still fully operational.
2011-06-21 15:39:44 +02:00
Marek Safar 76ce601441 Don't emit reaonly. prefix for reference loads 2011-06-20 20:43:39 +01:00
Rodrigo Kumpera 0127b6e1dd ms_get_empty_block must atomically pop from empty_blocks. 2011-06-20 15:54:16 -03:00
Rodrigo Kumpera 01942bc57f Avoid emiting membar for cases not needed by amd64 memory model. 2011-06-20 15:54:15 -03:00
Rodrigo Kumpera 76d7c75c33 Must use an IL version of the test since the underlying bug will be fixed on mcs. 2011-06-20 13:48:38 -03:00
Rodrigo Kumpera 829a4e9b93 Add regression test to cmmp store to local. 2011-06-20 13:29:00 -03:00
Rodrigo Kumpera 9ac6554798 Don't allow storing CMMP managed refs to local variables. 2011-06-20 13:29:00 -03:00
Rodrigo Kumpera 0e2adfb0a2 Cleanup code a bit by reducing spurious nesting. 2011-06-20 13:28:59 -03:00
Michael Hutchinson a690189f2b Fix the cairo dllmap on OS X 2011-06-20 14:34:44 +01:00
Rodrigo Kumpera 39e0d5fc12 SDB under darwin can't handle new style interruption. 2011-06-20 10:29:53 -03:00
Rodrigo Kumpera b7337d5a13 Add mono_thread_info_disable_new_interrupt so we can disable new interruption programatically. 2011-06-20 10:29:53 -03:00
Miguel de Icaza 057aeaf4de Update copyrights 2011-06-19 18:59:36 -04:00
Andreia Gaita 8c3fa42cc8 Merge pull request #118 from XTZGZoReX/master
Socket: Fixed a security issue when default-initialized ArraySegment structs are passed in.
2011-06-19 14:04:38 -07:00
XTZGZoReX a552981293 Socket: Fixed a security issue when default-initialized ArraySegment structs are passed in.
This is the same security issue that was recently addressed in MS.NET.
2011-06-20 01:02:00 +02:00
Zoltan Varga eb6a0f86e1 Add some missing files. 2011-06-19 17:28:21 +02:00
Zoltan Varga 44ae1697c1 Implement support for Debugger.Log ()/ IsLogging () in sdb. 2011-06-18 20:25:37 +02:00
Zoltan Varga c009c15385 Implement support for routing System.Diagnostics.Debugger:Break () calls to a debugger using a new UserBreak event type. 2011-06-18 19:15:46 +02:00
Zoltan Varga 8cd6dd7e50 Support another case in mono_gc_get_bitmap_for_descr (). 2011-06-17 16:15:22 +02:00
Zoltan Varga 0daf4badbc Fix LLVM build. 2011-06-17 16:11:56 +02:00
Jonathan Chambers 6896a95a61 Put braces around code block to prevent variable declarations after statements. Fixes MSVC build. 2011-06-17 08:23:13 -04:00
Jonathan Chambers 0238cf1286 Use wrappers for accessing socket errors. Cygwin does not have some errors in errno.h. Fixes Windows build. 2011-06-17 08:22:02 -04:00
Eberhard Beilharz 5af5bbcaf7 Add test for bug 694908. 2011-06-16 20:33:12 +02:00
Eberhard Beilharz 891b4a2d59 Handle paint exceptions, showing a red cross like .NET does. Fixes bug 694908. 2011-06-16 20:32:47 +02:00
Gonzalo Paniagua Javier 41f79be64c Fix crash when there's a \' in the arguments.
Fixes crash when calling Process.Start on a file with a ' in the path
	when UseShellExecute is set to false.

	Patch by Tom Philpot.
2011-06-15 15:34:25 -04:00
Jeffrey Stedfast d81c5ca45e [CSharpCodeGenerator] Output global:: if GlobalReference option set 2011-06-15 12:26:17 -04:00
Jeffrey Stedfast 236b6fab6e [CSharpCodeGenerator] Don't ignore MemberAttributes.New for types 2011-06-15 12:26:17 -04:00
Jeffrey Stedfast 41a9e93682 [CSharpCodeGenerator] don't ignore Final attr on Fields 2011-06-15 12:26:16 -04:00
Zoltan Varga ef6a0a6104 Apply a workaround for a gcc 4.6 problem on arm. 2011-06-15 17:30:56 +02:00
Jeffrey Stedfast 0c1207330d Revert for commit 929c6bc9b6
Aformentioned commit seems to break the mono build, reverted
for now.
2011-06-15 11:28:33 -04:00
Marek Habersack 5ccf8a79ee [dblinq] Fix compilation 2011-06-15 12:06:28 +02:00
Marek Safar 829de2e697 Correctly use read cache buffer in full ast mode 2011-06-15 09:20:56 +01:00
Rodrigo Kumpera 1eb19bd4f2 Merge pull request #117 from madewokherd/win32build
Avoid references to pthread_t when building for win32.
2011-06-14 14:48:28 -07:00
Vincent Povirk 241159267e Avoid references to pthread_t when building for win32. 2011-06-14 16:23:38 -05:00
Marek Safar b51c2a5010 Try to recover from unterminated string literal 2011-06-14 18:22:23 +01:00
Marek Safar 3faab8f47e Add async better expression converion 2011-06-14 18:22:23 +01:00
Marek Safar f08030dc44 Add warning for mistyped documentation type parameters 2011-06-14 18:22:22 +01:00
Rodrigo Kumpera a072326f41 Merge pull request #115 from knocte/master
Please close the bugzilla entry.
2011-06-14 08:16:51 -07:00
Andres G. Aragoneses cbefc781e5 System.Data.Linq: Fix DataContext.ExecuteQuery<T>(..) to allow primitive types for T
This should fix https://bugzilla.novell.com/show_bug.cgi?id=699803
2011-06-14 14:55:01 +01:00
Marek Safar 2be0cb7156 Implement async type inference 2011-06-14 11:24:54 +01:00
Atsushi Eno c657187050 Set "Encoder" property when Message was read from MessageEncoder. 2011-06-14 19:17:20 +09:00
Atsushi Eno 509f45a0ae finally implement Message.ToString() as in expected form.
Regressions on this method has caused several unpredictable errors,
so I avoided this for somewhat long time...
2011-06-14 18:43:29 +09:00
Atsushi Eno 70015f9ba5 Flush some ongoing changes for XmlSerializer support in svcutil. 2011-06-14 17:58:26 +09:00
Zoltan Varga 9abe978c8c Merge pull request #114 from XTZGZoReX/master
Mono.Debugger.Soft: Really fix parameter types in MethodMirror.FullName.
2011-06-13 14:51:05 -07:00
XTZGZoReX 76f9ea33dd Mono.Debugger.Soft: Really fix parameter types in MethodMirror.FullName. 2011-06-14 01:42:21 +02:00
Jb Evain 89afa16299 Stream.CopyTo is nice to have everywhere 2011-06-13 23:06:15 +02:00
Sebastien Pouliot 52b0dfd6ef Allow extensions methods to be reused from other assemblies 2011-06-13 15:48:48 -04:00
Rodrigo Kumpera 894e75f5a1 Allow AssemblyRef flags to have at least ECMA's values. Fixes #684613. 2011-06-13 15:56:49 -03:00
Rodrigo Kumpera 3fad42b441 Add regression test 2011-06-13 15:34:56 -03:00
Rodrigo Kumpera 93d11586f9 Aleviate fencing on critical regions and allocation.
* sgen-gc.c: Critical regions only requires proper visibility
	on the enter side. On the exit side all we need to make sure is
	ordering.

	* sgen-gc.c: Allocation don't need to have all stores imediatelly
	visible, only properly ordered when it happens.
2011-06-13 14:20:33 -03:00
Rodrigo Kumpera fc63ec6865 Fix release semantics to make sure it flushes the store buffer on ia32/amd64.
* mono-memory-model.h: Release semantics must cause the store buffer
	to be flushed on x86. Add variants of atomic_store that only provides
	sequencing with previous stores.
2011-06-13 14:20:32 -03:00
Zoltan Varga 45be330be8 Merge pull request #113 from XTZGZoReX/master
Mono.Debugger.Soft: MethodMirror.FullName should include parameters.
2011-06-13 06:24:50 -07:00
XTZGZoReX 3912c586b7 Mono.Debugger.Soft: MethodMirror.FullName should include parameters. 2011-06-13 15:50:09 +02:00
Atsushi Eno 012a859db4 Fix 2.0 build. 2011-06-13 21:35:16 +09:00
Atsushi Eno 8219d05935 Implement OnWriteBodyContents() and add message buffer support for RawMessage. 2011-06-13 20:05:27 +09:00
Marek Habersack 1060b4febb [asp.net] Construct properly rooted paths when assigning values from resources 2011-06-13 12:40:29 +02:00
Marek Safar 0710459ada Implement async for lambda expressions 2011-06-13 10:03:12 +01:00
Zoltan Varga 26b02f8f30 Use TARGET_ANDROID instead of PLATFORM_ANDROID in one place. 2011-06-12 18:48:35 +02:00
Zoltan Varga 01c458453f Clean up the cross-compile configure.in code. Add a TARGET_ANDROID define. 2011-06-12 18:48:35 +02:00
Zoltan Varga aaef2a6382 Add an assert to detect TLS mismatches between the aot compilation and runtime environment. 2011-06-12 18:48:34 +02:00
Zoltan Varga 99d2f5bb42 Fix a warning. 2011-06-12 18:48:34 +02:00
Sebastien Pouliot a0a770429e Fix namespace and avoid looping once ctor is found 2011-06-12 12:20:41 -04:00
Rodrigo Kumpera 10a3dc2c11 Add missing StoreStore barriers to the managed allocator. 2011-06-12 12:52:54 -03:00
Rodrigo Kumpera 7087b55e81 Add new mono byte code for memory barriers 2011-06-12 01:29:48 -03:00
Rodrigo Kumpera c00821736c X86 only needs StoreLoad and Full barriers, ignore the rest 2011-06-11 22:27:06 -03:00
Rodrigo Kumpera a7b5db4c23 Extract the code to emit a memory barrier. Add a memory_barrier_kind field to MonoInst::backend. 2011-06-11 22:26:12 -03:00
Rodrigo Kumpera 05c40f2881 Storing the vtable pointer on the object header requires release semantics 2011-06-11 15:48:11 -03:00
Rodrigo Kumpera 1afab6fbf0 Replace an explicit memory barrier with mono_atomic_store_release. Thanks from x86-land. 2011-06-11 15:48:11 -03:00
Rodrigo Kumpera 6dd3565176 Add the basics for memory model aware fencing.
* mono-memory-model.h: New header that exports the basics
	to will enable us to apply fencing only on archs that need it.
2011-06-11 15:48:10 -03:00
Mark Probst f29821b639 [sgen] Don't check for parallel collector in mono_sgen_is_worker_thread().
A worker thread is a worker thread no matter whether the current
collector is parallel or not.  The check is unnecessary and caused a
crash when running mono on a non-existent executable.
2011-06-10 20:19:43 +02:00
Marek Safar 011f7c6125 Implement assignment of await expression 2011-06-10 16:22:46 +01:00
Jb Evain 3cb87f83e8 Fix bug #64424, XElement.SetElementValue should not remove its child elements 2011-06-10 11:49:55 +02:00
Jb Evain 72989552f4 Add test for bug #644242 2011-06-10 11:49:19 +02:00
Jb Evain 106c713c02 Fix bug #699182, List indexer doesn't increment version 2011-06-10 11:11:56 +02:00
Jb Evain fc8c405d60 Add test for #69918 2011-06-10 11:11:45 +02:00
Rodrigo Kumpera 4d6cbaa615 Fix darwin-arm build. 2011-06-09 22:46:32 -03:00
Rodrigo Kumpera ccfc7b1c67 Add regression tests for delegate invokes 2011-06-09 22:44:17 -03:00
Rodrigo Kumpera 87d0fe0686 Add test for missing binding behavior 2011-06-09 22:44:17 -03:00
Rodrigo Kumpera 929c6bc9b6 Handle more delegate invoke cases.
* marshal.c (mono_marshal_get_delegate_invoke): Handle
	instance methods of valuetypes. Be either with a null target
	of with the 'this' parameter been passed as part of the delegate
	param list. The 'this' parameter can be either byval or byref.

	* object.c (mono_delegate_ctor_with_method): Don't add unbox
	wrappers when the 'this' parameter is a valuetype and is been
	passed byref.

	* mini-trampolines.c (mono_delegate_trampoline): Correctly
	detect callvirt trampolines. Don't add unbox wrappers for
	delegates with explicit 'this' passed byref. Disable optimized
	tramps for delegates to instance methods that have no target.

	Fixes #695978
2011-06-09 22:44:16 -03:00
Rodrigo Kumpera cd376b7a96 Fixes Delegate.CreateDelegate with valuetype argument on the 'this' position.
* Delegate.cs (CreateDelegate): Allow binding del(vt&) to an instance
	method of vt.

	* DelegateTest.cs: Add regression tests.

	Fixes #695978
2011-06-09 22:44:16 -03:00
Jonathan Pryor 3f3825bf8b [mdoc-update] Generate proper lower bounds for multi-dimensional arrays.
Consider the method `void M(double[,,])`. When attempting to import
documentation for this method, `mdoc-update` should generate the CREF
"M(System.Double[0:,0:,0:])", otherwise some documentation isn't imported.

Due to this (and `mcs /doc`-related fixes) and other changes, flush the
expected output as more docs are properly imported.
2011-06-09 14:31:32 -04:00
Marek Safar df8086c13f Check parameter names collision for members without block 2011-06-09 18:08:07 +01:00
Jérémie Laval 7a92657e2e Potential fix for #690944 2011-06-09 18:43:55 +02:00
Jérémie Laval ed996c6947 Setup status and scheduler correctly when calling RunSynchronously on a Task 2011-06-09 18:05:19 +02:00
Sebastien Pouliot 014760a7fe Refactor MonoMac's MarkNSObjects substep so it can be reused in other products 2011-06-09 10:30:07 -04:00
Marek Safar 8f89f5e7f9 Fix capturing of lambda's this under async context 2011-06-09 14:33:05 +01:00
Marek Habersack a7ad3801c0 Merge pull request #110 from skolima/master
I've missed several NotImplementedExceptions previously, this is now fixed.
2011-06-09 01:35:15 -07:00
Zoltan Varga d370d7a3f7 Merge pull request #111 from Unity-Technologies/master-debugger-attaching
[SDB] Fixup connection-time messages on attaching.
2011-06-08 15:51:53 -07:00
Tak f4b8fa9fc8 [SDB] Fixup connection-time messages on attaching.
* mini/debugger-agent.c: Fixup connection-time messages on attaching.

License: MIT/X11
2011-06-08 16:11:46 +02:00
Zoltan Varga 09995ecfc3 Fix a warning. 2011-06-07 22:04:59 +02:00
Zoltan Varga 280dd4882b Fix the check for the -Wno-unused-but-set-variable gcc option. 2011-06-07 22:04:59 +02:00
Leszek 'skolima' Ciesielski d123a54aa2 [MSBuild] Finishing Microsoft.Build.Construction
No more NotImplementedException.
2011-06-07 21:48:32 +02:00
Marek Safar 475fd52415 Update gitignore 2011-06-07 17:49:06 +01:00
Marek Safar 31a8e318ae Correctly calculate parsed array index for full AST 2011-06-07 17:46:47 +01:00
Marek Safar 6f095f246a Update translationf files 2011-06-06 18:34:44 +01:00
Marek Safar f7b9780b10 Don't crash on invalid GetAwaiter 2011-06-06 16:45:43 +01:00
Marek Safar da5d6733f4 Add more test files 2011-06-06 16:45:16 +01:00
Marek Safar b9971c8ecc [697296] Fix documentation output for jagged arrays 2011-06-06 10:55:40 +01:00
Marek Safar cf09faf4e8 Add some caching for generic task 2011-06-06 10:55:39 +01:00
Marek Safar 99d338f202 Update test 2011-06-06 10:55:39 +01:00
Marek Safar f974410654 Persist more literals in full ast mode 2011-06-06 10:55:39 +01:00
Zoltan Varga 2700382202 Update LLVM backend to latest LLVM code. 2011-06-04 19:13:03 +02:00
Zoltan Varga 1984984188 Fix a corner case where an inlined bblock which had its next_bb set was the last bblock in a method. Fixes #693905. 2011-06-04 15:21:45 +02:00
Jb Evain 77ee9c7a8c update tuner 2011-06-04 12:40:16 +02:00
Zoltan Varga f1906e822d Merge pull request #109 from rnagy/master
Fix OpenBSD. KERN_PROC2 is not needed anymore here.
2011-06-03 16:01:00 -07:00
Jonathan Pryor 35eef5a8ac Allow Android'd support_boehm=no to work.
The AC_ARG_ENABLE(boehm, ..., ..., support_boehm=yes) resulted in
support_boehm always being 'yes', even for `--host=arm-linux-androidabi`,
which was not the intention. Using `support_boehm=${support_boehm:-yes}`
generates correct behavior.
2011-06-03 17:17:59 -04:00
Jonathan Pryor 46f61e7240 Simplify building with the Android NDK.
Check --host against *-*-linux-android* for Android-specific configure fixes,
and improve **/Makefile.am to simplify Android support:

	./configure \
		--build=`./config.guess` \
		--host=armv5-linux-androideabi \
		--target=armv5-linux-androideabi \
		--enable-nls=no --with-mcs-docs=no --enable-mcs-build=no \
		CC="/path/to/ndk/arm-linux-androideabi-gcc --sysroot=/path/to/sysroot" \
		AR="..." AS="..." CPP="..." CXX="..." LD="..." RANLIB="..." STRIP="..."
		CFLAGS="-DARM_FPU_NONE=1" CXXFLAGS="-DARM_FPU_NONE=1"

See also Android NDK docs/STANDALONE-TOOLCHAIN.html.

The Android NDK/bionic is "interesting", in that it's lacking header files and
macros normally present on Linux which otherwise break the build (e.g. no
<link.h> which breaks Boehm support).  Using --host with an android target
works around the known issues, simplifying the building of libmonosgen-2.0.so
with the Android NDK toolchain.
2011-06-03 16:42:38 -04:00
Marek Safar 0d0930f3a4 Fix parsing of generic partial methods 2011-06-03 14:33:19 +01:00
Marek Safar 4270256c31 Remove gitattributes 2011-06-03 14:33:19 +01:00
Zoltan Varga fcba39cda1 Make mono_gc_pthread_create () call pthread_create () directly, so libgc pthread redirection works again. Make mono_threads_pthread_create () call mono_gc_pthread_create () instead. Fixes the OpenBSD build among others. 2011-06-03 15:24:26 +02:00
Zoltan Varga 7c85c560ea Fix the previous change. 2011-06-03 15:24:26 +02:00
Zoltan Varga 268612d87d Fix a warning. 2011-06-03 15:24:26 +02:00
Atsushi Eno fd8ae35df0 Support RemoteEndpointMessageProperty. 2011-06-03 19:46:01 +09:00
Robert Nagy d8755bc0b3 Fix OpenBSD. KERN_PROC2 is not needed anymore here. 2011-06-03 10:01:01 +02:00
Marek Safar 92a0f06ee3 Block await inside unsafe context 2011-06-03 08:45:22 +01:00
Marek Safar 7a2f427dcf Add gitignore 2011-06-03 08:45:22 +01:00
Zoltan Varga 978e4ebbd6 Fix NOMAP32BIT support in specific trampolines. 2011-06-02 23:41:37 +02:00
Robert Nagy 28381258a9 Fix openbsd build. 2011-06-02 23:41:37 +02:00
Marek Safar 16ff3bd9cd Initial async support for simple Task 2011-06-02 16:12:14 +01:00
Marek Safar 70654f379a [697674] Fixes MEF embedded string resources 2011-06-02 15:54:12 +01:00
Marek Safar 68d21bf778 Fix error number 2011-06-02 15:54:12 +01:00
Jb Evain cd9278d188 update tuner 2011-06-02 16:40:27 +02:00
Jb Evain 19f820319e update Mono.Cecil.Mdb 2011-06-02 16:39:24 +02:00
Jb Evain 260db3c1c4 update Mono.Cecil 2011-06-02 16:39:06 +02:00
Tom Philpot 58ef9d9c9b Fixes crash when calling Process.Start on a file with a ' in the path when UseShellExecute is set to false 2011-06-01 16:48:26 -07:00
Rodrigo Kumpera a335106106 Handle a vtable layout corner case.
class.c (mono_class_inflate_generic_method_full_checked): Don't
	inflate a method if the provided context won't change it.
	This change, in particular, avoid inflating a generic method
	of a non-generic class if the context has class only vars.

	This fixes #696593 as the above was causing the vtable of
	Class3 ending up with an inflated Class1::Method<> that
	comes from inflated Class2<object> parent.
	Then the parent override pass would collect a non-inflated
	Class1::Method<> overide that would then not match the one
	on the vtable causing Class3 to have an abstract method on
	its vtable and thus failing to load.

	Big explanation means tricky change, might break tons of stuff.
2011-06-01 15:01:32 -03:00
Rodrigo Kumpera d394ab2217 Improve vtable layout tracing. 2011-06-01 15:01:31 -03:00
Mark Probst f4cfe08041 [sgen] Split the minor scan function between parallel and non-parallel.
In making the nursery collector configurable between parallel vs
non-parallel we made the scan function check which one it was for each
pointer encountered, which is a potential performance issue.  This
brings things back to normal.
2011-05-31 23:05:08 +02:00
Mark Probst a8723851de [sgen] Make nursery collector for parallel M&S non-parallel again.
Thread synchronization for the parallel nursery collector is (still)
too high to pay off.  Also, it currently crashes on the corlib
testsuite.

It can now be turned on and off with the nursery_collector_is_parallel
variable.  We will make this configurable via MONO_GC_PARAMS once the
bug is found and fixed.
2011-05-31 23:05:07 +02:00
Jonathan Pryor eb7ecaf40a [mdoc] Add MonoDevelop project files.
Code completion is nice...
2011-05-31 13:32:42 -04:00
Marek Safar 3f2be6bf4c Better test 2011-05-31 18:06:08 +01:00
Marek Safar 5d5d021101 [697236] Generic type parameter attributes can precede variance modifiers 2011-05-31 17:57:52 +01:00
Marek Safar 4bec035c0b [696822] Reset eval completion on error handling 2011-05-31 16:57:49 +01:00
Atsushi Eno b76593fe9a Support WebHttpBinding configuration. 2011-05-31 20:56:30 +09:00
Marek Safar 52d0c83957 Persist parsed values of literal constants in full ast mode 2011-05-31 12:44:44 +01:00
Marek Safar 968cb66d72 Fix location of numeric literals 2011-05-31 12:44:43 +01:00
Zoltan Varga 10d7b5454f Fix some warnings. 2011-05-31 12:22:39 +02:00
Atsushi Eno 579be2e34e Ref parameter was not covered by ParameterInfo.IsOut. Fixed bug #696784. 2011-05-31 18:51:36 +09:00
Zoltan Varga 6c2b08f0c4 Emit write barriers after/before volatile loads/stores. 2011-05-31 01:44:31 +02:00
Rodrigo Kumpera b37b772ed2 batch compiler fails on osx due to thread exaustion 2011-05-30 18:31:50 -03:00
Rodrigo Kumpera c357ed676a Regression test #696817 2011-05-30 18:31:50 -03:00
Rodrigo Kumpera 4c3141f257 Properly handle field RVA under moving collector.
* reflection.c (typebuilder_setup_fields): Alloc RVA data
	on the image mempool so it works with a moving collector.

	Fixes #696817
2011-05-30 18:31:49 -03:00
Marek Habersack 882c29a0af Merge pull request #97 from skolima/master
Second part of Microsoft.Build.Construction: loading project files
2011-05-30 13:18:53 -07:00
Rodrigo Kumpera eee38c9230 Fix invalid instantiations on method calls.
* verify.c: Disalow GTDs on method position.

	Fixes #656913
2011-05-30 15:58:27 -03:00
Rodrigo Kumpera bbcd2ac646 Fix sgen under xen 2011-05-30 12:21:32 -03:00
Gonzalo Paniagua Javier 8ae6580c4f Merge pull request #107 from duarten/master
Allow a thread to set its interruption state
2011-05-29 18:06:53 -07:00
Duarte Nunes d4816043a4 Threads can now self-interrupt, as expected 2011-05-29 21:38:21 +01:00
Leszek 'skolima' Ciesielski 2cb339d871 [MSBuild] Microsoft.Build.Construction loading project files 2011-05-29 10:06:12 +02:00
Mark Probst 4fbf642f92 [sgen] Allocate small IDs for worker threads.
Worker threads require SMR to work because they use the lock-free
internal allocator, so they need to have a small ID.  We introduce a
new function in mono-threads that just allocates and registers a small
ID for a thread.
2011-05-28 17:06:15 +02:00
Ankit Jain 5979d6f019 [xbuild] Add property $(SkipCopyUnchangedFiles)
Microsoft.Common.targets: Use new property
$(SkipCopyUnchangedFiles) to control SkipUnchangedFiles property
of the various Copy tasks. Also, allow skipping when
copying CopyToOutputDirectory files in PreserveNewest case.

Patch from Tom Philpot <[email protected]>
2011-05-28 01:19:16 +05:30
Marek Safar 3813ff9990 Merge pull request #106 from XTZGZoReX/master
mcs: Remove ctest target (dead NET_1_0 code)
2011-05-27 03:05:20 -07:00
XTZGZoReX 19b7dd65f1 mcs: Remove ctest target (dead NET_1_0 code). 2011-05-27 14:03:21 +02:00
Atsushi Eno 01308ef4ea Add test for XmlMembersMapping.TypeName and .Namespace (not very useful yet...) 2011-05-27 17:29:05 +09:00
Atsushi Eno e2c6d5cb26 Fill type info in MessagePartDescription from XmlSerializer-based wsdl importer.
It still needs some fixes to import message elements.
2011-05-27 17:24:01 +09:00
Rodrigo Kumpera 16fc3366c4 Fix HEAVY_STATS 2011-05-26 20:36:39 -03:00
Rodrigo Kumpera fd0ccb861f Add stats for the nursery allocator 2011-05-26 20:36:23 -03:00
Rodrigo Kumpera b481b0949d Sanitize assertions in the unmanaged object allocator. 2011-05-26 20:09:25 -03:00
Rodrigo Kumpera dfc5b26c45 Change the managed allocator so the tlab wastage trick works with it enabled. 2011-05-26 20:09:16 -03:00
Rodrigo Kumpera 0025987639 Bound tlab wastage to SGEN_MAX_NURSERY_WASTE.
* sgen-gc.c: When a new tlab is needed we check if we should
	alloc the object directly into the nursery and spare discarding
	the current tlab.

	This reduces nursery wastage by 5x on httplistener. It's a silly
	test, but should how important this change is.
2011-05-26 20:09:09 -03:00
Rodrigo Kumpera da078a1aee Cleanup and move nursery allocator tunables to sgen-gc.h 2011-05-26 20:09:04 -03:00
Rodrigo Kumpera a9545fddef Add nursery wastage accounting under heavy stats 2011-05-26 20:08:32 -03:00
Rodrigo Kumpera fbc50a0eb9 Introduce mono_sgen_nursery_retire_region.
* sgen-nursery-allocator.c: Add function that is notified of
	wasted tlab space.
2011-05-26 20:06:56 -03:00
Rodrigo Kumpera 2ccdec2c6a Implement nursery allocation tracking.
* sgen-nursery-allocator.c: Add lighweight logging of
	all nursery operations done by the allocator and have
	functions that spill the data. This is very helpfull to
	debug and analyse nursery related issues.
2011-05-26 20:04:31 -03:00
Rodrigo Kumpera 0fccc7e325 Implement lock free nursery allocation.
* sgen-gc.c (mono_gc_try_alloc_obj_nolock): Now try to
	expand the TLAB or allocate directly from the nursery.

	* sgen-nursery-allocator.c (alloc_from_fragment): Use
	M. Michael's linked-list removal to have a lock-free
	walkable linked-list. SMR is not required since we never
	reclaim fragments.
2011-05-26 20:01:40 -03:00
Rodrigo Kumpera d08d789a24 Use a separate field to hold freed fragments 2011-05-26 19:05:50 -03:00
Rodrigo Kumpera c1d51eb1ee Kill nursery_next, now each fragment has a bump pointer. 2011-05-26 19:05:49 -03:00
Rodrigo Kumpera 43ac7975b7 Add mono_sgen_can_alloc_size and trim some unusued parts of the API 2011-05-26 19:05:49 -03:00
Rodrigo Kumpera f7bae85384 Finish spliting sgen-nursery-allocator into a separate compilation unit 2011-05-26 19:05:49 -03:00
Rodrigo Kumpera 05323f69a1 Export mono_sgen_get_nursery_clear_policy from sgen-gc 2011-05-26 19:05:48 -03:00
Rodrigo Kumpera d649ab80bc Rename functions that will be part of the nursery-allocator API.
* sgen-gc.c: Move more nursery-allocator behavior to
	the new file.
2011-05-26 19:05:48 -03:00
Rodrigo Kumpera 99c93aafdc Move more nursery fragment code from sgen-gc.c 2011-05-26 19:05:48 -03:00
Rodrigo Kumpera 93b359b9f2 Move nursery fragment handling to a separate file 2011-05-26 19:05:47 -03:00
Marek Safar fc3a0b33c7 Merge pull request #104 from XTZGZoReX/master
[repl] Make some output consistent.
2011-05-26 03:08:57 -07:00
XTZGZoReX ef9c4beb6a [repl] Make some output consistent. 2011-05-26 14:04:25 +02:00
Marek Safar 4001c1ba61 Inferred type argument cannot be of method group 2011-05-26 09:33:10 +01:00
Marek Safar bdf24342ff Add more async infrastructure 2011-05-26 09:33:10 +01:00
Marek Safar 15bab7500a New test. 2011-05-26 09:33:10 +01:00
Marek Safar 8c770a973e Don't report ambiguous property error when one of the candidates is not C# compatible 2011-05-26 09:33:10 +01:00
Rodrigo Kumpera 321523e23f The TLS shutdown race only happen in signal based STW. Disable work-around for mach. 2011-05-25 15:56:39 -03:00
Rodrigo Kumpera 1ca198aa1d Fix mul_imm under amd64 2011-05-25 15:04:36 -03:00
Zoltan Varga 45710df525 Enable llvm support for the new Monitor.Enter () wrapper. 2011-05-25 13:29:13 +02:00
Zoltan Varga 6f2f9554cd Fix a warning. 2011-05-25 13:15:54 +02:00
Rodrigo Kumpera b17b7bf4e0 Fix mono-cq under sgen.
* mono-cq.c: Don't store to managed fields directly, use
	MONO_OBJECT_SETREF. Don't memset a block of memory with
	roots, use mono_gc_bzero.

	This fixes random crashes in my sgen_par_tlab branch.
	Hopefully all of them.
2011-05-25 03:44:31 -03:00
Zoltan Varga d30b0c8d0a Implement AOT support for the new Monitor.Enter () wrapper. 2011-05-25 04:15:11 +02:00
Rodrigo Kumpera eacc94b376 Disable v4 monitor.enter fastpath under aot and llvm 2011-05-24 20:16:20 -03:00
Rodrigo Kumpera 68150e7587 Reapply the fast v4 monitor enter IL. AOT and LLVM are possibly broken. 2011-05-24 20:15:08 -03:00
Marek Habersack 7fc6f16909 Revert "Reapply 171e690418 fixed to compile under linux."
This reverts commit 20c6d0aaea. This break Linux (64-bit) compilation
in a different place:

make[7]: Entering directory `/home/src/build/mono/mono/mcs/class/aot-compiler'
MONO_PATH='./../../class/lib/build/' > build_aot.log 2>&1 /home/src/build/mono/mono/runtime/mono-wrapper --aot=bind-to-runtime-version --debug ./../../class/lib/build//mscorlib.dll || (cat build_aot.log; exit 1)
Mono Ahead of Time compiler - compiling assembly /home/src/build/mono/mono/mcs/class/lib/build/mscorlib.dll
* Assertion: should not be reached at aot-compiler.c:2061

Stacktrace:

Native stacktrace:

	/home/src/build/mono/mono/mono/mini/mono() [0x493c71]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60) [0x2abc620abc60]
	/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x2abc622edd05]
	/lib/x86_64-linux-gnu/libc.so.6(abort+0x186) [0x2abc622f1ab6]
	/home/src/build/mono/mono/mono/mini/mono() [0x5d93ff]
	/home/src/build/mono/mono/mono/mini/mono() [0x5d9523]
	/home/src/build/mono/mono/mono/mini/mono() [0x476caa]
	/home/src/build/mono/mono/mono/mini/mono() [0x477e99]
	/home/src/build/mono/mono/mono/mini/mono() [0x478890]
	/home/src/build/mono/mono/mono/mini/mono() [0x47eb90]
	/home/src/build/mono/mono/mono/mini/mono(mono_main+0x1425) [0x46f435]
	/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff) [0x2abc622d8eff]
	/home/src/build/mono/mono/mono/mini/mono() [0x4125b9]

Debug info from gdb:

82	../sysdeps/unix/syscall-template.S: No such file or directory.
[Thread debugging using libthread_db enabled]
[New Thread 0x2aaaab988700 (LWP 22577)]
[New Thread 0x2abc63c00700 (LWP 22576)]
[New Thread 0x2abc639ff700 (LWP 22575)]
[New Thread 0x2abc637fe700 (LWP 22574)]
[New Thread 0x2abc635fd700 (LWP 22573)]
[New Thread 0x2abc633fc700 (LWP 22572)]
[New Thread 0x2abc631fb700 (LWP 22571)]
[New Thread 0x2abc62ffa700 (LWP 22570)]
0x00002abc620aacbd in read () at ../sysdeps/unix/syscall-template.S:82
	in ../sysdeps/unix/syscall-template.S
  9 Thread 0x2abc62ffa700 (LWP 22570)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  8 Thread 0x2abc631fb700 (LWP 22571)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  7 Thread 0x2abc633fc700 (LWP 22572)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  6 Thread 0x2abc635fd700 (LWP 22573)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  5 Thread 0x2abc637fe700 (LWP 22574)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  4 Thread 0x2abc639ff700 (LWP 22575)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  3 Thread 0x2abc63c00700 (LWP 22576)  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  2 Thread 0x2aaaab988700 (LWP 22577)  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
* 1 Thread 0x2abc6264f480 (LWP 22560)  0x00002abc620aacbd in read () at ../sysdeps/unix/syscall-template.S:82

Thread 9 (Thread 0x2abc62ffa700 (LWP 22570)):

Thread 8 (Thread 0x2abc631fb700 (LWP 22571)):

Thread 7 (Thread 0x2abc633fc700 (LWP 22572)):

Thread 6 (Thread 0x2abc635fd700 (LWP 22573)):

Thread 5 (Thread 0x2abc637fe700 (LWP 22574)):

Thread 4 (Thread 0x2abc639ff700 (LWP 22575)):

Thread 3 (Thread 0x2abc63c00700 (LWP 22576)):

Thread 2 (Thread 0x2aaaab988700 (LWP 22577)):

Thread 1 (Thread 0x2abc6264f480 (LWP 22560)):

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted
make[7]: *** [../../class/lib/build//mscorlib.dll.so] Error 1
2011-05-25 01:01:25 +02:00
Rodrigo Kumpera 20c6d0aaea Reapply 171e690418 fixed to compile under linux.
* boehm-gc.c:
	* sgen-gc.c:
	* null-gc.c: Since utils can't use internal symbols from metadata
	pass the critical method test function as a callback during initialization.

	* mono-threads.c: Use the new callback instead of mono_gc_is_critical_method
	or mono_runtime_is_gc_critical.
2011-05-24 18:57:54 -03:00
Marek Habersack 50c4a1968f [asp.net] Don't throw an exception if a session item being released does not have a lock.
It can happen when the item is being released after its associated session has ended.
2011-05-24 11:12:43 +02:00
Atsushi Eno 5de6693f16 Fix global schema component resolution issue in ids and identity constraints.
The old code cause incorrect duplicate ID errors when XmlSchemas is involved
(global components were not resolved correctly and it's not simple to make
minor fix).
This is part of bugfix #670945.
2011-05-24 13:02:37 +09:00
Marek Habersack 53235a3a43 Revert "Implement fast il wrapper for v4 Monitor.Enter."
This reverts commit 171e690418. The newly introduced mono_runtime_is_critical_method function
breaks pedump link as follows:

/home/src/build/mono/mono/mono/utils/mono-threads.c:385: undefined reference to `mono_runtime_is_critical_method'
/usr/bin/ld: pedump: hidden symbol `mono_runtime_is_critical_method' isn't defined
/usr/bin/ld: final link failed: Bad value
2011-05-24 01:46:18 +02:00
Rodrigo Kumpera 171e690418 Implement fast il wrapper for v4 Monitor.Enter.
* monitor.c (mono_monitor_get_fast_enter_method): Add support
	for v4 Enter.

	* monitor.c (mono_monitor_is_il_fastpath_wrapper): New function
	that returns true for any of the monitor il wrappers.

	* runtime.c (mono_runtime_is_critical_method): New function
	that reports if a given method is critical and must not be interrupted.

	* mono-threads.c (is_thread_in_critical_region): As the runtime if
	the top method is critical in addition to the GC.

	* method-to-ir.c (mini_emit_inst_for_method): Enable the IL fastpath
	for v4 Monitor.Enter.
2011-05-23 18:27:07 -03:00
Rodrigo Kumpera 9b349370eb Better handle broken types when loading default value.
* class.c (mono_class_get_field_token): Don't bail out on broken types
	if the fields array loaded fine.

	* class.c (mono_class_get_field_default_value): Return NULL instead of
	asserting if the constant row lookup fails.

	* icall.c (ves_icall_MonoField_GetRawConstantValue): Raise an exception
	if the default value lookup fails.

	Fixes #693937
2011-05-23 15:08:03 -03:00
Jeffrey Stedfast f9bf8878f4 Fixed #include ordering for stat() 2011-05-23 08:01:21 -04:00
Atsushi Eno 77ed4bb435 Support named wildcard in UriTemplate matching. Fixed bug #693996. 2011-05-23 20:31:00 +09:00
Zoltan Varga 5600f484aa Fix warnings. 2011-05-23 13:00:14 +02:00
Atsushi Eno e0be05d381 Look for KnownTypeAttributes on known types (recursively). Fixed bug #695203. 2011-05-23 19:27:55 +09:00
Marek Habersack 252dc98658 Revert "Fix some warnings."
This reverts commit 709bdf0209. The commit breaks 4.0 corlib compilation with:

Unhandled Exception: Mono.CSharp.InternalErrorException: Microsoft.Win32/RegistryKey.cs(51,29): Microsoft.Win32.RegistryKey ---> Mono.CSharp.InternalErrorException: System/MarshalByRefObject.cs(44,40): System.MarshalByRefObject._identity ---> System.InvalidOperationException: Operation is not valid due to the current state of the object
  at IKVM.Reflection.Writer.ByteBuffer.WriteTypeDefOrRefEncoded (Int32 token) [0x00000] in <filename unknown>:0
  at IKVM.Reflection.Signature.WriteType (IKVM.Reflection.Emit.ModuleBuilder module, IKVM.Reflection.Writer.ByteBuffer bb, IKVM.Reflection.Type type) [0x00000] in <filename unknown>:0
  at IKVM.Reflection.FieldSignature.WriteSig (IKVM.Reflection.Emit.ModuleBuilder module, IKVM.Reflection.Writer.ByteBuffer bb) [0x00000] in <filename unknown>:0
  at IKVM.Reflection.Emit.FieldBuilder..ctor (IKVM.Reflection.Emit.TypeBuilder type, System.String name, IKVM.Reflection.Type fieldType, IKVM.Reflection.Type[] requiredCustomModifiers, IKVM.Reflection.Type[] optionalCustomModifiers, FieldAttributes attribs) [0x00000] in <filename unknown>:0
  at IKVM.Reflection.Emit.TypeBuilder.DefineField (System.String fieldName, IKVM.Reflection.Type type, IKVM.Reflection.Type[] requiredCustomModifiers, IKVM.Reflection.Type[] optionalCustomModifiers, FieldAttributes attributes) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Field.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in <filename unknown>:0
  at Mono.CSharp.Class.DefineContainerMembers (IList list) [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] in <filename unknown>:0
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] in <filename unknown>:0
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
2011-05-23 12:03:05 +02:00
Rodrigo Kumpera d72794cced Reorder fields to improve object layout since the runtime can't do it for corlib types. 2011-05-23 01:13:09 -03:00
Zoltan Varga 709bdf0209 Fix some warnings. 2011-05-21 15:32:31 +02:00
Zoltan Varga eabba2ea46 Disable the -Wunused-by-set-variable warning supported by newer gcc versions. 2011-05-21 15:25:23 +02:00
Zoltan Varga e1c1f6160e Add an assert. 2011-05-21 14:52:58 +02:00
Mark Probst 5f3a5e37c3 [tests] Add test case for large vtypes in SGen. 2011-05-20 23:05:10 +02:00
Mark Probst c36a8d5996 [sgen] Handle all cases in major_scan_vtable(). 2011-05-20 22:28:31 +02:00
Mark Probst 66f9613b09 [sgen] Don't pass vtables to FOREACH macros when the descriptor is enough. 2011-05-20 22:28:30 +02:00
Mark Probst eaac97da80 [sgen] Remove superfluous arguments from minor_scan_vtype(). 2011-05-20 22:28:30 +02:00
Mark Probst 66ac433ae3 [sgen] Remove small bitmap descriptor type.
The large bitmap can handle everything the small bitmap does and
there's no performance penalty, so there is no reason to keep it
around.
2011-05-20 22:28:29 +02:00
Rodrigo Kumpera d81208f81a Fix aligninig copy and improve overlap detection 2011-05-20 15:42:47 -03:00
Mark Probst dff67e46a0 [sgen] Fix a compiler warning. 2011-05-20 19:21:37 +02:00
Marek Safar b86b7166ca Add more checks for async modifier 2011-05-20 17:59:26 +01:00
Marek Safar 640f8a298e Rename Task<T> implementation file 2011-05-20 17:55:36 +01:00
Rodrigo Kumpera ebbe93da9a Apparently I'm too stupid to implement memmove correctly, unbreak the build while I learn how to do it. 2011-05-20 13:33:22 -03:00
Marek Safar 8a219bfe32 Pass first async test 2011-05-20 09:36:17 +01:00
Miguel de Icaza 615454e18b Merge pull request #102 from konrad-kruczynski/fix_bug_635971
[Fix] #635971 Fixed throwing exception in case of using zero timeout. Now
2011-05-19 18:18:52 -07:00
Rodrigo Kumpera 1933e0d449 Fix mono_gc_memmove backward copy. 2011-05-19 19:16:33 -03:00
Rodrigo Kumpera 17a572ef11 Fix tp_poll_wait to work with sgen 2011-05-19 17:28:25 -03:00
Rodrigo Kumpera eeaef244ba Add mono_ptr_array_reset and mono_ptr_array_clear 2011-05-19 17:28:11 -03:00
Rodrigo Kumpera 5c82e32b67 Use new mono_gc_(memmove|bzero) in places messing with managed memory. 2011-05-19 16:43:36 -03:00
Rodrigo Kumpera 0d23401c8a Add new API to copy managed memory.
* gc.c: Add mono_gc_bzero and mono_gc_memmove. Those
	functions do word sized load/stores so they are GC safe.

	Those oddly seeing functions are required as libc equivalents
	don't ensure that copies and done at least in word granularity
	so we can end up pausing a thread while is has, for example,
	zeroed just the first byte of a managed reference, causing the
	GC to see an invalid pointer.

	This happens on OSX but can potentially happen on other systems.
2011-05-19 16:43:35 -03:00
Marek Safar e582b1ecf2 New tests. 2011-05-19 17:30:42 +01:00
Atsushi Eno 106e52d9ec Allow DocumentType in ImportNode().
http://lists.ximian.com/pipermail/mono-devel-list/2011-May/037575.html
2011-05-19 13:15:46 +09:00
Marek Habersack c77e36c64d [asp.net] Ignore JavaScript blocks enclosed in HTML comments 2011-05-19 03:35:42 +02:00
Marek Habersack 9d55e730ec [runtime] When shadow-copying assemblies, use the io portability function to find the file.
This is necessary in situations when managed code pases case-insenstive file name and the
file on disk uses different case. stat(2) would return an error in such situation and, in effect,
the stat structure would get invalid/random values in its fields.
2011-05-18 22:03:44 +02:00
Andreia Gaita 65f31e286c [runtime] fix the partial version check, it should only check the first 4 chars 2011-05-18 02:14:56 +01:00
Marek Habersack c642102c53 Support colors on 256-color terminals 2011-05-17 21:55:08 +02:00
Rodrigo Kumpera 17a5acf730 Merge pull request #103 from XTZGZoReX/master
Mono.Tasklets: Suppress Continuation finalization when explicitly disposed.
2011-05-17 11:34:39 -07:00
XTZGZoReX fb565ad2cc Mono.Tasklets: Suppress Continuation finalization when explicitly disposed. 2011-05-17 20:30:29 +02:00
Atsushi Eno 1550d9831a Check invalid recursion of xs:group use. Fixed bug #650117. 2011-05-18 01:09:21 +09:00
Miguel de Icaza 45e21ca8be Add C launcher for Mono-shipped binaries 2011-05-17 09:30:11 -04:00
Marek Safar 9997aa97dd [693947] Ignore delegate declaration when looking for type name 2011-05-17 09:09:12 +01:00
Konrad M. Kruczynski 08ae14cdf2 [Fix] #635971 Fixed throwing exception in case of using zero timeout. Now it is legal.
For details, please see bug description and comments on bugzilla.
2011-05-16 22:21:35 +02:00
Marek Safar cb7a57bb3e [692149] Fixed ordering of named arguments list when starting with positional argument 2011-05-16 16:43:25 +01:00
Marek Habersack 1e4f071948 [asp.net] Fix for bug #650847. Output both tagged and untagged UpdatePanel names in AJAX responses.
Also, update panels which rendered empty string are included in the output.
2011-05-16 16:13:20 +02:00
Marek Safar 14c07f992d Initial refactoring to accommodate async 2011-05-16 11:58:36 +01:00
Marek Safar 7fa921bf1f New test 2011-05-16 11:58:36 +01:00
Atsushi Eno e1f4f82a0a Do not import xs:any member as XmlElement[]. Create a wrapper class instead.
Part of bugfix #670945.
2011-05-16 18:45:08 +09:00
Atsushi Eno e4816c5c39 Merge pull request #101 from occ/master
Decimal support to XmlBinaryDictionaryReader
2011-05-16 00:35:10 -07:00
Atsushi Eno 1d08b24a11 Attachable property setter was not working with XamlObjectWriter.
Fixed bug #693779.
2011-05-16 16:31:14 +09:00
Flose Maier d0c8d30d98 Add test for bug 686486. 2011-05-15 13:26:03 +02:00
Zoltan Varga 249b43b5d6 Avoid a crash in Field:GetRawConstantValue () if the field type couldn't be loaded. Fixes #693894. 2011-05-15 13:04:02 +02:00
Zoltan Varga 4a9af5e5be Fix warnings + the windows build. 2011-05-13 22:16:33 +02:00
Rodrigo Kumpera 7f700b43c8 More win32 fixing 2011-05-13 17:09:57 -03:00
Rodrigo Kumpera 2af6a62258 Fix win32 2011-05-13 15:19:06 -03:00
Onur Can Cakmak 1961a2e322 Add decimal support to XmlBinaryDictionaryReader 2011-05-13 14:11:55 -04:00
Atsushi Eno 871ad48b98 Implement XmlSerializerMessageContractImporter, round 2.
This time it is XmlSerializer-based, got it somewhat working.
2011-05-14 01:28:03 +09:00
Rodrigo Kumpera 87f4f81d52 Fix variant iface verification.
class.c (mono_gparam_is_reference_conversible): Short-circuit
	if arguments are the same type.

	* class.c (mono_class_is_variant_compatible): Ditto.

	* verify.c (verifier_class_is_assignable_from): Ditto.

	* verify.c (verifier_class_is_assignable_from): GTD and open
	types interface expansion is not very regular, so we need
	to check them more throughtly.

	Fixes #693266
2011-05-13 13:21:53 -03:00
Zoltan Varga d2aa0c4233 Fix the build. 2011-05-13 17:44:56 +02:00
Zoltan Varga 60a52f9597 Merge pull request #100 from Unity-Technologies/master-leak-descriptors
[Fix] Don't leak function descriptors on ia64 and ppc64.
2011-05-13 07:07:50 -07:00
Tak 7393311e1d Don't ifdef ftnptrs_hash. 2011-05-13 15:45:54 +02:00
Mark Probst b2d5d98723 [sgen] Use critical region instead of lock in mono_gc_wbarrier_value_copy().
Since the card table is lock-free we don't need the full GC lock in
the value copy wbarrier - the critical region, which prevents the GC
from interrupting, is sufficient.
2011-05-13 15:03:37 +02:00
Atsushi Eno 485259aae8 Do not take host part into consideration on comparing URLs.
It blocks access by different host name (e.g. localhost vs. IP).
This was part of bugfix #687580 (forgot to commit).
2011-05-13 21:52:31 +09:00
Atsushi Eno 404dea03e0 Implement WsdlContractConversionContext, and ignore message importer for now. 2011-05-13 21:46:24 +09:00
Tak 03b6e7c0be [Fix] Don't leak function descriptors on ia64 and ppc64.
* metadata/domain.c:
 * metadata/domain-internals.h: Cache function descriptors for domain.
 * mini.c: Use cache when creating function pointer descriptors.

License: MIT/X11
2011-05-13 14:10:14 +02:00
Mark Probst 30f1fab093 Merge branch 'sgen-stage-finalize' 2011-05-12 23:54:36 +02:00
Mark Probst 57662e905a [sgen] Staged weak link registration.
Do the staging that we've done for finalizers for weak links as
well.  Both these optimizations speed up the HttpListener test
significantly.
2011-05-12 23:53:11 +02:00
Mark Probst bd86bf4d69 [sgen] Move weak link hash code to separate file. 2011-05-12 23:53:01 +02:00
Mark Probst 57d63b413f [sgen] Staging of finalizer registrations.
Registering a finalizer required the GC lock to be taken.  To remove
this need we introduce an array where finalizer registrations are
staged in a lock-free way.  Only when the array (currently holding
1024 elements) is full is the GC lock taken and the finalizers are
inserted into the hash.  Of course this also needs to happen when a
collection starts and when a domain is unloaded.
2011-05-12 23:50:25 +02:00
Mark Probst a85de60ee3 [sgen] Move finalization hash code to separate file. 2011-05-12 23:50:02 +02:00
Konrad M. Kruczynski 8e4de412ac Added entry to WindowsBase_test.dll.sources 2011-05-12 21:12:49 +02:00
Rodrigo Kumpera a779b309ab Merge pull request #82 from Unity-Technologies/master-gc-race
[Fix] Fix intermittent initialization race crash with boehm gc.
2011-05-12 12:01:48 -07:00
Rodrigo Kumpera 423b8a676f Merge pull request #92 from konrad-kruczynski/master
[Fix] Patch addressing bug #688940
2011-05-12 12:00:54 -07:00
Rodrigo Kumpera 034e021250 Merge pull request #96 from ualtinok/master
[FIX] Addition to resolution of bug #677539
2011-05-12 11:51:40 -07:00
Veerapuram Varadhan cb5212a18f Merge pull request #99 from IgorTkachev/master
SqlDbType missing values.
2011-05-12 11:06:26 -07:00
Igor Tkachev 5d6fde8d29 SqlDbType missing value. 2011-05-11 23:09:38 -04:00
Rodrigo Kumpera c26a7a934e Properly handle compressed interface bitmaps on the array store wrapper.
* marshal.c (get_virtual_stelemref_kind): Don't emit optimized
	stelemref wrapper if compressed interface bitmaps are enabled.
2011-05-11 18:20:13 -03:00
Rodrigo Kumpera 4f9adb891d Fix windows build 2011-05-11 18:14:16 -03:00
Rodrigo Kumpera c200c933b6 Enable the new interrupt machinery on x86 + linux|mach.
* mono-threads.c (mono_thread_info_new_interrupt_enabled):
	Enable it on the targets that have been ported and tested.
2011-05-11 17:31:34 -03:00
Igor Tkachev e9b80a8495 SqlDbType missing values. 2011-05-11 16:26:15 -04:00
Rodrigo Kumpera 56a14b4071 Implement thread dump using new machinery.
* gc.c: Thread dump now uses the finalizer thread
	to be more reliable.

	* threads.c (mono_threads_perform_thread_dump): New
	function that dumps all threads using the new machinery.

	* mini-posix.c (sigquit_signal_handler): Use new machinery
	if available.
2011-05-11 17:09:55 -03:00
Rodrigo Kumpera 62e2fa51b2 Make sure the GC takes the appropriate locks during STW.
* sgen-gc.c:
	* boehm-gc.c: The collector must takes the interruption
	lock before starting STW to avoid deadlocks. This is specially
	problematic in the case of hosts that are not signal based.

	For example, say we have threads 1,2,3. Thread 1 is interrupting
	thread 2 while thread 3 begins to Stop-The-World. Now given the
	following ordered events:

	-thread 1 suspends thread 2, which is in a gc unsafe area.

	-thread 3 suspends thread 1 and 2.

	-thread 3 tries to restart thread 2 since it is in a gc unsafe
	area, but since its suspend count is 2, it fails to do so and
	deadlock.

	An alternative would be to make the suspended state not have
	a counter, but that would make the STW code trickier as it would
	need to restore the thread to its previous state and not simply
	resume it.
	This could work with sgen, but would require some surgery on
	boehm, which is completely undesirable given how state it is.
2011-05-11 16:33:47 -03:00
Atsushi Eno f583e1e938 Revert previous XmlSerializerMessageContractImporter implementation.
XsdDataContractImporter is not XmlSerializer-based, while this class is.
2011-05-11 18:40:15 +09:00
Atsushi Eno 4004fbb190 Add PipeException. fixed bug #692987 by Eberhard Beilharz. 2011-05-11 16:54:52 +09:00
Atsushi Eno 761ef9d9cf Fixed orders in XmlSchemaObjectTable and got some S.R.Serialization tests working. 2011-05-11 16:34:45 +09:00
Rodrigo Kumpera 8ec520f034 Implement sync suspend based interruption 2011-05-10 15:57:21 -03:00
Rodrigo Kumpera 3a49be80e3 work around full aot not working 2011-05-10 15:57:20 -03:00
Rodrigo Kumpera e2d450a19a Remove dead variable 2011-05-10 15:57:20 -03:00
Neale Ferguson c7ec5cca12 Merge branch 'master' of github.com:mono/mono 2011-05-10 14:14:22 -04:00
Neale Ferguson f22c2d25ea Add MONO_ARCH_HAVE_CONTEXT_SET_INT_REG for s390x 2011-05-10 14:13:45 -04:00
Rodrigo Kumpera 203ff87024 Pass mono_install_handler_block_guard in the eh callback table 2011-05-10 11:52:42 -03:00
Atsushi Eno 419fee3d9b CanImport() just returns false, without throwing error. 2011-05-10 22:02:20 +09:00
Atsushi Eno da1f191f52 support import of xs:anyType, as well as make couple of minor fixes. 2011-05-10 21:45:45 +09:00
Atsushi Eno 6f4a57dd4f Fix common issue in MetadataSet - call MoveToContent() while iterating nodes. 2011-05-10 19:58:17 +09:00
Atsushi Eno be4b6644f3 Add new MetadataSetTest and fix couple of minor issues. 2011-05-10 19:33:52 +09:00
Atsushi Eno 23a65d9a3c Revive this test by implementing mock web server. 2011-05-10 19:33:15 +09:00
Atsushi Eno ffb3d89126 Add (not-working) callback instance context mode test and FIXME comment. 2011-05-10 19:32:25 +09:00
Atsushi Eno de50f78581 Update XsdDataContractImporter.CanImport and implement ImportXmlType. 2011-05-10 17:40:35 +09:00
Rodrigo Kumpera b9b889d0e5 Enable async invoke on x86.
* exceptions-x86.c (mono_arch_handle_exception): Extract
	mono_arch_setup_async_callback which is used to setup
	async calls.

	* mini-x86.h: Enable async calls on x86.
2011-05-09 22:48:18 -03:00
Sebastien Pouliot c5549b4868 Add (disabled) unit tests for sync use of CommunicationObject
* System.ServiceModel_test.dll.sources: Add new files to the tests
* Test/NUnitMoonHelper.cs: Helper to re-use Moonlight unit tests on NUnit
* Test/System.ServiceModel.Channels/CommunicationObjectSyncTest.cs: New.
2011-05-09 13:48:54 -04:00
Atsushi Eno 75815614e7 ongoing XmlSerializerMessageContractImporter work.
It is part of bugfix #670945.
2011-05-09 22:58:18 +09:00
Atsushi Eno b523f411bd Multiple schemas in wsdl could share same SourceUri, so check more identity.
Part of bugfix #670945.
2011-05-09 19:09:19 +09:00
Atsushi Eno 7dee1a27a0 Allow xsi:nil for void. Fixed client side of bug #687580. 2011-05-09 13:50:38 +09:00
Atsushi Eno 95bca1bab4 Now our HttpListener can listen to wildcard prefix safely.
Fixed server part of bug #687580.
2011-05-09 13:40:16 +09:00
Flose Maier 9ac485513e Avoid crash when setting the DialogResult in the FormClosing event method. Fixes bug 686486. 2011-05-08 12:59:40 +02:00
Mark Probst 0e250606ca [utils] Fix lock-free data structures.
Hazard pointers didn't check for the third pointer.

Lots of memory barriers missing.

Small bug in LLS.

Comments and asserts.
2011-05-07 01:39:00 +02:00
Rodrigo Kumpera c42540d11a More win32 fixes 2011-05-06 16:43:17 -03:00
Neale Ferguson 660dac19f2 Merge branch 'master' of github.com:mono/mono 2011-05-06 12:53:12 -04:00
Neale Ferguson fc15539d60 Implement soft debugger for s390x and fix context macro for s390x 2011-05-06 12:52:19 -04:00
Lluis Sanchez 3175239e84 [Web Services] Fix regression caused by previous commit
Fixes a regression caused by the implementation of support
for optional parameters. GlobalIndex was not being set
when using SOAP RPC protocol.
2011-05-06 18:39:51 +02:00
Konrad M. Kruczynski d2238e2ea9 Added test for the fix related with bug #677265 2011-05-06 16:09:27 +02:00
Konrad M. Kruczynski 1dd5921081 Small thing reverted. 2011-05-06 15:52:06 +02:00
Konrad M. Kruczynski 2602485f39 Merge branch 'master' of github.com:konrad-kruczynski/mono 2011-05-06 15:47:29 +02:00
Konrad M. Kruczynski 2f7daaf9b8 Added test for bug fix #688940.
Test tries to open serial port with nonstandard baudrate,
particularly 1234. OutOfRange should be thrown. Test also
added to csproj.
2011-05-06 15:43:56 +02:00
Sebastien Pouliot f41f7105c3 Update S.X.S sources files to use S.XML sources 2011-05-06 08:40:41 -04:00
Sebastien Pouliot 4925054bb0 Make some S.X.S types compatible with the SL API (for SDK)
* XmlAnyElementAttributes.cs:
* XmlArrayItemAttributes.cs:
* XmlElementAttributes.cs:
	Under Silverlight API this implement IList only (does not
inherit from CollectionBase).

* XmlCustomFormatter.cs:
* XmlSerializationWriterInterpreter.cs:
	Use a Convert.ChangeType override that exists in SL API

* XmlReflectionImporter.cs: Provide an alternative for (missing in SL)
Enum.GetNames and select available (in SL) overloads for parsing and
formatting for enums

* XmlSerializationReader.cs: Fix ToEnum API to use IDictionary (in SL)
instead of Hashtable (even if the SL4 docs still states the later)

* XmlSerializationReaderInterpreter.cs:
* XmlTypeMapping.cs:
	Use the default (identical to nonPublic being false) when using
	Activator.CreateInstance under SL

* XmlSerializationWriter.cs: Internally use a Queue<T> instead a a Queue
(not available in SL). Also Namespaces (ArrayList) is replaced by
XmlNamespaces (IList) in SL API.

* XmlSerializer.cs: Do not use environment variables in MOONLIGHT (like
the rest of MOBILE). Use Encoding.UTF8 instead of ENcoding.Default since
the later does not exist in SL.

* XmlSerializerImplementation.cs: SL version use IDictionary instead of
Hashtable for properties.

* XmlSerializerNamespaces.cs: Internally use a generic Dictionary
* instead
of a ListDictionary (which is not available in SL)
2011-05-06 08:40:41 -04:00
Sebastien Pouliot 314842bef5 Enable some code to be included in Moonlight's S.X.S.dll SDK assembly
* System.Collections/ArrayList.cs:
* System.Collections/Hashtable.cs:
	Do not include debugger-related attributes and some interfaces
	when compiled outside corlib

* System.Runtime.Serialization/ObjectIDGenerator.cs: Ensure this can be
compiled outside corlib (needed for ML S.X.S.dll where even internals
cannot be used)
2011-05-06 08:40:41 -04:00
Jeffrey Stedfast 402cabb880 Fix the build for Windows (use int instead of ssize_t) 2011-05-05 21:02:04 -04:00
Rodrigo Kumpera ccca650fd5 Fixes for win32 2011-05-05 21:33:16 -03:00
Jeffrey Stedfast 0258bc1282 Fixed for Big Endian machines. 2011-05-05 17:46:15 -04:00
Rodrigo Kumpera f309457690 Make sure that implicit variant type conversion implies in a reference conversion.
* class.c (mono_class_is_variant_compatible): Now takes an aditional
	parameter to tell if reference conversion should be checked.

	* verify.c (verifier_class_is_assignable_from): Check that a variant
	generic type convertion has a reference conversion.

	Fixes #687193
2011-05-05 16:29:00 -03:00
Veerapuram Varadhan 71eb517c49 [ado.net]bugfix:688773 - Assign default value to columns that does not
exist in the row that is being imported.
2011-05-05 03:29:54 +05:30
Veerapuram Varadhan 361a51e8dd [ado.net]bugfix:681916 - Based on patch by Scott <[email protected]>
- Handle null values for parameter types varbinary(max) and/or image
2011-05-05 03:29:54 +05:30
Veerapuram Varadhan f2870fbbf1 [mono]bugfix:663287 - Validate the type of value against underlyingtype
instead of nullableType.
2011-05-05 03:29:53 +05:30
Veerapuram Varadhan 800f2c28cd [ado.net]BugFix 663914 - Retain original version of a col when
(De)Serialization of DataSet and DataTables.
2011-05-05 03:29:53 +05:30
Marek Habersack 4a17e24982 [corlib] Do not cache disposed resource sets. 2011-05-04 23:30:57 +02:00
Marek Habersack 503f243144 [asp.net] Do not retrieve script's URL in RegisterScriptReference if script.Path is set. 2011-05-04 23:27:29 +02:00
ualtinok cef86e8e61 Made Count setter internal ->
Set Count to 0 as well as BytesTransferred when reusing a SocketAsyncEventArgs
2011-05-04 07:44:55 -07:00
ualtinok e2e44bf6f4 Set Count to 0 as well as BytesTransferred when reusing a SocketAsyncEventArgs. 2011-05-04 07:41:44 -07:00
Miguel de Icaza a2a8870b8e Merge pull request #95 from XTZGZoReX/master.
Fix spelling in Consts.cs.in
2011-05-04 07:40:03 -07:00
Konrad Kruczyński e52c4c677f Edited mcs/class/System/System.IO.Ports/SerialPortStream.cs via GitHub 2011-05-04 04:51:44 -07:00
Marek Safar a4a61d8c41 [691531] Variance conversion requires type parameters to be reference types 2011-05-04 12:19:09 +01:00
XTZGZoReX f99e677c7a Fix spelling in Consts.cs.in. 2011-05-04 12:49:03 +02:00
Andreia Gaita d8dc259299 [json] revert part of 382a385a8f, it regresses moon drt 983 2011-05-03 21:54:42 +01:00
Rodrigo Kumpera c251093809 Merge pull request #94 from XTZGZoReX/master.
Remove dead NET_1_1 code in ILASM's Makefile
2011-05-03 13:40:10 -07:00
XTZGZoReX 3c1da1f29d ilasm: Makefile: Remove dead NET_1_1 code. 2011-05-03 22:32:58 +02:00
Rodrigo Kumpera 2343568134 Add define to conditionally compile code using mono-context. 2011-05-03 14:47:26 -03:00
Mark Probst 20cc55f2fd [sgen] Fix thread unregister deadlock race.
We had a race that happened now and then and led to a deadlock.  A
thread would be dying and at the same time the GC would kick in,
acquiring the GC lock.  The thread was still in the thread list, so
the GC would try to suspend it.  pthreads was already in the process
of destructing the thread's TLS, however, so its thread info was no
longer available and the thread could not reply to the suspend signal.
The thread's destructor, however, tried to acquire the GC lock, so no
progress would happen anymore.

The solution is to set a flag in the thread info indicating that the
GC wants the thread to suspend.  Instead of getting the GC lock in the
desctructor unconditionally we now just try to lock, and if we fail we
check the flag.  If it is set, we suspend the thread from within the
thread info destructor.
2011-05-03 18:08:20 +02:00
Konrad M. Kruczynski fa50d153bc [Fix] Fix for bug #677265 with DispatcherTimer.
Added patches as described in bug's comments.
2011-05-03 15:32:01 +02:00
Marek Safar 207cdd8929 [691417] Set array Packing/Size values without using custom attribute 2011-05-03 13:53:13 +01:00
Martin Baulig 96ed2eac54 Add socket timeouts to the soft debugger.
SDB now support setting a send/receive timeout on the client's side
of the communication socket.  To make this work, the server sends
a special 'keepalive' event when using receive timeouts.

There's a new method VirtualMachine.SetSocketTimeouts() to enable
this feature.
2011-05-03 13:54:09 +02:00
Rodrigo Kumpera 7226b726da Add regression test for #691057 2011-05-03 02:25:45 -03:00
Rodrigo Kumpera 8e58c27a62 Fix a couple of issues on Mono.Simd.
* local-propagation.c (mono_local_deadce): Don't perform
	reverse copyprop on simd insert ops. The backend requires
	dreg and sreg1 to match.

	* mini-x86.c (mono_arch_output_basic_block): Fix insert_r8_slow
	for the X element.

	Fixes a few bugs due to #691057
2011-05-03 00:32:20 -03:00
Zoltan Varga 6a951cfe9e Fix the ARM build. 2011-05-03 03:26:04 +02:00
Zoltan Varga 7423526111 Implement BSTR icalls even when COM is disabled. Fixes #690255. 2011-05-03 01:03:23 +02:00
Rodrigo Kumpera 1359064b8c don't init smr twice 2011-05-02 18:33:30 -03:00
Rodrigo Kumpera dbec4dd44f Fix resume_thread_internal return type 2011-05-02 18:20:17 -03:00
Rodrigo Kumpera e519eecc57 Fix thread unregistration under sgen.
* mono-threads.c (unregister_thread): The only way to
	remove the current thread from the thread list without
	causing troubles to sgen is to do it with the gc lock
	held, so from the unregister callback.

	* sgen-gc.c (sgen_unregister_thread): Call into the
	new function to remove the current thread from the thread
	list.
2011-05-02 17:03:50 -03:00
Sebastien Pouliot af038f65bc Fix parameter name for Aes.Create
* Aes.cs: Fix parameter name
2011-05-02 12:18:43 -04:00
Sebastien Pouliot 2314e22646 Add new 4.0 method (stub) for X509Certificate
* X509Certificate.cs: Add stub for FormatDate (4.0)
2011-05-02 12:17:11 -04:00
Sebastien Pouliot 940bdeca94 Match IDisposable with 4.0 changes in System.Security.Cryptography
* AsymmetricAlgorithm.cs:
* CryptoAPITransform.cs:
* DeriveBytes.cs:
* FromBase64Transform.cs:
* HashAlgorithm.cs:
* PasswordDeriveBytes.cs:
* Rfc2898DeriveBytes.cs:
* RijndaelManagedTransform.cs:
* SymmetricAlgorithm.cs:
* ToBase64Transform.cs:
	Adjust changes to IDisposable wrt 4.0
2011-05-02 12:14:53 -04:00
Sebastien Pouliot 01ddb1883b Add some new 4.0 features in System.Security.Cryptography
* CspProviderFlags.cs: Add new CreateEphemeralKey (128) value
* CryptoConfig.cs: Add 4.0 AllowOnlyFipsAlgorithms (always false) and
stubs for AddAlgorithm and AddOID
* CryptoStream.cs: Remove Close override (from 1.x days) and implement
HasFlushedFinalBlock (4.0)
2011-05-02 12:13:23 -04:00
Marek Habersack 9f863978a8 [runtime] Fix handling of ECMA key when parsing assembly name.
This fixes mcs InternalsVisibleTo support for assemblies signed with the ECMA (ecma.pub)
key. Previously the key token would be returned as the assembly's key, which caused mcs
to fail to match friend assemblies.
2011-05-02 15:47:25 +02:00
Jb Evain 1d605a5d5a [mono-api-info] try to read local files before using the resolver 2011-05-02 15:38:16 +02:00
Jb Evain 46310e7d8e Fix the mobile build 2011-05-02 15:17:55 +02:00
Jb Evain c9ddb93875 [linker] Fix reading symbols of resolved assemblies 2011-05-02 13:57:36 +02:00
Jb Evain f101d5631a [linker] keep types in the module when sweeping them 2011-05-02 13:56:39 +02:00
Jb Evain 7a015c0ba8 Fix non net_4_0 profiles build 2011-05-02 11:57:40 +02:00
Jb Evain 4986f4409e Properly check the maxstacksize asked for the Thread 2011-05-02 11:42:48 +02:00
Jb Evain e1e5ad9504 Add test for Thread.ctor where the stacksize is not divisible by the system page size 2011-05-02 11:42:47 +02:00
Zoltan Varga af1b435c15 Fix support for parameters with generic constraints in Type.IsAssignableFrom (). Fixes #691119. 2011-05-02 09:40:46 +02:00
Miguel de Icaza 5fd0ee87b8 Merge pull request #90 from nulltoken/patch-1.
[XBuild) Make RemoveDir task able to recursively delete the content of a directory
2011-05-01 14:59:29 -07:00
Miguel de Icaza 5e2b29222f Update SGen sources to SGen license 2011-05-01 17:18:47 -04:00
Mark Probst 2aa9927d93 Merge branch 'sgen-lock-free-alloc' 2011-05-01 20:50:34 +02:00
Mark Probst 074e6fd796 [utils] Document the lock-free allocator. 2011-05-01 20:49:18 +02:00
Mark Probst 4e44d64e18 [sgen] Make sure remset clearing doesn't crash if we change thread unregistering. 2011-05-01 20:49:17 +02:00
Mark Probst f45546e944 [sgen] Attach thread info early so that hazard pointers are available. 2011-05-01 20:49:16 +02:00
Mark Probst aba2167572 [sgen] Use the lock free allocator as the internal allocator for SGen. 2011-05-01 20:49:15 +02:00
Mark Probst 67234d2111 [utils] Added lock-free queue and allocator. 2011-05-01 20:49:07 +02:00
Konrad M. Kruczynski 718b24e6ae Added exception in case of using nonstandard baud rate on POSIX boxes, which is not supported by termios. OutOfRange rather than NotSupported exception due to interface compatibility. 2011-05-01 14:20:54 +02:00
Chris Toshok ecdab8eb86 [eglib] make g_mkdir_with_parents work for paths not ending in / 2011-04-30 23:11:41 -07:00
Geoff Norton 5d57a9d85e Avoid doubly declaring some types in the 2.1 profile for mobile 2011-04-30 11:49:57 -04:00
Gonzalo Paniagua Javier 2dad620baa Fix prefix selection
We were picking the wrong prefix when the URL matched the path.
	Fixes bug #688860.
2011-04-30 11:33:00 +02:00
Gonzalo Paniagua Javier 1ac0557bfc Support FTP + RETR + proxy
Fixes bug #690887.
2011-04-30 11:07:56 +02:00
Jeffrey Stedfast 0610fa8550 Don't return values in functions returning void 2011-04-29 20:25:58 -04:00
Rodrigo Kumpera 4ea4a1522e Introduce a couple of functions to abstract old and new interrupt machinery.
* threads.c: Move code around to make it easier to have both
	old and new machinery around.
2011-04-29 17:47:24 -03:00
Geoff Norton 84b9083b05 [boehm] Avoid a ENOMEM when allocating across an unallocated page
A very rare allocation pattern could cause the boehm free list to call
the GC_unmap_gap function, which actually calls down into munmap().
Darwins virtual memory manager will return a KERN_INVALID_ADDRESS
which is translated into a ENOMEM, if mprotect attempts to change
the protection of a range which includes an unallocated page.
We address this by just mmap() back to ANON, instead of actually
unallocating the page.
2011-04-29 16:34:27 -04:00
Rodrigo Kumpera b91eaaa40c Make SMR available during the whole registration/unregister.
* hazard-pointer.c (mono_hazard_pointer_get): Use
	mono_thread_info_get_small_id to get the small id
	instead of reading it from the thread info since it
	might be gone during unregister.

	* mono-threads.c: Add new TLS key to to hold the small
	id so we can have it available during unregister. This is
	needed since pthreads cleans up the thread_info TLS before
	calling it's cleanup function which, in turn, renders SMR
	unavailable.

	The new lock-free allocator requires it so we need to make
	SMR available for all runtime callbacks.
2011-04-29 17:01:23 -03:00
Rodrigo Kumpera 5df1b7d1b8 Make thread unregister more robust.
* mono-threads.c (unregister_thread): Remove
	the dying thread from the thread list before
	doing the gc callback. This avoid some potential
	trouble if a GC happens in the meanwhile.
2011-04-29 13:01:32 -03:00
Rodrigo Kumpera 0e80f8b158 Allow external memory management of nodes.
* mono-linked-list-set.c (mono_lls_init): If
	free_node_func is null, the caller of remove is reponsible
	for reclaiming memory.
2011-04-29 13:01:32 -03:00
Alan McGovern ff29791d96 [GCHandle] Refactor so == and != do not box unnecessarily. 2011-04-29 14:37:12 +01:00
Gonzalo Paniagua Javier d0d40cb751 [webclient] Process uri.UserInfo when present
If there are no crendetials, the Uri might have them.
	Based on a patch by QuickJack.
	Fixes bug #688007.
2011-04-29 11:53:19 +02:00
Geoff Norton be4660cccd Avoid a needless buffer copy that is susceptible to overflow 2011-04-28 23:05:33 -04:00
Chris Toshok 3a12d37780 [eglib] add some more MAX/MIN macros 2011-04-28 15:08:00 -07:00
Geoff Norton bd71619efd Fix a typo for Rodrigo 2011-04-28 18:07:17 -04:00
Zoltan Varga ca798e68de Fix loading from volatile base addresses in the LLVM backend. Fixes #690020. 2011-04-28 23:46:25 +02:00
Sebastien Pouliot e2f43dd7d5 Fix remaining moon-unit failures wrt Sockets changes
* System.Net.Sockets/Socket_2_1.cs: Ensure RemoteEndPoint is always
available after ConnectAsync (connected or not, allowed or not).
Ensure the Connect event is fired even if denied by policy.
2011-04-28 17:24:49 -04:00
Sebastien Pouliot 05cea06947 Fix copy-paste error in git 17085447
* System.Net.Sockets/Socket_2_1.cs: Fix some moved code (from
SocketAsyncEventArgs.cs) so should the references to RemoteEndPoint
still point to the SocketAsyncEventArgs instance. Fix some moon-unit
test failures
2011-04-28 17:24:49 -04:00
Rodrigo Kumpera b62628bc10 Fix posix 2011-04-28 18:05:34 -03:00
Rodrigo Kumpera d7d681c31a Fix small buglets 2011-04-28 17:49:35 -03:00
Rodrigo Kumpera 4597b03789 Document the current limitations of the async call API 2011-04-28 17:49:35 -03:00
Rodrigo Kumpera b6bd0b2b85 Implement async invocation API.
* mono-threads.c: Add mono_thread_info_setup_async_call
	which allows to inject an async call into a suspended thread.
	It only works reliably when a managed frame is the tos.

	* mono-threads-mach.c:
	* mono-threads-posix.c: Implement async call injection.
2011-04-28 17:49:35 -03:00
Zoltan Varga 9f5252a1ab Revert "Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533."
This reverts commit 6bd851a7a3.

This seems to break smcs.
2011-04-28 22:28:14 +02:00
Jeffrey Stedfast 1b9ea763cf Fixed g_utf8_validate(), needed to break in inner switch 2011-04-28 16:05:39 -04:00
Lluis Sanchez a8aa1e0653 [Web.Services] Add support for optional parameters
Non-nullable web service parameters can be made optional by
adding an additional parameter with the same name and a
'Specified' suffix. This was supported when serializing
classes, but not when serializing web service parameters.
This might fix bug 688496.
2011-04-28 18:33:59 +02:00
Sebastien Pouliot 968dd21d5a Add entries for MD4 in machine.config (fix #682619) 2011-04-28 11:20:41 -04:00
Atsushi Eno b671fac2c6 Looks like xs:any is allowed under certain condition in XsdDataContractImporter.
But I don't understand why :(
2011-04-28 23:40:00 +09:00
Atsushi Eno 93752ff1c4 moonlight does not like XmlSchemaType but nasty code in KnownTypeCollection :( 2011-04-28 22:08:08 +09:00
Marek Habersack 14a3732f66 [system.data.services] Stubs for a few 4.0 types + some implementation + some tests 2011-04-28 14:53:46 +02:00
Marek Habersack c98e69f23c Merged pull request #91 from skolima/master.
Fix the build that I broke
2011-04-28 05:52:01 -07:00
Leszek 'skolima' Ciesielski ed6c8ca1fc fixing the build 2011-04-28 14:39:58 +02:00
Atsushi Eno c05c0686c0 ...and do return Type for all known xs:* types in XsdDataContractImporter. 2011-04-28 20:31:24 +09:00
Atsushi Eno f85bbe3845 Do not reject xsd:* types that are not listed in KnownTypeCollection.
e.g. xs:token.
2011-04-28 20:06:14 +09:00
Atsushi Eno e8367cee5d support <service>-less wsdls in svcutil. Look for portTypes instead. 2011-04-28 19:52:08 +09:00
Alan McGovern 17143e4877 [moonlight] Ensure we don't double-build the "build" profile now 2011-04-28 10:46:32 +01:00
Atsushi Eno 88c6254f34 Extend supported XmlDateTimeSerialization formats. Fixed bug #690475. 2011-04-28 17:35:38 +09:00
Rodrigo Kumpera d7b7adafa0 New mach support code to support setting thread context.
* mach-support.h: Add mono_mach_arch_mcontext_to_thread_state
	and mono_mach_arch_set_thread_state.

	* mach-support-x86.c:
	* mach-support-amd64.c:
	* mach-support-arm.c: Implement arch specific versions of those
	new functions.
2011-04-28 03:54:08 -03:00
Atsushi Eno 2f86157982 XmlSerializer code generator was generating wrong char literal.
Fixed bug #673019.
2011-04-28 15:41:27 +09:00
Atsushi Eno 1ac59d0f75 Implement some properties in XamlObjectWriterSettings. Fixed bug #689548. 2011-04-28 14:59:13 +09:00
Gonzalo Paniagua Javier 62eac64756 [socket] More BeginConnect (IPAddress []) work
When trying multiple addresses, the second and sucessive calls to
	BeginConnect(IPAddress) will cause an error which we would have to
	ignore and then retry. Since this behavior is not documented, we just
	close the socket and open a new one for retries is there is already a
	pending connect attempt.
2011-04-28 00:03:37 -04:00
Jeffrey Stedfast 3c36c99deb Fixed g_iconv() decoders/encoders for unaligned accesses 2011-04-27 20:55:02 -04:00
Chris Toshok ca8785ff7c Merge branch 'master' of github.com:mono/mono 2011-04-27 14:21:05 -07:00
Chris Toshok e69c1e9483 fix the moon build with -j 4 2011-04-27 14:17:15 -07:00
Mark Probst 76593f4396 [utils] Make delayed free table not wait to truly make it lock-free.
Waiting for another thread is really just a custom lock
implementation, so it suffers from the same problems, among them that
an interrupted thread can deadlock the system.
2011-04-27 23:07:43 +02:00
Marek Habersack 28bcdb55ec Merged pull request #88 from skolima/msbuild-merge.
[MSBuild] Add Microsoft.Build for 4.0 profile
2011-04-27 13:24:36 -07:00
Leszek 'skolima' Ciesielski d967fe4244 [MSBuild] Add Microsoft.Build for 4.0 profile
Namespace Microsoft.Build.Construction partiallly implemented,
enought to construct and save a valid project file. Some
tests present (work on .Net).
2011-04-27 22:22:44 +02:00
Rodrigo Kumpera 107d0c706f Merged pull request #58 from XTZGZoReX/master.
Set Mono.Cairo calling conventions to Cdecl explicitly
2011-04-27 13:21:43 -07:00
Rodrigo Kumpera 09a2db3451 Make mono_install_handler_block_guard work with an arbritrary thread.
* mini-exceptions.c (mono_install_handler_block_guard):
	Use a MonoThreadUnwindState to hold all state needed to
	install the guard.

	* mini-posix.c (sigusr1_signal_handler): Do wapi interruption
	cleanup here.
2011-04-27 15:51:52 -03:00
Rodrigo Kumpera b5cd63e3fd Implement new function to raise an exception using a context.
object.c (mono_raise_exception_with_context): Raise an exception
	using a MonoContext as starting point for unwinding.
2011-04-27 15:51:52 -03:00
Zoltan Varga 84b6d01667 Remove a needless define. 2011-04-27 19:51:02 +02:00
Rodrigo Kumpera 8649b70ecd x86 pushes vararg arguments unaligned 2011-04-27 12:18:01 -03:00
Dick Porter 3eef197c15 Make the wake socket non-blocking, so it doesn't deadlock if the wake-receive
socket isn't polled in time.  This can easily happen on Solaris if more than
10 wakes are buffered up, while the XEvent loop is busy processing.
2011-04-27 14:36:50 +01:00
Dick Porter c80b226f35 Merge branch 'mwf-solaris-no-utf8' 2011-04-27 14:35:45 +01:00
Jeffrey Stedfast 54cb2ebe9d Silence gcc warning about vasprintf()'s retval not being used 2011-04-27 09:12:47 -04:00
Jeffrey Stedfast deb1c581d1 Added config.rpath to eglib 2011-04-27 08:46:14 -04:00
Dick Porter 21b2db6b44 Work around Solaris 10 missing the functions Xutf8LookupString() and
Xutf8ResetIC().
2011-04-27 13:27:43 +01:00
Atsushi Eno 798e253a68 Handle fault messages in duplex callback channel. 2011-04-27 20:56:05 +09:00
Marek Safar 9559a82bfc Fixes a race when disposing iterators 2011-04-27 12:48:35 +01:00
Em. 7c4e3654cb Make RemoveDir task able to recursively delete the content of a directory
According to [MSDN](http://msdn.microsoft.com/en-us/library/xyfz6ddb.aspx), RemoveDir task "Removes the specified directories and all of its files and subdirectories."
2011-04-27 04:46:40 -07:00
Jeffrey Stedfast 1dd188a350 Don't require autoconf >= 2.62 (breaks the mac build) 2011-04-27 07:05:21 -04:00
Atsushi Eno 01ad2d4913 Use FindCritera/ResolveCriteria Duration properties for DiscoveryEndpoint timeout. 2011-04-27 15:41:34 +09:00
Atsushi Eno 064cd53a8d Log UDP messages (using System.ServiceModel internals via IVT). 2011-04-27 15:40:50 +09:00
Gonzalo Paniagua Javier 72e47eaf71 If there's a delayed exception, clear 'ares' 2011-04-26 23:43:05 -04:00
Jeffrey Stedfast ad9ee9ee4f Require autoconf >= 2.62 2011-04-26 22:39:06 -04:00
Gonzalo Paniagua Javier 280d118e66 Worked on linux, failed on OSX 2011-04-26 22:05:24 -04:00
Jeffrey Stedfast 71066e73bb Optimize utf8_case_conv()
Seems like g_utf8_strdown/up expect valid utf8, so it
should be safe for us to use g_utf8_to_ucs4_fast().
2011-04-26 20:46:39 -04:00
Jeffrey Stedfast 1423512d76 Validate in the decoders so encoders don't have to
Fixed decode_utf32*() to validate their input properly
so that encode_utf16*() and encode_utf8() don't have to.

Was hoping this would improve performance but it doesn't
seem to make much difference. Still, it's worth doing.
2011-04-26 20:36:46 -04:00
Jeffrey Stedfast 3ebf299adf I'm an idiot. Fixed g_utf8_strlen() 2011-04-26 20:15:06 -04:00
Jeffrey Stedfast 0d400a4025 Optimized g_utf8_strlen() and redid g_utf8_jump_table[]
Instead of always adding 1 to g_utf8_jump_table[],
simply fix the table to hav the +1 built-in.
2011-04-26 19:51:54 -04:00
Gonzalo Paniagua Javier 17085447d7 [Socket] Improved ConnectAsync
ConnectAsync() now uses the improved BeginConnect.
2011-04-26 19:45:16 -04:00
Jeffrey Stedfast cbbdc649d7 Get rid of magic UTF8 subtraction table 2011-04-26 18:25:50 -04:00
Jeffrey Stedfast 6da11e0e81 Implemented g_utf8_get_char_validated() properly
Split out the validation code from g_utf8_validate() so that
g_utf8_get_char_validated() could share that code.

Also rewrote g_utf8_get_char() to not use such a gross hack. New
implementation also happens to be faster.
2011-04-26 18:25:50 -04:00
Mark Probst 0a220ed195 [utils] Fix a bug in the lock-free hazard table.
Missing write barriers in the delayed free table.
2011-04-27 00:19:31 +02:00
Jeffrey Stedfast f84951af23 Consolidated charset conversion routines
Rewrote/moved all of the charset conversion routines into
giconv.c and moved all of the other g_utf8*() functions out
of gunicode.c into gutf8.c (so that they are easier to find).
2011-04-26 17:39:26 -04:00
Jeffrey Stedfast 89e3e866b0 Fixed g_build_path() (was failing a test) 2011-04-26 16:38:19 -04:00
Jeffrey Stedfast 0b9a820f50 Silence gcc warning and make more robust 2011-04-26 16:34:49 -04:00
Alan McGovern b4a6509106 [moonlight] Always use INTERNAL_GMCS as it's always there.
We need to use this as we can't rely on the normal mcs being available
or usable for moonlight.
2011-04-26 20:37:28 +01:00
Alan McGovern a5c8e2a30a [moonlight] Fix up the bootstrap mcs when building
We should use the system mono as the bootstrap MCS and then the
just-built mono for everything else.
2011-04-26 18:05:41 +01:00
Alan McGovern b07a2f64bb [moonlight] Build mcs.exe as part of the moonlight build
Neither moonlight itself or moonlight applications can be built
with an mcs.exe older than 2.12. As such, to allow users of the moonlight
SDK to build moonlight applications without having a system mono from
git we need to build the compiler ourselves. This will be bundled in the
SDK. We also use it to build all our managed libs as part of the regular
moonlight build.
2011-04-26 16:43:01 +01:00
Gonzalo Paniagua Javier b48b443f6c Reset the blocking flag as soon as possible. 2011-04-26 11:02:23 -04:00
Gonzalo Paniagua Javier 47cc2b607d [socket] Fixed other BeginConnect overloads
The BeginConnect overload taking an IPAddress[] was not really
	asynchronous.
2011-04-26 11:02:22 -04:00
Jérémie Laval d66ffb614d Fail gracefully when CancellationToken has been created uninitialized by user.
Also add corresponding unit test.
2011-04-26 16:51:45 +02:00
Jérémie Laval 3f1e84afbe Add CancellationToken unit tests 2011-04-26 16:51:45 +02:00
Jérémie Laval 91684170bc Honors correctly canceled ctor parameter of CancellationToken 2011-04-26 16:51:45 +02:00
Jeffrey Stedfast 1deef5a760 Make sure everything that links with eglib also links with libiconv 2011-04-26 10:24:58 -04:00
Marek Safar 953951791f Remove using of obsolte __TryReadTypeName 2011-04-26 12:32:40 +01:00
Marek Safar baedb9fb0d Update to the latest ikvm.reflection 2011-04-26 12:32:38 +01:00
Zoltan Varga 6bd851a7a3 Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533. 2011-04-26 13:25:59 +02:00
Atsushi Eno 8898ce9a9f Fix monodroid/monotouch build. 2011-04-26 19:36:23 +09:00
Marek Safar 17a2f68e26 [689593] Unwrap array element type when checking return type type-inference 2011-04-26 10:48:45 +01:00
Gonzalo Paniagua Javier 9a22cd9cc1 [Socket] Fix BeginConnect
Windows/Linux flagged the socket as writable even when connect() has
	not been called. On *BSD and OSX, this was not the case and we waited
	forever.

	Now, for blocking sockets, we make them blocking and call connect()
	before adding the socket to the wait pool.
2011-04-26 00:03:36 -04:00
Gonzalo Paniagua Javier d97c4d6b42 Fix compilation in *BSD 2011-04-26 00:03:36 -04:00
Jeffrey Stedfast 6cb44aeea9 Optimized utf8_case_conv() by not converting strings in stages 2011-04-25 17:25:42 -04:00
Gonzalo Paniagua Javier b2dc477570 In *AllLines use WriteLine instead of Write.
This fixes bug #689670.
2011-04-25 16:22:44 -04:00
Jeffrey Stedfast 4d8db5cfb8 Don't unroll the loops unless told to 2011-04-25 15:30:22 -04:00
Geoff Norton f44c8c1982 Make the signature match the header 2011-04-25 15:30:29 -04:00
Jeffrey Stedfast 42ab48430b Don't increment inptr more than we need to 2011-04-25 14:58:06 -04:00
Sebastien Pouliot 11037f269c Add new WP7 properties in HttpWebRequest
* HttpWebRequest_2_1.cs: Add new AllowAutoRedirect and UserAgent
properties for binary compatibility with WP7. As documented both
properties are not usable in SL4 (throws NIE) but their existance
helps writing portable code
2011-04-25 13:31:18 -04:00
Atsushi Eno ae9baa13dd Log net.tcp transport messages too. 2011-04-25 18:29:10 +09:00
Atsushi Eno 0b80205526 Make our own simple log format actually diagnostics-compatible.
So MS ServiceTraceViewer.exe can open our log now.
2011-04-25 18:27:54 +09:00
Atsushi Eno 1d2903fa70 Document MONO_WCF_TRACE environment variable. 2011-04-25 16:23:59 +09:00
Atsushi Eno 092d32fb36 minor diagnostic log format brush up. 2011-04-25 16:13:27 +09:00
Atsushi Eno 91d1860c32 Actual source directory changes after changing namespaces. 2011-04-25 15:55:22 +09:00
Atsushi Eno 9cc1f66d03 More nettcp namespace changes. 2011-04-25 15:53:17 +09:00
Atsushi Eno 3fdf3c4b87 Move NetTcp namespace to internal one. 2011-04-25 15:40:47 +09:00
Atsushi Eno 0045240824 Enable environment-controled output on non-moon profile too. Add error logging. 2011-04-25 15:35:03 +09:00
Chris Toshok 320b06dd60 Merge branch 'master' of github.com:/mono/mono 2011-04-24 21:24:12 -07:00
Chris Toshok 2154bd7b0d [eglib] add printf specifiers for [u]int32 2011-04-24 20:51:18 -07:00
Jeffrey Stedfast b32093e1aa Don't depend on ENOTSUP as it does not exist on Windows. 2011-04-24 07:16:56 -04:00
Jeffrey Stedfast 112a534498 Moved all g_iconv() state updates out of encoders/decoders
This gives a HUGE performance improvement as well as
simplifying the code.
2011-04-23 18:06:08 -04:00
Jeffrey Stedfast d1415e3256 Unroll the loop in encode_utf8() 2011-04-23 17:48:23 -04:00
Jeffrey Stedfast 029c823948 Unroll the loop in decode_utf8() to improve perf 2011-04-23 17:06:12 -04:00
Jeffrey Stedfast 96ca91ca2a Avoid endianness swap decisions in the inner loop
Improves unit-test performance by a good 10%

Also modified unit tests to only load each input file once.
2011-04-23 14:54:49 -04:00
Miguel de Icaza 736923e963 Do not go beyond our string boundaries 2011-04-23 12:55:15 -04:00
Wolfgang Steffens 4cb5ea5759 added less overhead version of TerminateUtf8 for string versions
Signed-off-by: XTZGZoReX <[email protected]>
2011-04-23 17:29:37 +02:00
Wolfgang Steffens 247d3b7f6d fixed all cairo text api calls
they required utf8 text but mono.cairo didnt serialize null termed utf8!
exposed new api to pass utf8 byte containers as well

squashed:
made changes 2.0 compatible

Signed-off-by: XTZGZoReX <[email protected]>
2011-04-23 17:29:36 +02:00
WolfgangSt cc4713f14d Fix calling conventions in Mono.Cairo.
Signed-off-by: XTZGZoReX <[email protected]>
2011-04-23 17:29:34 +02:00
Jeffrey Stedfast 9c75e0508d Fixed capacity to be unsigned
Also soptimized new_capacity calculation.
2011-04-23 09:09:00 -04:00
Jeffrey Stedfast d46358d6b8 Don't override eglib's CFLAGS to add -O0 2011-04-22 22:29:50 -04:00
Jeffrey Stedfast 936525f90e Another soptimization for g_convert()
If we need to grow our buffer, instead of growing by 'inleft'
bytes, grow by 2 * inleft bytes.
2011-04-22 22:26:18 -04:00
Jeffrey Stedfast 9bee556665 Slight soptimization for utf8/latin1 decoding 2011-04-22 21:54:10 -04:00
Jeffrey Stedfast a4e99754fb Fixed Makefile to set srcdir when running tests
Also modified the test to fallback to PWD if srcdir is unset.
2011-04-22 21:34:58 -04:00
Jeffrey Stedfast 1a2662325c Updated EXTRA_DIST for eglib test input files 2011-04-22 18:33:31 -04:00
Jeffrey Stedfast ef5e26dc46 Fixed g_iconv() and g_convert(), improved unit test 2011-04-22 18:29:44 -04:00
Gonzalo Paniagua Javier 4e7c632f10 Remove unused variable 2011-04-22 14:20:57 -04:00
Jeffrey Stedfast 5ce092fdb5 Fixed latin1 decoder (simple unsigned vs signed cast)
eglib unit tests now pass for g_convert()
2011-04-22 13:11:19 -04:00
Atsushi Eno 98d06d92e5 Log HTTP reply Message too. Make logging customizible on under the moon.
Logging is done only when requested by MOON_WCF_TRACE=[stdout|stderr]
environment variable.
2011-04-23 02:05:35 +09:00
Zoltan Varga 3cc4d7f852 Fix cygwin build. 2011-04-22 17:47:17 +02:00
Zoltan Varga 58400be43a Fix processing of double vararg arguments on 32 bit platforms. 2011-04-22 15:47:11 +02:00
Marek Habersack 43e9f8ccc0 Fix compilation 2011-04-22 14:02:14 +02:00
Marek Habersack 68337d6ca1 [asp.net] Do nothing if null SessionStateStoreData is passed to SessionStateServerHandler.SetAndReleaseItemExclusive 2011-04-22 12:34:03 +02:00
joncham 7744841326 Turn off warn as error for Release as well. 2011-04-21 22:56:52 -04:00
Zoltan Varga 617e7697db Fix AOT support for isinst_with_cache wrappers. Fixes #687865. 2011-04-22 03:40:38 +02:00
joncham 80883cf63a Disable vtune profiler by default. 2011-04-21 21:28:21 -04:00
joncham 65b8cd0d08 Use SwitchToThread instead of sched_yield on Windows. 2011-04-21 21:28:20 -04:00
joncham e023d26aba Remove a warning and allow eglib to build with warnings. 2011-04-21 21:28:19 -04:00
Zoltan Varga c300132333 Fix a JIT crash when -v -v -v -v is used. 2011-04-22 03:23:24 +02:00
Chris Toshok 3f859a3699 Merge branch 'master' of github.com:/mono/mono 2011-04-21 17:03:26 -07:00
Larry Ewing 877445bd97 Implement a simple g_utf8_get_char 2011-04-21 19:00:50 -05:00
Chris Toshok b5d6b48738 Merge branch 'master' of github.com:/mono/mono 2011-04-21 12:26:46 -07:00
Mark Probst d573bad307 [utils] Lock-free hazard pointers.
By making hazard pointers lock-free we can use them in the garbage
collector.
2011-04-21 21:07:44 +02:00
Geoff Norton e650e07e79 We support hard breakpoints on arm, not sure why this is here at all 2011-04-21 15:00:57 -04:00
Chris Toshok 536eeace51 Merge branch 'master' of github.com:/mono/mono 2011-04-21 11:24:25 -07:00
Chris Toshok 26aab16704 [eglib] add g_ascii_strup/g_ascii_toupper 2011-04-21 11:24:08 -07:00
Rodrigo Kumpera 46f4f0dcfc update msvc build 2011-04-21 14:45:16 -03:00
Rodrigo Kumpera 51cfb714b7 Add win32 stub backend for mono-threads 2011-04-21 14:29:44 -03:00
Jeffrey Stedfast 8062a9ebd6 Oops 2011-04-21 12:06:16 -04:00
Jeffrey Stedfast 37deb3cea0 Add prototype for g_file_set_contents to glib.h 2011-04-21 12:05:15 -04:00
Alan McGovern 953f9364f4 Revert "[moonlight] Build the mcs compiler as part of the moon build."
This is broken, it needs to be done right.
2011-04-21 16:13:24 +01:00
Alan McGovern a925ede8c6 [moonlight] Build the mcs compiler as part of the moon build. 2011-04-21 14:54:00 +01:00
Jeffrey Stedfast 9773e595e8 Fixed g_strjoin*() and g_stpcpy() 2011-04-21 09:53:23 -04:00
Marek Habersack a4045768bb [asp.net] Inform user about all exceptions thrown during HttpRuntime static initialization 2011-04-21 15:13:52 +02:00
Atsushi Eno 91ed7f983e Use XPathNavigator output in WCF diagnostics. Got sorta-valid message trace. 2011-04-21 21:11:34 +09:00
Atsushi Eno c860fd7dd4 Fix wrapper elements. It should be <TraceData><DataItem>... 2011-04-21 21:08:36 +09:00
Atsushi Eno 38050ff69b XmlWriterTraceListener supports XPathNavigator as non-escaped xml output. 2011-04-21 20:54:40 +09:00
Marek Safar 57bd58c109 Don't warn about uninitialized struct fields 2011-04-21 12:40:29 +01:00
Marek Safar e6e23a5904 Fix WindowsBase test build under 2.0 profile 2011-04-21 12:40:28 +01:00
Marek Safar c1f8879e08 Use correct namespace name when adding it to completion list 2011-04-21 12:40:28 +01:00
Zoltan Varga c298885f9c Remove support for older LLVM versions. 2011-04-21 13:01:12 +02:00
Marek Safar 8d3bb3f513 Add new test 2011-04-21 10:04:02 +01:00
Marek Safar a5b18f324f [688891] Copy type parameters for base proxy method 2011-04-21 10:04:01 +01:00
Marek Safar 7ef6f8144f Add async keywords 2011-04-21 10:04:01 +01:00
Atsushi Eno ccaecd8e26 Use xmlns-ignoring XmlDocument derivation for config files. Fixed bug #641935. 2011-04-21 17:45:35 +09:00
Atsushi Eno 7f9aff3203 RooArray types were rejected as unknown when it is at root. Fixed bug #688414. 2011-04-21 16:19:15 +09:00
Zoltan Varga 10d1b2725d Don't allow compiling with stock LLVM versions, only the Mono LLVM repo at https://github.com/mono/llvm is supported. 2011-04-21 02:55:22 +02:00
Marek Habersack 37a3e41b87 [asp.net] Implemented composite scripts support in System.Web.Extensions 2011-04-21 02:24:40 +02:00
Andrew Jorgensen ce7427cacf add crlupdate to spec 2011-04-20 17:04:59 -06:00
Chris Toshok 834a0b4cb8 Merge branch 'master' of github.com:/mono/mono 2011-04-20 14:34:25 -07:00
Chris Toshok 1ebe8c28ce [eglib] add g_hash_table_get_keys/values 2011-04-20 14:33:45 -07:00
Jeffrey Stedfast c4a44808a1 Use g_rename() instead of rename() 2011-04-20 17:19:29 -04:00
Jeffrey Stedfast 7dce09f140 Implemented g_file_set_contents() in eglib 2011-04-20 17:15:44 -04:00
Jeffrey Stedfast 0232c61326 Include the m4 dir in the subdirs for make dist 2011-04-20 16:24:35 -04:00
Jeffrey Stedfast af89f6e9b1 Added Latin1 support to giconv 2011-04-20 15:59:12 -04:00
Jeffrey Stedfast 934cf142f4 Fixed MSVC to build giconv.c 2011-04-20 15:15:32 -04:00
Jeffrey Stedfast de7f60ce09 Ignore generated files 2011-04-20 15:10:22 -04:00
Jeffrey Stedfast b58021491b Implemented g_iconv() w/ needing libiconv 2011-04-20 15:08:20 -04:00
Jeffrey Stedfast 7931e4ecd0 Help ajorg dist 2011-04-20 14:51:11 -04:00
Andrew Jorgensen d9d454cc71 Dist fixes 2011-04-20 12:11:59 -06:00
Rodrigo Kumpera 45ae68a54c Having a type constraint to a valuetype satisfies .ctor.
* class.c:
	* verify.c: If a gparam has a valuetype type constraint it
	can satisfy the .ctor constraint from other gparam.

	Fixes #687841
2011-04-20 11:22:33 -03:00
Rodrigo Kumpera 8e03efeb6d publish the same events as pthread_stop_world 2011-04-20 11:22:33 -03:00
Jeffrey Stedfast 457e8cc625 Fixed g_utf8_to_ucs4_fast() 2011-04-20 10:08:02 -04:00
Jeffrey Stedfast 48ca47413f Don't forget to link with libiconv 2011-04-20 09:53:32 -04:00
Jeffrey Stedfast da4177c662 Various parts of mono use g_convert() which rely on iconv 2011-04-20 09:31:24 -04:00
Jeffrey Stedfast 88d93c9146 Fixed g_unichar_to_utf8() 2011-04-20 09:15:28 -04:00
Marek Safar 0781122a85 Add missing 4.0 api 2011-04-20 12:41:29 +01:00
Marek Safar 57bcdb9d97 Use correct local variable when interating parameter modifiers 2011-04-20 12:02:49 +01:00
Atsushi Eno a316b856d0 Get real fix for bug #687902. Revert request processor IDisposable.
and handle session shutdown when creating InstanceContext.
Also add note on DisposeInstance(), which got me stuck.
2011-04-20 19:11:34 +09:00
Marek Safar 987cef8a1c [688651] Fix nullable enum values used with probing operator 2011-04-20 10:20:32 +01:00
Atsushi Eno 5c306c5d04 Ongoing service channel closing fix and session management in ChannelDispatcher.
It is part of bugfix 687902.

To get the bug fixed, the new "using" sections in ChannelDispatcher.cs to
explicitly dispose channels. But this causes regression in PerSession-based
tests. So some new session management code is (likely) required as well.

It will also alter "mixed" MaxConcurrentCalls and MaxConcurrentSessions with
correct management code.
2011-04-20 16:52:36 +09:00
Marek Safar 5bd3f6d86b Defer interface unification check until all interface are setup 2011-04-20 07:58:49 +01:00
Marek Safar d1cf2f5de8 Fix effective base class for value types 2011-04-20 07:58:48 +01:00
Marek Safar baa717fb3a Don't use type parameter effective base class when checking accessibility 2011-04-20 07:58:48 +01:00
Miguel de Icaza 3c0df78b09 Restore the functionality to the REPL that allowed us to pass
files to be parsed on the command line as if they were typed on the
standard input
2011-04-19 23:47:24 -04:00
Miguel de Icaza 305e1593ea Prevent crash on scripts that do not contain the #! line 2011-04-19 22:54:00 -04:00
Geoff Norton 845f4f75b4 Actually include the m4 files in aclocal as well 2011-04-19 17:23:32 -04:00
Larry Ewing 53cfdaa398 Implement g_utf8*prev_char and add the negative case to offset_to_pointer 2011-04-19 16:09:14 -05:00
Zoltan Varga 175d82693b Allow storing managed pointers into 'native int' in the JIT, fsharp generates code without a conv.i. Fixes #688008. 2011-04-19 22:45:07 +02:00
Jeffrey Stedfast 5964d70f7d Don't break on systems with older gettext versions 2011-04-19 16:41:37 -04:00
Zoltan Varga a0975acc09 Move the mono_ia64_context_get_... functions to mono-context.h to fix the ia64 build. 2011-04-19 22:37:37 +02:00
Jeffrey Stedfast f196bb345c Move DOLT macro back into acinclude.m4 so it works 2011-04-19 16:29:16 -04:00
Jeffrey Stedfast 7428f7e9f3 Modernize eglib/libgc automake/conf fu 2011-04-19 16:15:23 -04:00
Jeffrey Stedfast 5aaadb4fbe More auto* fixes and moved dolt macros to m4/dolt.m4 2011-04-19 15:55:11 -04:00
Jeffrey Stedfast eeef5ba6bc .m4 files no longer exist in the toplevel 2011-04-19 15:17:55 -04:00
Jeffrey Stedfast fab941686f Updated the build system 2011-04-19 14:01:32 -04:00
Gonzalo Paniagua Javier 9cb7b97b30 [HttpListener] Fix matching directories
/foo was not properly matched.
	Fixes bug #688353.
2011-04-19 13:56:19 -04:00
Jeffrey Stedfast 63caca1b27 Fixed autogen.sh and optimized some string funcs 2011-04-19 12:19:00 -04:00
Jeffrey Stedfast ff6659dab7 Fixed libiconv checks 2011-04-19 12:05:32 -04:00
Marek Safar 0f73d69491 New test 2011-04-19 13:04:12 +01:00
Marek Safar 12b46c0cbc [687282] Fixes cross references of nested anonymous methods which don't start at parameters level block 2011-04-19 13:04:12 +01:00
Lluis Sanchez e7ab7da200 Fix ICollection.CopyTo in the Stack class 2011-04-19 12:58:28 +02:00
Marek Safar 4a735f6670 Explicit method implementation can have ambiguous candidates 2011-04-19 10:58:38 +01:00
Marek Safar 5b297e89cf Don't check interface unified parameters on parameterless methods 2011-04-19 08:36:01 +01:00
Marek Safar 2cac03554f Update test file 2011-04-19 08:36:01 +01:00
Chris Toshok d2d31bc32f add implementation for stpcpy 2011-04-18 16:49:14 -07:00
Jeffrey Stedfast db667b778e Implemented g_iconv*() functions w/ cache 2011-04-18 19:06:09 -04:00
Chris Toshok 1b454314fc it's valid to pass NULLs to g_hash_table_lookup_extended. don't crash if the user does. 2011-04-18 14:20:32 -07:00
Chris Toshok 801321b2b2 Implement g_byte_array_* in terms of GArray 2011-04-18 14:20:13 -07:00
Chris Toshok c0654f8bec Implement 99% of what moonlight needs to run on eglib
Add a bunch of typedefs/enums/#defines to glib.h, as well as many implementations of glib functions:

    g_array_set_size
    g_array_sized_new
    g_list_remove_all
    g_string_erase
    g_string_insert
    g_string_set_size
    g_utf8_offset_to_pointer
    g_utf8_pointer_to_offset
    g_utf8_to_ucs4_fast
    g_unichar_is_space
    g_unicode_break_type (stubbed, always returns G_UNICODE_BREAK_UNKNOWN at the moment)
    g_utf8_offset_to_pointer
    g_utf8_pointer_to_offset
    g_utf8_to_ucs4_fast
2011-04-18 14:12:43 -07:00
Rodrigo Kumpera 750b67c707 Workaround io-layer crashing when the runtime exit without cleaning up everything.
* handles.c (handle_cleanup): When the runtime exit(), not
	everything is shutdown and the main thread might be waiting
	on other threads to finish. On this case, io-layer cleanup
	with assert as a mutex will be in use.
	The work-around is to be lenient to busy resources during
	shutdown.
2011-04-18 16:44:46 -03:00
Zoltan Varga 1a4cb5c631 Fix a crash in the sgen suspend code which happens when a thread is suspended while it is dying. 2011-04-18 19:25:32 +02:00
Marek Safar e6e3a5ea5d Check for identical override when implementing generic interface 2011-04-18 18:09:13 +01:00
Marek Safar 3c2c59f5f5 New test 2011-04-18 18:09:13 +01:00
Marek Safar ec00656bee Fix documentation header for some tests 2011-04-18 18:09:13 +01:00
Marek Safar ae7d230c7f Merge error files from 4.0 profile 2011-04-18 18:09:12 +01:00
Marek Safar 319319c943 Remove unnecessary future option 2011-04-18 18:09:12 +01:00
Marek Safar 85bbbf1d81 Remove unnecessary future option 2011-04-18 18:09:12 +01:00
Gonzalo Paniagua Javier 1411c9d420 [HttpWebRequest] Fix half-baked commit
Fixes bug #688100.
2011-04-18 10:56:57 -04:00
Jb Evain 09fa1df3b0 Fix DynamicInvoke when the delegate is closed over null 2011-04-18 15:47:53 +02:00
Jb Evain ca36867e07 Add test for #664205 2011-04-18 15:46:31 +02:00
Marek Safar 7eeb0ccb46 Fixed variable cannot be captured 2011-04-18 13:01:19 +01:00
Marek Safar 6cae528dc0 Move IsValue/Reference type checks to type 2011-04-18 13:01:19 +01:00
Marek Habersack 2017cfd615 [asp.net] ScriptResourceHandler must correctly encode script literals. 2011-04-18 13:22:20 +02:00
Atsushi Eno d38b8f4eb5 Empty XmlReader message caused failure on buffereed copy. 2011-04-18 17:20:22 +09:00
Zoltan Varga d502006aac Fix Object.MemberwiseClone () on arrays. Fixes #688033. 2011-04-17 23:48:30 +02:00
Damien Diederen 844c27791e MIPS: Make sure callee-saved registers end up on word boundaries
In addition to handling parameters and local variables,
mono_arch_allocate_vars reserves space for callee-saved registers.

Even though the current implementation takes care of properly aligning
the variables according to their datatype, it doesn't force alignment
to a word boundary before processing the callee-saved area.  This can
result in misaligned accesses if the last locals are booleans or small
integers.

Worse still: the garbage collector does then not see these non-word-
aligned references, and can end up reclaiming the pointed-to objects
if there are no other references to them--causing strange crashes and
type morphing effects under memory pressure.

Fix that by forcibly aligning the callee-saved area.

Commit contributed under the MIT/X11 license.
2011-04-17 21:28:50 +02:00
Damien Diederen 94885e76ed MIPS: Do not lower {LOAD,STORE}*_MEMBASE ops which can handle non-imm16 offsets
As:

 1. They use a compact encoding when possible, and

 2. The operations they are being lowered to are not implemented anyway.

Commit contributed under the MIT/X11 license.
2011-04-17 21:28:49 +02:00
Damien Diederen 5869446fcc MIPS: Adjust offset by alloc2_size to support split frame initialization
The backend splits very large stack frames in two areas, one that can
be accessed using immediate offsets, and another which requires
indirect addressing.

Without this patch, the code generator does not take the split into
account when accessing on-stack arguments, causing crashes and
corruption.

Fix that by subtracting the size of the second area from the IR-specified
offset while generating the native code.

Commit contributed under the MIT/X11 license.
2011-04-17 21:28:49 +02:00
Gonzalo Paniagua Javier 5fbcc7cd2d [webclient] Only set the credentials when they are not null.
Setting the credentials to null makes FtpWebRequest throw.
	Fixes bug #688007.
2011-04-17 13:58:32 -04:00
Sebastien Pouliot 57713434f5 Implemented IDisposable on System.Security.Cryptography.DeriveBytes to match the .Net 4.0 implementation.
From: Chris Shaffer <[email protected]>
2011-04-17 10:40:06 -04:00
Marek Habersack b76dfd8cea [asp.net] Implemented undocumented BuildManagerHost class to support the Cassini ASP.NET host 2011-04-17 03:00:15 +02:00
Marek Habersack 012ec44556 [asp.net] MinimizableAttributeTypeConverter only converts from strings.
It returns a boolean 'false' when the passed string matches (case-insensitively) 'false' or
is empty, returns 'true' otherwise.
All the other types (and a null value) cause it to throw the NotSupportedException.
2011-04-16 02:12:29 +02:00
Zoltan Varga 70902a338d Handle a new dwarf CFA op generated by newer LLVM versions. 2011-04-16 01:22:26 +02:00
Sebastien Pouliot 48fd0e1b2e Fix non-element in XML flash policy (same as #681699 was for silverlight policies)
* FlashCrossDomainPolicyParser.cs: Skip, not throw, if we find a non-
element node type in a flash policy file.
2011-04-15 15:19:12 -04:00
Atsushi Eno 0bb7a5deff Prepare for HostNameComparisonMode support (i.e. incomplete).
This is for bugfix #687580.
2011-04-16 01:05:22 +09:00
Atsushi Eno 8a8df8387b Return null for empty message in WebMessageFormatter. Useful eror messages. 2011-04-15 23:49:39 +09:00
Atsushi Eno cc60bcc264 Some argument check in TextMessageEncoder. 2011-04-15 23:48:31 +09:00
Marek Safar 31036761b4 More fun with value type constraints 2011-04-15 14:05:23 +01:00
Rolf Bjarne Kvinge f26a050098 [corlib] Ensure Thread.ManagedThreadId is unique per thread.
This fixes bug #667329.

The problem was that ManagedThreadId was created from a per-appdomain
counter, but stored in a per-thread storage, so if two threads could
end up with the same ManagedThreadId if a second appdomain executed
on the second thread first.
2011-04-15 14:56:21 +02:00
Atsushi Eno 50d748b1b6 Use correct MessageVersion instead of Default for empty response.
Part of bugfix #687580.
2011-04-15 21:30:04 +09:00
Jb Evain 3c812d8a93 Remove warnings 2011-04-15 14:11:27 +02:00
Atsushi Eno 312c9268b1 Prefer immutable string return for ease of debugging in UriTemplate. 2011-04-15 20:03:12 +09:00
Marek Safar aa247e9c41 New test 2011-04-15 11:54:25 +01:00
Marek Safar e6cbac2070 Change ImplicitReferenceConversion not to relly on broken IsValueType 2011-04-15 10:46:43 +01:00
Atsushi Eno 15d313b0e3 Fix regression for counter case to 6005f0a7.
http://localhost/x + X should not result in http://localhost/xX.
2011-04-15 16:37:58 +09:00
Atsushi Eno be5f140d36 Implement support for KnownTypeAttribute.MethodName. 2011-04-15 15:40:42 +09:00
Atsushi Eno 8fe0d1c078 Prepare for new System.Xml.Serialization.dll build (moonlight sdk assembly). 2011-04-15 15:00:40 +09:00
Atsushi Eno 87a97563f6 Flush XmlWriter and TextWriter so that incomplete changes are not lost. 2011-04-15 14:56:11 +09:00
Atsushi Eno 4beb53c9e2 One more step to enable WCF diagnostics in Logger, and add HttpReplyChannel log. 2011-04-15 14:45:39 +09:00
Marek Habersack c71ce9b49e [asp.net] Fix for bug #685116. AJAX post-back which redirects the browser does not need a Page or ScriptManager instance 2011-04-15 00:55:14 +02:00
Gonzalo Paniagua Javier 2b63ad5af4 Clearing the queue messed up with the per-domain job count
Fixes bug #687399.
2011-04-14 15:25:04 -07:00
Rodrigo Kumpera e48faec70e Initial drop of the new suspend machinery.
* mini-posix.c (mono_runtime_posix_install_handlers): Only
	install sigusr1 if the new machinery is not enabled.

	* mono-threads.c: Add new suspend machinery. It provides
	primitives to suspend and resume a thread. Code to interrupt
	still missing.

	* mono-threads-mach.c: Darwin backend for mono-threads.
2011-04-14 17:44:12 -03:00
Marek Habersack 879970ea20 [asp.net] Fix for bug #685267. ClientScriptManager generates correct post-back event reference for cross-page post-backs. 2011-04-14 22:40:06 +02:00
Marek Habersack 06e50f3026 [asp.net] Removed a few NET_2_0 ifdefs 2011-04-14 21:12:44 +02:00
Rodrigo Kumpera 9adf92ff5e Fix 64bits mono on windows. 2011-04-14 15:53:57 -03:00
Marek Habersack 7662f68051 [asp.net] Shorten code in WebConfigurationHost 2011-04-14 20:49:30 +02:00
Marek Habersack 404ff821d9 [asp.net] Fixed a thinko in one of the previous commits 2011-04-14 20:48:54 +02:00
Rodrigo Kumpera 58fc5a74b7 Add regression test 2011-04-14 14:34:20 -03:00
Rodrigo Kumpera c282c989a6 Take constraints into account when checking for VAR assignability.
* class.c (mono_class_is_assignable_from): Check the constraints
	of two (M)VARs to see if one is assignable to the other. This is
	needed when we want to check something like:

	Foo<T,U> () where T : U

	On the above example T is assignable to U.

	Fixes #687269
2011-04-14 14:32:24 -03:00
Rodrigo Kumpera 777dab7e63 Fix some tests that got broken due to the verifier getting stricter 2011-04-14 14:32:24 -03:00
Rodrigo Kumpera 5fdf8da757 Improve error message 2011-04-14 14:32:23 -03:00
Atsushi Eno 8277f4a527 Fix bug #687444, null-character handling is now closer and as illogical as .NET. 2011-04-14 21:11:10 +09:00
Alan McGovern 0b9c06b055 Add more internal types for IVT for SDK assemblies. 2011-04-14 11:23:03 +01:00
Alan McGovern c05df1d77f [System.ServiceModel] Add some missing properties for IVT compatibility
These are required for moonlight.
2011-04-14 11:00:33 +01:00
Alan McGovern b374a393db [System.ServiceModel] return the same object reference from MessageVersion.CreateVersion
The Silverlight SDK assemblies rely on this behaviour as do the new tests.
2011-04-14 11:00:33 +01:00
Alan McGovern 2b471d3560 Add another dummy type to keep silverlight sdk assemblies happy wrt
IVT for System.ServiceModel.
2011-04-14 11:00:32 +01:00
Marek Safar d06cdb0f1a Emit readonly. prefix for immutable loads only 2011-04-14 10:13:49 +01:00
Atsushi Eno a4c966202f In Parse(), throw FormatException instead of ArgumentOutOfRangeException. 2011-04-14 17:28:35 +09:00
Atsushi Eno 6b59934d78 Add ServiceKnownTypeAttributeTest. 2011-04-14 15:22:04 +09:00
Atsushi Eno 777580137c ServiceKnownTypeAttribute.MethodName was used way different to lookup method. 2011-04-14 14:56:07 +09:00
Martin Baulig 99133d0ad7 Oooops, it's supposed to be 'if (!strcmp (...))' ! 2011-04-13 20:19:48 +02:00
Rodrigo Kumpera 4b8c199d90 Implement the JIT side of the new mono-threads callbacks.
* mini.c: Fill MonoThreadInfoRuntimeCallbacks and
	pass it to mono-threads.

	* mini-exceptions.c (mono_setup_async_callback): New function
	that can be used to inject an async callback into a stopped
	thread. It works in a similar fashion as the current out
	of signal handler EH.

	* mini-posix.c:
	* mini-darwin.c:
	* mini-windows.c (mono_thread_state_init_from_handle): New
	function to capture the context of a suspended thread. This
	is meant to be used on targets where the kernel can suspend
	a given thread - such as mach and windows.
2011-04-13 14:52:51 -03:00
Rodrigo Kumpera dfeb4fe5e8 Add new set of callbacks to be provided by the JIT.
* mono-threads.h: Add MonoThreadInfoRuntimeCallbacks which
	are a set of callbacks to be used by the new interruption
	machinery.
2011-04-13 14:52:50 -03:00
Rodrigo Kumpera 2d1d36336d Move posix only code to a separate file. 2011-04-13 14:52:49 -03:00
Marek Safar 31867279a7 Improve handling of dependant type parameters 2011-04-13 17:53:42 +01:00
Marek Habersack 7abe6eb7ff [asp.net] Make web.config path check test case-insensitive 2011-04-13 16:56:37 +02:00
Marek Habersack c04e994ef6 [asp.net] A more effective way of looking for web.config 2011-04-13 16:56:37 +02:00
Marek Habersack b0ba50443f [runtime,IO] Filesystem entries can only be sought for in directories, not files. 2011-04-13 16:56:37 +02:00
Alan McGovern 457ce086d4 Add an IVT from System.ServiceModel to Sys.SM.Web.Extensions for Moonlight 2011-04-13 15:54:45 +01:00
Sebastien Pouliot 59918464b3 Add a few MOONLIGHT defines to remove the RemotingProxy from ML build
* System.Runtime.Remoting.Activation/ActivationServices.cs:
* System.Runtime.Remoting.Messaging/ConstructionCall.cs
* System.Runtime.Remoting.Proxies/ProxyAttribute.cs
* System.Runtime.Remoting.Proxies/RealProxy.cs
* System.Runtime.Remoting/RemotingServices.cs
	Add a few MOONLIGHT defines to remove the RemotingProxy from
	being used in Moonlight builds. This reduce the number of SSC
	and code size
* moonlight_raw_corlib.dll.sources: Remove System.Runtime.Remoting.
Proxies/RemotingProxy.cs from moonlight build
2011-04-13 10:31:11 -04:00
Sebastien Pouliot c0f0d2a029 Redirect contract errors on Moonlight to an browser alert dialog
* corlib/System.Diagnostics.Contracts.Internal/ContractHelper.cs:
For Moonlight (only) change TriggerFailure to reflect into
System.Windows.Browser.dll to show a browser alert dialog if a contract
check fails

* corlib/System.Diagnostics.Contracts/Contract.cs: Avoid code
duplication in AssertMustUseRewriter and call
ContractHelper.TriggerFailure
2011-04-13 10:26:46 -04:00
Marek Safar 14c65cc64b Fix location of quoted indentifiers 2011-04-13 11:46:54 +01:00
Marek Safar 9e0dbd3d16 Add check for ambiguous overrides 2011-04-13 11:46:54 +01:00
Marek Safar 7b996aae3b Add more checks for generic interfaces 2011-04-13 11:46:54 +01:00
Marek Safar ea85251571 Emit correct number of dimensions for empty array initializer of multi-dimensional arrays 2011-04-13 11:46:53 +01:00
Rodrigo Kumpera 65a92184ce Avoid some duplicate work when we don't have KW_THREAD 2011-04-12 18:13:16 -03:00
Jeffrey Stedfast 551c76aa3a Implemented g_mkdir_with_parents() for unix 2011-04-12 16:54:34 -04:00
Jeffrey Stedfast 45ce71dbc2 Implemented a bunch of unicode functions for eglib 2011-04-12 16:04:46 -04:00
Atsushi Eno 9a69744701 Fix wrong TraceEventType values passed. 2011-04-13 02:21:02 +09:00
Jeffrey Stedfast d97cdb0c12 Optimized QuickSort routines a bit 2011-04-12 11:48:43 -04:00
Marek Habersack 5fa8a57958 [runtime, iomap profiler] g_string_append_vprintf can be used with eglib as well 2011-04-12 16:32:39 +02:00
Marek Habersack aaab3916d3 [runtime] g_string_append_vprintf can be used with eglib as well 2011-04-12 16:32:39 +02:00
Marek Habersack d5dd1377c8 [eglib] Added the g_string_append_vprintf function 2011-04-12 16:32:39 +02:00
Marek Safar 06d4d56fed Add support for startup file to evaluator 2011-04-12 15:15:46 +01:00
Marek Safar b41e14f39f Be more robust when dealing with string based broken predefined attributes 2011-04-12 15:15:46 +01:00
Marek Safar ec1fbec7c1 Check allowed modifiers on property accessors 2011-04-12 15:15:45 +01:00
Marek Safar 410b3e423f [686290] Inflate correctly imported nested type used from same type 2011-04-12 15:15:45 +01:00
Martin Baulig b12e7d8ef0 Ooops, also enable explicit nulls. 2011-04-12 06:59:17 +02:00
Rodrigo Kumpera 3f47316b6c Handle attached threads correctly on windows.
* driver.c:
	* mono-threads.c: On windows attach/detach threads based on
	DllMain DLL_THREAD_(DE|A)TTACH events. This enables us
	to correctly handle more cases.
2011-04-11 18:46:17 -03:00
Zoltan Varga b7e4047c9a Merge branch 'nunit25/2011-04-11' of https://github.com/DavidS/mono into DavidS-nunit25/2011-04-11 2011-04-11 23:39:06 +02:00
Zoltan Varga d220f8ee10 Avoid putting a seq point at the beginning of finally clauses, they already have one. Fixes #686269. 2011-04-11 23:17:36 +02:00
David Schmitt f4b240e9cf reformat to coding guidelines 2011-04-11 21:58:59 +02:00
David Schmitt 29cc973a08 Update to NUnit 2.5 syntax 2011-04-11 21:53:11 +02:00
Zoltan Varga b389863e69 Add some comments to the LLVM backend. 2011-04-11 21:13:09 +02:00
Rodrigo Kumpera fe54973212 Introduce CreateThread wrapper to make mono-threads registration work on windows.
* mono-threads.c: Add mono_threads_wthread_create that
	does the same as the pthread_create wrapper.
2011-04-11 15:46:56 -03:00
Rodrigo Kumpera f86798dc00 Fix mono-tls usage under windows 2011-04-11 15:46:55 -03:00
Rodrigo Kumpera a2aa1c7ab3 Add missing files to msvc project 2011-04-11 15:46:55 -03:00
Zoltan Varga 724209388c Fix the build. 2011-04-11 20:29:03 +02:00
Martin Baulig a2c629efe2 Add "soft breakpoint" support for ARM.
There is some broken hardware like the HTC Desire HD where we can't
use any signals for single-stepping and breakpoints.

See http://baulig.blogspot.com/2011/04/limiting-page-faults-on-htc-desire-hd.html
for details.

To work around this, we read from a variable instead us using trigger
pages.
2011-04-11 17:58:44 +02:00
Marek Habersack c00c5d00fd [asp.net] CacheItemPriorityQueueTest improvements
External files are now used to store the test case lists and steps. Added tests for the new Update
operation. Added a new sequence.
2011-04-11 14:48:13 +02:00
Marek Habersack 0eff07d0fc [asp.net] Better handling of item timeout reset in the in-proc session handler
The in-proc session handler no longer removes and re-inserts an item in order to
update its timeout. It is now done using Cache.SetItemTimeout which, in turn, checks
whether the item being updated is already a timed one and, if yes, calls CacheItemPriorityQueue's
Update method for that item. Should the update fail or the item is not yet timed, the item is
enqueued to the priority queue in the regular fashion.

CacheItem got a new member, PriorityQueueIndex to mark its position in the queue's heap for faster
lookup and manipulation.

The CacheItemPriorityQueue.BubbleDown method was rewritten to properly swap items in the heap.
2011-04-11 14:48:13 +02:00
Atsushi Eno 1bf9cf0e2c Fixed couple of DateTime/DateTimeOffset tests to match .NET 4.0 behavior. 2011-04-11 20:31:31 +09:00
Zoltan Varga 3c33a65458 Fix a warning. 2011-04-11 12:07:00 +02:00
Zoltan Varga ea353d283d Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438. 2011-04-10 20:27:58 +02:00
Jeffrey Stedfast 92a5dd13e3 D'oh, forgot to add g_hash_table_steal() to glib.h 2011-04-09 23:45:24 -04:00
Jeffrey Stedfast aebd368560 Implemented g_hash_table_steal() 2011-04-09 23:06:38 -04:00
Rodrigo Kumpera 626123c371 Replace posix tls with mono-tls so it works on windows too. 2011-04-09 21:07:16 -03:00
Rodrigo Kumpera 931edbe9d3 Implement low level TLS primitives. Can't afford some io-layer weirdness. 2011-04-09 21:02:50 -03:00
Rodrigo Kumpera 28fac64203 Add mono-threads.c to msvc build 2011-04-09 20:30:37 -03:00
Rodrigo Kumpera 9792344416 Fist pass into fixing the win32 build 2011-04-09 18:52:09 -03:00
Gonzalo Paniagua Javier 3eb2f54bb1 [HttpWebRequest] Ignore Transfer-Encoding when there's no content.
If the transfer encoding was set to chunked, we tried to read even when
	the response might known to have no content. This led to timeouts.

	Fixes bug #686371.
2011-04-09 15:18:00 -04:00
Jeffrey Stedfast 19f25f0224 Optimized by reducing compares and faster SWAP() routine
Also got rid of the pathological fallback case as it is no longer
needed.
2011-04-09 14:56:08 -04:00
Zoltan Varga 4450bb8389 Fix a warning. 2011-04-09 16:13:33 +02:00
Rodrigo Kumpera c81b4344f5 Fix silly C&P bug. 2011-04-08 19:32:53 -03:00
Rodrigo Kumpera c6e0bde70e Extract mono_threads_is_critical_method 2011-04-08 19:28:26 -03:00
Rodrigo Kumpera 951e6adc73 Fix null-gc 2011-04-08 18:52:17 -03:00
Rodrigo Kumpera e77b9db243 Add mono_gc_is_critical_method to the internal GC api 2011-04-08 18:52:17 -03:00
Marek Habersack e2e66a0853 [runtime] Check whether linux/magic.h is present before including it 2011-04-08 23:18:26 +02:00
Neale Ferguson bfb8d1f57b Merge branch 'master' of github.com:mono/mono 2011-04-08 15:23:29 -04:00
Neale Ferguson 60b23a291c Two vararg related fixes: force placing fpr on stack; eliminate unnecessary update of cookie offset. 2011-04-08 15:16:50 -04:00
Levi Bard f75d79ea0f [Fix] Don't drop GC profiler events
* boehm-gc.c: Only guard mono_perfcounters

License: MIT/X11
2011-04-08 17:15:07 +02:00
Marek Safar 526f666e7a Import correctly forwarded generic type definitions 2011-04-08 13:57:44 +01:00
Marek Safar 0ccf9d5957 Fix most encompassing type when choosing between more than 2 candidates 2011-04-08 13:57:43 +01:00
Atsushi Eno 0dde95d9af Implement 4.0 WebOperationContext.Create[Atom10|Json]Response() methods. 2011-04-08 21:38:09 +09:00
Marek Safar 6ec041b456 Don't report unused private method on partial definitions 2011-04-08 09:07:20 +01:00
Marek Safar 0e7853c689 Repor a warning when runtime cannot is less strict in method overload selection 2011-04-08 09:07:18 +01:00
Marek Safar 07052741f3 Suppress few cascading errors 2011-04-08 09:07:18 +01:00
Marek Safar 1adf6487a0 Avoid duplicate error message 2011-04-08 09:07:18 +01:00
Marek Safar 0011c0c1ea Add missing assembly dependency check 2011-04-08 09:07:18 +01:00
Marek Safar ea666cfa01 Remove no longer needed local constructor constraint check 2011-04-08 09:07:17 +01:00
Atsushi Eno 549e702365 Add XmlSerializerFormatAttribute support in mobile profiles.
Unlike moonlight, XmlSerializer is in the framework lib (sys.xml), so we don't
have to split them out to Sys.Xml.Serialization.dll.
2011-04-08 15:58:04 +09:00
Atsushi Eno 212593fc22 Temporarily disable InternalsVisibleTo(Sys.Xml.Serialization). 2011-04-08 13:42:50 +09:00
Gonzalo Paniagua Javier 43c1333bff Remove printf 2011-04-07 21:32:24 -04:00
Miguel de Icaza 4e29c68bae Revert broken patch 34f18b68 that caused random bugs in assembly loading, but could crash the runtime as well 2011-04-07 21:14:39 -04:00
Miguel de Icaza cc7813871c Add test to prevent future problems, this fixes the random MacOSX crashes with assembly loading, but likely everywhere else as well 2011-04-07 21:14:38 -04:00
Rodrigo Kumpera b998e8e943 Move thread management from sgen to utils. Move smr from MonoInternalThread to thread_info.
* mono-threads.c: An implementation of low level thread management that
	fits what sgen needs. It uses hazard pointers to manage the thread list
	since we can't protect it with the GC lock as this would cause boehm to
	deadlock. This requires us to move small_id one layer down.

	* Thread.cs:
	* object-internals.h:
	* threads.c: Small id is now stored on MonoThreadInfo so it can be
	used by lower layers of the runtime such as sgen.

	* sgen-major-copying.c:
	* sgen-os-mach.c:
	* sgen-os-posix.c:
	* sgen-gc.h:
	* sgen-gc.c: Replace sgen's thread management code with
	the new one.

	* boehm-gc.c: Hookup the new thread management code. Boehm's
	own management code is not been replaced as I'm too much of
	a coward to mess with it.

	* hazard-pointer.c: Adjust to the new location of small_id.
2011-04-07 21:12:10 -03:00
Rodrigo Kumpera 9aff465129 Add regression test. 2011-04-07 18:23:38 -03:00
Rodrigo Kumpera 838fbd4871 Handle constrained. with dynamic methods.
* loader.c (mono_get_method_constrained): Move the constrained
	type resolution to get_method_constrained.

	* loader.c: Add mono_get_method_constrained_with_method that
	passes the unconstrained method instead of its token.

	* method-to-ir.c (mono_method_to_ir): Use new function
	to resolve constrained methods for dynamic methods.

	Fixes #685908
2011-04-07 18:23:37 -03:00
Zoltan Varga 4bed692ba4 Revert "Disable SMP on arm until #683409 is fixed."
This reverts commit 29550902ee.

This is now longer needed as #683409 is fixed.
2011-04-07 22:19:54 +02:00
Zoltan Varga 2f95a01d7c Pass HAVE_ARMV6 to libgc on darwin too. 2011-04-07 22:18:26 +02:00
Zoltan Varga 26fd8d13fc Add a membar to libgc's UNLOCK () on arm. Fixes #683409. 2011-04-07 22:14:32 +02:00
Atsushi Eno 72f0cd6e5b Split XmlMessagesFormatter out. It is for use in Sys.Xml.Serialization.dll.
XmlMessagesFormatter will be used in Sys.Xml.Serialization.dll and this
type should not be excluded by !NET_2_1 or !MOONLIGHT. It is not doable
if this class is in BaseMessagesFormatter.cs.
2011-04-08 00:19:40 +09:00
Atsushi Eno a7fd6419a8 Add InternalsVisibleTo(Sys.Xml.Serialization.dll) to Sys.ServiceModel in 2.1. 2011-04-08 00:11:15 +09:00
Atsushi Eno 84841ba8c8 Fix moonlight_raw build in Sys.Xml.Serialization.dll (NIE!) 2011-04-07 23:28:21 +09:00
Rodrigo Kumpera 46b5fd1504 Fix a race condition on thread creation.
* wthreads.c (thread_start_routine): Set thread->id here
	too since the new thread can start before it is set by
	pthread_create.
2011-04-07 10:35:34 -03:00
Atsushi Eno 1b72f7f825 DataContractSerializerOperationBehavior is done too. Fix moonlight_raw build. 2011-04-07 22:01:26 +09:00
Marek Safar 794cb23fdd [324961] Move type constraints checks into emit where it can be safely done (fixes many problems with complex constrains) 2011-04-07 12:07:00 +01:00
Atsushi Eno 852b7fe308 Some XmlSerializerFormatAttribute and XmlSerializerOperationBehavior refactoring. 2011-04-07 19:19:07 +09:00
Zoltan Varga 51ed4fd4f0 Transition most JIT stats to the mono_counters infrastructure. Make the updates to the stats thread safe to reduce false positives when using thread debugging tools. 2011-04-07 12:05:43 +02:00
Marek Habersack a2165c2829 [runtime] Linux support for statfs and improved drive detection
This introduces support for using statfs(2) on Linux as well as moves parsing of
drive information on Linux to the runtime. Three sources of information about drives
are supported: /proc/self/mountinfo, /proc/mounts and /etc/{mtab,mnttab}. The are
tried in the order given. Also, the code will include information about FUSE drives
with the exclusion of the GNOME gvfs (which is of no use to users).
2011-04-07 09:57:40 +02:00
Atsushi Eno 9d59e8ae3d HttpRequestChannel should also return CookieContainer in NET_2_1 profile.
Fixed bug #683642.
2011-04-07 12:31:40 +09:00
Gonzalo Paniagua Javier b311822694 [HttpWebResponse] Close and Dispose are different beasts.
After calling Close () on response you are still allowed to access its
	properties. Calling Dispose() causes the usual exception to be thrown
	when accessing the properties.

	Fixes bug #685368.
2011-04-06 23:01:39 -04:00
Zoltan Varga 29550902ee Disable SMP on arm until #683409 is fixed. 2011-04-07 01:30:20 +02:00
Zoltan Varga 9404ee2e6c Avoid setting thread->id from the thread itself in io-layer, it is already set in the creator. 2011-04-07 01:30:20 +02:00
Zoltan Varga 3b45789ada Add a write barrier before setting vtable->initalize to 1, since some places access it without a lock. 2011-04-07 01:30:20 +02:00
MrUnleaded c69b180cb5 Fix that corrects a mishandling of UInt64's. 2011-04-06 18:44:44 -04:00
Jb Evain 34fd94fb2b linker: only read symbols if instructed to 2011-04-06 21:53:33 +02:00
Jb Evain 92b447865e linker: properly closee debug symbol readers 2011-04-06 19:29:07 +02:00
Jb Evain 91a7998311 linker: add support for non default debug symbol format 2011-04-06 19:29:07 +02:00
Jb Evain 9f309acdfd linker: add per method preserve information 2011-04-06 19:29:06 +02:00
Jb Evain fa71d3b37d linker: Mark all generics instances' arguments 2011-04-06 19:29:06 +02:00
Sebastien Pouliot 722f9890f0 Fix access to freed members of a dead thread
* threads.c: Fix access to freed members of a dead thread. Found
and fixed by Rodrigo Kumpera <[email protected]>
Ref: CVE-2011-0992
2011-04-06 13:27:40 -04:00
Chris Toshok 7d23d76528 add some #defines for methods moonlight uses 2011-04-06 08:52:12 -07:00
Sebastien Pouliot 94fceadc72 Move critical code from System.ServiceModel to mscorlib
* System.ServiceModel/System.ServiceModel/ClientBase.cs: Remove
reflection code that requires SSC inside S.SM.dll
* corlib/Mono/MoonlightHelper.cs: New helper, inside mscorlib.dll, to
replace the above code
* corlib/moonlight_raw_corlib.dll.sources: Add new helper to the build
2011-04-06 11:26:42 -04:00
Marek Safar 79a20d94df Remove redundant accessibility checks 2011-04-06 15:53:56 +01:00
Marek Safar 03682cb49e Allocate less temporary type expressions 2011-04-06 15:53:56 +01:00
Atsushi Eno 0837fc9cd1 once more: Remove obsolete nunit syntax from tests except for Assertion usage. 2011-04-06 22:37:34 +09:00
Atsushi Eno 52da339835 Looks like .NET accepts non-integer numbers as int. Smells bogus though. 2011-04-06 22:02:58 +09:00
Atsushi Eno a84476bb6d auto-detect UTF16-LE too. 2011-04-06 20:20:07 +09:00
Atsushi Eno 607e396ef8 more: Remove obsolete nunit syntax from tests except for Assertion usage. 2011-04-06 20:14:40 +09:00
Atsushi Eno c838b12b2e Remove obsolete nunit syntax from tests except for Assertion usage. 2011-04-06 20:01:27 +09:00
Jérémie Laval f8928669f2 Don't forget to call Init in ConcurrentSkipList ctor. 2011-04-06 11:40:14 +02:00
Jérémie Laval 008477d851 Fix API changes in unit test (Mono.Parallel) 2011-04-06 11:28:03 +02:00
Marek Habersack e5842103a5 [asp.net] CreateChildControls is internal only when compiling system.web tests 2011-04-06 11:06:19 +02:00
Marek Habersack 92da065830 [DynamicData] Use different web.config for 2.0 and 4.0 tests 2011-04-06 11:05:43 +02:00
Atsushi Eno a0a00924d2 Marked a couple of tests as NotDotNet as they blocked nunit completion on .NET. 2011-04-06 16:53:02 +09:00
Gonzalo Paniagua Javier b97d013852 [eglib] The last argument can be empty and quoted.
Fixes bug #669303.
2011-04-06 02:04:38 -04:00
Rodrigo Kumpera 1a2977efef Zero rem as darwin returns a funny value when nanosleep is interrupted. 2011-04-06 00:37:51 -03:00
Rodrigo Kumpera 4a28e696ad Remove useless commented code 2011-04-05 22:43:59 -03:00
Rodrigo Kumpera 832a50943b Increase number of hazard pointer to 3. The linked list set requires it. 2011-04-05 22:36:46 -03:00
Rodrigo Kumpera e56aa33806 Make the small_id_table a bitset.
* object-internals.h (MonoInternalThread): Use
	unused5 to hold the conservative root to the thread itself.

	* threads.c: MonoInternalThread objects have the peculiarity
	that they must be pinned since we hold its value on TLS.
	To solve it we register the field thread_pinning_ref as
	a conservative root, causing them to be pinned.

	* hazard-pointer.c: The small id allocation code no longer
	depends on MonoInternalThread, change small_id_table to be
	a bitset instead of an array of pointers.
2011-04-05 22:36:46 -03:00
Rodrigo Kumpera fc1f92ea88 Fix warning on missing header 2011-04-05 22:36:45 -03:00
Rodrigo Kumpera 7048984b42 Fix typo in documentation 2011-04-05 22:36:44 -03:00
Zoltan Varga f24215e400 Put back a check removed by mistake. 2011-04-05 20:10:27 +02:00
Zoltan Varga 24e1628118 Enable LLVM compilation of runtime invoke wrappers. 2011-04-05 20:09:22 +02:00
Zoltan Varga 62368bdf93 Re-enable OP_SQRT support in llvm, the llvm bug which blocked it seems to be fixed. 2011-04-05 20:05:47 +02:00
Zoltan Varga d8d7a012d7 Add llvm support for OP_RELAXED_NOP. 2011-04-05 19:50:19 +02:00
Zoltan Varga c482036422 Add more vararg tests. 2011-04-05 18:53:54 +02:00
Levi Bard 0c1d4a8e94 [Fix] Fix intermittent initialization race crash with boehm gc.
* boehm-gc.c: Don't crash when the runtime isn't initialized yet.

License: MIT/X11
2011-04-05 16:35:30 +02:00
Atsushi Eno 01671273bb Fix build, looks like ArrayList is internally available in moon. 2011-04-05 23:05:43 +09:00
Jérémie Laval 52ccbf2963 Protect entering ReaderWriterLockSlim upgradable mode against async exceptions. 2011-04-05 15:24:47 +02:00
Marek Habersack 774c3980ac [asp.net] Fix for bug #684803. XmlSiteMapProvider must take its root node into account when matching an URL. 2011-04-05 14:35:36 +02:00
Atsushi Eno 382a385a8f Collection support in JSON serializer was actually for any IEnumerable. 2011-04-05 20:55:32 +09:00
Marek Safar c58d9d6431 Don't eat escaped U characters 2011-04-05 12:34:39 +01:00
Atsushi Eno 696ff71de2 Revert PushbackReader changes (was unnecessary and actually bogus). 2011-04-05 20:26:09 +09:00
Marek Safar d4452011a9 Fixes parsiong of coalescing operator on nullable type 2011-04-05 11:53:37 +01:00
Atsushi Eno 7a32f7a4a1 null value also outputs "type='null' in WCF JSON writer. 2011-04-05 19:47:54 +09:00
Atsushi Eno 5670f5b5ce Auto-detect text encoding from input stream for JsonReader. Fix DBCS pushback. 2011-04-05 18:22:56 +09:00
Marek Safar 89526c8e59 Rename lookup method for consistency 2011-04-05 09:37:48 +01:00
Marek Safar fb3a57c810 Speed up var expression type resolution 2011-04-05 09:37:48 +01:00
Marek Safar 52b8df234f Clearly split namespace and type resolve paths 2011-04-05 09:37:47 +01:00
Marek Safar 40a677d809 Warn about name collision between namespace and type 2011-04-05 09:37:47 +01:00
Atsushi Eno 3f0fe0dcde IDictionary`2 serialization support was missing in DataContractJsonSerializer.
Fixed bug #685042.
2011-04-05 13:19:54 +09:00
Rodrigo Kumpera 2a4f3a9cab Fix thinko 2011-04-04 23:15:44 -03:00
Rodrigo Kumpera de47c136db Add implementation of a lock free linked list set.
* mono-linked-list-set.c: Implementation based
	on M. Michael paper.
2011-04-04 23:07:54 -03:00
Jeffrey Stedfast eda561cffc Huge optimization to eglib qsort_with_data() 2011-04-04 15:02:37 -04:00
Sebastien Pouliot eb02ba9d97 Avoid throwing an ANE on an invalid X.509 extension
* X509ExtensionCollection.cs: Avoid throwing an ArgumentNullException
when processing an invalid X.509 extension (e.g. where the value is not
encoded in an OCTETSTRING). See E37A3466C703DCB14E6E16E416E51DC04A42A52B
in bnc #682619
2011-04-04 11:32:05 -04:00
Sebastien Pouliot 8ac5a7ca67 Fix X.500 DN comparison
* X500DistinguishedName.cs: Fix DN comparison. See
D00FB2B40594C460D1D7F5E5A12F6654455D9247 and
D13835AF247D70C32E1032798939CFD32B2BFEA2 in bnc #682619
2011-04-04 11:30:11 -04:00
Sebastien Pouliot 95ab3c8d2a Add MD4, SHA384 and SHA512 signature verification to X.509 certificates
* X509Certificate.cs: Add MD4 (if available), SHA384 and SHA512
RSA signature verification
2011-04-04 11:15:29 -04:00
Atsushi Eno ff1e287b73 unlike told by docs.mono-android.net Trace does not exist in mobile profile. 2011-04-04 22:55:30 +09:00
Jb Evain 5d9e2b294c Fix net_2_0 build 2011-04-04 15:40:25 +02:00
Sebastien Pouliot 1c15f77a71 Allow comments (line starting with #) in the .secattr files
* InjectSecurityAttributes.cs: Allow comments in security attribute files
2011-04-04 08:24:25 -04:00
Sebastien Pouliot fc47bc9340 AppDomain.GetAssemblies() is available (it's internals) in Moonlight
* JsonSerializationReader.cs: Remove #if wrt MOONLIGHT since the API
is available (internal but Moonlight's mscorlib has an IVT on S.SM)
2011-04-04 08:24:25 -04:00
Marek Safar 185a28af3b [684600] Treat all value types equally 2011-04-04 13:31:53 +01:00
Marek Safar 8704cefac0 Update comment 2011-04-04 13:31:53 +01:00
Atsushi Eno 461750a76e Add WCF diagnostics implementation (not working yet). 2011-04-04 20:57:12 +09:00
Marek Safar 5a4e625d89 Pointer member access can use type arguments 2011-04-04 11:19:20 +01:00
Sebastien Pouliot 4b4a438946 Avoid throwing (just return false) when verifying an RSA certificate with dsaSHA1
* X509Certificate.cs: Do not throw a CryptographicException for "unknown
hash algorithm" when asked to verify a RSA certificate with dsaSHA1 since
this can happen when a bad/incomplete chain is being tested.
2011-04-03 10:12:09 -04:00
Zoltan Varga 880264402b Fix warnings. 2011-04-03 08:04:06 +02:00
Kenneth Skovhede 9470abc51f Fix the handling of the '%f' descriptor in DataConverter.Unpack (). Fixes #683712. 2011-04-03 06:33:28 +02:00
Marek Habersack 086b5aad18 [asp.net] 2.0 standalone tests must have the MONO_TESTS_IN_PROGRESS variable exported in the environment 2011-04-03 00:02:58 +02:00
Tomasz Kubacki 0b43a3069b [asp.net] HttpApplication.InitOnce must ensure that HttpApplication.Context does not return null.
HttpApplication.Context != null is assumed by System.Web.WebPages.WebPagesHttpModule Init method
2011-04-02 23:51:36 +02:00
Zoltan Varga 2129a8cb01 Fix get-cygwin-deps.sh after sourceforge url changes. 2011-04-02 19:45:03 +02:00
Zoltan Varga 111b078a65 Fix a harmless memory overwrite in sgen. 2011-04-02 09:44:47 +02:00
Atsushi Eno 4dbd74fae5 fix wrong attempt to add restricted headers in HttpRequestChannel. 2011-04-02 11:28:19 +09:00
Marek Habersack 2ec75014bd [asp.net] Store new heap size when shrinking it. Thanks to Rodrigo Kumpera for noticing it!
This should fix the IndexOutOfRangeError which occur after heap exceeds 8192 elements and is then
shrunk below that value.
2011-04-02 02:36:53 +02:00
Jeffrey Stedfast 49c3d4aa1d Minor fixes to qsort_with_data() 2011-04-01 16:39:05 -04:00
Rodrigo Kumpera 82a85e16dc More plat cleanups.
* sgen-gc.c (mono_sgen_wait_for_suspend_ack): Move the
	mach check to the function itself. We later should push
	it to plat specific code.

	* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
	Move mach/posix resume code to plat specific files.
2011-04-01 16:47:55 -03:00
Rodrigo Kumpera c7bfdb2247 Arch cleanup.
* sgen-gc.c: Remove one silly ifdef by implementing
	mono_sgen_suspend_thread on posix.
2011-04-01 16:47:54 -03:00
Rodrigo Kumpera 609b72b71c Fix thread restart under mach.
* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
	On mach we used to simply call thread_suspend/thread_resume
	without updating the thread context, which would result in
	sgen getting hang.
2011-04-01 16:47:54 -03:00
Rodrigo Kumpera a31fb4da4a Extract suspend code from mono_sgen_thread_handshake.
sgen-os-mach.c (mono_sgen_thread_handshake): Extract
	suspend code into new function mono_sgen_suspend_thread.
2011-04-01 16:47:53 -03:00
Gonzalo Paniagua Javier ccdbecba6b [eglib] add missing declaration. 2011-04-01 15:38:04 -04:00
Atsushi Eno 60300f821d A bit less !NET_2_1 and !MOONLIGHT in Sys.ServiceModel.Web. 2011-04-02 04:10:09 +09:00
Jeffrey Stedfast 214234dc7c Calculate proper stack size for qsort 2011-04-01 09:47:06 -04:00
Jeffrey Stedfast 11b75f0863 Implemented non-recursive qsort w/ insertion-sort fallback 2011-04-01 08:11:11 -04:00
Jeffrey Stedfast a37aa1288f Soptimize qsort by re-ordering while-loop qualifiers 2011-04-01 07:47:06 -04:00
Atsushi Eno cd100616f4 Less !NET_2_1/!MOONLIGHT to improve SL4 WCF compatibility. 2011-04-01 20:39:33 +09:00
Marek Habersack d2379e01ce [wcf] Unbreak the build (Assembly.IsDynamic is a 4.0 thing) 2011-04-01 13:34:09 +02:00
Marek Safar 08f0b7fc5a [684342] Use correct constant underlying type when detecting decimal value 2011-04-01 12:17:12 +01:00
Marek Safar b3a37c24b4 Check name collision between namespaces and types 2011-04-01 12:17:12 +01:00
Marek Habersack c0c51c0791 [mvc3] Part of fix for bug #683339. Override more NameValueCollection methods.
Without those overrides, merging collections in System.Web.HttpParamsCollection fails.
2011-04-01 11:55:09 +02:00
Marek Habersack 0a6c794f1e [system] Part of fix for bug #683339. NameValueCollection.Add (NameValueCollection) must call the Get* overloads instead of BaseGet*
Otherwise classes wrapping NameValueCollection will not be able to intercept the Add call which leads to errors in MVC3's
FormCollection.
2011-04-01 11:55:09 +02:00
Atsushi Eno 4379361aa7 Implement ConfigurationName support for ChannelFactory.
It is required for MoonlightDrtViewer bugfixing.
2011-04-01 18:23:16 +09:00
Zoltan Varga 97e09211b7 Record parameter names for wrapper methods so they could be seen in xdebug. 2011-04-01 08:22:43 +02:00
Peter Gerbrandt c48cff92ce Fix contract description for contracts with deep inheritance hierarchy. 2011-04-01 14:17:10 +09:00
Jeffrey Stedfast 1a70f4988b Implemented g_qsort_with_data using Quicksort 2011-03-31 18:15:53 -04:00
Alan McGovern 354900ad9f [log profiler] Keep correct stats about gchandles
We were not keeping track of allocated/destroyed/alive gchandles in the
log profiler. It only ever reported the number of handles alive at the
end of the profiling run and that was misreported as the output claimed
this was the number of gchandles created.
2011-03-31 22:25:46 +01:00
Rodrigo Kumpera d5289ff0c1 Fix win32 file name canonicalization.
* mono-path.c (mono_path_canonicalize): Properly canonicalize
	non UNC paths with an extra backslash. Eg:
	c:\foo\\bar was been canonicalized to c:\\foo\bar.

	This was breaking assembly loading in some rare cases.
2011-03-31 16:11:26 -03:00
Gonzalo Paniagua Javier 50150fec0b [eglib] Implement g_ptr_array_sort_with_data() 2011-03-31 14:05:08 -04:00
Marek Safar 9ea0d7f3c3 Add more checks for invalid attribute arguments 2011-03-31 18:41:47 +01:00
Marek Safar fb2a62048a [566531] Fix error message for missing parameter name 2011-03-31 18:41:46 +01:00
Lucas Meijer e045ceaf34 change documentation to be in the right format for public api, and document the meaning of the different enum values. 2011-03-31 10:37:47 -04:00
Lucas Meijer ff691ffb4b coding style fix 2011-03-31 10:37:47 -04:00
Lucas Meijer b952d357f4 integrate spouliots' feedback 2011-03-31 10:37:47 -04:00
Lucas Meijer 649875488b implement a relaxed mode of CoreCLR for coreclr users that do not require to be like moonlight 100% 2011-03-31 10:37:46 -04:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Rolf Bjarne Kvinge 30443d63dd System.ServiceModel: make it a lot more compatible with Silverlight 2011-03-31 16:01:22 +02:00
Marek Safar f53dd8b264 Fix few excessive error reports 2011-03-31 14:58:54 +01:00
Louis Salin 16a5e11037 TraceData and TraceEvent methods must pass a new instance of TraceEventCache 2011-03-31 09:11:41 -04:00
Louis Salin 5da72e98ea implement getter and setter for HostContext property 2011-03-31 09:11:40 -04:00
Atsushi Eno e07a7150a7 Reimplemented XamlXmlReader to make it iterator based, much less stateful.
Also fixed bug #638290 (required lots of state management complication).
2011-03-31 21:05:19 +09:00
Marek Safar 766d5a60e9 Apply module character settings to more attributes 2011-03-31 11:20:32 +01:00
Marek Safar 20978edc61 [572365] Make ambiguous predefined types detection even more robust 2011-03-31 11:20:32 +01:00
Rolf Bjarne Kvinge 4c876e6d28 [DateTime]: Fix parsing when the date format can't be deduced from the ShortDate. 2011-03-31 12:17:00 +02:00
Rolf Bjarne Kvinge faabc3a3f1 [corlib]: Don't rebuild vts tests every time 'make run-test' is executed 2011-03-31 12:17:00 +02:00
Rolf Bjarne Kvinge 3314ae8ce6 [CultureInfo]: Ensure the tests pass on .NET 4.0, and fix our CultureInfo class accordingly. 2011-03-31 12:16:59 +02:00
Gonzalo Paniagua Javier 2b618c8045 Revert "Fix a typo in Directory.GetFiles ()"
This reverts commit 5bbd6c23f8.
2011-03-30 20:23:14 -04:00
Sebastien Pouliot bf55818da1 Add -alt option to makecert to a subjectAltName extension
* man/makecert.1: Add documentation for -alt
* mcs/tools/security/makecert.cs: Add (mono only!) -alt to support
adding a subjectAltName extension in certificates. This allows to
speficy (from a file) a list of DNS entries so a single X.509
certificate can be used/shared for SSL (like all the bots hosts)
2011-03-30 16:15:17 -04:00
Sebastien Pouliot 6f28145ab4 Validate CRL (signature and chain) before importing them into the stores
* crlupdate.cs: Validate CRL (signature and chain) before importing them
into the stores. Also warn if the downloaded CRL is not within its
validity dates.
2011-03-30 16:09:16 -04:00
Sebastien Pouliot 8b5e9939ba Relax X.509 CRL verification if the issuer is a CA
* X509CRL.cs: Relax CRL verification when the issuer is known to be
a CA certificate (basic constraints) and has digitalSignature in it's
key usages (instead of the 'expected' cRLSign)
2011-03-30 15:58:08 -04:00
Sebastien Pouliot 21453a99ea Add support for validating RSA-based X.509 certifcates using SHA256
* X509Certificate.cs: Add mappings for 1.2.840.113549.1.1.11
2011-03-30 14:13:07 -04:00
Sebastien Pouliot a5f66c4835 Avoid ANE when a key algorithm parameters is really null (not just ASN.1 null)
* PublicKey.cs: Avoid an ArgumentNullException when the EndodedParameters
is from (Mono's X509Certificate) public key is null (instead of the more
common ASN.1 null). Fix parsing some certificates, see bnc #682619
2011-03-30 14:13:06 -04:00
Gonzalo Paniagua Javier 863e1ee69f Typo. 2011-03-30 13:46:54 -04:00
Marek Safar a84a5e534b New test 2011-03-30 18:33:27 +01:00
Marek Safar 51c1564833 [666033] Fixes Mono.WebBrowser versioning 2011-03-30 18:32:11 +01:00
Marek Safar 1ec408a465 [377519] Avoid creating forwarding proxies to base methods to satisfy interface requirements 2011-03-30 18:25:03 +01:00
Marek Safar eda489c823 Few 4.0 profile corcompare changes 2011-03-30 18:25:03 +01:00
Marek Safar 39483b565a Tweak methods proxy attributes 2011-03-30 18:25:03 +01:00
Marek Safar 39af62308d [347188] Check referenced assemblies for localized culture 2011-03-30 18:25:03 +01:00
Neale Ferguson 968a96ec80 Fix big endian issue with cardtable and add code for mono_arch_context_get_int_reg 2011-03-30 12:52:24 -04:00
Zoltan Varga b98e93cf8d Remove .cvsignore files. 2011-03-30 15:39:17 +02:00
Zoltan Varga 6b152b8249 .gitignore 2011-03-30 15:33:42 +02:00
Zoltan Varga 9cf58243ac Pretty print generic instances better in xdebug. 2011-03-30 15:32:35 +02:00
Zoltan Varga ec549b2b2a Add some checks to the ActivationServices:AllocateUninitializedClassInstance () icall to avoid instantiating interfaces/abstract types. 2011-03-30 15:27:40 +02:00
Dick Porter ef2d48a326 Merge branch 'master' of github.com:mono/mono 2011-03-30 13:01:57 +01:00
Rolf Bjarne Kvinge 7cd990d462 [io-layer] Make debug spew compile 2011-03-30 13:26:44 +02:00
Dick Porter 6a2fac6993 Enable sgen on Solaris 2011-03-30 11:36:36 +01:00
Martin f56770d667 [asp.net] Fix for bug #658184. AuthorizationRule restores its Action when unmerging. 2011-03-30 12:20:33 +02:00
Marek Safar 7a05a2fe35 Allow XML documentation predefined types to be used with parameters for methods 2011-03-30 10:40:17 +01:00
Marek Safar 410cff8cdc Check XML documentation parameters on all parameters-like member kinds 2011-03-30 10:40:17 +01:00
Marek Safar 0a22fe5768 New test 2011-03-30 10:40:17 +01:00
Marek Habersack 60c269eae9 [DataAnnotations] Implemented the Validator and CustomValidationAttribute 4.0 classes 2011-03-30 10:18:31 +02:00
Marek Safar 29a6559251 Set correctly scope of namespace global attributes 2011-03-30 09:11:22 +01:00
Atsushi Eno 6ca2cd2be9 Fix Sys.Xaml test build which got broken with the latest mcs since 9cc5c9e. 2011-03-30 16:15:39 +09:00
Gonzalo Paniagua Javier 3e2b7c90d7 [proclib] Break after reading the line we need 2011-03-30 01:38:53 -04:00
Zoltan Varga a756f83cac Fix the previous change. 2011-03-30 05:26:19 +02:00
Zoltan Varga ae6588e965 Call SleepEx in a loop in the Thread.Sleep () icall, to avoid a race when the sleep is interrupted. Fixes #683519. 2011-03-30 05:07:06 +02:00
Rodrigo Kumpera 30e2ee736e Fix domain TLS loading.
* sgen-os-mach.c (mono_sgen_thread_handshake): Given
	recent changes in mono-compiler than enabled fast TLS
	for mach, we now must use mono_domain_get_tls_offset
	since io-layer TLS won't be used.
2011-03-29 23:47:43 -03:00
Rodrigo Kumpera e7449a0c72 Cast p to char* since the offset is in byte units. 2011-03-29 23:47:43 -03:00
Vincent Povirk 32d9156e94 System.Windows.Forms.Mime: Use freedesktop.org only on Unix platforms. 2011-03-29 21:10:00 -04:00
Gonzalo Paniagua Javier eef46f9edf [nl] Move a bunch of #if's out of the way. 2011-03-29 14:24:23 -04:00
Gonzalo Paniagua Javier db66b0e930 Reset BytesTransferred on every reuse. 2011-03-29 13:46:17 -04:00
Marek Safar 9b047331b0 Allow braces to be used instead of brackets for XML documentation 2011-03-29 18:03:56 +01:00
Marek Safar 9479f93ac7 Make dynamic test for 4.0 profile only 2011-03-29 17:40:42 +01:00
Marek Safar 3370bbfb71 Don't check constraints for anonymous method stories it's not needed and it's hard to get it right 2011-03-29 17:35:54 +01:00
Marek Safar 29fc730f2a Better error message for fixed size collections 2011-03-29 17:35:22 +01:00
Marek Safar 7699434f00 Major update of XML documentation support 2011-03-29 15:41:56 +01:00
Gonzalo Paniagua Javier d39e3b2e50 Fix vasprintf() for empty strings.
James Bellinger entered bug #682963 and he ended up debugging it and
	providing the solution.
2011-03-28 23:24:35 -04:00
Atsushi Eno 2001ed0121 Do not forget mmember stack pop in XamlXmlReader. Fixed bug #682933. 2011-03-29 11:51:01 +09:00
Gonzalo Paniagua Javier c2271973a3 .gitignore 2011-03-28 18:15:26 -04:00
Gonzalo Paniagua Javier b3360089d5 (c) lines. 2011-03-28 18:14:47 -04:00
Gonzalo Paniagua Javier 073de8e603 Fix a typo in Directory.GetFiles ()
The mask never matched the attributes and all files were discarded.
	This fixes bug #683203.
2011-03-28 17:47:41 -04:00
Zoltan Varga 265889f391 Define MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX for arm. 2011-03-28 15:51:54 +02:00
Zoltan Varga 39fcd373b2 Remove some unused fields from MonoDynamicGenericClass. 2011-03-28 14:55:18 +02:00
Atsushi Eno 2249e62299 Cosmetic corcompare-based updates in Sys.SM.Web. 2011-03-28 21:17:24 +09:00
Atsushi Eno 71ffb28338 Looks like WCF serializer supports XmlNode, so we do as well.
for details: http://msdn.microsoft.com/en-us/library/aa347876.aspx

Fixed bug #682957.
2011-03-28 17:09:25 +09:00
Atsushi Eno 62113eebbd XamlXmlReader didn't update current_member after EndMember and kept old one.
Fixed bug #682933.
2011-03-28 16:05:17 +09:00
Zoltan Varga 2207f92bd8 Fix a case where class->instance_size was not set for dynamic classes. 2011-03-28 08:19:31 +02:00
Zoltan Varga 1ace814acb Pretty print null MonoGenericContext's in xdebug correctly. 2011-03-28 08:19:30 +02:00
Gonzalo Paniagua Javier 75d42f19f9 [NetworkInformation] Support network IP/status events
Add support for the events in NetworkChanged (linux-only).
2011-03-27 18:50:35 -04:00
Sebastien Pouliot 0da944a95c Add new crlupdate tool
* man/Makefile.am:
* man/crlupdate.1:
* man/man.xml:
	Add new manual page for crlupdate

* mcs/tools/security/Makefile:
* mcs/tools/security/crlupdate.cs:
	Add new crlupdate tool

* scripts/Makefile.am:
	Generate script wrapper for crlupdate
2011-03-27 16:59:26 -04:00
Sebastien Pouliot f2f7c8f361 Expose the distribution points from cRLDistrubutionPoint extension
* CRLDistributionPointsExtension.cs: Expose the DP from the extension
so it is easier to retrieve the URL to download them
2011-03-27 16:55:43 -04:00
Sebastien Pouliot b7d72d0c6a Do not throw in IsSelfSigned on non-RSA based certificates
* X509Certificate.cs: Handle DSA or DSA paramaters-only certificates
in IsSeldSigned
2011-03-27 16:54:02 -04:00
Sebastien Pouliot 2cf172a738 Handle non-existing user CA store gracefully
* X509Chain.cs: Handle non-existing user CA store gracefully
2011-03-27 16:52:33 -04:00
Sebastien Pouliot bb0fc0d5fa Allow certmgr to display X.509 CRL inside the stores
* certmgr.cs: Implement display of X.509 CRL
2011-03-27 16:50:40 -04:00
Zoltan Varga e095832fbb Make mono_arch_context_get_int_reg () return an mgreg_t. 2011-03-27 08:56:54 +02:00
Virgile Bello 623846e347 VTune Amplifier XE 2011 plugin for Mono 2011-03-27 08:30:55 +02:00
Zoltan Varga d2169ff182 Implement mono_arch_context_set_int_reg () for arm. 2011-03-27 01:37:10 +01:00
Atsushi Eno 7917753273 null JSON type must be handled in JsonWriter. 2011-03-26 21:27:19 +09:00
Atsushi Eno ea7e0d189a Do not always assume ascii == 1 byte in JsonWriter. Fix utf-16 usage. 2011-03-26 21:00:16 +09:00
Atsushi Eno 4c5ed5697c XStreamingElement should be covered in WriteTo(). It's not derived from XNode. 2011-03-26 19:26:14 +09:00
Atsushi Eno f59aed0bd7 Nowadays, XmlDeclaratoin.WriteTo() writes PI instead of raw.
This resulted in invalid output to JsonWriter (via JsonReaderWriterFactory).
2011-03-26 19:13:47 +09:00
Zoltan Varga 74208346b2 Implement mono_arch_context_set_int_reg () for x86. 2011-03-26 05:20:32 +01:00
Marek Habersack d7ae726e35 [asp.net] HtmlForum.Name rendering updates + test updates 2011-03-25 22:48:22 +01:00
Zoltan Varga 1b13c7042d Add support for reading/writing variables in registers to sdb. 2011-03-25 19:55:59 +01:00
Zoltan Varga 59264faad3 Add a mono_arch_context_set_int_reg () function, amd64 only for now. 2011-03-25 19:55:58 +01:00
Zoltan Varga 137c145c34 Add an unwind option to enable collection of register save locations during stack unwinding. 2011-03-25 19:55:58 +01:00
Vincent Povirk e439067bfe Replace ENABLE_COREE with a runtime switch. 2011-03-25 11:55:37 -04:00
Sebastien Pouliot 3d677973f3 Align our coreclr inheritance rules to match MS
* mono/metadata/security-core-clr.c: Change our inheritance check to be
closer to MS implementation wrt default ctors.

* mcs/tools/tuner/Mono.Tuner/InjectSecurityAttributes.cs: Let the tuner
inject the extra .ctor required to match the rules from above.
2011-03-25 11:15:11 -04:00
Sebastien Pouliot 95482a1aba Do not allow extra elements in policy
* ClientAccessPolicyParser.cs: Fix regression (from a023b07a) found by
DRT #666. More test cases to be added into moonlight WebPolicies test
application
2011-03-25 10:15:44 -04:00
Marek Habersack 70ae1133b4 [tests,runtime] A kludge to make 2.0 tests using CodeDOM work
When running the 2.0 test suite some assemblies will invoke mcs via
CodeDOM and the new mcs process will find the MONO_PATH variable in its
environment pointing to the net_2_0 library which will cause the runtime
to attempt to load the 2.0 corlib into 4.0 process and thus mcs will
fail. At the same time, we must not touch MONO_PATH when running outside
the test suite, thus the kludge.
2011-03-25 14:19:48 +01:00
Marek Habersack adc3314eff [asp.net] Fix for bug #681553. Look for direct child controls before calling up on the NamingContainer 2011-03-25 14:19:21 +01:00
Miguel de Icaza 5a41149e94 Console encoding fix for bug 678357
Move the stream setup into a separate method and recreate the
streams whenever the input or output streams change.
2011-03-24 21:31:59 -04:00
Marek Habersack 8470cb3d7d [asp.net] Fix for bug #681164. Page.InitOutputCache ignores calls with duration <= 0
It is ok to ignore such calls for two reasons - the cache with duration <= 0 will not
be effective anyway and the @OutputCache directive throws an exception for duration <= 0
2011-03-24 23:31:46 +01:00
Atsushi Eno b5339d6f07 Fix generic interface lookup to not miss exact match. Fixed bug #682140. 2011-03-25 01:37:02 +09:00
Atsushi Eno 5dc910ee50 Again I forgot to add test xml file... 2011-03-24 23:25:16 +09:00
Atsushi Eno be2b594a73 Support get-based property value (as omitted StartObject form) in XamlXmlReader.
This is a bit complicated to determine, and the identified condition could
be wrong (so far no regression).

It may be now missing the point to use IsWritePublic in some area to identify
GetObject node from XML stream. (Future consideration.)

Fixed bug #682131.
2011-03-24 23:20:18 +09:00
Atsushi Eno 75c1d16157 Nullable type needs special treatment in XamlValueConverter. fixed bug #682119. 2011-03-24 21:32:27 +09:00
Marek Safar 881dee8a8f Remove static members from documentation generator 2011-03-24 10:55:49 +00:00
Marek Safar 94005eb18b Clean up few excessive documentation members 2011-03-24 10:55:48 +00:00
Marek Safar d9382466f1 Better error message for common xml documentation error 2011-03-24 10:55:48 +00:00
Atsushi Eno a5e126aa73 Fix LookupNullable(). It is not lookable-up by interface (struct). 2011-03-24 19:40:35 +09:00
Atsushi Eno 52747ce09a Undo unwanted comment out. 2011-03-24 19:33:48 +09:00
Atsushi Eno 6435581c8d Implemented IAmbientProvider support in XamlObjectWriter. Fixed bug #682102. 2011-03-24 19:17:31 +09:00
Atsushi Eno c5d0bb0915 Fix serialization test build that depended on compiler contravariance bug. 2011-03-24 18:00:58 +09:00
Thomas Goldstein f6369ee44a Cursors.cs: Fix the appearance of the SizeNESW cursor when not running on Unix. Fixes bug 681032. 2011-03-24 08:33:11 +01:00
Atsushi Eno b6296239a6 Add AmbientProperty tests (complicated, not working) for bug #682102. 2011-03-24 15:19:30 +09:00
Gonzalo Paniagua Javier f1653655f9 Avoid warnigs. 2011-03-23 16:02:53 -04:00
Sebastien Pouliot 0a23b07aea Relax policy parser to accept text elements - fix 681699
* ClientAccessPolicyParser.cs: Allow non-element between the expected
XML elements. Fix text, like '-', being present inside policies.
2011-03-23 13:57:23 -04:00
Marek Safar e038c33277 [457081] Mixed documentation comment format was not detected for single lines 2011-03-23 18:03:04 +00:00
Marek Safar 557cefe238 Update some documentation tests 2011-03-23 17:24:59 +00:00
Marek Safar 0d3a76c7c4 [643460] Set delegate documentation scope correctly 2011-03-23 17:23:23 +00:00
Marek Safar 9cc5c9ee2e Fixes another long standing issue where explicit type attributes could not be used at beginning of the file 2011-03-23 16:54:39 +00:00
Miguel de Icaza cd96629bba Make this OSX specific instead 2011-03-23 10:11:54 -04:00
Miguel de Icaza 59b130bef0 Allow generated files here 2011-03-23 10:11:01 -04:00
Miguel de Icaza 08de5f491d Check in these autogenerated files, since they keep breaking the concurrent make builds 2011-03-23 10:11:01 -04:00
Atsushi Eno 6043622186 Add another complicated ContentProperty case. 2011-03-23 22:33:56 +09:00
Sebastien Pouliot be471b69d9 Add missing API that are to be decorated with [SecurityCritical] for compatibility
* System.Reflection.Emit/AssemblyBuilder.cs: Add missing GetName(bool)
* System.Threading/ThreadPool.cs: Add missing UnsafeQueueNativeOverlapped

This is not a big issue since the missing API are unusable from
application code (and obviously not needed inside the platform code).
However it makes validating the tuned assemblies easier :)
2011-03-23 08:52:19 -04:00
Atsushi Eno 5225990ace Forgot to add test xml files for the previous commit. 2011-03-23 21:30:09 +09:00
Atsushi Eno 9955d9e928 ContentProperty with collection caused unexpected read in XamlXmlReader.
The fix is actually complicated. When a ContentProperty list is settable,
.NET allows omitting start element for it i.e. it *may* or *may not* appear,
which for each is interpreted as:
	- it is StartObject if the start element can be of the member.
	- otherwise it is GetObject.

It could still happen that if such a list could contain an instance of the
same list type, which results in "indeterminant" state. I don't think MS XAML
syntax and/or parser is carefully designed to treat such situation gracefully,
so I leave current implementation as is.
2011-03-23 21:21:33 +09:00
Rolf Bjarne Kvinge c562ce064c [io-layer] Use MonoSemType instead of sem_t 2011-03-23 12:18:17 +01:00
Marek Habersack eec4fa9093 [runtime] Fix compilation 2011-03-23 11:46:28 +01:00
Gonzalo Paniagua Javier bb6a23be8f --version shows kqueue now. 2011-03-23 01:55:43 -04:00
Miguel de Icaza eeac7e1468 OSX, Win32: Implements support for DriveInfo
This implements support for DriveInfo for OSX and Windows.

On OSX we use statfs system call that provides the filesystem
type information that we need.   On Linux, we continue to fallback
to mtab parsing
2011-03-23 01:55:23 -04:00
Miguel de Icaza dddf87dbac Add OSX support to the io-layer: supports getting a list of mounted file systems, and OSX-specific file system types 2011-03-23 01:55:23 -04:00
Miguel de Icaza 2b279ee088 Add Environment.IsMacOS for handling OSX specific bits in corlib 2011-03-23 01:55:22 -04:00
Atsushi Eno 9f2d02b5cc Add support for EnumTypeConverter in XamlValueConverter. Fixed bug #681724. 2011-03-23 14:45:58 +09:00
Gonzalo Paniagua Javier fac6d5842b [threadpool] Don't start all the IO threads on first request.
The IO threadpool behaves as the regular one now: threads are created
	on demand up to the default and then they are throttled based on load
	unless Set(Min|Max)Threads is used.

	Fix the stack size for threadpool threads when Set(Min|Max)threads is
	used.
2011-03-22 21:41:57 -04:00
Rolf Bjarne Kvinge afb1937e56 [io-layer] Improve waiting on processes a lot
We now install a SIGCHLD handler when creating a process, and we do the proper
waitpid in the SIGCHLD handler so that the process isn't left as a zombie. We
use a new data structure, MonoProcess, to keep track of created processes, and
where we have a semaphore the SIGCHLD handler releases when the process exits.
This enables us to wait properly (no polling!) for child processes, and
process_wait has been completely reworked to take advantage of this.

The ability to wait for non-child processes is partly there (when shared
handles are enabled any process can wait for a process any other mono process
has created by polling on the pid).
2011-03-23 00:21:19 +01:00
Rolf Bjarne Kvinge 32f0dacf7e [io-layer] When forking ensure the parent's data structures are updated before the child execs 2011-03-23 00:17:38 +01:00
Rolf Bjarne Kvinge 643b9dfcb0 [io-layer] Move duplicated pid validation into one method. 2011-03-23 00:16:00 +01:00
Rolf Bjarne Kvinge 8dd45937b9 [io-layer] Make the special_wait functions take an alertable flag. 2011-03-23 00:14:03 +01:00
Rolf Bjarne Kvinge 5370a9fa77 Moonlight.Build.Task: properly calculate the framework path according to the silverlight version 2011-03-22 23:47:20 +01:00
Neale Ferguson bf296e93d0 Merge branch 'master' of github.com:mono/mono 2011-03-22 17:03:59 -04:00
Neale Ferguson f5d0b7ccee Add call to mono_jit_thread_attach in prolog when wrapping native to managed 2011-03-22 16:59:29 -04:00
Marek Habersack 885455cc37 [asp.net] Fix for bug #681421. Use VirtualPathProvider.CombineVirtualPaths
The method is used by the parsers to look up dependencies, sources, controls
and master pages.
2011-03-22 21:24:59 +01:00
Marek Habersack 5f5d73fbdb [asp.net] Use List <string> instead of ArrayList to keep assembly locations in TemplateParser 2011-03-22 21:24:59 +01:00
Marek Habersack bc0cb19ea9 [asp.net] Use List <string> instead of ArrayList to keep file dependencies 2011-03-22 21:24:58 +01:00
Geoff Norton b64fb23b13 Set SO_REUSEADDR on listening sockets 2011-03-22 15:52:27 -04:00
Neale Ferguson e5ff6e6442 Fix sweep processing for big endian s390x 2011-03-22 13:40:16 -04:00
Gonzalo Paniagua Javier f6ba4f7b52 [HttpListener] Match exceptions from MS on cleanup.
When the listener is aborted or closed, we get different exceptions
	depending on whether there's a GetContext() call in progress or not.
2011-03-22 12:56:29 -04:00
Gonzalo Paniagua Javier b889755778 [HttpListener] request.Url.Original string matches MS now.
Fixes bug #681548.
2011-03-22 12:56:29 -04:00
Zoltan Varga 2819fdece5 Implement OperatingSystem.ServicePack. Fixes #681552. 2011-03-22 17:14:42 +01:00
Gonzalo Paniagua Javier ce53f9492c [threadpool] Avoid the infame assert in mono-wsq.
Fixes bug #677746.
2011-03-22 11:51:48 -04:00
Gonzalo Paniagua Javier 0b019a73d4 [HttpListener] Fix keep-alive connections
We were removing the connection in the wrong place.
	Also unbind the context in other error situations like a read failure
	after the headers are in.
2011-03-22 11:21:28 -04:00
Marek Safar 4e34c923f3 [343470] Turn an error into warning 2011-03-22 14:26:38 +00:00
Marek Safar aa886a4d0f Clean up little bit documentation tokenizer 2011-03-22 14:26:37 +00:00
Atsushi Eno 927b5d1b3b TypeConverterAttributes on XamlMember were ignored in XamlObjectWriter.
Fixed bug #681480.
2011-03-22 19:09:41 +09:00
Marek Safar 0c270ac0e1 Implement more undocumented keywords 2011-03-22 09:59:17 +00:00
Atsushi Eno 2c5b44c743 Remove unexpected CWL. 2011-03-22 15:33:48 +09:00
Atsushi Eno 3777cb3f4b Do not reject same-key-for different-clrns XmlnsDefinitionAttributes.
Fixed bug #681045.
2011-03-22 14:36:35 +09:00
Atsushi Eno 734d916ad4 return null for nested static types in XamlSchemaContext.GetXamlNamespace().
Fixed bug #680385 2nd. case.
2011-03-22 13:36:25 +09:00
Gonzalo Paniagua Javier b5574e02ea [windows] Update create-defs.pl
Library is now mono-2.0, exclude mono_gc_pthread_* from the output.
2011-03-22 00:24:42 -04:00
Gonzalo Paniagua Javier 46070a809e [windows] More build fixing action. 2011-03-22 00:09:38 -04:00
Gonzalo Paniagua Javier 5e21e5c443 [windows] Attempt to fix the build
hazard-pointer.c was not added to the solution.
2011-03-21 23:50:47 -04:00
Gonzalo Paniagua Javier a08bc21d16 [windows] Wrong LoadLibrary being called.
We were calling LoadLibraryA instead of the W version.
2011-03-21 23:22:47 -04:00
Gonzalo Paniagua Javier a198d18586 [windows] Get rid of a lot of warnings 2011-03-21 23:21:04 -04:00
Gonzalo Paniagua Javier a0dafd00ac .gitignore 2011-03-21 22:26:00 -04:00
Gonzalo Paniagua Javier 65bd419647 [windows] Avoid creating a thread in init 2011-03-21 18:14:09 -04:00
Neale Ferguson 5e0c00b7b6 Add s390x support to mono-context
Fix creation of sgen descriptors for big endian archs
2011-03-21 16:46:45 -04:00
Neale Ferguson b44da66170 Merge branch 'master' of github.com:mono/mono 2011-03-21 15:44:47 -04:00
Veerapuram Varadhan 0eed179e75 [bugfix][ado.net odbc]Fixes #676368 - make it thread safe to release
underlying statement handles and check for the validity of the same
before attempting to release them.  Fixes random crashes.
2011-03-22 00:58:08 +05:30
Zoltan Varga f4f200254f Fix the length of 'break' on ppc. 2011-03-21 20:07:24 +01:00
Ankit Jain 4742851549 [xbuild] Allow skipping target framework moniker lookup.
* tools/xbuild/xbuild/4.0/Microsoft.Common.targets
(GetReferenceAssemblyPaths): Don't look up framework directories
for $(TargetFrameworkMoniker) is $(_TargetFrameworkDirectories) is
already defined. This can be used to override moniker lookups.
2011-03-21 23:49:17 +05:30
Zoltan Varga fcd48bbc6d Implement improved support for tail-calls on ppc. Fixes #664631. 2011-03-21 18:47:44 +01:00
Marek Safar d4e263bb6f [676129] Don't add non-imported private types into inflated cache 2011-03-21 17:24:40 +00:00
Marek Safar 4129a759b6 [678625] MVAR mutator has wrong context when generic anonymous method which does not require hoisting holds generic anonymous method which does require hoisting 2011-03-21 15:49:37 +00:00
Marek Safar 456f804b38 Skip over more whitespace characters 2011-03-21 15:49:36 +00:00
Sebastien Pouliot abd7ddbd98 Add missing coreclr check on JIT optimization
* The JIT optimize the case where a LDFTN is followed by a NEWOBJ but
was missing the coreclr check (to avoid creating [SecurityCritical]
types, i.e. delegates).

Note that this does not affect moonlight since only three such user
visible types are affected and the API to use them is also marked with
[SecurityCritical]:
	System.ResolveEventHandler
	System.Threading.IOCompletionCallback
	System.UnhandledExceptionEventHandler
2011-03-21 09:59:52 -04:00
Sebastien Pouliot 6669a22163 Fix throwing exception in WebClient
* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Do not throw
in finally clause (recent gendarme rule)
2011-03-21 09:38:49 -04:00
Sebastien Pouliot 2c6995cac6 Fix API wrt FX4/SL4 API
* mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Actions/GetMemberBinder.cs:
Remove 'params' on Bind method to match FX4/SL4 API
2011-03-21 09:38:48 -04:00
Sebastien Pouliot 438681d961 Use Type.EmptyTypes instead of new Type[0]
* mcs/class/corlib/System.Reflection/MonoGenericClass.cs:
* mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Compiler/LambdaCompiler.Expressions.cs:
	Use Type.EmptyTypes instead of new Type[0]
2011-03-21 09:38:48 -04:00
Sebastien Pouliot 215eda5333 Move private TimeType struct outside TimeZoneInfo
* TimeZoneInfo.cs: Move TimeType struct outside TimeZoneInfo since the
later is located in corlib (using TypeForwardedTo) in 4.0/SL4. This adds
an extra extern type to System.Core which is not liked by peverify
2011-03-21 09:38:47 -04:00
Jérémie Laval 48e433753d Revert fcbb5717c1 and implement it differently.
The commit had the good idea but since some values of the enumeration overlap it broke the correct behavior. Instead we now turn off the extra options and use the previous way to check.
2011-03-21 13:26:52 +01:00
Jérémie Laval 0be8fab8cc Register exceptions happening in child tasks when attached on their parent. 2011-03-21 13:12:40 +01:00
Jérémie Laval b5240a78af Add a memory barrier so that exception is strictly set before Task state is changed to Faulted. 2011-03-21 12:43:54 +01:00
Jérémie Laval b90457e170 Tiny style fix 2011-03-21 12:43:54 +01:00
Geoff Norton dafa930953 Add some missing types to the mobile profile 2011-03-20 21:53:16 -04:00
Jb Evain 6df3674c69 [linker] always preserve System.MonoCQItem 2011-03-20 20:25:49 +01:00
Lucas Meijer 0c3c72ad7d some documentation on DefaultSurrogateSelector 2011-03-20 10:58:08 -04:00
Damien Diederen 3e6d4eefe8 MIPS: Do not use mips_call when the call site is to be patched
Mips_call omits the ADDIU part of the LUI/ADDIU sequence when the
target address is aligned on a 16K boundary.

Without this, mips_patch can end up patching part of the subsequent
call instruction, sentencing the VM to death by SIGILL.

Fix that by manually expanding mips_call, and using mips_load--which
doesn't optimize for size--instead of mips_load_const.

Commit contributed under the MIT/X11 license.
2011-03-19 22:23:51 +01:00
Damien Diederen 04536c3223 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.
2011-03-19 22:23:49 +01:00
Damien Diederen 66f7257617 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.
2011-03-19 22:23:48 +01:00
Damien Diederen 2b24e41634 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.
2011-03-19 22:23:46 +01:00
Damien Diederen 05ba308191 MIPS: Delete unused function glist_to_array
Commit contributed under the MIT/X11 license.
2011-03-19 22:23:45 +01:00
Damien Diederen cbbc16fa6a 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.
2011-03-19 22:23:43 +01:00
Damien Diederen d605b2a2ba 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.
2011-03-19 22:23:41 +01:00
Damien Diederen 78489703b5 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.
2011-03-19 21:59:42 +01:00
Miguel de Icaza 1eae9418dd Fix build 2011-03-18 22:13:43 -04:00
Gonzalo Paniagua Javier 27a532e574 [windows] Make the connect hack work again. 2011-03-18 19:40:59 -04:00
Gonzalo Paniagua Javier 1d877d20fc Revert "Replace old connect hack with _pipe on windows."
This reverts commit 1691837400.
2011-03-18 19:40:59 -04:00
Gonzalo Paniagua Javier 6566790a87 Revert "Remove unneeded function and use same code for win/lin"
This reverts commit 59c30ca79c.
2011-03-18 19:40:58 -04:00
Rafael Munitic 36151145b5 Must pass null to overloaded constructor instead of wrapper lambda (TaskCompletionSource can use overloaded constructors and it will pass null in function argument) 2011-03-18 18:21:56 -04:00
Rafael Munitic c4f1423792 If the function is null Wait will not get called and will not check if Future is in faulted state/raise the exception 2011-03-18 18:19:29 -04:00
Rafael Munitic fcbb5717c1 Continuation options should be checked as flags 2011-03-18 18:08:22 -04:00
Marek Safar 266915a30a Amend last commit 2011-03-18 18:45:28 +00:00
Marek Safar 58bbb51b77 [677173] Use independent clone context for probing type expression 2011-03-18 18:45:25 +00:00
Mark Sciabica e52cd5993b Fix exception handling on windows x64. 2011-03-18 18:00:04 +01:00
Marek Safar 666626c47f Remove more static references 2011-03-18 16:53:09 +00:00
Zoltan Varga bde86fe781 Use stdint.h in eglib when using VS 2010. 2011-03-18 17:36:20 +01:00
Zoltan Varga a9649c8dea Fix some warnings. 2011-03-18 17:31:32 +01:00
Zoltan Varga 00a5ab2838 Remove some internal functions from mono.def. 2011-03-18 17:13:11 +01:00
Jonathan Pryor f64825114f [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
9a1075956e.

Flush the expected output so that `make run-test` is useful.
2011-03-18 11:53:42 -04:00
Marek Safar 0d3fc480c8 Fixes variance check for interface properties with only one accessor 2011-03-18 15:38:01 +00:00
Zoltan Varga d0a8771c3a Add a missing newline. 2011-03-18 15:59:13 +01:00
Marek Safar c501ba9f87 [679530] Fixed size buffers are not subject to definite assignment checking 2011-03-18 14:32:51 +00:00
Marek Safar 29ecab06f2 CRLF conversion 2011-03-18 12:40:01 +00:00
Marek Safar 1d339e98f4 Better error message for identical type names 2011-03-18 12:39:36 +00:00
Marek Safar a7e66c9649 [678726] Dynamic inside anonoymous methods does not always mutate calling types 2011-03-18 12:39:35 +00:00
Atsushi Eno 62a5658bb2 in XamlXmlReader, read <FooType.BarMember>-style element.
Fixed bug #680385.
2011-03-18 17:23:20 +09:00
Atsushi Eno 9eade5ea54 XamlType lookup from xml name failed when [XmlnsDefinition] is involved. 2011-03-18 15:57:09 +09:00
Gonzalo Paniagua Javier 0903abc643 Fix the host name returned in GetHostEntry.
GetHostEntry() was setting the HostName to the last IP address returned
	for the requested host name.
2011-03-18 01:26:58 -04:00
Rodrigo Kumpera 6ba40a65cc Move get_hazardous_pointer to utils/hazard-pointer. 2011-03-18 01:15:08 +01:00
Rodrigo Kumpera f4e47256bb Move hazard pointer and small_id code to utils/hazard-pointer. 2011-03-18 01:15:07 +01:00
Gonzalo Paniagua Javier 28fff74003 Remove NET_2_0 2011-03-17 18:53:39 -04:00
Gonzalo Paniagua Javier 59c30ca79c Remove unneeded function and use same code for win/lin 2011-03-17 17:06:47 -04:00
Gonzalo Paniagua Javier 1691837400 Replace old connect hack with _pipe on windows. 2011-03-17 16:56:48 -04:00
Zoltan Varga 747747213b Switch to the domain of the assembly in question while executing CMD_ASSEMBLY_GET_TYPE, so referenced assemblies are found. Fixes #679586. 2011-03-17 20:06:49 +01:00
Zoltan Varga e433fcd838 Update the mcs -pkg suggestions, i.e. use gtk-sharp-2.0 instead of gtk-sharp. 2011-03-17 19:19:22 +01:00
Andreia Gaita 8891dba4d3 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
2011-03-17 17:56:23 +00:00
Gonzalo Paniagua Javier 783183c9de [asp.net] Return the correct Mime type for 304. 2011-03-17 12:49:49 -04:00
Neale Ferguson 3c7cc372ab Merge branch 'master' of github.com:mono/mono 2011-03-17 12:15:10 -04:00
Mark Probst 2239994f8b [sgen] A small Mach thread handshake fix. 2011-03-17 17:12:37 +01:00
Marek Habersack 8788b5ed8d [asp.net] Test for bug #655474 2011-03-17 16:36:50 +01:00
Marek Habersack 63750449f5 [asp.net] Fix for bug #655474. Don't assume an Uri being serialized is an absolute one 2011-03-17 16:15:23 +01:00
Marek Habersack b2a1823341 [asp.net] Test compilation fix for System.Web.Extensions 2011-03-17 16:15:15 +01:00
Marek Habersack 8a5e343c26 Removed debug noise 2011-03-17 15:41:07 +01:00
Marek Habersack d0513c1551 [asp.net] Fix for bug #678473. Do not map paths of absolute file paths when passed to HttpRequest.WriteFile 2011-03-17 15:35:02 +01:00
Marek Habersack 3bd0546e18 Merge branch 'bugfix'
* bugfix:
  [asp.net] Fix for bug #670714. Menu is rendered correctly in 4.0 now (highlighting works)
2011-03-17 15:10:07 +01:00
Marek Habersack 38c3c2bacf [asp.net] Fix for bug #670714. Menu is rendered correctly in 4.0 now (highlighting works) 2011-03-17 15:08:53 +01:00
Atsushi Eno 0f229b9c33 Fix build; remove extra !NET_2_1. 2011-03-17 21:14:12 +09:00
Marek Safar f27a079592 Fix Buildin typo 2011-03-17 11:47:45 +00:00
Marek Safar faee0e308a Update to the latest IKVM reflection 2011-03-17 11:47:44 +00:00
Atsushi Eno 962ea0c543 net.tcp Sized message with non-binarysession encoding should work now.
(Untested checkin.)
2011-03-17 20:04:12 +09:00
Atsushi Eno 05bc3906f4 Support encoding record other than binary session in TCP channel frame reader. 2011-03-17 19:26:54 +09:00
Gonzalo Paniagua Javier e94ee832da Hook ProopertyNotified event on data sources
Patch by Rasmus Toftahl Olesen that fixes bug #585577.
2011-03-17 02:22:23 -04:00
Gonzalo Paniagua Javier 2a2585844e [Threadpool] Handle multiple calls to cleanup
Don't fail if mono_thread_pool_cleanup() is called more than once.
	Fixes bug #678662.
2011-03-17 01:58:55 -04:00
Miguel de Icaza 48292550e8 More NET_2_0 define removal 2011-03-16 21:46:02 -04:00
Miguel de Icaza 081169a87d Style changes as I edit this file 2011-03-16 21:25:55 -04:00
Bret Kiefer fbb9f546dd 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
2011-03-16 21:25:55 -04:00
Atsushi Eno a932622943 Complete previous XmlNodeList revert to get it working again. 2011-03-17 10:00:42 +09:00
Marek Habersack 2e8daae7ea Merge branch 'bugfix'
* bugfix:
  [asp.net] Fix for bug #670874. Match request URLs against precompiled dictionary using absolute paths.
2011-03-17 01:52:29 +01:00
Marek Habersack 0459740493 [asp.net] Fix for bug #670874. Match request URLs against precompiled dictionary using absolute paths. 2011-03-17 01:50:35 +01:00
Zoltan Varga b21aff455f Fix the title of the Mono.Debugger.Soft assembly monodoc. 2011-03-17 01:27:34 +01:00
Marek Habersack ed85fa3ebf [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
2011-03-17 00:56:03 +01:00
Rolf Bjarne Kvinge d70f3c18f3 Revert "[io-layer] Handle process waits when SHM is disabled."
Revert "[io-layer] Make my previous patch signal safe."

This reverts commit 2bb69090d7.
This reverts commit c183437b77.

It's not working properly with Process.WaitForExit (<timeout>).
2011-03-16 23:30:00 +01:00
Gonzalo Paniagua Javier bd6032a9ec [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.
2011-03-16 16:09:49 -04:00
Gonzalo Paniagua Javier 742d477b9b [io-layer] Make my previous patch signal safe. 2011-03-16 13:44:49 -04:00
Marek Habersack 7fb33b32ef [asp.net] Fix for bug #668696. Handle recursive locks gracefully. 2011-03-16 16:18:41 +01:00
Zoltan Varga 8470312c7a Fix support for generic virtual thunks in full-aot. 2011-03-16 14:43:26 +01:00
Zoltan Varga 5c81c7cb12 Add local symbols for imt/trampolines etc. in AOT. 2011-03-16 14:43:26 +01:00
Zoltan Varga 7dda5c7303 Add a cache for virtual generic thunks to avoid freeing those created by AOT. 2011-03-16 14:43:25 +01:00
Zoltan Varga bf832a6c64 Pretty print MonoVTable in xdebug. 2011-03-16 14:43:25 +01:00
Zoltan Varga 713219d4ab Avoid calling class cctors during JITting when the same class needs initialization more than once during a method. Fixes #679467. 2011-03-16 14:43:25 +01:00
Atsushi Eno c0c0b38f2c Enable behaviors in mobile profiles for WebHttpBinding. 2011-03-16 20:54:03 +09:00
Atsushi Eno e3b5955652 Enable more behavior interface member in NET_2_1. 2011-03-16 20:51:41 +09:00
Atsushi Eno 59df21bbdb Enable more behaviors use in NET_2_1 land, toward WebHttpBinding. 2011-03-16 20:41:53 +09:00
Atsushi Eno 0a47c97c9b Implement more encodings than binary frame with dictionary, in TCP manager.
(not known to not regress in nunit tests..)
2011-03-16 20:32:21 +09:00
Atsushi Eno a23512a074 Fix MessageID element name in discovery contracts. 2011-03-16 20:30:30 +09:00
Koushik Dutta 98da8a2fc6 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.)
2011-03-16 10:59:16 +01:00
Jérémie Laval 295414eec5 Correctly implement enumerating CyclicDequeue.
Fix #679174
2011-03-16 09:31:29 +01:00
Atsushi Eno e60ff5ff90 Add endpoint behavior support in NET_2_1, which involved not a few additions. 2011-03-16 17:20:00 +09:00
Atsushi Eno 60343749d8 Revert XPathNodeIteratorNodeListIterator2-based iterator.
Fixed #679425, but it may regress since no test case is provided.
2011-03-16 16:40:48 +09:00
Gonzalo Paniagua Javier 34c0e89ebd Fix g_get_charset for windows.
Patch by Horst Kakuschke that fixes bug #660412.
2011-03-16 01:59:40 -04:00
Gonzalo Paniagua Javier 7d8ec1155b [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.
2011-03-16 01:51:31 -04:00
Miguel de Icaza 31c068ca9e 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.
2011-03-16 01:53:23 -04:00
Marek Habersack a0406b668a Compilation fix 2011-03-16 02:31:00 +01:00
Jason Cohen d83f0b69d2 [asp.net] Fix for bug #678705. Menu list rendered properly closes the list now. 2011-03-16 02:30:11 +01:00
Bassam Tabbara 95525291bf [asp.net] Fix for bug #667513. Implement support for PathInfo in Route.GetRouteData 2011-03-16 01:10:55 +01:00
Jb Evain f0e971ec02 Handle conversion to System.Enum 2011-03-15 22:19:16 +01:00
Jb Evain daf322c099 Add test for bug ug #678897 2011-03-15 22:19:09 +01:00
Gonzalo Paniagua Javier 477447843d [Semaphore] Remove warnings 2011-03-15 16:28:35 -04:00
Rodrigo Kumpera 0a650c058d Reintroduce support for orig_ex_ctx 2011-03-15 18:45:56 +01:00
Rodrigo Kumpera 35a63aa6c3 Fix signature 2011-03-15 18:43:38 +01:00
Rodrigo Kumpera 8e3f5d7d4b 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.
2011-03-15 18:21:53 +01:00
Veerapuram Varadhan 094404cd57 [ado.net]fixes 672113 - Keep a copy of columns array in constraints than
a reference
2011-03-15 22:47:23 +05:30
Rodrigo Kumpera 3a160a160d 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.
2011-03-15 17:31:24 +01:00
Rodrigo Kumpera 04bed5c57c 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.
2011-03-15 17:06:18 +01:00
Rodrigo Kumpera e835d12389 Store the mach port on SgenThreadInfo 2011-03-15 17:06:17 +01:00
Jackson Harper 921a3a451b Add prefix to cref link, fixes link breakage in Kipunji. 2011-03-15 12:03:47 -04:00
Atsushi Eno 212b1ef847 avoid NRE on non-binary encoding use in TcpTransport. 2011-03-15 21:01:31 +09:00
Gonzalo Paniagua Javier 5822e1f327 Appdomain refs can be NULL in pop_refs
This fixes a bunch of test I broke with my previoius commit.
2011-03-14 22:50:58 -04:00
Kornél Pál 5a634b2487 [asp.net] Fix for bug #650695. Implements the System.Web.{HttpNotFoundHandler,HttpNotImplementedHandler} classes. 2011-03-14 23:46:51 +01:00
Gonzalo Paniagua Javier 79a054063a [HttpListener] Avoid contention
-Lock-free reads from registered listeners.
	-Don't register the context until *all* the setup steps are done.
2011-03-14 17:59:51 -04:00
Lucas Meijer 3937ca55e7 Implmement a private BinaryFormatter.DefaultSurrogateSelector, which enables embedders who want to make a sandbox, to specify a default surrogate selector, which is required to get System.Serialization be able to operate within a CoreCLR environment. 2011-03-14 17:33:04 -04:00
Geoff Norton 98f4834a34 Fix the mobile build 2011-03-14 16:11:42 -04:00
Jb Evain 31d4e41b63 Revert "Fix the MDr and MT build"
This reverts commit b5c472b320.

We can use the Unsafe optimized variant in mobile.
2011-03-14 21:07:24 +01:00
Geoff Norton 271e09b84c Fix the mobile build 2011-03-14 15:43:51 -04:00
Mark Probst c12380c4b9 Merge branch 'sgen-disable-gc' 2011-03-14 19:22:30 +01:00
Mark Probst be796b9980 [sgen] Debug options for disabling minor and/or major collection. 2011-03-14 19:21:17 +01:00
Mark Probst b35066da9c [sgen] Scan thread data job for the nursery collection. 2011-03-14 19:11:13 +01:00
Mark Probst bb3a582c1e [sgen] Scan from registered roots job for nursery. 2011-03-14 19:11:12 +01:00
Gonzalo Paniagua Javier a17d4e7674 [threads] appdomain_refs push/pop speedup
Replace the GSList with an array to avoid malloc/free on every push/pop
	call.
2011-03-14 14:00:48 -04:00
Jb Evain b5c472b320 Fix the MDr and MT build 2011-03-14 17:20:56 +01:00
Atsushi Eno 208fdd9a47 Enable DTD attdecl processing in mobile profile. 2011-03-15 00:44:43 +09:00
Jérémie Laval f6985b47a6 Don't throw an exception when task array is empty in WaitAll and throw in case a null element is encountered in it.
Fix for #679183
2011-03-14 12:47:53 +01:00
Gonzalo Paniagua Javier 5372c31b60 Hush warnings. 2011-03-14 01:57:30 -04:00
Peter Gerbrandt fe6910a0a8 Apply DataContractSerializerOperationBehavior. 2011-03-14 12:16:25 +09:00
Gonzalo Paniagua Javier f49d7765fd Add new ignore file. 2011-03-13 19:41:59 -04:00
Zoltan Varga e46da9a9af Add a function to add a nursery fragment. 2011-03-13 11:40:43 +01:00
Zoltan Varga c6498c4f40 Fix a warning. 2011-03-12 22:22:39 +01:00
Zoltan Varga 7624250a49 Rename a few sgen variables/functions to better describe what they do. 2011-03-12 20:55:14 +01:00
Sebastien Pouliot f6f6d3e0e5 Fix mono/mcs build for Moonlight profile
* corlib/System.Threading/Timer.cs:
* System/System.Net.Sockets/Socket_2_1.cs:
	Use API available under Moonlight when MOONLIGHT is defined
2011-03-11 16:20:03 -05:00
Gonzalo Paniagua Javier 2343162928 Fix To2047 2011-03-11 16:17:12 -05:00
Marek Safar a8ed7dd57a Build dist compiler with basic profile only (the build extension will come sometime later) 2011-03-11 21:04:14 +00:00
Gonzalo Paniagua Javier eaadbeef26 Cache NewLine per AppDomain. 2011-03-11 12:13:19 -05:00
Marek Safar f154a47eb9 Intern more string values during parsing 2011-03-11 15:50:26 +00:00
Ankit Jain 1288c84cd7 [xbuild] Microsoft.Common.targets - import Before/After targets files.
With this, Microsoft.Common.targets will import
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore\*
at the beginning of the file and
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter\*
at the end of the file.

So, this would import all files from (eg.):
$prefix/lib/mono/xbuild/4.0/Microsoft.Common.targets/ImportBefore/

This can be disabled by setting the bool properties -
$(ImportByWildcardBeforeMicrosoftCommonTargets) and
$(ImportByWildcardAfterMicrosoftCommonTargets).
2011-03-11 18:46:20 +05:30
Ankit Jain 17f10155f8 [xbuild] Throw ArgumentNullException if target name is null 2011-03-11 18:46:20 +05:30
Ankit Jain 07c1cecad5 [xbuild] Emit list of projects in the .sln.proj
Emit list of projects in the solution as @(ProjectReference) items
in the generated .sln.proj file. This would be useful for extending
solution builds.
2011-03-11 18:46:20 +05:30
Ankit Jain 1b25957fbf [xbuild] Don't report Imports ignored because of false conditions. 2011-03-11 18:46:20 +05:30
Ankit Jain 1ef3e893bf [xbuild] xbuild/Main.cs - remove unnecessary catch/throw. 2011-03-11 18:46:19 +05:30
Ankit Jain faf1e90312 [xbuild] Set ProjectFile and TargetName metadata on target outputs.
Set "MSBuildProjectFile" and "MSBuildTargetName" metadata on target outputs.
2011-03-11 18:46:19 +05:30
Ankit Jain 03f0817992 [xbuild] Handle unknown exceptions.
Re-throw any unknown exceptions.
* Project.cs: Log the exception, doing it here also, so that direct
project.Build(..) call failures also get logged.
* Engine.cs: Log the unknown exception only if the build is running.
This allows for the case when Project.Build caught it and ended the
build.
2011-03-11 18:46:19 +05:30
Ankit Jain 9d28791c5a [xbuild] Function names are case insensitive. 2011-03-11 18:46:19 +05:30
Ankit Jain 557c65a64b [xbuild] Evaluate Import with MSBuildThisFile* properties set. 2011-03-11 18:46:18 +05:30
Marek Safar 43c9076ee0 Add another local quick test target 2011-03-11 12:48:52 +00:00
Marek Safar 0f908eee6d Reduce scope for escaped identifier to only necessary attribute section 2011-03-11 12:39:55 +00:00
Marek Safar 30dab5cac2 Simple member context is enough when checking member accessibility (removes misused FakeInternalType) 2011-03-11 11:09:33 +00:00
Marek Safar 1536ae1a4d Finally remove RootContext.ToplevelTypes hacking from GlobalAttribute (what a joy!) 2011-03-11 11:09:33 +00:00
Marek Safar bd82de4f0a Verify namespace usings without global static state (fixes few hard to track bugs) 2011-03-11 11:09:33 +00:00
Marek Safar f3ac37d4b2 Remove wrong using 2011-03-11 11:09:32 +00:00
Gonzalo Paniagua Javier 202e0a1a78 [HttpListener] Paranoid cleanup 2011-03-11 01:53:45 -05:00
Gonzalo Paniagua Javier d420dafa92 [HttpListener] Plug leak. 2011-03-11 01:46:04 -05:00
Gonzalo Paniagua Javier d77eb5d90b Support NLS when opening assemblies on windows.
Patch by Horst Kakuschke that fixes bug #673793.
2011-03-10 22:14:58 -05:00
Gonzalo Paniagua Javier cbbf8aac2d Test for both Set-Cookie and Set-Cookie2 2011-03-10 19:05:27 -05:00
Gonzalo Paniagua Javier e4e0cb670f [HttpWebRequest] Only uppercase known methods 2011-03-10 19:05:26 -05:00
Gonzalo Paniagua Javier 36d63134e5 [Socket] Remove more auto-delegates 2011-03-10 19:05:17 -05:00
Gonzalo Paniagua Javier a2cbc2598e [Timer] Use static CB for invoking timer callbacks. 2011-03-10 19:05:14 -05:00
Gonzalo Paniagua Javier cc3d2b03ed [Socket] Minimize allocations of delegates 2011-03-10 19:05:13 -05:00
Gonzalo Paniagua Javier ca0b488707 [HttpListener] Avoid blocking in FlushInput 2011-03-10 19:04:34 -05:00
Geoff Norton 1e49965e94 Fix ARCH_STORE_REGS on arm 2011-03-10 16:28:59 -05:00
Rodrigo Kumpera c8a98eb84f Export mono_raise_exception_with_ctx to metadata. 2011-03-10 22:26:11 +01:00
Rodrigo Kumpera 25e2b76780 Fix ia64 mono-context.h 2011-03-10 21:17:44 +01:00
Rodrigo Kumpera 19621c6a01 Remote all traces of old style unwinding from mini. 2011-03-10 21:16:07 +01:00
Rodrigo Kumpera 385f728634 Export new style unwinding functions 2011-03-10 21:16:06 +01:00
Rodrigo Kumpera 3a1391301b Unify EH callbacks.
* object-internals.h: New callback struct
	MonoRuntimeExceptionHandlingCallbacks for
	raising and unwinding callbacks.

	* loader.c:
	* object.c:
	* mini-exceptions.c: Move to the new struct.
2011-03-10 21:16:06 +01:00
Rodrigo Kumpera bfd5a928c9 Move EH handler to mono_exceptions_init 2011-03-10 21:16:05 +01:00
Sebastien Pouliot dd7c825425 Fix API compatibility with SL4
* BinaryReader.cs:
* BinaryWriter.cs:
	Adding || MOONLIGHT since Dispose (new in FX4) is also exposed
	in SL4
2011-03-10 14:33:32 -05:00
Sebastien Pouliot 4eedff1487 Fix parameter name mismatches between Moonlight and Silverlight 2011-03-10 14:33:31 -05:00
Sebastien Pouliot 7e6233e011 Add some missing API into Moonlight
* System.Runtime.Versioning/ComponentGuaranteesAttribute.cs:
* System.Runtime.Versioning/ComponentGuaranteesOptions.cs:
	Add || MOONLIGHT

* System.Security.Permissions/SecurityAction.cs
* System/ContextStaticAttribute.cs
* System/ExecutionEngineException.cs
	Make sure the [Obsolete] attributes are present in moonlight

* moonlight_raw_corlib.dll.sources: Include both System.Runtime.Versioning
ComponentGuarantees[Attribute|Options] into moonlight build
2011-03-10 14:33:31 -05:00
Zoltan Varga 4bb6db5f04 Use LLVM_CHECK_VERSION() in one place to fix a build failure. 2011-03-10 20:50:44 +01:00
Rodrigo Kumpera f4c2858af0 Move MonoContext to mono-context for ia64 2011-03-10 19:46:32 +01:00
Rodrigo Kumpera e534b52ce7 Move MonoContext to mono-context for sparc 2011-03-10 19:41:30 +01:00
Rodrigo Kumpera cb86279a08 Move MonoContext to mono-context for ppc 2011-03-10 19:38:24 +01:00
Rodrigo Kumpera 26076c046f dist new file 2011-03-10 18:28:18 +01:00
Rodrigo Kumpera 47c937d3c4 Fix some opcodes dreg type. 2011-03-10 18:28:17 +01:00
Zoltan Varga e2b39c94f9 Fix a warning. 2011-03-10 17:31:15 +01:00
Duane Wandless 1809dc9900 GetApplicableRule returns NULL in TimeZoneInfo.cs yet the code does not always handle a NULL return value.
This change fixes this issue and allows timezones like China Standard Time to work.
2011-03-10 10:56:08 -05:00
Atsushi Eno e94b0eb15f Result-preserving node list while not performance-harmful until node removal.
Node removal while iterating should be prohibited as documented in MSDN though.
2011-03-10 22:40:44 +09:00
Rodrigo Kumpera fa745f469c Fix a warning 2011-03-10 13:13:03 +01:00
Rodrigo Kumpera 74506dfecf mono_gc_alloc_mature must check if the object needs to be registered for finalization 2011-03-10 13:11:01 +01:00
Lucas Meijer 96c100ae37 Implement signal chaining for windows. Useful for letting custom crash reporters be able to deal with native crashes, without mono eating the native exception while checking to see if it was caused by a managed null dereference in jitted code or not. provided under MIT X11 license. 2011-03-10 12:07:25 +01:00
Rodrigo Kumpera dad81542b6 Cleanup and document the new unwind stuff a bit.
* mini-exceptions.c: Document the new unwind stuff a bit
	and make the _with_* variants have saner behavior when no
	context is passed by capturing the current one.
2011-03-10 11:58:18 +01:00
Rodrigo Kumpera 3f8079edf3 Replace mono_walk_stack with mono_stack_walk_simple.
* mini-exceptions.c: Kill the one zillion arguments
	mono_walk_stack. Now you are supposed to use either
	_with_context or _with_state versions if you need
	to unwind from a non cannonical starting point.
2011-03-10 11:58:17 +01:00
Rodrigo Kumpera 06ff2031ea Cleanup sdb to use the new unwind state code.
* debugger-agent.c: Instead of having tons
	of fields for MonoContext, domain and lmf
	simply use MonoThreadUnwindState. This simplifies
	code dealing with unwinding remote threads.
2011-03-10 11:58:17 +01:00
Rodrigo Kumpera 970e4c6c09 Add mono_thread_state_init_from_monoctx 2011-03-10 11:58:16 +01:00
Marek Safar 0d9c6bad02 Clean up few misused DeclSpace(s) 2011-03-10 09:21:57 +00:00
Marek Safar 53e1708430 Decorate more initialized static fields with readonly 2011-03-10 09:21:57 +00:00
Marek Safar 94492e8dce Move more module specific caches to ModuleContainer 2011-03-10 09:21:57 +00:00
Gonzalo Paniagua Javier 87ee560127 [HttpListener] Memory use reductions 2011-03-10 00:44:56 -05:00
Atsushi Eno d7796bf493 In some collection case, xsi:type is explicitly written. Try to copy that behavior. 2011-03-10 14:33:02 +09:00
Zoltan Varga 164082e0e8 Fix a warning. 2011-03-10 01:10:41 +01:00
Zoltan Varga 2b5d4cb796 Use mono_field_get_type () in one place to fix a crash. Fixes #678269. 2011-03-10 01:10:07 +01:00
Zoltan Varga a6286f5c51 Mark threads created when calling from native code into the runtime as background threads. Fixes #678164. 2011-03-10 01:00:43 +01:00
Levi Bard 5cf3c0297b [Fix] Make path building on windows behave the same as stock mono+glib.
* src/gpath.c: Make path building on windows behave the same as stock mono+glib.

License: MIT/X11
2011-03-09 16:37:45 -05:00
Gonzalo Paniagua Javier eda82fb358 IO threads have their own name 2011-03-09 16:14:03 -05:00
Rodrigo Kumpera e8e3c7ce91 First pass removing the old unwinding code.
* mini.c: Move unwinding callback initialization
	to mini-exceptions.c

	* mini-exceptions.c: Remove mono_jit_walk_stack_from_ctx.
2011-03-09 21:47:01 +01:00
Rodrigo Kumpera 3833963d8f Introduce MonoThreadUnwindState and a bunch overloads to mono_walk_stack.
* mono-stack-unwinding.h: Add MonoThreadUnwindState struct
	that holds all state necessary to unwind a given thread.

	* mini-exceptions.c: Add a few variants of mono_walk_stack
	to simplify its usage. Added code to handle the new struct.
2011-03-09 21:47:01 +01:00
Rodrigo Kumpera 80e90cdb18 Move some stack unwinding defines to utils 2011-03-09 21:47:00 +01:00
Gonzalo Paniagua Javier a07f6b9e74 Some changes to the threadpool
-Reduce stack size for IO threads.
	-Create threads on demand up to min_threads, then throttle.
2011-03-09 15:26:50 -05:00
Ankit Jain 20a42782e9 [xbuild] Fix test on windows.
AssignTargetPathTest.TestLink : Fix test on windows
2011-03-09 23:15:33 +05:30
Ankit Jain 22d7235850 [xbuild] Clean up test logs.
Remove unnecessary debug spew for tests that pass.
2011-03-09 23:15:32 +05:30
Atsushi Eno b1d261b975 Some attempts to make KnownTypeCollection parallel access safe. 2011-03-09 22:50:25 +09:00
Atsushi Eno 1f1cab23ba Remove old windows threading workaround. 2011-03-09 21:17:59 +09:00
Rolf Bjarne Kvinge 55b3edaaa0 Microsoft.Build.Tasks: vbnc2 must be used for the 2.0 profile 2011-03-09 12:18:41 +01:00
Marek Safar 30d59c1f33 Checking array elements is done using ImplicitReferenceConversionExists 2011-03-09 08:17:31 +00:00
Marek Safar bf9519f44b Remove more temporary expressions from probing converts 2011-03-09 08:17:30 +00:00
Marek Safar 8f0569eae3 Don't allocate conversion expression for probing implicit type-parameter conversion 2011-03-09 08:17:30 +00:00
Marek Safar 934f5cf7f8 Clean up more static state 2011-03-09 08:17:30 +00:00
Marek Safar c463b8f870 Remove more static stuff 2011-03-09 08:17:29 +00:00
Atsushi Eno 7c23f96f71 Auto detect BOM-less utf-16 and utf-32. Fixed bug #674580. 2011-03-09 15:56:16 +09:00
Peter Gerbrandt 707b30ed76 Implement support for QNameIndex (0xBC) in attribute nodes. 2011-03-09 13:59:15 +09:00
Atsushi Eno 1cc350f886 Temporarily disable InternalsVisibleTo(System.ServiceModel).
until mcs (in 2-10 or later release) fixes the issue.
2011-03-09 10:18:42 +09:00
Gonzalo Paniagua Javier 1e7c592026 Avoid null refs when capacity set to 0
This fixes bug #676060.
2011-03-08 18:05:46 -05:00
Miguel de Icaza 4a7c594eb1 [System.Json] Fix loader.
The current loader failed with some Json strings due to the implementation
of the BufferedStreamReader.   Removed that implementation completely,
and instead depend on the StreamReader to do the actual BOM detection.

This removes the JavaScriptObjectDeserializer.cs file
2011-03-08 17:54:28 -05:00
Miguel de Icaza 56aa85297c Make print take an object 2011-03-08 17:54:28 -05:00
Gonzalo Paniagua Javier 75c12dbd2c Turn the method to upper case.
Fixes bug #675731.
2011-03-08 17:35:35 -05:00
joncham af6832e8ca Pass -w to the diff to avoid CR/LF issues. 2011-03-08 17:19:28 -05:00
Sebastien Pouliot 0d111280e5 Reduce peverify errors on moonlight tuned assemblies
* InjectSecurityAttributes.cs: When (and only when) we remove the
security declarations we must set HasSecurity to false. This greatly
reduce peverify errors on the moonlight tuned assemblies
2011-03-08 15:20:46 -05:00
Gonzalo Paniagua Javier 1a2646196e No need to create an extra instance of Worker. 2011-03-08 12:35:17 -05:00
Rodrigo Kumpera c6c67802d6 Fix windows build 2011-03-08 17:33:50 +01:00
Atsushi Eno d0bae87e5f In XNodeWriter, extra xmlns was written and often rejected for duplicate decls.
Fixed bug #675620.
2011-03-08 23:52:26 +09:00
Marek Safar dff6967969 [677550] Fixes fixed buffer regressions 2011-03-08 14:40:44 +00:00
Marek Safar 11abece42b Enhance the check for internal protected members used via a qualifier 2011-03-08 14:10:17 +00:00
Marek Safar 47143ea89d Fix invalid il body for few tests 2011-03-08 14:10:17 +00:00
Marek Safar d9d46105d1 Fixes build 2011-03-08 14:10:17 +00:00
Marek Safar 2ba6a8925b Fixed few unit tests build issues 2011-03-08 14:10:16 +00:00
Atsushi Eno 96ca8b4b42 More xml output fixes in XmlSyndicationContent and SydicationElementExtension.
They have couple of complicated xml outputs in both GetReader(AtContent)
and Write(Contents)To methods... check new tests for details.
2011-03-08 22:04:18 +09:00
Ankit Jain a1e8d3de9a [xbuild] Implement FileLogger . Fix #676650 .
* FileLogger.cs: Implement

Add corresponding command line args for file loggers.
Update man page.
2011-03-08 18:12:30 +05:30
Ankit Jain cc90ce0cf4 [xbuild] ConsoleLogger - parse params only on Initialize. 2011-03-08 18:12:29 +05:30
Zoltan Varga 54a83757d5 Use ip as scratch reg when saving the LMF on arm, instead of r2. 2011-03-08 13:28:31 +01:00
Zoltan Varga 3522955b60 Refactor the LMF save/restore code into separate functions on ARM, and optimize it a little. 2011-03-08 12:59:21 +01:00
Zoltan Varga ec7ac253ef Fix some warnings. 2011-03-08 12:15:21 +01:00
Zoltan Varga 5aec35caaa Get rid of mono_allocate_stack_slots, since all callers use the _full version. 2011-03-08 12:15:20 +01:00
Atsushi Eno eafe520c4b Couple of fixes around XmlSyndicationContent.GetReaderAtContent().
- The returned XmlReader is positioned at the beginning of the element.
- XmlSyndicationContent.GetReaderAtContent() returns XmlReader that begins
  with the "wrapper" which is dummy Atom 1.0 content element.
2011-03-08 18:56:00 +09:00
Marek Safar 56751f1743 Simplify checking for few more special compiler types 2011-03-08 08:44:05 +00:00
Marek Safar 4ce2838b7c Clean up predefined members caching 2011-03-08 08:44:05 +00:00
Atsushi Eno 5dc4ecd8e8 Remove wrong buffer size check in XmlTextReader.ReadChrs(). 2011-03-08 15:26:51 +09:00
Atsushi Eno 0aab2d47c7 Make sure to call MoveToContent() to correctly determine node type.
Fix "Dictionary deserialization from xml with indent" issue.
2011-03-08 14:52:04 +09:00
Atsushi Eno c3cb165080 DateTimeOffset child elements have fixed namespace. 2011-03-08 11:01:57 +09:00
Mark Probst 8abd8c646c Merge branch 'sgen-job-distribution' 2011-03-08 01:32:42 +01:00
Mark Probst b04dc7f8d6 [sgen] Store the destination's vtable before CASing the forwarding pointer.
Sometimes the binary protocol crashed because we were not doing this
before.  It should not be strictly necessary if the binary protocol
is turned off, though.
2011-03-08 01:02:44 +01:00
Mark Probst 33f087d732 [sgen] Make scan from remsets a job. 2011-03-08 01:02:44 +01:00
Mark Probst 6823ebbca1 [sgen] Parallel nursery collection.
Do parallel nursery collections when using the parallel
Mark&Sweep collector.
2011-03-08 01:02:44 +01:00
Mark Probst 7623d0b88f [sgen] Scanning of finalizer entries in a job. 2011-03-08 01:02:43 +01:00
Mark Probst be6d895b8e [sgen] Job for scan thread data. 2011-03-08 01:02:43 +01:00
Mark Probst 7be7cb2136 [sgen] Jobs for scanning from registered roots. 2011-03-08 01:02:42 +01:00
Mark Probst 17368ef6c4 [sgen] Remove an incorrect assertion in the workers code and explain. 2011-03-08 01:02:41 +01:00
Mark Probst 3b1ad013db [sgen] Job queue.
We want to make worker threads not only process gray objects but
do other jobs as well, like scanning roots or remsets.  To that end
we need a job distribution system.
2011-03-08 01:02:40 +01:00
Mark Probst b79f8933b8 [sgen] Separate step for starting marking in workers. 2011-03-08 01:02:40 +01:00
Gonzalo Paniagua Javier bc1943e10d Host name is the same when querying localhost
The host name is set to the queried host name when it is the local
	machine name. Fixes bug #676260.
2011-03-07 18:50:07 -05:00
Neale Ferguson 033c498972 Merge branch 'master' of github.com:mono/mono 2011-03-07 17:51:00 -05:00
Sebastien Pouliot c3f7ec7890 Bring missing types into Moonlight 4
* System.Diagnostics.Contracts.Internal/ContractHelper.cs:
* System.Diagnostics.Contracts/Contract.cs:
* System.Diagnostics.Contracts/ContractException.cs:
* System.Diagnostics.Contracts/ContractFailedEventArgs.cs:
* System.Diagnostics.Contracts/ContractShouldAssertException.cs:
* System.Runtime.ExceptionServices/HandleProcessCorruptedStateExceptionsAttribute.cs:
	Add || MOONLIGHT to include the types in Moonlight 4

* moonlight_raw_corlib.dll.sources: Bring missing types into Moonlight 4
2011-03-07 16:19:24 -05:00
Andrew Jorgensen b8cb148b8d Fix up devel packages in spec file 2011-03-07 13:04:08 -07:00
Zoltan Varga 682d244754 Implement some DynamicILInfo methods. 2011-03-07 20:19:04 +01:00
Zoltan Varga 84792da65d Fix the previous change. 2011-03-07 18:03:38 +01:00
Zoltan Varga 54fc8e37d2 Fix out-of-tree builds. 2011-03-07 18:00:53 +01:00
Atsushi Eno 651c8b3501 Empty element is valid here in silverlight secrity element. 2011-03-08 01:49:33 +09:00
Atsushi Eno 38c9b6b53a XmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.
Fixed bug #676020.
2011-03-08 00:47:41 +09:00
Atsushi Eno 31fc083ac9 Forgot to add the actual new client proxy. 2011-03-08 00:41:41 +09:00
Juho Vähä-Herttua b4753cd752 2011-02-17 Juho Vähä-Herttua <[email protected]>
* CngAlgorithm.cs, CngAlgorithmGroup.cs: Change the private
        variable name to match .NET when the class is serialized
        * CngKeyBlobFormat.cs: New.
        * CngKeyCreationParameters.cs: New.
        * CngProperty.cs: New.
        * CngPropertyCollection.cs: New.
        * CngProvider.cs: New.
        * CngUIPolicy.cs: New.
2011-03-07 08:51:09 -05:00
Zoltan Varga 152ce9a8c4 Avoid an assert when returning nullable null's from sdb invokes. Fixes #676587. 2011-03-07 12:01:40 +01:00
Marek Safar 999d807099 Clean up handling of few special runtime types 2011-03-07 08:21:46 +00:00
Marek Safar 012842cedf Clean up null-literal underlying type 2011-03-07 08:21:46 +00:00
Atsushi Eno 52f34ebe64 Set ProhibitDtd = false on uri-based Load(). Fixed bug #676009. 2011-03-07 17:07:37 +09:00
Atsushi Eno 94c253cdbe Couple of fixed to support new DateTimeOffset serialization in .NET WCF. 2011-03-07 16:45:33 +09:00
Jonathan Pryor 419ce87355 [Mono.Options] Add option header support.
Option headers can be provided via OptionSet.Add(string), and allows
forgoing the use of a separate mechanism to provide contextual output.

For example, one used to do this:

	bool show_help = false;
	new OptionSet  {
		// ...
		{ "help|h|?", v => show_help = v != null },
	}.Parse (args);

	if (show_help) {
		Console.WriteLine ("usage: sample-app ARGS");
		p.WriteOptionDescriptions (Console.Out);
		// ...
	}

Using the new header support, the "contextual" output can be merged
with the option specification:

	bool show_help = false;
	new OptionSet {
		"usage: sample-app ARGS",
		{ "help|h|?", v => show_help = v != null },
	}.Parse (args);

	if (show_help)
		p.WriteOptionDescriptions (Console.Out);

Furthermore, headers can be provided "inline", thus serving as a
mechanism to categorize options:

	// mcs options
	var p = new OptionSet {
		"Mono C# compiler, Copyright 2001 - 2011 Novell, Inc.",
		"mcs [options] source-files",
		// ...
		"Resources:",
		{ "linkresource|linkres:", v => /* ... */ },
		// ...
		"",
		"Options can be of the form -option or /option",
	};
2011-03-07 01:59:44 -05:00
Jonathan Pryor 816fb2e0ff Flush documentation.
No "real" changes; just properties going from "set; get;" to
"get; set;" (why did that change?!) and updating the included
updated sample sources into the docs (s/NDesk.Options/Mono.Options/g).
2011-03-07 01:59:43 -05:00
Jonathan Pryor 61b35c6ca3 Update example output before running mdoc.
The example output is included into the mdoc-updated documentation;
thus, we want to have updated (correct) output before we run
mdoc-update.

We do this by making $(the_libir)/.doc-stamp target depend upon
$(DOC_EXAMPLES_OUTPUT) instead of the doc-update-local target.
2011-03-07 01:59:43 -05:00
Jonathan Pryor edf3bafd37 Do not store binary files.
The `doc-update-local` target will create these as needed.
2011-03-07 01:59:42 -05:00
Jonathan Pryor 1ae4e16c36 Distribute Mono.Options examples source, input, output. 2011-03-07 01:59:42 -05:00
Jonathan Pryor 6462e5b4f8 Remove unnecessary file. 2011-03-07 01:59:41 -05:00
Jonathan Pryor bfc45c414f Add support for executing samples for documentation output.
The Documentation/en/examples/*.in files are command-lines for the
corresponding Documentation/en/examples/*.exe files, and the
stdout & stderr is recorded from these executions and appended
to Documentation/en/examples/*.txt. This allows the actual
documentation in Documentation/en/*/*.xml to include the *.txt
and *.cs files.
2011-03-07 01:59:41 -05:00
Atsushi Eno 32ea0e7b89 Forgot to add test xml files. 2011-03-07 13:59:22 +09:00
Atsushi Eno 627c31320f Fixed xsd derived simpleType cast failures on uint. Fixed bug #676993. 2011-03-07 13:56:37 +09:00
Peter Gerbrandt bb22b06f22 Support for the same interface as service contract and as callback contract. 2011-03-07 12:51:19 +09:00
Atsushi Eno 1e4407cd84 Replace SRE-based client proxy generator with RealProxy.
Now PE verified workaround should be unnecessary.
2011-03-07 12:29:39 +09:00
Zoltan Varga 7d84a92c6a Refactor the LMF creation code into separate functions on amd64. Create a variable for the LMF instead of allocating space for it in mono_arch_allocate_vars (). 2011-03-06 18:56:59 +01:00
Zoltan Varga 9aefd12e7f Don't register emulation for CEE_ opcodes, its not needed. 2011-03-06 11:30:00 +01:00
Zoltan Varga 37bea1f25d Move MonoContext defines to mono-context.h on arm. 2011-03-05 22:36:05 +01:00
Zoltan Varga eba6a26321 Fix arm build. 2011-03-05 22:20:48 +01:00
Rodrigo Kumpera bfa1c9041a Fix the win32 build 2011-03-04 23:06:33 +01:00
Zoltan Varga 20c19c15b3 Speed up suspending when running under the loader lock. 2011-03-04 19:28:00 +01:00
Zoltan Varga a9095d6d2a Install a mono-sgen-gdb.py as well. 2011-03-04 17:33:07 +01:00
Zoltan Varga 9342e7d1d4 Log all sdb log messages to the log file instead of stdout. 2011-03-04 12:50:46 +01:00
Marek Safar 422d33dad2 Wiring of BuildinType 2011-03-04 11:08:57 +00:00
Marek Safar 1706d5ea39 Unify predefined type user operators calling 2011-03-04 11:08:57 +00:00
Marek Safar c63d7e85be Wiring of BuildinType 2011-03-04 11:08:56 +00:00
Ankit Jain e9e6f95822 [xbuild] LogExtensions.LogError - disambiguate.
* LogExtensions.cs(LogError): Rename the 'filename' overload to ..
(LogErrorWithFilename): .. this.
* Engine.cs: Track api changes.
2011-03-04 04:28:38 +05:30
Geoff Norton f70afd2b76 When running in a linked environment, this file might not exist 2011-03-03 17:55:17 -05:00
Ankit Jain 8e1b1dc609 [xbuild] Set @(CollectedBuildOutput) for projects build from .sln . 2011-03-04 04:18:29 +05:30
Ankit Jain f29e8e4501 [xbuild] Add missing api for Target.
* Target.cs (Outputs): Add new public property by this name. And rename
old one to ..
(OutputsAsITaskItems): .. this.
2011-03-04 04:18:29 +05:30
Rodrigo Kumpera 7a10362a4f Checking if a type is a reference must be gsharing aware.
*  mini-generic-sharing.c: Add mini_type_is_reference
	that returns true for VAR and MVAR if compiling under
	gsharing.

	* method-to-ir.c: Replace usage of mono_type_is_reference
	with mini_type_is_reference.

	* mini-gc.c: Ditto.

	* mini.c: Ditto.

	With the old behavior, the JIT could interpret a (M)VAR
	variable and not been a reference type. This is an issue
	for sgen as we could forgot to emit some write barriers
	or generate the proper stack map.
2011-03-03 23:09:07 +01:00
Ankit Jain 8936bf9668 [xbuild] Fix bug #676671. Raise AnyEvent . 2011-03-04 01:11:26 +05:30
Ankit Jain 9aba3ef7eb [xbuild] Add hooks for extending .sln builds.
Add hooks in the .sln.proj generated from .sln files.

1. It imports
   "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportBefore\*"
   and
   "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportAfter\*"
   This is done only in case of 4.0 projects, as imports with wildcard
   is a 4.0 feature.

2. And it imports before.Foo.sln.targets and after.Foo.sln.targets from
   the same dir as the .sln file.
2011-03-04 00:50:31 +05:30
Ankit Jain 2237d8e2fa [xbuild] Update man page with info about FrameworkList.xml 2011-03-04 00:50:31 +05:30
Ankit Jain 613b532987 [xbuild] Add support for wildcards in Import.
With 4.0 profile, <Import ..> can have wildcards. This works correctly
with our multiple MSBuildExtensionsPath also.

If the import references $(MSBuildExtensionsPath) property, then the
each extension path is used to resolve the import, and the search
stop as soon as an import is found.

If such an import uses wildcard, then the search stops at the
extension path in which *atleast one* file got imported.
And the import fails if any invalid project file is encountered.

This commit also heavily refactors the Import code to simplify
in the face of the new features, and improves error detection
and reporting.

ImportTest.cs: Add test for wildcards.
2011-03-04 00:50:30 +05:30
Ankit Jain 9010dadcf9 [xbuild] ImportedProject - remove unnecessary catch/throw
Remove the catch { throw; }, this truncated the stack also.
2011-03-04 00:50:30 +05:30
Ankit Jain 6f4c53862b [xbuild] ImportCollections.TryGetImport and other fixes 2011-03-04 00:50:30 +05:30
Ankit Jain 619dc08671 [xbuild] Expression.ParseAs<T> - new method 2011-03-04 00:50:30 +05:30
Ankit Jain 11723d484d [xbuild] DirectoryScanner.HasWildcard - new method 2011-03-04 00:50:30 +05:30
Ankit Jain 92c12ba524 [xbuild] Log build errors and raise events even if a build fails. 2011-03-04 00:50:29 +05:30
Rodrigo Kumpera 10d154b637 Switch amd64 to use MonoContext 2011-03-03 17:34:24 +01:00
Rodrigo Kumpera e8bd505232 Use MonoContext from utils/mono-context 2011-03-03 17:34:23 +01:00
Rodrigo Kumpera 868184c1f4 Implement MonoContext for amd64.
* mono-context.h: Add amd64 support. Different than
	what we have on mini, we must store all 16 gregs.
2011-03-03 17:34:23 +01:00
Rodrigo Kumpera ba99e5f7eb Cleanup the #ifdef mess. 2011-03-03 17:34:23 +01:00
Rodrigo Kumpera 1097a48b70 Make sure we scan all gregs on x86 2011-03-03 17:34:22 +01:00
Zoltan Varga b61d329985 Disable testbundle for powerpc too. 2011-03-03 16:35:34 +01:00
Marek Safar c1f100298d Implement accessibility check for protected members via type parameter qualifier 2011-03-03 14:17:38 +00:00
Marek Safar b8147ed5ef Import base interfaces using full hierarchy to work with output produced by some odd compilers 2011-03-03 12:18:59 +00:00
Marek Safar e6c1e2b72f Update to the latest IKVM 2011-03-03 10:33:53 +00:00
Zoltan Varga 1412044209 Resurrect THREAD_DEBUG. 2011-03-03 11:29:35 +01:00
Zoltan Varga 6e14240d28 Change an #ifdef DEBUG to THREAD_DEBUG(). Fixes #676615. 2011-03-03 11:25:32 +01:00
Marek Safar 71ba975059 [676476] Make UTF8 default encoding on all platforms 2011-03-03 10:10:27 +00:00
Marek Safar 0ff707436f Simplify constant expression by removing Resolve phase 2011-03-03 08:12:46 +00:00
Marek Safar 626a21b0f5 Wiring of BuildinType 2011-03-03 08:12:44 +00:00
Rodrigo Kumpera 5c7e783246 Fix linux build 2011-03-02 19:45:07 +00:00
Rodrigo Kumpera 2bede87068 Fix non x86 builds 2011-03-02 19:11:57 +01:00
Rodrigo Kumpera 40dc16ab38 Use mono-context machinery for x86.
* sgen-archdep.h: Use mono-context for x86.

	* sgen-gc.c: Guard all uses of stopped_regs with
	USE_MONO_CTX. The ifdef abuse is intentional to make
	it easy to review it since this is temporary until
	we move all other archs.
2011-03-02 18:25:34 +01:00
Rodrigo Kumpera 0154964917 Use new mono-context.h for x86.
* exceptions-x86.c: Use code from utils/mono-context.
2011-03-02 18:24:55 +01:00
Rodrigo Kumpera d795afa1a7 Initial implementation of mono-context.
* mono-context.c: New file to represent platform independent
	machine state. It basically moves MonoContext and associated
	macros/functions from mini to utils.
2011-03-02 18:22:25 +01:00
Rodrigo Kumpera ca2cf2fe8a Move mgreg_t to utils.
* mini.h: Move mgreg_t to utils/mono-machine.h.
2011-03-02 18:21:52 +01:00
Rodrigo Kumpera f63ca72dca Reset iid of unloaded generic interfaces correctly.
* class.c (mono_get_unique_iid): Don't store
	the iid of generic instances on their GTD image
	since they can be unloaded before.

	* metadata.c (free_generic_class): Reset the iid
	used by interfaces.
2011-03-02 15:09:27 +01:00
Atsushi Eno c308671a00 Remove wrong overrides in RequestChannelBase in discovery. 2011-03-02 20:28:22 +09:00
Marek Safar a96be65879 When checking protected access via qualifier ignore internal modifier for external references 2011-03-02 11:26:10 +00:00
Marek Safar 1ee0875ad2 Wiring of BuildinType 2011-03-02 11:26:09 +00:00
Marek Safar a4a775cdb6 Use correct location for string literals 2011-03-02 11:26:09 +00:00
Marek Safar 746858c1fc Wiring of BuildinType 2011-03-02 11:26:09 +00:00
Marek Safar 00b7eadc03 Handle System.Void using special member kind 2011-03-02 11:26:09 +00:00
Marek Safar 2ad309d9b3 Wiring of BuildinType 2011-03-02 11:26:08 +00:00
Zoltan Varga 943c4a1399 Fix llvm+aot support. 2011-03-02 11:58:35 +01:00
Zoltan Varga 7c14046b9c Update to the latest version of the LLVM mono branch. 2011-03-02 11:53:03 +01:00
Zoltan Varga 52a33206ad Small cleanups to the last sdb changes. 2011-03-02 02:24:57 +01:00
Rodrigo Kumpera bb57dab84f Implement better semantics for unverifiable code.
* verify.c (mono_method_verify_with_current_settings): Add
	extra param telling if the method should be treated as fulltrust
	regardless of verifier settings.

	The only implication of this is that fulltrust verification
	can't stop on the first unverifiable error like verifiable
	code can. This only impact unverifiable methods running
	on non standard verification setups.

	* mini.c (mini_method_verify): If the verifier is enabled
	and the method belongs to an assembly with a valid skip
	verification token (the UnverifiableCodeAttribute cattr)
	the code will be checked now for errors instead of simply
	been ignored.

	This patch gives --verify-all much more saner behavior
	for assemblies with unsafe code.

	Fixes #676054
2011-03-01 23:56:17 +01:00
Neale Ferguson 28e91840ef Merge branch 'master' of github.com:mono/mono 2011-03-01 16:49:18 -05:00
Neale Ferguson 5917d13a57 Fix sgen operation on s390x 2011-03-01 16:48:32 -05:00
Zoltan Varga a9ad5a5ccd Thread id fixes for event processing. 2011-03-01 22:13:29 +01:00
Zoltan Varga b15447771f Throw exception on disconnect. 2011-03-01 22:13:29 +01:00
Levi Bard be8e051752 [Cleanup] Remove windows-specific shutdown hackaround.
* debugger-agent.c: Remove windows-specific shutdown hackaround.

License: MIT/X11
2011-03-01 22:13:29 +01:00
Levi Bard 0ccdde2f1a [Cleanup] Don't force unrequested events to be sent.
* debugger-agent.c: Don't force unrequested events to be sent.

License: MIT/X11
2011-03-01 22:13:29 +01:00
Levi Bard 2e88a27fe6 [Debugger] Track loaded classes on a per-domain basis.
* debugger-agent.c: Move loaded-classes to AgentDomainInfo

License: MIT/X11
2011-03-01 22:13:29 +01:00
Levi Bard bec3807028 [Cleanup] Remove comment about now-fixed bug.
* debugger-agent.c: Remove comment about now-fixed bug.

License: MIT/X11
2011-03-01 22:13:29 +01:00
Levi Bard 01e2bb4944 [Cleanup] Classlibs cleanup per vargaz comment.
* Mono.Debugger.Soft/VirtualMachine.cs: Cleanup per vargaz comment.

License: MIT/X11
2011-03-01 22:13:28 +01:00
Levi Bard 6accc53a57 [Cleanup] Cleanup per vargaz comments.
* debugger-agent.c: Cleanup per vargaz comments.

License: MIT/X11
2011-03-01 22:13:28 +01:00
Levi Bard 285f564f14 [Debugger] Implement deferred attaching for sdb.
License: MIT/X11

Squashed commit of the following:

commit 5e960e4812b492a511871694a2e77e8db88b2260
Author: Levi Bard <[email protected]>
Date:   Fri Feb 4 12:50:44 2011 +0100

    Add information about suspend suboption to mono man page.

     * mono.1: Add information about suspend suboption.

    License: MIT/X11

commit ee859cf9a82b53aeacf5e4b8ca01bf753e25af69
Author: Levi Bard <[email protected]>
Date:   Tue Feb 1 13:47:01 2011 +0100

    [Debugger] Conform to java debugger command line options.

     * debugger-agent.c: Replace defer=y with server=y,suspend=n.

    License: MIT/X11

commit 1256b48d5b03f0bb7c1742ffa2efa937ec6921c7
Author: Levi Bard <[email protected]>
Date:   Mon Jan 31 16:16:09 2011 +0100

    Revert changelog mangling.

commit c86d8718a15afe07aa48a70906af19926b43e277
Author: Levi Bard <[email protected]>
Date:   Mon Jan 31 15:42:42 2011 +0100

    [Debugger] Fix build.

     * debugger-agent.c: Fix build.

    License: MIT/X11

commit 08c96e1088e01a13657f9c226fa86441ccf225ea
Author: Levi Bard <[email protected]>
Date:   Thu Jan 13 16:34:50 2011 +0100

    [Debugger] Allow runtime to survive not being able to listen for attachments.

     * debugger-agent.c: Allow runtime to survive not being able to listen for attachments.

    License: MIT/X11

commit 4afa67dc14c360afe6a04761e05a3b081b5b4c29
Author: Levi Bard <[email protected]>
Date:   Thu Jan 13 09:46:24 2011 +0100

    [SDB] Unregress non-windows runtime shutdown.

     * debugger-agent.c: Unregress non-windows runtime shutdown.

    License: MIT/X11

commit 6c37f95fab689462e573d0c5ff088ed3141e210b
Author: Tak <[email protected]>
Date:   Wed Jan 12 13:54:11 2011 +0100

    [SDB] Fix race-to-crash on runtime shutdown.

     * debugger-agent.c: Fix race-to-crash on runtime shutdown.

    License: MIT/X11

commit 4941e44c76b98ffa1d08c0b2ba70aa48ba23d6df
Author: Tak <[email protected]>
Date:   Wed Dec 15 14:44:58 2010 +0100

    Fix shutdown crashes on windows.

commit 6949582e6630dc9274da9bf555e29251b9699a57
Author: Levi Bard <[email protected]>
Date:   Mon Dec 13 18:34:23 2010 +0100

    [Debugger] Remove unused type load pending - all loaded types are resent on
    attach.

    * mono/mini/debugger-agent.c: Remove unused type load pending.

    License: MIT/X11

commit 423ed88cfbb8a09ab1f3913b50248f5e553ac8f1
Author: Levi Bard <[email protected]>
Date:   Mon Dec 13 13:45:48 2010 +0100

    [Debugger] Remove thread start assert that's now nonsensical.

     * mono/mini/debugger-agent.c: Remove thread start
       assert that's now nonsensical.

    License: MIT/X11

commit c556b0073f27b74c11019524e780920911dbacc2
Author: Levi Bard <[email protected]>
Date:   Wed Nov 24 15:06:03 2010 +0100

    [Debugger] Listen on any address when deferring.

     * mini/debugger-agent.c: Listen on any address when deferring.

    License: MIT/X11

commit 4dfe4e99c2ed0e837ffde8b0838f4beec21c8861
Author: Levi Bard <[email protected]>
Date:   Mon Nov 22 17:08:58 2010 +0100

    [Debugger] Autogenerate default port based on PID.

     * mini/debugger-agent.c: Autogenerate default port based on PID.

    License: MIT/X11

commit 33b21e89b41c5868aa8d7e86510769cd0155c017
Author: Levi Bard <[email protected]>
Date:   Mon Nov 22 15:40:09 2010 +0100

    [Debugger] Reset pre-attach state on detach.

     * mini/debugger-agent.c: Reset pre-attach state on detach.

    License: MIT/X11

commit 11a909ca84e208775b3ef995735784e8256164f9
Author: Levi Bard <[email protected]>
Date:   Thu Nov 18 09:52:24 2010 +0100

    Undo erroneous changelog modification.

commit d4cab97de93cfa05cfc01ff368655b16f28ca799
Author: Levi Bard <[email protected]>
Date:   Thu Nov 18 09:34:36 2010 +0100

    [Debugger] Don't pend assembly loads while waiting for attach.

    * mini/debugger-agent.c: Don't pend assembly loads
      while waiting for attach.

    License: MIT/X11

commit 530b82b5e29300bfed7810ad7a2a4c5dc2a8afe0
Author: Levi Bard <[email protected]>
Date:   Thu Nov 18 09:33:24 2010 +0100

    [Debugger] Cleanup event processing while attaching.

    * mini/debugger-agent.c: Cleanup event processing
      while attaching.

    License: MIT/X11

commit 91a417067d8d4576d842cf3feeaf27952c4a179b
Author: Levi Bard <[email protected]>
Date:   Thu Nov 18 09:32:09 2010 +0100

    [Debugger] Cleanup state transmission on attach.

    * mini/debugger-agent.c: Cleanup state transmission
      on attach.

    License: MIT/X11

commit 629a10e783448a34b3ec3c30d12b16ee93ace0c6
Author: Levi Bard <[email protected]>
Date:   Thu Nov 18 09:29:49 2010 +0100

    [Debugger] Add functions for emitting thread start.

    * mini/debugger-agent.c: Add functions for emitting
      thread start.

    License: MIT/X11

commit 6194d7d359e1210e44e0b612197209a45f3d83d9
Author: Levi Bard <[email protected]>
Date:   Thu Nov 18 09:27:49 2010 +0100

    [Debugger] Appdomain unload fixes.

    * mini/debugger-agent.c: Clear pending typeloads
      when unloading, remove appdomain from table
      earlier, take loader lock.

    License: MIT/X11

commit bb746b75700b8de6a55bc52dd366ab9616d8af21
Author: Levi Bard <[email protected]>
Date:   Mon Nov 8 12:14:29 2010 +0100

    [Debugger] Cleanup debug output.

    * mini/debugger-agent.c: Cleanup debug output.

    License: MIT/X11

commit 84f4deb1b167b2ae6d9af423de0f9048e998c9ed
Author: Levi Bard <[email protected]>
Date:   Wed Nov 3 17:18:25 2010 +0100

    [SDB] Allow VM disconnection without forcing the VM to exit.

    * Mono.Debugger.Soft/Connection.cs: Allow connection close without forcing the VM to exit.
    * Mono.Debugger.Soft/VirtualMachine.cs: Allow VM disconnection without forcing the VM to exit.

    License: MIT/X11

commit 0bafdbd73394403908cd3ec4a5d130bd704bd162
Author: Levi Bard <[email protected]>
Date:   Wed Nov 3 17:09:34 2010 +0100

    [Debugger] Ensure that client listener doesn't block VM exit.

    * mini/debugger-agent.c: Ensure that client listener doesn't block VM exit.

    License: MIT/X11

commit b45c56fcb699e8fd69feea8190aaf4ccfd5cc71d
Author: Levi Bard <[email protected]>
Date:   Wed Nov 3 17:08:04 2010 +0100

    [Debugger] Ensure the VM resumes when detaching.

    * mini/debugger-agent.c: Ensure the VM resumes when detaching.

    License: MIT/X11

commit 13aff4a2110aac4a39bc380d2a150a882fe9c837
Author: Levi Bard <[email protected]>
Date:   Wed Nov 3 17:05:42 2010 +0100

    [Debugger] Don't double-emit assembly nor type load information.

    * mini/debugger-agent.c: Don't double-emit assembly nor type load information.

    License: MIT/X11

commit bcab252c3af0aa18aabc0600ca539307dd036ef4
Author: Levi Bard <[email protected]>
Date:   Wed Nov 3 10:57:02 2010 +0100

    Initial changes to enable deferred attaching to sdb.
2011-03-01 22:13:28 +01:00
Ankit Jain 34dd20ad45 [xbuild] Add support for Before/AfterTargets.
A target 'foo' can have BeforeTargets or AfterTargets attributes,
which list the targets before or after, 'foo' should be run.
This is a 4.0 feature.

* Project.cs (ProcessBeforeAndAfterTargets): New.
* Target.cs: Run the before/after targets in the correct order.

* TargetTest.cs (TestBeforeAndAfterTargets): New.
2011-03-02 02:21:15 +05:30
Andrew Jorgensen e2b6b77609 add xbuild-frameworks to rpm 2011-03-01 09:55:06 -07:00
Rodrigo Kumpera d60b03c1bf Handle RVA !=0 & pinvoke or icall.
metadata-verify.c (verify_method_table): Handle non
	zero RVA with runtime supplied implementations.

	Fixes #657985
2011-03-01 17:36:11 +01:00
Paolo Molaro b795fe8f87 Implemented fast version of ThreadLocal<T>.
This patchset implements a fast version of ThreadLocal<T> by reusing the code from
the implementation of the ThreadStatic attribute. The tls slots are cleaned up
on Dispose (or Finalize) instead of during appdomain shutdown.
Since C# doesn't allow us to define an icall that returns a T& or a T* type, a JIT
hack is used: every load field address instruction for the tlsdata field in
ThreadLocal<T> is intercepted and trasformed into a tls access by using the tls_offset
field from the same ThreadLocal<T> instance. So, while the C# code looks like
it accesses and changes an instance field, under the hood it will access the tls
storage.
The end result is that this is 5-6 times faster than the previous code, 10-15%
faster than using Thread.GetData () (when used with references).
This implementation also fixes a number of issues with disposing and with
per-thread initializers throwing an exception.
2011-03-01 16:43:48 +01:00
Zoltan Varga a6de33f1a3 Use stdint.h for VS 2010 and later. 2011-03-01 16:34:19 +01:00
Rodrigo Kumpera 9928939c21 Fix test to work reliably under boehm 2011-03-01 16:06:13 +01:00
Marek Safar a10a981305 Wiring of BuildinType 2011-03-01 12:58:30 +00:00
Marek Safar 02928e8799 Simplify check for out of range comparison 2011-03-01 12:58:30 +00:00
Marek Safar 6cc3ae4d00 dmcs update 2011-03-01 12:58:30 +00:00
Ankit Jain c946df6b1d [xbuild] Fix warnings. 2011-03-01 17:10:52 +05:30
Ankit Jain c5c194098b [xbuild] Fix assembly name comparison when resolving references.
AssemblyResolver.cs (AssemblyNamesCompatible): If either of the
references don't have a public key token, then ignore that.
2011-03-01 17:10:52 +05:30
Ankit Jain aa6a91981b [xbuild] Vbc task - make error column check a little non-specific. 2011-03-01 17:10:52 +05:30
Ankit Jain 2f11972da5 [xbuild] Exec task - add support for custom error/warning regex.
Add 4.0 api, CustomErrorRegularExpression and
CustomWarningRegularExpression.
2011-03-01 17:10:52 +05:30
Marek Safar 3139800130 Test update 2011-03-01 08:57:53 +00:00
Marek Safar 808e062c3d [675777] Remove invalid zero based optimization 2011-03-01 08:51:00 +00:00
Marek Safar 9542486c21 Wiring of BuildinType 2011-03-01 08:41:07 +00:00
Andrew Jorgensen 754118046f Don't forget to use DESTDIR 2011-02-28 17:18:20 -07:00
Rodrigo Kumpera 774a68a8a8 Handle demormalized object and string types.
* metadata.c (do_mono_metadata_parse_type): NET 1.1
	assemblies can have string and object encoded in a denormalized
	way.

	Fixes #675464.
2011-02-28 21:50:01 +01:00
Zoltan Varga 1a5bcbecd3 Add ARM linux cross compile targets. 2011-02-28 20:16:38 +01:00
Zoltan Varga 35f42d250e Delete an unused define. 2011-02-28 20:16:37 +01:00
Rodrigo Kumpera 42da6fa4de Check for override visibility in another place.
* class.c (check_interface_method_override): Check
	here for visibility too.
2011-02-28 19:40:18 +01:00
Rodrigo Kumpera 605af83aad Add hack for wcf around the fix for #609813 2011-02-28 19:40:18 +01:00
Marek Safar 36211246a9 [502582] Use correct type for temporary indirection local variable 2011-02-28 14:27:55 +00:00
Rodrigo Kumpera 6cc928e075 Add regression test for #674120 2011-02-28 14:55:50 +01:00
Rodrigo Kumpera f69a63ecdb Handle CompareTo(long) and huge numbers.
* BigInteger.cs (CompareTo): Handle numbers
	larger than 64bits.

	Fixes #674120
2011-02-28 14:55:49 +01:00
Marek Safar d17df45f6b [674963] Don't re-emit already closed repl types 2011-02-28 12:33:24 +00:00
Ankit Jain 9f6fa83d53 [xbuild] ToolTask - make error column check a little non-specific. 2011-02-28 16:27:43 +05:30
Ankit Jain 4010c69c7d [xbuild] Make Engine.DefaultToolsVersion 2.0 .
Engine.DefaultToolsVersion is used when a project is unable
to determine a suitable ToolsVersion to use. Change this fallback
version to 2.0 . This allows vs2005 (.net 2.0) projects which
don't have ToolsVersion explicitly set, to build. Newer projects
set ToolsVersion by default.
2011-02-28 16:21:18 +05:30
Ankit Jain 2062f0aa91 [xbuild] ResolveAssemblyReference - log task parameters 2011-02-28 14:51:30 +05:30
Ankit Jain 0f230305d3 [xbuild] ResolveAssemblyReference - add missing api. 2011-02-28 14:50:53 +05:30
Ankit Jain 9c80a2dc1c [xbuild] GetReferenceAssemblyPaths - add missing license header. 2011-02-28 03:13:23 +05:30
Ankit Jain 1ff11121a4 [xbuild] Add support for multi-targeting arbitrary frameworks.
ToolsVersion 4.0 supports targeting arbitrary frameworks defined
by FrameworkList.xml files and referenced by $(TargetFrameworkMoniker),
which is of the format:
 Identifier,Version=<version>[,Profile=<profile>]

built as:
 $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)[,Profile=$(TargetFrameworkProfile)]

eg. '.NETFramework,Version=v4.0' .

Frameworks are searched for in (order):

  1. Paths specified in the environment variable $XBUILD_FRAMEWORK_FOLDERS_PATH
  2. /Library/Frameworks/Mono.framework/External/xbuild-frameworks on Mac OSX.
  3. MSBuild property $(TargetFrameworkRoot)
  4. $prefix/lib/mono/xbuild-frameworks (default location)

.NET frameworks 2.0/3.0/3.5/4.0 have corresponding FrameworkList.xml
files now, which allows projects to target them. Custom frameworks like
MonoDroid can install suitable FrameworkList.xml files, and projects
can target them using the correct $(TargetFrameworkIdentifier) and
$(TargetFrameworkVersion).

Update man page.
2011-02-28 03:10:15 +05:30
Ankit Jain 35044c74a2 [xbuild] ToolTask - add missing api
* Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(GetProcessStartInfo): Add missing api. This allows more control
over the execution of the tool.
2011-02-28 03:10:15 +05:30
Ankit Jain 78a9231511 [xbuild] Add missing property to Error/Warning tasks. 2011-02-28 03:10:14 +05:30
Ankit Jain c28b12ac2b [xbuild] Add $(MSBuildToolsRoot) reserved property. 2011-02-28 03:10:14 +05:30
Ankit Jain 616efc5cd7 [xbuild] Remove property if Output TaskParameter is null.
If the TaskParameter for Output of a task is null, then remove
the corresponding property.
Add relevant test.
2011-02-28 03:10:14 +05:30
Bojan Rajkovic 208c7d86e9 [threadpool] Fix typo in threadpool thread names. 2011-02-27 20:12:59 +01:00
joncham 24f69516fb Cleanup unneeded code and definitions. Add MIT/X11 license header to file. Code submitted under MIT/X11 license. 2011-02-26 11:07:30 -05:00
Mark Probst 27e914703a [sgen] Internal alloc debugging.
If enabled, checks that internal allocations are only
made from the threads that are supposed to use a particular
allocator.
2011-02-26 02:08:00 +01:00
Mark Probst 6bfa515a20 [sgen] Separate internal allocator for the distribute gray queue.
The internal allocator is not thread safe, so we have separate
allocators for each worker thread to allocate gray queue sections
from.  We didn't have this for the main thread, however.
2011-02-26 02:06:59 +01:00
Geoff Norton 37ee1da3a8 Cache the result of the pthread_specific disassembly when checking for fast tls on darwin 2011-02-25 16:41:59 -05:00
Geoff Norton 1efaae719a Fix configure check for darwin to support all variants 2011-02-25 15:28:50 -05:00
Geoff Norton 818eed6cb3 Implement TLS_GET for amd64-darwin 2011-02-25 15:27:46 -05:00
Marek Safar 2c114109e6 [471275] Fix handling of ulong switch statement and speedup resolve of switch significantly 2011-02-25 20:17:57 +00:00
Geoff Norton 858ca80406 Fix the mobile build 2011-02-25 11:41:31 -05:00
Marek Habersack 62b047ae5b [asp.net] Fix for bug #671753. Route.GetVirtualPath must take ambient values into account. 2011-02-25 13:06:51 +01:00
Steve Bjorg 48d34c69fb added units tests for TextReader ReadLine() and ReadToEnd() 2011-02-25 01:53:19 -05:00
Steve Bjorg 64ca8d506f TextReader.Null should return "" on ReadToEnd() 2011-02-25 01:49:37 -05:00
Miguel de Icaza 9018dc8e10 Fix build 2011-02-25 01:49:13 -05:00
Miguel de Icaza a3ce2f008b [TerminfoDriver] be more tolerant to failures, and fallback gracefully, instead of aborting 2011-02-25 00:00:29 -05:00
Miguel de Icaza c184e8789a Do not throw exceptions, instead return a sensible value, fixes 656468 2011-02-24 23:36:07 -05:00
Miguel de Icaza debc26d250 Bug fix, on EOF, return null from ReadLine 2011-02-24 23:14:56 -05:00
Atsushi Eno 5261535c35 Fix 2.0 test build (disable it). 2011-02-25 12:35:47 +09:00
Zoltan Varga 52e0d613bb Fix previous arm patch. 2011-02-25 03:20:10 +01:00
Rodrigo Kumpera 9c24072e9c Extract a macro to loop over all threads.
* sgen-gc.h: Add (END_)FOREACH_THREAD macro pair
	to loop around threads. This simplify the code
	and will make it easier to refactor it.
2011-02-24 23:26:11 +01:00
Miguel de Icaza baecb9849b Add default implementations to ReadLine() and ReadToEnd() to TextReader, fixes 655934 2011-02-24 17:15:24 -05:00
Zoltan Varga 9b844c700c Flush stdout in mono_print_method_from_ip () to make debugging on windows a bit easier. 2011-02-24 19:29:41 +01:00
Zoltan Varga 0279754c4f Fix stop_debugger_thread () on windows. Shutdown both ends of the connection socket since shutting down only the receive part doesn't seem to work on windows. Wait for the debugger thread to exit in a loop, since we don't use condvars on windows. 2011-02-24 19:16:27 +01:00
Geoff Norton 46bd99ff7c Enable ARMv6 for arm*-darwin 2011-02-24 12:38:47 -05:00
Martin Baulig f184f5fd3d Fix bug #669836:
Treat exceptions that are caught by mono_runtime_invoke()
as unhandled in SDB.
2011-02-24 17:29:29 +01:00
Ankit Jain 6bdfc2f092 [xbuild] Rename method to make it more consistent.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs
(GetAssemblyNameFromFile): Rename to ..
(TryGetAssemblyNameFromFile): .. this, to make it consistent with
the similar method TryGetAssemblyNameFromFullName .
Track api changes.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveAssemblyReference.cs:
Track api changes.
2011-02-24 18:28:28 +05:30
Ankit Jain 8d44cb69b3 [xbuild] Fix bug #674630.
Handle errors in trying to create AssemblyName from invalid
full names.
2011-02-24 18:28:28 +05:30
Zoltan Varga 731db97325 Only use memory barriers on arm when running on armv6 or later. 2011-02-24 13:55:51 +01:00
Marek Safar 88a5fa3540 [674548] Fixes recursive crash in LookupExtensionMethod 2011-02-24 09:06:54 +00:00
Marek Safar 829dd08caf Allow blank character as separator for numeric mcs arguments 2011-02-24 08:40:36 +00:00
Marek Safar dcd5ba45b1 [672969] Delay type parameter constrain import until its declaring type is ready 2011-02-24 08:13:20 +00:00
Marek Safar 932e4d7329 Show more details when crashing during members importing 2011-02-24 08:13:20 +00:00
Atsushi Eno 8b1fcd5676 Simple InstanceContext.Extensions implementation by David Schmitt.
Fixed bug #674057.
2011-02-24 14:39:33 +09:00
Atsushi Eno 87cf90907b Do not write empty items in Probe message. 2011-02-24 14:35:24 +09:00
Atsushi Eno b4a44a80a8 To header rewrite only happens in Adhoc mode.
Update contracts to comply with that and make it consistent between versions.
2011-02-24 14:33:41 +09:00
Atsushi Eno f6fffc0e18 Pass Actor. use IsNullOrEmpty() instead of "!= String.Empty". 2011-02-24 14:26:28 +09:00
Atsushi Eno 1125d54fa3 Another fix to not write null header. Add UniqueId deserialization workaround. 2011-02-24 14:24:44 +09:00
joncham 02129cf5bb Don't build code analyst profiler by default. 2011-02-23 23:49:39 -05:00
Jonathan Pryor 1850508c1c Enable UDP Sockets on MOBILE platforms.
Fixes runtime part of #666736.
2011-02-23 23:19:26 -05:00
Marek Safar 0d724f56b8 New test. 2011-02-23 17:21:30 +00:00
Marek Safar a856bd5ff7 [674224] Type parameter constraint can resolve to nested type before it has been imported 2011-02-23 17:21:30 +00:00
Marek Safar 7f37a3a3d5 Better error message when warnaserror is used 2011-02-23 17:21:30 +00:00
Ankit Jain 8d69aafce8 [xbuild] Fix bug #674337.
Use appropriate path separator for handling environment variable
MSBuildExtensionsPath.
2011-02-23 21:28:10 +05:30
Rodrigo Kumpera 48522e092a Enable locking fast path on darwin-x86. 2011-02-23 14:37:21 +01:00
Rodrigo Kumpera b14f7eb6f3 Enable monitor enter/exit wrappers under sgen.
* monitor.c (emit_obj_syncp_check): Add code to
	check for thin hashing.
2011-02-23 14:37:21 +01:00
Marek Safar a80b349582 More Rabbit parallel build fixes 2011-02-23 12:00:25 +00:00
Rodrigo Kumpera ebb4cc19d7 Use new shared code for darwin fast tls.
* mini.c: Replace MINI_FAST_TLS macros with the
	new ones from mono-compiler.h.
2011-02-23 12:25:26 +01:00
Rodrigo Kumpera ae41d96355 Use darwin fast tls across the board.
* mono-compiler.h: Under darwin define MONO_THREAD_VAR_OFFSET
	to return pthread_key_t as we can generate fast tls get for it.

	* mono-compiler.h: Define MONO_FAST_TLS_(GET SET DECLARE INIT)
	macros to transparently use __thread and darwin fast tls
	transparently.

	* mono-compiler.h: Add MONO_HAVE_FAST_TLS define that allows
	fast darwin to be used across the board.

	* domain.c: Switch to using the new macros.

	* threads.c: Ditto.
2011-02-23 12:25:25 +01:00
Rodrigo Kumpera 5d984bcbf3 Redude warning spew under darwin 2011-02-23 12:25:25 +01:00
Zoltan Varga 89dc7cb396 Fix a warning. 2011-02-23 11:45:20 +01:00
Zoltan Varga 0e92cbd5cb Fix the passing of the mrgctx argument in case of a virtual->nonvirtual optimization. Fixes #672446. 2011-02-23 11:45:20 +01:00
Hib Eris 6abb06674f Fix gsize for 64-bit Windows 2011-02-23 11:45:20 +01:00
joncham 95760530bb Remove some unneeded copied code. 2011-02-23 00:09:28 -05:00
joncham 6d068eec76 More project fixes. 2011-02-22 22:22:48 -05:00
joncham accbc4e82f Add check around unistd.h include to fix windows build. 2011-02-22 22:22:06 -05:00
joncham 9ff4f6ea84 Add CodeAnalyst profiler and clean up vcxproj files. 2011-02-22 21:01:56 -05:00
joncham 507bd904bf Add simple csproj to build and debug genproj.cs. 2011-02-22 21:01:54 -05:00
Miguel de Icaza 474736fb09 Avoid warnings, should fix OpenSUSE builds 2011-02-22 19:30:26 -05:00
Mark Probst 3481f718fb [sgen] Break tracking weak references as early as possible.
Our tracking references code aimed to transform tracking references
into normal weak references the first time their targets became
unreachable.  It was implemented incorrectly though, and is not the
right thing to do in the first place anyway, because tracking
references have to keep tracking if the target is re-registered for
finalization.  The incorrect implementation inadvertently handled
re-registration correctly, but it kept the reference intact for one
garbage collection cycle too many.
2011-02-23 00:10:30 +01:00
Marek Safar 6b3b2900c4 Remove misplaced SecurityCritical 2011-02-22 19:46:24 +00:00
Ankit Jain 3bc6741c30 [xbuild] Add new reserved properties $(MSBuildThisFile*).
Also, fixes bug #668955.

Add new reserved properties $(MSBuildThisFile*).
Unlike the $(MSBuildProjectFile), the *This* properties are evaluated
in the context where they were used. Eg. if such a property was
referenced in a PropertyGroup, then it would refer to the file
containing the that definition, and *not* the main project file.
It applies to items and tasks/targets also.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildChoose.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroup.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs:
Add DefinedInFileName property.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs:
Add a stack to keep track the "current" file, which is used to set
the $(MSBuildThisFile*) properties. Update the properties on
Push/Pop.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/GroupingCollection.cs:
Push/Pop the "current" file, when evaluating a property/item/etc.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Target.cs:
Push/Pop the "current" file, when building. This ensures that the
references in the target definition get evaluated correctly.

* Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/ProjectTest.cs:
Add corresponding test.
2011-02-23 00:09:33 +05:30
Rodrigo Kumpera 750ddb7846 Properly check arguments in List<T> ICollection.CopyTo.
* List.cs (ICollection.CopyTo): Properly check
	the array argument to match MS semantics.

	Fixes #672907
2011-02-22 18:48:32 +01:00
Marek Safar 15abe9147a Fix mcs sdk default 2011-02-22 16:50:45 +00:00
Marek Safar bfbfdf16a2 Remove some weird and unused MONO_PATH acrobatics 2011-02-22 16:50:45 +00:00
Marek Safar ca935672a0 Remove existing type when redefined by evaluator 2011-02-22 16:50:45 +00:00
Marek Safar f11f20c723 Fix tests compilation 2011-02-22 16:50:44 +00:00
Ankit Jain e5fb257d8b [xbuild] Use the env var $MSBuildExtensionsPath before trying other paths.
Change the order of the "search paths", so that the environment
variable can always override it.
Update the man page to reflect the change.
2011-02-22 21:35:59 +05:30
Marek Safar db7a1da9bf Fix RabbitMQ.Client parallel build 2011-02-22 13:50:44 +00:00
Zoltan Varga dbcd487291 Fix a warning. 2011-02-22 06:22:45 +01:00
Zoltan Varga 68b25f4d9c Fix the windows build. 2011-02-22 06:20:23 +01:00
Zoltan Varga ebc85b006c Avoid returning TRUE from mono_domain_finalize () if it is interrupted by sdb. Fixes #673592. 2011-02-22 05:32:43 +01:00
Zoltan Varga 773e90d856 Add a G_UNLIKELY to g_assert (). 2011-02-22 01:04:58 +01:00
Zoltan Varga 05db16fd09 Fix arm thunk creation in dynamic methods. Fixes #673828. 2011-02-22 00:38:40 +01:00
Marek Habersack 7fc7f9dd69 [transactions] When cloning a transaction make sure to copy all the stuff that matters.
The volatiles and durables lists must be copied even if they are empty. The calling code
might still be accessing them via the original transaction (as is the case with Orchard+NHibernate)
2011-02-21 23:37:37 +01:00
Rodrigo Kumpera ad43d7bd73 Check if the override declaration is visible to the body.
* class.c (verify_class_overrides): The override declaration
	must be visible to the override body otherwise fail the type.
	This protects against types trying to override internal
	methods of types from other assemblies.

	* class.c (mono_class_setup_vtable_general): Do the same
	check for implicit overrides (those based only on name & sig).

	Fixes #609813
2011-02-21 21:53:59 +01:00
Rodrigo Kumpera eac667af68 Skip visibility checks from corlib internal assemblies.
* class.c (can_access_type): Skip visilibity checks for types
	from corlib internal assemblies (binary serialization).

	* class.c (can_access_member): Ditto.
2011-02-21 21:53:59 +01:00
Rodrigo Kumpera 3f4e44cc63 Move declaration to a more appropriate header. 2011-02-21 21:53:58 +01:00
Marek Habersack d956508011 [asp.net] Fix for bug #669807. Cache session item locks as the item might be cleared before the lock needs to be released. 2011-02-21 19:49:51 +01:00
Geoff Norton 6d8446d5ef Implement proper TSD lookup for arm-darwin 2011-02-21 13:36:02 -05:00
Geoff Norton 9622039cfb Avoid disassembling pthread_getspecific every time we need to check for fast tls on osx 2011-02-21 12:51:14 -05:00
Geoff Norton f0bfcb4822 Fix mono_amd64_emit_tls_get on darwin. Fixes sgen and #673813 2011-02-21 12:49:05 -05:00
Mark Probst 8832a8b43a Merge branch 'sgen-new-parallel' 2011-02-21 16:00:55 +01:00
Mark Probst 0789f1497f [sgen] Use __thread for the workers free block lists if available. 2011-02-21 15:44:31 +01:00
Mark Probst 2bba24faab [sgen] Steal right back without unlocking if we've shared our whole gray stack. 2011-02-21 15:39:19 +01:00
Mark Probst 604d79c428 [sgen] Check for work sharing every N (currently 32) marks. 2011-02-21 15:39:19 +01:00
Mark Probst a42b04b60e [sgen] Have thread-local block free lists in worker threads. 2011-02-21 15:39:19 +01:00
Mark Probst acccfcbd19 [sgen] MONO_GC_PARAMS option for specifying number of worker threads. 2011-02-21 15:39:19 +01:00
Mark Probst 7ada909a6d [sgen] Don't lock for allocating objects from the free lists. 2011-02-21 15:39:19 +01:00
Mark Probst fa9f7ce3a5 [sgen] Better work distribution for parallel mark. 2011-02-21 15:39:19 +01:00
Geoff Norton 9d44327b9a OSX 10.6 properly respected signal handlers before invoking the crash reporter 2011-02-20 23:03:16 -05:00
Juho Vähä-Herttua 7735ff82f6 2011-02-16 Juho Vähä-Herttua <[email protected]>
* CngExportPolicies.cs: New.
        * CngKeyCreationOptions.cs: New.
        * CngKeyOpenOptions.cs: New.
        * CngKeyUsages.cs: New.
        * CngPropertyOptions.cs: New.
        * CngUIProtectionLevels.cs: New.
        * ECDiffieHellmanKeyDerivationFunction.cs: New.
        * ECKeyXmlFormat.cs: New.
2011-02-20 10:54:22 -05:00
Hib Eris 3ba9a5b106 Only call GC_DllMain for embedded gc 2011-02-20 14:58:11 +01:00
Hib Eris 877140ad0c Return TRUE from mono_gc_dllmain 2011-02-20 14:56:59 +01:00
Zoltan Varga cc0c935151 Implement mono_memory_barrier () and OP_MEMORY_BARRIER for ARM. 2011-02-20 03:22:52 +01:00
Zoltan Varga 9d53fe55d1 Make the var/mvar caches per-image, since the generic params they refer to can be freed on domain unload. Fixes part of #672939. 2011-02-20 01:52:48 +01:00
Zoltan Varga 875b755170 Fix USE_MALLOC_FOR_MEMPOOLS. 2011-02-19 23:31:42 +01:00
Zoltan Varga 6781d2c9a6 Revert "[Win64] Compilation fix for eglib in win64"
This reverts commit a05a29ce95.
2011-02-19 23:26:46 +01:00
Zoltan Varga 01494b1e61 Fix a warning. 2011-02-19 22:55:38 +01:00
Zoltan Varga 58db0d3fba Reorganize the way jump_target_hash is stored in the JIT. Free entries in jump_target_hash which point inside a dynamic method when it is freed. Fixes #669815. 2011-02-19 22:23:32 +01:00
Geoff Norton 5cb6db11d3 Avoid leaking a mach_port every time we query the counters 2011-02-19 12:20:42 -05:00
Duane Wandless d3d7847d38 add #if APPLE around include of mach.h 2011-02-19 12:03:59 -05:00
Duane Wandless c9d4804e9a add Performance counter for "Process", "Working Set" and "Virtual Bytes" and "Thread Count" 2011-02-19 12:03:59 -05:00
Duane Wandless 6d8ec65318 add support for new PerformanceCounter("Process", "% Processor Time", "<process id as string>" on OS X 2011-02-19 12:03:59 -05:00
Gonzalo Paniagua Javier a2b8537da3 [eglib] Move definition of GPid to eglib-config.h
This new patch moves the definition of GPid from glib.h to eglib-config.h and
	determines the the type of pid_t in configure.

	Pach from Hib Eris that fixes bug #670076.
2011-02-19 11:49:21 -05:00
Gonzalo Paniagua Javier a05a29ce95 [Win64] Compilation fix for eglib in win64
Compiling for 64 bit windows breaks on incorrect gsize.
	Patch by Hib Eris that fixes bug #673581.
2011-02-19 11:43:18 -05:00
Miguel de Icaza f6472ef0da [594642] System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces fix for MacOS X 2011-02-19 11:05:29 -05:00
Gonzalo Paniagua Javier e912e98760 Fix the check for version and PublicKeyToken
When loading an assembly we were comparing Version(0,0,0,0) with null
	and a 0 length PKT with an actual one when those two cases are the
	default.
	Fixes bug #661461.
2011-02-19 10:13:28 -05:00
Marek Safar 54074bf406 Fix cygwin build 2011-02-19 10:16:13 +00:00
Gonzalo Paniagua Javier 9313ff2d7f patch-quiet now works in systems with 'gsed' 2011-02-19 01:30:38 -05:00
Gonzalo Paniagua Javier cd9ca0b128 [threadpool] Add support for kqueue asynch. IO. 2011-02-19 01:30:34 -05:00
Gonzalo Paniagua Javier 3dbe897dc7 [threadpool] fixes for epoll. 2011-02-19 01:17:48 -05:00
Rodrigo Kumpera bce9a82d91 Handle overrides on events when retrieving cattrs.
* MonoCustomAttrs.cs (GetBase): Special case events
	when retrieving the base event to lookup cattrs.

	* AttributeTest.cs: Add regression test.

	Fixes #662867
2011-02-18 23:37:39 +01:00
Zoltan Varga a17812d56d Work around a gcc bug on arm. 2011-02-18 23:04:03 +01:00
Zoltan Varga d63712cb7b Set cfg->uses_rgctx_reg in another code path too on arm, to fix --regression generics.exe. 2011-02-18 23:04:03 +01:00
Gonzalo Paniagua Javier 59f08312d1 Add (c). Remove printfs. 2011-02-18 15:14:21 -05:00
Marek Safar 68fbf589d6 Fix repl optional assignment not to hide produced errors 2011-02-18 10:11:35 +00:00
Marek Safar c6cf2ae4a6 Fix line advancing on Mac/CR only files 2011-02-18 10:11:35 +00:00
Gonzalo Paniagua Javier d28285debc Avoid 'comparison always true...' 2011-02-18 04:28:50 -05:00
Gonzalo Paniagua Javier d30a208fc4 Fix the windows build. 2011-02-18 04:09:23 -05:00
Atsushi Eno 1e8bc9f712 Fix infinite loop in DiscoveryMessageSequence equality comparison. 2011-02-18 16:32:01 +09:00
Atsushi Eno 3378ca880c Do not try to serialize null header item. 2011-02-18 16:23:15 +09:00
Atsushi Eno 588bde5f5a Fix wrong element name (AppSequenceType->AppSequence). 2011-02-18 16:13:23 +09:00
Atsushi Eno 0f2d03bddd Almost eliminate wrong use of Constants.WsaNamespace.
They should be addressing-version-aware.
2011-02-18 16:10:11 +09:00
Atsushi Eno 13b72be962 EndpointAddressAugust2004 was not serialized correctly.
Well, Actually unified the implementation with 10.
2011-02-18 15:53:09 +09:00
Gonzalo Paniagua Javier 8138a37d7f [threadpool] Split the socket code in separate files. 2011-02-17 22:48:14 -05:00
Rodrigo Kumpera 32b3b31f74 Make sure we keep a root for the delegates when calling them.
* method-to-ir.c (mono_emit_method_call_full): Make sure
	we keep a root for delegates when calling them using the
	fast delegate dispatch.

	Fixes #667921
2011-02-17 22:58:12 +01:00
Marek Safar 1be427d6d3 Fix repl using declaration after type declaration 2011-02-17 21:06:35 +00:00
Marek Safar 862e1a20d2 Load default references after user references so they can rely on corlib 2011-02-17 20:58:17 +00:00
Marek Safar 4c1bc31c53 Even more 4.0 profile mcs update 2011-02-17 19:28:20 +00:00
Marek Safar 89c1c938ec Cleanup repl from most of static stuff and fix many hidden issues 2011-02-17 19:22:18 +00:00
Marek Habersack d91cebb747 [asp.net,mvc3] Fix for bug #668655. Implemented a few more NameValueCollection method overloads. 2011-02-17 19:36:04 +01:00
Marek Safar 089b4086dc Don't use runtime flag for basic compiler (it still lives in old world) 2011-02-17 18:34:32 +00:00
Jeffrey Stedfast 16435bd037 Fixed exception string (spaces between words = good) 2011-02-17 13:00:50 -05:00
Marek Habersack 5cdeff4846 [mcs] Fix builds which use full file paths on the command line
Passing /tmp/source.cs to mcs would result in "error CS2007: Unrecognized command-line option: /tmp/source.cs"
this patch fixes it.
2011-02-17 17:50:10 +01:00
Marek Safar cc72712e4e Set correct runtime version for corlib now when mcs defaults to 4. 2011-02-17 16:39:35 +00:00
Marek Safar f4326c0bce Correctly set underlying type of reduced side-effect constant expression 2011-02-17 16:39:35 +00:00
Jérémie Laval c5e37f197d Allow people to optionally fallback to the old scheduler with an environment variable 2011-02-17 15:36:27 +00:00
Jérémie Laval 1bf1f268f2 Remove ctors in TpScheduler
This also remove the capping of the ThreadPool, problem needs to be fixed in the pool itself.
2011-02-17 15:35:32 +00:00
Jérémie Laval dd79962df7 Make TryExecuteTaskInline a bit smarter 2011-02-17 15:35:02 +00:00
Jérémie Laval 5ede770a67 Refactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy 2011-02-17 15:34:11 +00:00
Jérémie Laval 238a65fbfe Kill old IScheduler interface.
We still use the ParticipateUntil facility of IScheduler internally and provide a default implementation for pure TaskScheduler
2011-02-17 15:07:05 +00:00
Jérémie Laval 17317ee088 When finding best worker number in Parallel loops use current TaskScheduler instead of default TaskScheduler 2011-02-17 15:06:14 +00:00
Jérémie Laval 71259e744e Adapt TpScheduler to the new API in TaskScheduler 2011-02-17 15:06:14 +00:00
Jérémie Laval 928550dff2 Cache callback delegate in TpScheduler when passing Task to QueueUserWorkItem 2011-02-17 15:06:14 +00:00
Jérémie Laval cdadec93c0 Don't create a new lambda everytime when queuing Task via ThreadPool QueueUserWorkItem 2011-02-17 15:06:13 +00:00
Jérémie Laval 430d01adef Try to execute task inline when they are ready to run and we wait on them with no timeout 2011-02-17 15:06:13 +00:00
Jérémie Laval 53e5b292ab Threadpool Task scheduler 2011-02-17 15:06:13 +00:00
Marek Safar 1d8dbddfd1 Merge few more changes from MD 2011-02-17 14:45:24 +00:00
Marek Safar f286a4278d Remove install hack from mcs/mcs 2011-02-17 14:00:43 +00:00
Marek Safar 3595d1d20e Fix Location to have reasonable limits when running under MD 2011-02-17 13:53:35 +00:00
Rodrigo Kumpera 79132ee417 Handle gsharing and marshal by ref.
* method-to-ir.c (mono_emit_method_call_full): Non virtual
	marshal by ref methods with gsharing context must always
	be called using indirect calls.

	Fixes #665893
2011-02-17 14:46:21 +01:00
Atsushi Eno 5b4dfe2800 get out from NET_4_0. 2011-02-17 22:20:15 +09:00
Atsushi Eno 21157e91e0 Couple of corcompare fixes. 2011-02-17 21:07:13 +09:00
Atsushi Eno 3137e2c0c6 Only use non-null values in ServiceAuthorizationBehavior. 2011-02-17 21:06:12 +09:00
Atsushi Eno e2af590bc6 Fill a couple of missing ServiceAuthorizationElement implementation. 2011-02-17 21:05:32 +09:00
Atsushi Eno 1fe37c584d HTTP authentication in HttpListener had dropped during refactoring. Now it's back. 2011-02-17 21:04:34 +09:00
Jérémie Laval 9869f11cb4 Return a new object in ObjectPool when too much time is spent spinning in Take 2011-02-17 11:33:30 +00:00
Marek Safar b81988637e Remove duplicate Mono.Softdebugger 2011-02-17 09:30:42 +00:00
Marek Safar cd40af130d Fix full path file names parsing 2011-02-17 09:30:42 +00:00
Geoff Norton 3c1a805c6d Fix ARCH_STORE_REGS on arm to save r0->r12 properly 2011-02-16 16:10:11 -05:00
Geoff Norton 19d8b7e3de Remove dead code 2011-02-16 15:05:22 -05:00
Marek Safar ac9d0c11ab Another make dist fix 2011-02-16 19:08:55 +00:00
Atsushi Eno 8753386e4b MakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.
Fixed bug #670539.
2011-02-17 00:55:15 +09:00
Jb Evain 7da86f1edf fix the mobile build 2011-02-16 16:38:23 +01:00
Marek Safar 7b207f9f4b Keep monolite in line with mono 2.4 corlib as I cannot handle two different versions 2011-02-16 15:31:05 +00:00
Marek Safar cc8b19c1a1 Fix mcs exit code for informative arguments 2011-02-16 14:48:00 +00:00
Marek Safar 40b3c2f288 Make all arrays module specific 2011-02-16 14:48:00 +00:00
Hib Eris 98b048cbc4 Decorate _image_base__ with __MINGW_LSYMBOL
This fix is needed in compiling for x86_x64.
2011-02-16 15:22:08 +01:00
Jérémie Laval 5d757ea7df Track what task is currently executed by a ThreadWorker and add the case for "parent waiting on children task it created" in CheckTaskFitness predicate.
This fixup PLinq processing when it's launched from a Task.
2011-02-16 13:14:14 +00:00
Jérémie Laval cdd12cb801 Create PLinq query tasks attached to their eventual task parent by default 2011-02-16 13:14:14 +00:00
Jérémie Laval f1ce13ae04 When choosing the number of Task to create for a PLinq query, check if we are already in a running Task 2011-02-16 13:14:13 +00:00
Jérémie Laval 985b888796 Implement properly TaskScheduler's FromCurrentSynchronizationContext 2011-02-16 13:14:13 +00:00
Marek Safar f1b86e38b3 Less static is good for my health 2011-02-16 12:24:35 +00:00
Atsushi Eno 463d8ebf82 Don't reject serialization map for existing different (but same-purpose) type. 2011-02-16 18:48:06 +09:00
Atsushi Eno 7cca5459f9 To header seems mandatory in April2005, so fill it. 2011-02-16 18:17:09 +09:00
Atsushi Eno a5fe143613 April2005 AppSequence needs default constructor for deserialization. 2011-02-16 18:15:53 +09:00
Atsushi Eno 1d62f3e9e5 xsi:type parsing is wrong in default namespace resolution.
Fixed case #3 in bug #652331.
2011-02-16 18:02:28 +09:00
Atsushi Eno 86977acb58 Operation interface methods also have ServiceKnownType attributes. 2011-02-16 17:14:05 +09:00
Atsushi Eno f4dfb13cc7 KnownTypeCollection; recursively registered type was not added to the collection while it is "registered" state. 2011-02-16 16:04:15 +09:00
Gonzalo Paniagua Javier acc0384e01 Fixes 2011-02-15 20:23:14 -05:00
Gonzalo Paniagua Javier 59fcb4f8d3 Remove a bunch of warnings. 2011-02-15 19:58:26 -05:00
Martin Baulig 2c9f304f50 Make pdb2mdb work with files in other directories.
Also added a public static method, so we can also use this as a library.
2011-02-16 00:41:53 +01:00
Andrew Jorgensen 798d03b364 Mono.Debugger.Soft.dll is installed for 4.0 also. 2011-02-15 12:17:50 -07:00
Ankit Jain 198e553ae4 [xbuild] Fix bug #671700, resource naming in presence of "Link".
AssignTargetPath.cs: If 'Link' metadata is present, then use that
as the target path.

Add relevant test.
2011-02-15 20:16:33 +05:30
Marek Safar 28d33683a2 New test 2011-02-15 14:30:28 +00:00
Marek Safar fa34f80319 [671878] Fixes IKVM ordering of catch clauses 2011-02-15 14:30:28 +00:00
Marek Safar 1f7d8637e5 Fix few warnings 2011-02-15 14:30:27 +00:00
Atsushi Eno b8ecb21ef2 Async MessageContract pattern needs more sophisticated contract validity check.
It totally killed discovery.
2011-02-15 23:24:01 +09:00
Atsushi Eno 3aaf87fe84 Message headers are now serialized and deserialized for MessageHeaderDescription. 2011-02-15 23:14:27 +09:00
Sebastien Pouliot 3dbfe75434 Fix parameters names inside System.Net.dll for 2.1 profile
* System.Net/System.Net.Sockets/SocketException_2_1.cs:
* System.Net/System.Net/WebClient_2_1.cs:
* System.Net/System.Net/WebRequest_2_1.cs:
* System/System.Net.Sockets/Socket_2_1.cs:
* System/System.Net/Cookie.cs:
* System/System.Net/DnsEndPoint.cs:
* System/System.Net/EndPoint.cs:
* System/System.Net/IPAddress.cs:
* System/System.Net/IPEndPoint.cs:
* System/System.Net/SocketAddress.cs:
	Remove all red ! from corcompare in System.Net.dll (Silverlight
	4 profile) to make it easier to pinpoint other errors/warnings.
2011-02-15 08:38:06 -05:00
Atsushi Eno 2de488bf5d ServiceDescription.cs does not exist in moonlight, so move TypeExtension. 2011-02-15 22:37:28 +09:00
Jérémie Laval 766db2eadf Fix test failure in SplitOrderedList 2011-02-15 13:36:27 +00:00
Jérémie Laval 3c19080f53 Implement TaskFactory.FromAsync 2011-02-15 13:26:02 +00:00
Marek Safar f8b219931c Hide boostrap compiler for people looking for mcs.exe 2011-02-15 13:17:24 +00:00
Marek Safar 4fa12b94b0 Update mcs translations 2011-02-15 13:17:24 +00:00
Marek Safar 2685ac100c Fix monolite make dist 2011-02-15 13:17:24 +00:00
Atsushi Eno bac5d7a27f MessageHeaderDescription were not filled in message contract. Reject wrong contracts. 2011-02-15 22:11:22 +09:00
Atsushi Eno 5fe1e8df35 implement some ServiceHostBase public methods that already existed internally. 2011-02-15 22:10:09 +09:00
Marek Safar 3f3f13ef21 Add Mono.Debugger.Soft.dll to spec 2011-02-15 12:11:28 +00:00
Marek Safar 7c911b67e7 Build monolite from correct location 2011-02-15 12:09:10 +00:00
Marek Safar 93fd158296 Merge some useful changes from MD 2011-02-15 12:09:10 +00:00
Gonzalo Paniagua Javier eae45fd704 [HttpListener] Close idle connections on Stop()
Idle connections that never received any data or had ever been
	associated to a listener are properly closed now when the endpoint is
	closed or the last listener they used is closed.
	Fixes a bunch of tests in System.ServiceModel.
2011-02-15 01:52:50 -05:00
Atsushi Eno d4ec12dbaa When the callback contract type is the same as the contract, do not block replies. 2011-02-15 15:47:46 +09:00
Atsushi Eno fee0b115fd EndpointAddress could be empty on opening the factory. 2011-02-15 15:47:22 +09:00
Atsushi Eno 7570eef1b6 PeeDuplex ChannelFactory must be opened in prior to create channels. 2011-02-15 15:46:41 +09:00
Atsushi Eno 39a5c7f6d4 add private setter for message serialization.
Not sure if it is hack or required-to-do though.
2011-02-15 15:45:58 +09:00
Neale Ferguson 679be0d28f Merge branch 'master' of github.com:mono/mono 2011-02-14 15:17:07 -05:00
Veerapuram Varadhan 1239b13d1a [bugfix]667855 - Fix handling of oracle raw data types sanely. 2011-02-15 01:30:56 +05:30
Gonzalo Paniagua Javier 6450a342e5 [HttpWebRequest] EndGetResponse already does this. 2011-02-14 14:36:14 -05:00
Gonzalo Paniagua Javier c033e6dea6 [HttpListener] UserHostName includes the port. 2011-02-14 14:35:06 -05:00
Jérémie Laval 325580a101 Correctly add ObjectPool to the build 2011-02-14 18:16:51 +00:00
Jérémie Laval 5dbf63ae30 Use ObjectPool in SplitOrderedList 2011-02-14 18:12:42 +00:00
Jérémie Laval d25f6ac751 Fix wrong CAS check in SplitOrderedList 2011-02-14 18:12:42 +00:00
Jérémie Laval 7b07f2b024 Use ObjectPool in ConcurrentStack 2011-02-14 18:12:41 +00:00
Jérémie Laval 8390e2da1e Use ObjectPool in ConcurrentQueue 2011-02-14 18:12:41 +00:00
Jérémie Laval 62b6eb2540 Add concurrent implementation of an ObjectPool to reuse small objects like Node instances 2011-02-14 18:12:41 +00:00
Gonzalo Paniagua Javier 274c05b8a6 [HttpListener] These lines were not supposed to be there. 2011-02-14 12:30:13 -05:00
Atsushi Eno 9930a95a1a support UdpTranspoerSettings.MulticastInterfaceId. This should fix bug #669328. 2011-02-15 01:54:13 +09:00
Carsten Schlote 2392c6a50d Extended CloneCopy() test with ReadOnly field
- It is recommended to set auto-increment fields to ReadOnly. When
  calling Copy() the check for ReadOnly must be omitted, otherwise
  you get an exception.
  The RadOnly attribute is set for the parent "Id" field to test
  proper handling of read-only fields.
- Source reindention and cleanups.

Signed-off-by: Carsten Schlote <[email protected]>
2011-02-14 10:52:22 -05:00
Carsten Schlote 6afc6ea42f Fixes for broken RO check
- When calling GetChanges() the ReadOnly check for DataCalumns must be
  turned off, as otherwise data of readonly columns can't be cloned
  into new rows for the new created DataSet/dataTable

Signed-off-by: Carsten Schlote <[email protected]>
2011-02-14 10:51:40 -05:00
Miguel de Icaza a5f2fa7186 Remove 2011-02-14 10:03:45 -05:00
Miguel de Icaza b4e0414776 [670974] Use the underlying BaseStream to read bytes instead of trying to peek a character.
Peeking a character as it turns out is a really bad idea as it involves the encoder
to pull characters.   If the PeekChar happens to read a byte that is part of a
UTF8 string that needs more characters to process we would end up with the reported
crash.

Atsushi Enomoto tracked this down, and the fix is to use the binaryreader.BaseStream
to directly call into ReadByte and Read without ever probing with PeekChar ().   It
is not really possible to use BinaryReader.ReadByte since this one can throw on
end-of-buffer conditions instead of returning -1
2011-02-14 09:38:02 -05:00
Neale Ferguson 7bbda0750f Merge branch 'master' of github.com:mono/mono 2011-02-14 09:31:38 -05:00
Neale Ferguson 29b419d427 Add unwind support to s390x and fix stack unwinding so that exception17 now passes 2011-02-14 09:31:00 -05:00
Marek Safar 95dcd2ad9b New test 2011-02-14 13:20:50 +00:00
Marek Safar 04c7aea04f [671552] Use correct emit method for stobj type 2011-02-14 13:20:49 +00:00
Miguel de Icaza 44bf6d5a50 Do not build in parallel 2011-02-14 08:17:34 -05:00
Marek Safar 8cfe56d80c Update to the latest IKVM 2011-02-14 12:18:58 +00:00
Gonzalo Paniagua Javier 665cf6c6e6 Comment out test that does not work on linux. 2011-02-13 19:51:23 -05:00
Gonzalo Paniagua Javier 2fa2ca3565 [HttpWebRequest] Use the timeout in GetResponse()
The timeout was not being used in GetResponse.
	Fixes bug #603794.
2011-02-13 15:01:29 -05:00
Gonzalo Paniagua Javier e940d4fa30 [HttpWebRequest] Avoid nullref on empty cookie header.
If the Set-Cookie header is empty, the cookie instance is not created.
	Fixes bug #670189.
2011-02-13 14:53:59 -05:00
Rodrigo Kumpera 81a76ad07e Don't assert on broken DM names.
* reflection.c (reflection_methodbuilder_to_mono_method):
	Avoid asserting if the method name has invalid surrogates.

	Fixes #643372.
2011-02-13 19:52:02 +01:00
Rodrigo Kumpera 78a40c59be Add bad string resistent utf16-utf8 conversions.
* object.c: Add _ignore versions of the mono_string_to_utf8
	family of functions that work with broken strings by
	encoding them on a best effort basis.
2011-02-13 19:50:28 +01:00
Rodrigo Kumpera 16ebb08ee2 Avoid an infinite loop on broken utf16.
* gutf8.c (g_utf16_to_utf8): Increase the input counter
	when encountering broken surrogates head or tails to
	make sure we don't end in an infinite loop.
2011-02-13 19:48:01 +01:00
Rodrigo Kumpera 5f7a56d356 Make Int32.Parse respect current culture.
* Int32.cs (Parse): Repect current culture for
	positive and negative signs.

	Fixes #586085
2011-02-13 19:46:10 +01:00
Alexandre Mutel 991bedc101 Fix sizeof(T) in non-gshared code. Fixes #580189. 2011-02-13 16:16:57 +01:00
Mark Probst 3664f9db8f Merge branch 'bugfix-main-thread-root' 2011-02-13 16:10:10 +01:00
Zoltan Varga 7ef058f135 Add an assembly version to Mono.Debugger.Soft. Fixes #671536. 2011-02-13 16:04:52 +01:00
Gonzalo Paniagua Javier b061ae7569 [HttpListener] Small improvements
Less allocations in managed and unmanaged code.
2011-02-13 08:18:57 -05:00
Gonzalo Paniagua Javier a9de626f74 [HttpListenre] Avoid multiple calls to Close()
HttpListenerResponse could be calling HttpConnection.Close() more than
	once.
2011-02-13 07:06:55 -05:00
Zoltan Varga 15742c6ea9 Fix reading of cattr arguments of type Type[]. Fixes #670331. 2011-02-13 04:23:49 +01:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Miguel de Icaza 97e585b5ec Various updates 2011-02-12 22:07:05 -05:00
Miguel de Icaza 7bcc94629d Pass warnings 2011-02-12 16:30:28 -05:00
Miguel de Icaza 31dd8c91be Visual Studio build support: updated the scripts that generate csproj files.
With the new C# compiler, the build complexity is vastly reduced, the new setup
is able to produce many of the csproj files.

The next step is to generate a couple of solutions:

	* BootstrapSolution: to build the basic assemblies used to
	  build the rest of Mono from a set of basic assemblies.

	  This should be run to prepare a tree.

	* 2.0 solution: builds the various 2.0 libraries and executables

	* 4.0 solution: builds the various 4.0 libraries and executables

Installation: where should the resulting assemblies go once they are built?

Where should the assemblies go after the build is complete?

How do we turn a build into an redistributable package?
2011-02-12 16:30:28 -05:00
Gonzalo Paniagua Javier 64a750eff3 [gzip] Allow partial flush
When Flush() is called explicitly, do a Z_PARTIAL_FLUSH to force gzip
	into giving us whatever is available. Less efficient, but compatible
	with MS.
2011-02-12 00:05:15 -05:00
Miguel de Icaza c365c9a8f2 Update the csproj generator targets 2011-02-11 18:50:13 -05:00
Gonzalo Paniagua Javier bda2b7dc1b [Socket] Fix invalid cast
Fix invalid cast when canceling pending operations due to socket.Close.
2011-02-11 18:36:23 -05:00
Thomas Goldstein 28a47b5d39 TabControlPainter.cs: Move up the Text / Image of the selected tab, matching .NET. 2011-02-12 00:20:26 +01:00
Thomas Goldstein 4571528f8f TabControlPainter.cs: Horizontally center Text and Image when SizeMode = Fixed. 2011-02-12 00:20:03 +01:00
Zoltan Varga ede1365668 Fix token generation for TypeBuilder's in another assembly. Fixes #671245. 2011-02-12 00:15:47 +01:00
Miguel de Icaza d833c08b45 [fix] changing Form.Enabled sometimes can change the list of OpenForms, fixes 671098 2011-02-11 17:34:34 -05:00
Andrius Bentkus 0317e5e5ed Check filename of assemblies before installing with gacutil.
gacutil just used the filename (which can be different compared to
the assembly name) in order to install assemblies, though afterwards
entirely relied on the filename to be equal to the assembly name.
In other words, installing assemblies where the filename differed
from the assembly name resulted in an incorrect install: the
files were not visible in the GAC.

Example: gacutil -i mysql.data.dll
Wouldn't return any errors, but the assembly (which is called MySql.Data)
still couldn't be reached.

This patch will check for filename compliance and return an error
if it does not comply, which will look like this:
Failure adding assembly v4/mysql.data.dll to the cache: the filename "mysql.data.dll" doesn't match the assembly name "MySql.Data"

A warning is not sufficient, since it will be impossible to remove
the installed junk with gacutil.
2011-02-11 17:23:09 -05:00
Zoltan Varga 2714556067 Add Mono.XBuild.Utilities/MSBuildUtils.cs to the build. 2011-02-11 21:57:25 +01:00
Zoltan Varga 0eba8d0a5b Pretty print MonoString* too in xdb. 2011-02-11 21:49:26 +01:00
Sebastien Pouliot 5505faf960 Continue X509Chain processing even if the local machine directory does not exists
* corlib/Mono.Security.X509/X509Store.cs:
* Mono.Security/Mono.Security.X509/X509Store.cs:
	Fix key pair persistence to load key pairs from the same location
	(machine or user) as the requested certificate. This avoids an
	internal exception (on missing local machine directory) that stop
	the evaluation of the certificate validity (i.e. no user store
	check)
* System/System.Security.Cryptography.X509Certificates/X509Chain.cs:
Ensure that a missing local machine directory does not result in a NRE
while loading CRL (which would fail the certificate being validated)
2011-02-11 13:10:21 -05:00
Hib Eris 44cb0e4def Earlier undefine HAVE_GETPROCESSID when cross compiling 2011-02-11 15:42:14 +01:00
Zoltan Varga 8a95d5a5a6 Avoid a boehm dependency in driver.c. 2011-02-11 15:25:36 +01:00
Rodrigo Kumpera fee645b660 Make maxStackSize behavior compatible with MS.
* Thread.cs (.ctor): Check if maxStackSize is negative
	and raise and AOORE. Silently use a saner minimum size
	of 128k as mono can't really run with much less than that.
2011-02-11 14:56:58 +01:00
Marek Safar bf8270de10 Fix repl not to accumulate every evaluated expression 2011-02-11 12:02:24 +00:00
Zoltan Varga 78925eeebf Make the wait in the finalizer thread alertable to fix sdb on windows. Fixes #670619. 2011-02-11 05:50:42 +01:00
Zoltan Varga bb2e1d1d5e Fix sdb tests on the 4.0 profile. 2011-02-11 03:37:25 +01:00
Zoltan Varga a9374ea1ba Change some Sleep(0)'s to Sleep(1) in the soft-debugger code to avoid 100% cpu utilization on windows. 2011-02-11 01:32:54 +01:00
Zoltan Varga e23bf4799a Add a MONO_ prefix to the PROCESSOR_ARCHITECTURE_ constants to fix the mirriad warnings on windows. 2011-02-11 01:28:53 +01:00
Miguel de Icaza 76638d26cd [bugfix: 664695] Calling Dispose on ToolStrip emit events. Doesn't on .NET 2011-02-10 18:55:52 -05:00
Miguel de Icaza 82a3eedf58 [bugfix: 664695] Calling Dispose on ToolStrip emit events. Doesn't on .NET 2011-02-10 18:55:50 -05:00
Miguel de Icaza 10289b6604 [bugfix: 665233] ToolStrip Menus Keeping Keyboard Capture after hovering over SubMenu 2011-02-10 18:55:49 -05:00
Zoltan Varga 075c339228 Merge branch 'mips-vm-fixes' of https://github.com/ztzg/mono into ztzg-mips-vm-fixes 2011-02-11 00:34:45 +01:00
Zoltan Varga 81b38e3b33 Include malloc.h under windows for alloca in glib.h. 2011-02-11 00:33:19 +01:00
Damien Diederen 1163a2f579 MIPS: Ignore float->int overflow behaviour, as on PPC, ARM, and SPARC
From the comment:

$TARGET handles overflow by clipping, but this test assumes no overflow
handling.  According to ECMA the result of float->int conversion is undefined
if overflow occurs, so both behaviours are valid.

Commit contributed under the MIT/X11 license.
2011-02-11 00:08:13 +01:00
Damien Diederen 69948672b2 MIPS: Do not generate superfluous "load_const" in IMT thunks
1. Only three of the four branches need 'load_const's, so let's move
    them down there;

 2. The fourth one already contains its own 'load_const'; the new code
    avoids a duplicate load before each binary search test.

Commit contributed under the MIT/X11 license.
2011-02-11 00:08:01 +01:00
Damien Diederen c9376a26e0 MIPS: Fix IMT binary search code generation in backend
Imt_emit_ir, in object.c, generates binary search code for sequences
longer than three elements.  It saves the key of the mid item, then
recursively calls itself on the two halves of the segment:

    item->key = sorted_array [middle]->key;
    ...
    imt_emit_ir (sorted_array, start, middle, out_array);
    item->check_target_idx = imt_emit_ir (sorted_array, middle, end, out_array);

Note how the mid item itself is included in the second half: it is to
be handled as part of that subsequence, whose code starts at index
'check_target_index'.

Given such a piece of binary search IR, the MIPS backend currently
generates:

    load_const (temp, item->key);
    slt (temp, temp, IMT_REG);      ; temp = key < searched_for;
    bne (temp, zero, 0);            ; if (temp) jump_target_index ();

This is broken because no jump happens if (key == searched_for).  The
target method won't be found in the first subtree, so the runtime will
end up jumping to its last method instead of the correct one!

This patch causes the following sequence to be emitted:

    load_const (temp, item->key);
    slt (temp, IMT_REG, temp);      ; temp = searched_for < key;
    beq (temp, zero, 0);            ; if (!temp) jump_target_index ();

Commit contributed under the MIT/X11 license.
2011-02-11 00:07:50 +01:00
Damien Diederen 8110b6b179 MIPS: Fix unboxing trampolines for functions returning value types
Generated methods always place 'this' in a0, but unboxing trampolines
currently bump a1 for functions returning value types (the register
assignments for 'this' and return area pointers probably got swapped
at some point, but the trampoline generator was not updated).

Fix that by always bumping a0.

Commit contributed under the MIT/X11 license.
2011-02-11 00:07:37 +01:00
Damien Diederen 49b35c4b9b MIPS: Use SLTU to implement COND_EXC_LE_UN (Exception when <= unsigned)
The current code generator uses a SUBU/BLEZ combination, but this
breaks for non-zero-based arrays.  Given a lower bound 'b', length
'l', and an index 'i', Mini generates:

  real_i = i - b;
  COND_EXC_LE_UN(l, real_i);

Without this patch, the backend generates for e.g. b=42, l=1 and i=0:

  SUBU real_i, 0, 42     => -42
  SUBU at, 1, real_i     => 43 (U only means "no trap.")
  BLEZ at, throw         => No throw because at is positive!

This causes the following sequence to be used instead:

  SUBU real_i, 0, 42     => -42
  SLTU at, real_i, 1     => 0 (Unsigned '<'; real_i is a large value)
  BEQ  at, zero, throw   => Throw.

Commit contributed under the MIT/X11 license.
2011-02-11 00:07:24 +01:00
Damien Diederen 83bc684f2d MIPS: Throw OverflowException if Int32.MinValue is divided by -1
Without this, the code throws the more general ArithmeticException
when the divisor is -1, independently of the dividend.  The check is
necessary because -Int32.MinValue does not fit into a 32-bit two's
complement integer.

Commit contributed under the MIT/X11 license.
2011-02-11 00:07:04 +01:00
Zoltan Varga ff54c98812 Remove unused mono_arch_has_unwind_info () function. 2011-02-10 23:43:27 +01:00
Gonzalo Paniagua Javier b1248b22e4 [HttpWebRequest] Can't ignore erros here 2011-02-10 17:25:15 -05:00
Gonzalo Paniagua Javier b92b165ddb [HttpWebRequest] Error handling for POST/PUT
When we get an error from the server before writing an entire
	unbuffered response, the server might close the connection leading to
	write errors. Ignore those and return the actual HTTP status code from
	the original server error.
2011-02-10 17:25:15 -05:00
Ankit Jain 6493ec7731 [xbuild] Update Utilities.FromMSBuildPath from monodevelop.
Updating FromMSBuildPath also fixes a bug on windows.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Utilities.cs:
Move to..
* Microsoft.Build.Utilities/Mono.XBuild.Utilities/MSBuildUtils.cs:
.. this. Also, update FromMSBuildPath from monodevelop.
* Update Engine/* and Tasks/* to track the new api.
2011-02-11 02:51:35 +05:30
Rodrigo Kumpera a99608d830 Handle ConstructorBuilders on other assemblies.
* reflection.c (mono_image_get_ctorbuilder_token):
	Handle non generic CtorBuilder on another assembly.

	Fixes #670949
2011-02-10 21:45:48 +01:00
Rodrigo Kumpera b508d87299 Revert "Don't use io layer semaphores for object monitors."
This reverts commit 7d0e224a7a.

This is causing severe regressions on OSX.
2011-02-10 21:44:58 +01:00
Rodrigo Kumpera 7d0e224a7a Don't use io layer semaphores for object monitors.
* monitor.c: Use a system semaphone instead of io-layer
	semaphores as it has a much lower overhead.
2011-02-10 20:10:13 +01:00
Rodrigo Kumpera 8e7f14ecd6 Add regression test for #668506 2011-02-10 20:10:13 +01:00
Marek Safar 3fe558adb8 Another .net 4 update 2011-02-10 19:04:53 +00:00
Marek Safar 7a69dca123 Remove more csharp2 references 2011-02-10 19:04:53 +00:00
Zoltan Varga 4efd718bc0 Fix a warning. 2011-02-10 16:17:44 +01:00
Marek Safar 3204e13673 Make all evaluator created type public 2011-02-10 13:36:36 +00:00
Marek Safar 24b33b7617 Add mscorlib as mcs aot dependency 2011-02-10 13:36:36 +00:00
Atsushi Eno 30e3a346e0 Fix a couple of addressing namespace fixes (found in April2005 version). 2011-02-10 22:06:17 +09:00
Atsushi Eno 61e42aed24 Fix wrong async completion handling in UDP channel receive.
After AsyncWaitHandle.Set(), order of filling results and WaitOne() are
undefined.
2011-02-10 21:16:17 +09:00
Marek Safar b6513d2047 Fixes build 2011-02-10 09:22:04 +00:00
Marek Safar 62f459cdca Enable eval statements 2011-02-10 08:59:09 +00:00
Marek Safar 046b5f13cf Drop csharp2 2011-02-10 08:59:09 +00:00
Marek Safar a2d588d433 Fix wrong module context 2011-02-10 08:59:09 +00:00
Marek Safar 0bc2c5b8a4 Cleanup IMemberContext properties 2011-02-10 08:59:08 +00:00
Marek Safar 7bb97fcd64 Fix restore typo 2011-02-10 08:59:08 +00:00
Zoltan Varga 9bc886aed7 Remove glib libs from the get-cygwin-deps.sh script. 2011-02-10 00:53:11 +01:00
Miguel de Icaza d352810dff Do not throw if we get a RunAndCollect 2011-02-09 18:33:05 -05:00
Miguel de Icaza 1afdb2bead Style 2011-02-09 18:25:17 -05:00
Gonzalo Paniagua Javier d84abdc22a Move some code into their own methods. 2011-02-09 18:09:03 -05:00
Gonzalo Paniagua Javier f9a2bab548 [Thread] Avoid using BinarySerialization
Whenever possible (Generic(Principal|Identity)), do not use
	BinarySerialization for the 'principal'.
2011-02-09 17:16:28 -05:00
Marek Habersack b956f6dc78 [asp.net] Fix for bug #669048. Fix up virtual precompiled app virtual paths with the virtual root of the current app 2011-02-09 21:59:00 +01:00
Gonzalo Paniagua Javier df5d05c37f Attempt 1 2011-02-09 12:04:56 -05:00
Gonzalo Paniagua Javier 2364636375 Add files to .gitignore 2011-02-09 11:01:27 -05:00
Rodrigo Kumpera bae9eb37ca Handle assignment check of variant type and its gtd.
* clas.c (mono_class_is_variant_compatible): Return
	FALSE if checking a variant type and its gtd instead
	of crashing.

	Fixes #668506
2011-02-09 16:31:28 +01:00
Zoltan Varga 5de92f8563 Install Mono.Debugger.Soft in the 4.0 profile as well. 2011-02-09 16:19:03 +01:00
Marek Safar 507973ab5a Fix corlib test 2011-02-09 14:27:06 +00:00
Marek Safar 46dd06e61e Fix few more mcs locations 2011-02-09 14:16:04 +00:00
Marek Safar 11ef57f0f6 Few mcs property accessors tweaks 2011-02-09 14:11:44 +00:00
Marek Safar b1436dd4bb Don't emit static data when running as evaluator 2011-02-09 14:11:44 +00:00
Rolf Bjarne Kvinge 8fa5360efd Add MonoCQItem to the moonlight build, otherwise we abort 2011-02-09 13:01:41 +01:00
Atsushi Eno 24d225dd5b Recent ContractDescription fix uncovered wrong contracts in discovery. 2011-02-09 20:04:00 +09:00
Rodrigo Kumpera 95641fcca1 Merge branch 'master' of github.com:mono/mono 2011-02-09 11:36:58 +01:00
Rodrigo Kumpera a7158d99cd Cleanup the reference queue on domain unload.
* gc.c (finalize_domain_objects): Clear reference
	queues on domain unload after running all finalizers.
2011-02-09 11:20:37 +01:00
Atsushi Eno 58a7b75bd8 Support ServiceKnownTypes. Fixed another case on bug #652331. 2011-02-09 15:42:40 +09:00
Jonathan Pobst a9082416b0 Fix msvc build for threadpool changes. 2011-02-08 23:35:22 -06:00
Zoltan Varga 83b91243c1 Disable OP_INEG cfolding on 32 bit arches, as it breaks the LNEG decomposition. The previous special casing didn't work as the spill pass could insert a store between the ineg and the adc_imm. Fixes #670479. 2011-02-09 05:12:12 +01:00
Gonzalo Paniagua Javier c649da58f9 [SmtpClient] Don't send empty display name.
If there's no display name, don't send '""'.
	Fixes bug #670475.
2011-02-08 21:01:59 -05:00
Marek Habersack f42c415b09 [build] Added runtime/_tmpinst/mcs script to unbreak system.web tests for 2.0
Also made gmcs force -sdk=2 since -sdk=4 is now the default. _tmpinst/mcs is needed because
the CSharp CodeDOM provider invokes it and without the script in place it will launch the
first mcs available in the path.
2011-02-09 02:36:00 +01:00
Marek Habersack be07f04c62 [asp.net] Be more careful with errors collection when compilation fails. 2011-02-09 01:24:16 +01:00
Marek Habersack 1171cacd8d [asp.net] Implemented CustomErrorsRedirectMode 2011-02-09 01:24:16 +01:00
Gonzalo Paniagua Javier 22794e9c8f Just need 1 instance of the generic principal. 2011-02-08 19:12:28 -05:00
Gonzalo Paniagua Javier 2670761ee7 [threadpool] Added dynamic concurrent queue implementation
Replace the big lock around the list+array used to queue work items
	with a dynamic concurrent queue to reduce contention.
2011-02-08 17:28:53 -05:00
Mark Probst b8f9fee496 [sgen] Two carefully placed prefetches.
Prefetch an object's vtable word when it's put on the gray stack,
because it's likely to be scanned soon.

Also prefetch it right before calling the mark/copy function in the
dynamic heap M&S to win a few cycles on the load.  Don't do it for the
fixed heap because there it's unlikely we'll need the vtable anyway,
so the cache can be put to good use elsewhere.
2011-02-08 22:24:44 +01:00
Mark Probst 77c53b9b18 [sgen] Only load an object's vtable word if absolutely necessary in M&S.
Until now we always loaded the vtable word in the mark/copy function.
It is not necessary in most cases for the fixed heap collector,
however.  If the object is on the small object major heap and its
block size is not evacuated we don't need to load it.
2011-02-08 22:24:44 +01:00
Mark Probst 6ae889bd4f [sgen] Fix some debug functions. 2011-02-08 22:24:44 +01:00
Mark Probst d4ff53c6ad [sgen] Keep statistics on slots allocated in vain in parallel M&S. 2011-02-08 22:24:43 +01:00
Mark Probst ac358ae161 [sgen] Make SGen compile with heavy statistics enabled. 2011-02-08 22:24:43 +01:00
Miguel de Icaza 8abe2f6c49 Add new test 2011-02-08 16:01:29 -05:00
Miguel de Icaza 8d2b210632 Fix Enum.HasValue, previous version crashed with negative values 2011-02-08 15:48:35 -05:00
Miguel de Icaza c71944e2bb Update docs 2011-02-08 15:48:34 -05:00
Miguel de Icaza df5e0831fa Add prototype to .h file 2011-02-08 15:48:34 -05:00
Lucas Meijer dc27dd4c02 implement mono_set_assemblies_path for platforms that cannot set MONO_PATH environment variable. 2011-02-08 15:48:33 -05:00
Rodrigo Kumpera 13ff58f9ae Avoid allocating memory for the handles.
* threads.c (ves_icall_System_Threading_WaitHandle_WaitAny_internal):
	Store the handles on stack memory.
2011-02-08 20:48:57 +01:00
Rodrigo Kumpera f93d21ce8b Avoid allocating memory.
* wait.c (WaitForMultipleObjectsEx): Use a stack allocated
	array and detect duplicated by sorting and doing a linear
	search.
2011-02-08 20:48:56 +01:00
Marek Habersack a8362f1a14 [cross-compilation] Added some flexibility regarding the location of development packages
The script now supports an extra cross-compilation directory in which you can unpack the
library and development packages necessary for the build to succeed (glib, zlib etc). Also
supported now is specifying the location at which Mono will be installed on Windows.
Replaced SVN and GIT-SVN version checks with git checks.
2011-02-08 20:44:25 +01:00
Marek Habersack 90f74ba8f2 [aot compiler] runtime_dep uses the correct path when cross-compiling 2011-02-08 20:44:25 +01:00
Marek Safar 4ad5f42e11 Fix Mono.CSharp vs solution 2011-02-08 17:34:30 +00:00
Marek Safar 2e1216beab Allow both predefined and custom values for mcs -skd option 2011-02-08 17:34:30 +00:00
Rodrigo Kumpera 2a5d9080c0 Fix reference queue under boehm.
* gc.c (finalizer_thread): Clean reference queues
	after finalizers are called to give boehm a chance
	to resurrect it.
2011-02-08 18:23:44 +01:00
Hib Eris 1e936ba574 Fix build-mingw32.sh for CROSS_PKG_CONFIG_DIR without *.pc files 2011-02-08 15:00:33 +01:00
Hib Eris f83c5cf581 No longer include glib binaries in build-mingw32.sh builds.
By default, Mono now uses an embedded glib implementation, so there
is no need to ship external glib libraries anymore.
2011-02-08 15:00:33 +01:00
Hib Eris d214c8e133 Let build-mingw32.sh script also work on dist tarballs 2011-02-08 15:00:33 +01:00
Marek Safar 0bed23d764 Optimize Enumerable::ToArray 2011-02-08 13:56:22 +00:00
Hib Eris 581d84c140 Use winternl.h instead of ddk (when available)
These changes are nescessary for compiling with a mingw-w64 compiler.
2011-02-08 14:44:31 +01:00
Hib Eris 8fd7a9abf0 Remove implementation details from public header io-layer.h
The macro HAVE_GETPROCESSID is defined in config.h and should not be
exposed in public headers.
2011-02-08 14:44:30 +01:00
Marek Safar f3bba38d86 [657099] Fix cloning of remapped blocks 2011-02-08 12:52:00 +00:00
Atsushi Eno 0d4ad4e387 Simple content restriction was not validated when it is in further reference.
Fixed bug #595947. It was complexType [base]-> complexType [base]-> simpleType.
2011-02-08 20:52:20 +09:00
Rolf Bjarne Kvinge 8b3782ad4d Moonlight build: we need to create the deps dir 2011-02-08 12:36:36 +01:00
Marek Safar 8dd4acf57a New test. 2011-02-08 11:22:14 +00:00
Marek Safar fcd39a34a4 Fix remapping of cloned block parent when already in cloned context 2011-02-08 11:22:14 +00:00
Marek Safar 7e3c6f434f Disable vs hosting 2011-02-08 11:22:14 +00:00
Atsushi Eno b1be7755df For complexType simpleContent restriction, fill attributes from base type.
Part of bugfix #595947.
2011-02-08 18:31:49 +09:00
Atsushi Eno 8e916dc39c There's a tricky namespace-mismatching deserialization in .NET implementation.
Fixed bug #666333.
2011-02-08 17:09:26 +09:00
Zoltan Varga 0bc4795214 Make the 4.0 profile the default if no is given on the make line in mcs/. 2011-02-08 01:58:03 +01:00
Rolf Bjarne Kvinge b36f4c2dd9 Moonlight build: use system tools to compile. This means we don't need a bootstrapping profile either 2011-02-08 01:08:09 +01:00
Hib Eris f25db7a794 Do not distribute eglib-config.h
The file eglib-config.h is generated when running configure.
Distributing eglib-config.h in tarballs causes errors when building
out of the source tree.
2011-02-08 01:01:09 +01:00
Hib Eris bef5178b89 Use _vscprintf() for mingw-w64 compilers
The mingw-w64 compilers implement a vsnprintf() function that do not
conform to the C99 standard (just like MSVC).
2011-02-08 01:01:08 +01:00
Marek Habersack 997394024f [crypto] Added missing 4.0 algorithm names 2011-02-08 00:32:41 +01:00
Hib Eris 18438b44ac Include config.h in mono-profiler-aot.c
This change is nescessary for compiling with a mingw-w64 compiler.
2011-02-07 23:40:53 +01:00
Zoltan Varga 9e9f11f160 Cast the result of MONO_CONTEXT_GET_SP () to an int to fix the windows build. 2011-02-07 23:35:57 +01:00
Zoltan Varga 2008975524 Include sys/types.h for pid_t on mingw. Fixes #670076. 2011-02-07 23:32:44 +01:00
Jonathan Pobst 6aac6da3d1 Move variable declaration to top of function for msvc. 2011-02-07 16:06:19 -06:00
Marek Safar a352bb2f72 moonlight build fix 2011-02-07 17:19:41 +00:00
Larry Ewing a7e40bc796 Pinvoke symbols according to the new moonlight naming convention. 2011-02-07 10:56:50 -06:00
Rodrigo Kumpera 274c891972 Handle patching with shared opt enabled.
* mini-trampilines.c (common_call_trampoline): With
	shared optimization enabled code patching doesn't work
	if we are running a non root domain.c
2011-02-07 17:06:54 +01:00
Zoltan Varga fa6166183d Use mono_method_get_vtable_slot () instead of accessing method->slot directly. Fixes #669808. 2011-02-07 16:10:33 +01:00
Atsushi Eno cae51172f8 Open and close client/service runtime channels in chains. Fixed bug #663278. 2011-02-07 23:15:22 +09:00
Atsushi Eno 0351f32bb8 handle IsTerminating. 2011-02-07 23:14:53 +09:00
Zoltan Varga 5eca8e1a22 Fix a warning. 2011-02-06 22:25:32 +01:00
Zoltan Varga 8ac8f73fc3 Remove a duplicate call to mini_gc_init (). 2011-02-06 20:41:47 +01:00
Zoltan Varga f443dbf4fa Fix a warning/bug. 2011-02-06 20:27:02 +01:00
Zoltan Varga 5959975e9e Really fix the ia64 build. 2011-02-06 15:54:39 +01:00
Zoltan Varga d8aea7ac70 Fix the ia64 build. 2011-02-06 00:07:47 +01:00
Rodrigo Kumpera 1be9686bd4 Add regression test to #666008 2011-02-05 13:38:07 +01:00
Rodrigo Kumpera 8a4ece04d3 Fixes ldfnt to ldvtftn conversion.
* mini-trampolines.c (mono_delegate_trampoline): The ldftn
	to ldvtftn conversion must check if the method is abstract,
	otherwise it breaks delegate to base classes.

	Fixes #666008
2011-02-05 13:30:45 +01:00
Zoltan Varga 21ffd44a42 Applied small changes/reorganizations from the unity repo. 2011-02-04 19:44:28 +01:00
Zoltan Varga 8eeb1a34e8 Print a normal stack trace even if a hard stack overflow happens in unmanaged code. 2011-02-04 12:55:12 +01:00
Atsushi Eno cb09118840 Duplex client has its own listener loop, so special care on reply is needed. 2011-02-04 12:51:02 +09:00
Atsushi Eno e0a3b79880 Callback contract should be distinguished from others for DispatchOperation. 2011-02-04 12:50:25 +09:00
Zoltan Varga b9de2e7293 Print a normal stack trace on a hard stack overflow. 2011-02-03 23:03:42 +01:00
Zoltan Varga fadf1103d8 Fix the handling of CompareExchange icalls in AOT, we were using the 'object' versions for everything, which broke with 64 bit types on 32 bit platforms. 2011-02-03 21:57:08 +01:00
Ankit Jain 736d225d76 [webservices] Extensions can be unknown XmlElements also, fix.
* class/System.Web.Services/System.Web.Services.Description/BasicProfileChecker.cs:
Extensions can be XmlElement or ServiceDescriptionFormatExtension.
* class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs:
(AddExtensionNamespaces): Likewise. Also, ignore namespaces from
XmlElement, as we retain and write them out as-is.
(WriteExtension): Emit the XmlElement as-is.
* class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs:
Update to write out the wsdl also.
2011-02-04 01:02:09 +05:30
Zoltan Varga a6da6fd3c4 Enable system AOT on arm. 2011-02-03 19:45:32 +01:00
Marek Habersack cd72a7bcb5 [xml] XmlReaderSettings.{DtdProcessing,MaxCharactersFromEntities,MaxCharactersInDocument} are present in 3.5+
With the exception of DtdProcessing, the properties are part of .NET 3.5+. DtdProcessing appeared in 4.0.
2011-02-03 17:40:00 +01:00
Marek Habersack 886240dea0 [asp.net] HttpRuntimeSection.RequestPathInvalidCharacters default value is different 2011-02-03 17:34:28 +01:00
Zoltan Varga 24f3f8167a Detect VFP support automatically on arm. 2011-02-03 17:19:27 +01:00
Rodrigo Kumpera af6e1f8cd7 Avoid calling time(NULL) when not needed.
* handles.c (_wapi_handle_ref): Avoid calling
	time(NULL) for the private case. Some systems implement
	it using a syscall.

	* handles.c (_wapi_handle_new_from_offset): Ditto.
2011-02-03 16:42:53 +01:00
Rodrigo Kumpera 8c005a8302 Avoid padding in some cases.
* mini-x86.c (emit_call): nether AOT or icall wrappers
	needs padding.
2011-02-03 16:42:52 +01:00
Marek Safar acb031c92c Fix importing of private types under dynamic context 2011-02-03 15:13:50 +00:00
Zoltan Varga 76a0076e97 Fix the passing of vtype arguments for methods which return floats in soft-float mode. Fixes #668905. 2011-02-03 16:05:30 +01:00
Zoltan Varga 5f04c544fb Fix a warning. 2011-02-03 16:05:30 +01:00
Marek Safar 5ba4cb0b55 Add new test 2011-02-03 13:53:41 +00:00
Marek Safar e6c74ffbd1 Allow any expression to be used in where clause. Some custom linq implementations use non-predicate version of where 2011-02-03 13:37:41 +00:00
Marek Safar 8ceb2172dd Removed unused files 2011-02-03 12:22:41 +00:00
Marek Safar 93fcc4a3a7 New test 2011-02-03 12:22:12 +00:00
Marek Safar c1e53ceb4a Don't even try to import type when its context is wrong 2011-02-03 12:12:48 +00:00
Marek Safar 657c0588c0 Set null object for default timer 2011-02-03 12:03:50 +00:00
Marek Safar a227dbd93e Add method into type container as soon the header is ready 2011-02-03 11:42:02 +00:00
Marek Safar e1b4ccf163 Fix error message text 2011-02-03 11:08:57 +00:00
Marek Safar c197b470f8 Need three valued bool logic for CLSAttribute value 2011-02-03 10:27:17 +00:00
Marek Habersack 805da076e0 [reflection] Default binder's AdjustArguments method treats ParamArray parameters which are already arrays properly
Such parameters are not adjusted as it would lead to an InvalidCastException whenever an attempt to set an array
index's value would be made.
2011-02-03 02:22:31 +01:00
Zoltan Varga b96746a946 Add support for --debug=casts to Array:SetValue (). Fixes #668851. 2011-02-03 00:26:34 +01:00
Rodrigo Kumpera 24642f04ac Avoid the loader lock in the common path.
* class.c (mono_generic_class_get_class): Don't take
	the loader lock to check if cached_class was created.
	Use full memory barriers to make sure proper visibility.
2011-02-02 21:46:20 +01:00
Rodrigo Kumpera 49427a1b28 Fix dynamic method cleanup at shutdown.
* gc.c (mono_gc_cleanup): Cleanup all reference
	queues after regular finalization.

	* reflection.c: The dynamic method ref queue is finalized
	by the runtime itself.

	* runtime.c: Ditto.
2011-02-02 19:33:57 +01:00
Miguel de Icaza cf2b1d58af [csharp] Change the signature for print 2011-02-02 13:05:27 -05:00
Marek Safar 9109d38e09 New test 2011-02-02 17:24:03 +00:00
Marek Safar b67c0980c3 Better log details for CS0281 2011-02-02 17:24:03 +00:00
Marek Safar 9d2a548321 Implement support for implicit user conversion for DefaultParameterValue (very odd) 2011-02-02 17:24:03 +00:00
Jérémie Laval 1f930bb19d Steal more agressively once we have found a potential available worker 2011-02-02 17:08:40 +00:00
Jérémie Laval fde2f884b5 Move call to Set a bit higher to avoid calling them to repeatdly in ThreadWorker 2011-02-02 17:08:40 +00:00
Jérémie Laval 7c508d9ce0 Adjust some ThreadWorker constants 2011-02-02 17:08:40 +00:00
Jérémie Laval 1e9a82634d Don't reset ThreadWorker event when it's not needed 2011-02-02 17:08:39 +00:00
Jérémie Laval 30cc982eb8 Avoid wrapping task body given as Action into Action<object> 2011-02-02 17:08:39 +00:00
Atsushi Eno a2f1b9fb76 Now operations are collected per corresponding ContractDescription.
This fixes naming of MessageDescription Action URI from its type.
2011-02-03 01:07:44 +09:00
Zoltan Varga 96e617e7ac Rebuild mscorlib/mcs AOT images if the runtime changes. 2011-02-02 16:20:43 +01:00
Lucas Meijer 6e2b9d3da4 make mono_print_thread_dump output to the visualstudio debugger window, for better debugger experience 2011-02-02 16:20:43 +01:00
Jérémie Laval bb29e352e0 Also check directly Task.IsCompleted when we are waiting 2011-02-02 15:07:45 +00:00
Jérémie Laval f81cd730a0 Avoid possible races in ManualResetEventSlim in case handle was already created but not with correct value 2011-02-02 15:07:45 +00:00
Jérémie Laval faf1b2c8c1 Cache ChildWorkAdder delegate object in ThreadWorker 2011-02-02 15:07:45 +00:00
Jérémie Laval d588d7ffee Lazy creation of the continuation queue in Task 2011-02-02 15:07:45 +00:00
Jérémie Laval e96c335c73 Inline read and write calls in CyclicDeque 2011-02-02 15:07:45 +00:00
Jérémie Laval 6e1a729b71 Make some CyclicDeque operation faster 2011-02-02 15:07:45 +00:00
Ankit Jain 133db04626 [xbuild] Warn for unknown toolsVersion only on build.
Emit warning for unknown toolsversion only on a build, and
*not* everytime the project file is parsed.

* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs
(GetToolsVersionToUse): Add a 'emitWarning' bool param.
(Build): Call GetToolsVersionToUse () to ensure that a warning is
emitted in case of a unknown tools version.
2011-02-02 18:10:33 +05:30
Marek Safar 049a51aa06 Update error tests 2011-02-02 12:39:10 +00:00
Marek Safar b70344fdd5 Update mono.spec with new mcs.exe location 2011-02-02 12:39:09 +00:00
Marek Safar d976580bd0 Compile&Run runtime tests with 4.0 corlib 2011-02-02 12:39:09 +00:00
Marek Safar f9c8a5c71c Move DynamicContext class into a new file 2011-02-02 12:39:09 +00:00
Marek Safar d44879348f Add handling of broken Convert callsite from Orchard Project 2011-02-02 12:39:08 +00:00
Rodrigo Kumpera 83586e4900 Align call instructions to make code patching SMP safe.
* mini-x86.c (emit_call): Align call instructions on
	3 mod 4 so the address is 4 bytes aligned and can't span
	two cache lines. This is required for proper SMP support
	as CAS is not atomic across cache lines.

	Fixes one of the crashes due to #667921.
2011-02-02 12:53:01 +01:00
Marek Safar 3f21f9037a Another attempt to build resgen correctly 2011-02-02 11:07:50 +00:00
Marek Safar 00641d503d New test 2011-02-02 11:07:42 +00:00
Marek Safar f735f6d9a1 Update to the latest mcs 2011-02-02 10:01:51 +00:00
Marek Safar 652eff2162 Update resgen header 2011-02-02 09:44:36 +00:00
Marek Safar 8fce8113a0 Update to the latest mcs 2011-02-02 09:44:35 +00:00
Marek Safar 43df638bac Make resgen build profile specific 2011-02-02 09:44:35 +00:00
Marek Safar b5b5e51559 Clean up resource files 2011-02-02 09:44:35 +00:00
Atsushi Eno 23a7a0b657 Implement XamlReader.ReadSubtree(). 2011-02-02 18:18:02 +09:00
Atsushi Eno 9f92cc615e Add missing test files. 2011-02-02 18:14:24 +09:00
Atsushi Eno d7ad74f11f Implement GetInheritedContracts(), towards bugfix #668089. 2011-02-02 16:11:58 +09:00
Geoff Norton dccae3c382 Avoid a stack overflow when deactivating a window 2011-02-01 23:54:36 -05:00
Michael Hutchinson 6f1cb10490 [Sdb] Pass out assigned port from VirtualMachineManager.BeginListen 2011-02-01 23:00:42 -05:00
Rolf Bjarne Kvinge 140f7b72d9 Updated .gitignore 2011-02-01 20:06:53 +01:00
Rodrigo Kumpera b9d5892425 Add test for dynamic method resurrection. 2011-02-01 18:08:57 +01:00
Marek Safar 7c47d212cc security was missing in 4.0 profile 2011-02-01 17:00:32 +00:00
Zoltan Varga 6911e05b2d Make caching in mono_marshal_get_virtual_stelemref () thread-safe. Fixes #668489. 2011-02-01 17:09:34 +01:00
Rodrigo Kumpera 89d1455a80 Don't use finalization to cleanup dynamic methods.
* reflection.c: Use a reference queue to cleanup
	dynamic methods instead of finalization.

	* runtime.c: Shutdown the dynamic method queue
	before runtime cleanup begins.

	* DynamicMethod.cs: No longer finalizable.

	* icall-def.h: Remove unused dynamic method icall.

	Fixes #660422
2011-02-01 16:52:43 +01:00
Rodrigo Kumpera 8eb1189099 Implement a reference queue API.
* gc.c: A reference queue allows one to queue
	callbcks for when objects are collected.
	It allows for safe cleanup of objects that can
	only be done when it is effectively collected.
	The major difference with regular finalization
	is that the collector makes sure the object
	was collected - and can't be resurrected.

	* gc-internal.h: Export entrypoints for the
	new API.
2011-02-01 16:52:43 +01:00
Marek Safar 7424fef442 Fix culevel execution path 2011-02-01 15:06:10 +00:00
Marek Safar 8fb3773a2e Add gacutil to perprofile build 2011-02-01 15:06:09 +00:00
joncham 122fb8dd72 Disable finally_guard test on Windows. 2011-02-01 09:57:16 -05:00
Marek Safar f95563a476 Fix resgen profile path 2011-02-01 14:27:23 +00:00
Marek Safar 6a5e36d799 Fix empty cast conversion from dynamic type object type argument 2011-02-01 14:27:23 +00:00
Marek Safar 5e261c905b Default mcs sdk version is now 4 2011-02-01 14:27:23 +00:00
Jérémie Laval 0e5106e896 Adapt Parallel.For stealing to all processor flavors 2011-02-01 13:19:58 +00:00
Marek Safar 5e5b296eae Make mcs.exe .net4 application 2011-02-01 12:53:22 +00:00
Marek Safar ef49ad4708 Remove unused file 2011-02-01 12:53:21 +00:00
Atsushi Eno 051d9bd0de Make sure to clear compiled items. Fixes regressions appeared in WCF land. 2011-02-01 21:23:44 +09:00
Atsushi Eno e2059c1ca4 standard endpoint and protocol mapping support were lacking at client side.
Turned out that they had nothing to do with #668089..
2011-02-01 20:25:40 +09:00
Marek Habersack 620d6afed1 [asp.net] FormsAuthenticationTicket.FromByteArray stops early if it is passed a null parameter 2011-02-01 09:18:21 +01:00
Marek Habersack bb4e4e1a00 [runtime] AddWatcher icall must look up the path in an IOMAP-aware way 2011-02-01 09:17:17 +01:00
Atsushi Eno ab2cc9fed9 Members in the base type in different namespace are serialized in base ns.
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.

This should fix bug #652331.
2011-02-01 15:53:05 +09:00
Atsushi Eno b15dcd8943 quick build workaround. 2011-02-01 12:59:44 +09:00
Atsushi Eno c71ee51faf in NET_4_0, remove types that went into System.Xaml.dll. Change build order. 2011-02-01 10:56:07 +09:00
Bit Diff 64ecfe59e7 Fixes #527447 whereby it was not possible to pass additional arguments to mono-service2 (if your executable required command-line arguments of it's own). 2011-01-31 17:57:19 -05:00
Zoltan Varga 4604fe76e2 Remove some duplicate code from mono_arch_find_jit_info (). 2011-01-31 22:44:13 +01:00
Zoltan Varga 224abec3da Fix stack walks on sparc. 2011-01-31 22:39:52 +01:00
Gonzalo Paniagua Javier cd038bf2c8 Handle wrapped ThreadAbortException
Third party ProcessRequest() like the one from Razor can wrap a
	ThreadAbortException originated from response.Redirect().
2011-01-31 16:36:53 -05:00
Jonathan Pryor 40c3113d8f Fix the basic-profile build. 2011-01-31 15:17:46 -05:00
Jonathan Pryor d49ecf5a4d [monodroid] Fix System.TimeZoneInfo.
Most System.TimeZoneInfo members weren't be included in the build.
2011-01-31 14:08:41 -05:00
Gonzalo Paniagua Javier f4c13c06c7 Allow forcing HTTP protocol version
If the version is manually set, ignore the version from the service
	point when set.

	Fixes bug #668199.
2011-01-31 10:48:37 -05:00
Lluis Sanchez 3d2caadfb5 Handle possible exceptions thrown by Socket.Close 2011-01-31 16:35:35 +01:00
Marek Habersack 63a9a149c4 [asp.net] Implemented 4.0 types System.Web.Security.{MachineKey,MachineKeyProtection} plus tests 2011-01-31 15:19:25 +01:00
Jb Evain fa036727ae unbreak the build 2011-01-31 15:02:53 +01:00
Marek Safar 732f1c617e Add more details to mcs time tracing 2011-01-31 13:53:55 +00:00
Levi Bard 08f00f0d02 [Fix] Cleanup per github comments.
* io-layer/processes.c:
 * io-layer/process-private.h:
  Cleanup per github comments.

License: MIT/X11
2011-01-31 14:06:05 +01:00
Tak 060c61e08f [Fix] Fix process scanning on OSX.
* io-layer/process-private.h: Generalize PID masking.
* io-layer/processes.c: Fix process scanning on OSX.

License: MIT/X11
2011-01-31 14:05:55 +01:00
Zoltan Varga c3a038e2cb When using xdebug, allocate all code from the code manager of the root domain. Hopefully fixes #666152. 2011-01-31 11:46:21 +01:00
Marek Habersack ecce3f42e4 [asp.net] Ignore directories that don't exist instead of throwing. 2011-01-31 11:06:41 +01:00
Atsushi Eno 3df62f0850 Fix bug #661400 - fix complicated namespace resolution issue.
Namespaces in nested external schemas have to be validated against
immediately-containing schema. If there is a schema A with urn:x
targetNamespace imports a schema B with urn:y targetNamespace which
in turn includes another schema C, then C must be validated its namespace
against B, not A.
2011-01-31 18:02:09 +09:00
Marek Habersack 14f4fbe9ee [runtime] Use IOAMP-aware method of looking for domain configuration file 2011-01-31 09:29:47 +01:00
Jo Shields f93bb42f7c Really fix sgen on PowerPC Linux. Assembler on Linux requires that register names are just bare numbers, unlike OSX, i.e. "r0" must be "0" on Linux. 2011-01-31 07:46:28 +01:00
Atsushi Eno 9021910845 Do not return DocumentFragment from AppendChild() etc. Fixed bug #666249. 2011-01-31 13:27:46 +09:00
Atsushi Eno c410acbb5b Fixed bug #666872; XElement.Changed and .Changing were not triggered.
Patch almost by Cambell Prince.
2011-01-31 12:09:06 +09:00
Atsushi Eno 696c528ac5 add public NetTcpSecurity .ctor() and close #667429. 2011-01-31 11:49:22 +09:00
Miguel de Icaza 360f833e48 [repl] Fix running specified scripts from command line, allow #! syntax, add print command
We were calling the Reset () method after we had initialized the driver
with the new command line arguments, clearing the list of files to execute
before we executed them.

Added support for #! in the csharp repl, and added the print() command to
the InteractiveBase

Add a better way of dealing with -e, without adding hacks to the core that wont work
in the future
2011-01-30 17:44:01 -05:00
Miguel de Icaza 1b8d34db5f [repl] Fix running specified scripts from command line, allow #! syntax, add print command
We were calling the Reset () method after we had initialized the driver
with the new command line arguments, clearing the list of files to execute
before we executed them.

Added support for #! in the csharp repl, and added the print() command to
the InteractiveBase
2011-01-30 17:44:01 -05:00
Veerapuram Varadhan 1012ab0bbc Fixes 667236 - Handle numeric types appropriately 2011-01-31 01:15:55 +05:30
Miguel de Icaza d8520bf769 [repl] Add support for -e EXPRESSION to the csharp command 2011-01-30 12:06:24 -05:00
Miguel de Icaza cd6a584860 Document csharp #! support 2011-01-30 11:40:59 -05:00
Veerapuram Varadhan a7bfa16bd9 Added schema file to fix test break 2011-01-30 14:19:29 +05:30
Veerapuram Varadhan e2e8734262 Don't run the test. Fixes test break. 2011-01-30 14:19:29 +05:30
Zoltan Varga e5f3169d70 Mark a newly added test as !FULLAOT. 2011-01-30 09:12:08 +01:00
Zoltan Varga b84968161f Fix some quadratic behavior in the AOT compiler. 2011-01-30 09:10:30 +01:00
Zoltan Varga 94d9671ac6 Improve hashing of MONO_PATCH_INFO_TYPE_FROM_HANDLE. 2011-01-30 09:10:09 +01:00
Zoltan Varga 02a65349e1 Don't crash when inlining static methods called using callvirt. Fixes #668170. 2011-01-30 06:59:42 +01:00
Zoltan Varga 08cdfb5d1e Clear the 'need_rgctx_tramp' flag when creating a synchronized wrapper. Fixes 2011-01-29 20:52:08 +01:00
Geoff Norton d05387a0bd Typo 2011-01-29 11:37:17 -05:00
Thomas Goldstein ea9864ac6c Remove .NET 1.1 internal class: System.Windows.Forms.IDeviceContext 2011-01-29 10:28:32 +01:00
Geoff Norton 64cb57088a Avoid a crash when shutting down jit attached threads 2011-01-28 19:06:45 -05:00
Zoltan Varga 7903b30fd9 Remove unused --with-glib/--with-jit/--with-interp options. 2011-01-28 17:33:19 +01:00
Zoltan Varga 70225f154f Add an AtLeast version to sdb's VersionInfo class. 2011-01-28 17:33:19 +01:00
Geoff Norton fb081e88fd Ensure we setup the vtable before accessing it 2011-01-28 01:08:19 -05:00
Geoff Norton cb1d4d7241 Bump SDB protocol so MonoDevelop can guard IL inspection of dynamic methods 2011-01-28 00:25:57 -05:00
Geoff Norton ddecc53e23 Dont leak loader errors in the aot compiler, as it could cause later methods to not get compiled erroneously 2011-01-27 23:23:15 -05:00
Gonzalo Paniagua Javier a554acdc4f [HttpListener] Set each cookie in its own header
Send a Set-Cookie header per cookie instead of a Set-Cookie2 with
	multiple cookies.

	Fixes bug #667550.
2011-01-27 15:46:15 -05:00
Zoltan Varga 7b7562d0e9 Fix AOT support for types in the EXPORTEDTYPE table. 2011-01-27 19:28:04 +01:00
Jérémie Laval f831cfdf27 Workaround stealing failure by disabling it in 32bits 2011-01-27 17:54:56 +00:00
Zoltan Varga 447fa3f0e8 Increase an aot buffer size again. 2011-01-27 17:24:57 +01:00
Marek Habersack 81b8a39b9c [asp.net] DefaultVirtualPathProvider cosmetics.
Use String.IsNullOrEmpty instead of comparing against ""
2011-01-27 15:35:06 +01:00
Marek Habersack f775654495 [asp.net] A bunch of fixes related to the default VirtualPathProvider (needed for Orchard)
* DefaultVirtualDirectory is now more careful when snipping off parts of the path passed to
  its constructor. Before removing the file part it checks whether the file indeed exists.
  Also sealed the class and made it use generic List instead of ArrayList
* HttpRequest does not normalize mapped paths when converting them to absolute ones. This is
  to avoid errors when path like "~/bin/../../file.txt" is passed to MapPath.
* VirtualPathUtility.ToAbsolute overload with normalize parameter really doesn't normalize
  the resulting path now.
2011-01-27 15:35:06 +01:00
Marek Habersack 42e2e27e05 [machine.config] Added the <system.transactions> section definition 2011-01-27 15:35:05 +01:00
Zoltan Varga 7a0ebccfaa Applied patch from Burkhard Linke <[email protected]>. Add support for newer boehm-gc versions. 2011-01-27 15:34:36 +01:00
Jérémie Laval 1c28d8d27f Leave db connection opened until requested to close it and add more unit tests 2011-01-27 13:16:42 +00:00
Alan McGovern 652e71d6e9 Revert "[Build] Ensure the profiler module is built in the moon profile."
This reverts commit 2975432969. This breaks
the moon build currently.
2011-01-27 12:57:22 +00:00
Alan McGovern 2975432969 [Build] Ensure the profiler module is built in the moon profile. 2011-01-27 11:17:55 +00:00
Zoltan Varga 734fef0a91 Improve an AOT error message. 2011-01-27 11:49:27 +01:00
Zoltan Varga 6c92b5d5cc Fix up aot-ing of mscorlib/mcs by AOTing mcs in the basic/2.0 profiles, installing it in 2.0. 2011-01-27 11:48:21 +01:00
Zoltan Varga e51049ee3b Fix compilation of tests/assemblyresolve with newer mcs-es. 2011-01-27 11:05:32 +01:00
Marek Safar be2b05b3d3 New test 2011-01-27 09:05:10 +00:00
Marek Safar 76f606e495 Fix a warning 2011-01-27 09:05:10 +00:00
Marek Safar 1e0428889f Tests update 2011-01-27 09:05:09 +00:00
Marek Safar 4423ad060b [667261] Fixes overload resolution of an optional parameter followed by a params parameter of the same type 2011-01-27 09:05:09 +00:00
Marek Safar cda8353f0c Don't allocate anonymous method container when importing event fields 2011-01-27 09:05:09 +00:00
Zoltan Varga 8048982713 Fix dist issues in Mono.Debugger.Soft. 2011-01-27 07:15:11 +01:00
Gonzalo Paniagua Javier 2fc89c1557 Prevent abort
When cleaning up the sockets we no longer have access to Tls.
2011-01-26 23:08:52 -05:00
Zoltan Varga 92a01903df Fix name of CASTCLASS wrappers. 2011-01-27 01:45:08 +01:00
Zoltan Varga e228282412 Add AOT support for castclass_with_cache wrappers. 2011-01-27 01:42:58 +01:00
Kyle Ambroff 0dfe460dc6 version tolerant serialization fails with missing primitive members
Modifies ObjectReader so that when it encounters a primitive typed member in
an object stream which has no corresponding member in the app domain, it will
read the value anyway and throw it away. That way it can read the next block
from the stream.

Added a unit test which passes with the changes to ObjectReader.

Fixes bug #641821.
2011-01-26 18:07:31 -05:00
Kenneth Bell 6cb0994257 Implement RawSecurityDescriptor.
* Marshals to/from SDDL and binary form.

 * Supports 'Common' ACEs and 'Object' ACEs
2011-01-26 18:00:29 -05:00
Kenneth Bell c47765e4a2 Implement SecurityIdentifier and improve NTAccount.
* Only translates between SecurityIdentifier and NTAccount for
    well-known accounts.

  * NTAccount changed to not upper-case values to match behaviour
    observed in Microsoft's .NET (see also unit tests)

  * Add unit tests for both classes
2011-01-26 17:59:52 -05:00
Ankit Jain 77fabf1209 Process.Start: Show native error message in Win32Exception.
mcs/class/System/System.Diagnostics/Process.cs (Start_noshell):
If the process execution fails, then add the error message for
the native error code in the Win32Exception thrown.
2011-01-27 04:03:46 +05:30
Antoine Cailliau 053cc05107 Implements System.ComponentModel.DataAnnotations.RegularExpressionAttribute 2011-01-26 17:29:56 -05:00
Jérémie Laval beddbef60a Fix overflow checking in PLinq Range operator 2011-01-26 17:50:09 +00:00
Geoff Norton 54d50f2656 Include operands when emitting the IL stream to sdb clients 2011-01-26 12:35:00 -05:00
Geoff Norton 567512bd8f Ensure we properly align the stack before resuming from breakpoint signal handlers 2011-01-26 12:13:41 -05:00
Andrew Jorgensen fb75a201a3 Add 2.0 and 4.0 S.D.S.C 2011-01-26 09:49:01 -07:00
Geoff Norton ae2d6d1f7d Dynamic methods are classes already here 2011-01-26 11:25:05 -05:00
Marek Safar d6fdad900c Remove unused very expensive registered_signals field 2011-01-26 13:29:11 +00:00
Marek Safar a5ee4f3b76 Remove wrong key from System.Data.Services.Client 2011-01-26 13:29:11 +00:00
Marek Safar 145d6be351 Avoid linear scan in GetEncoding and make the initialization lazy 2011-01-26 13:29:11 +00:00
Marek Safar a9be3295ac Revert broken ikvm change 2011-01-26 13:29:10 +00:00
Marek Safar 9ce569a853 Cache MonoUtil::IsUnix value 2011-01-26 13:29:10 +00:00
Rodrigo Kumpera d7e670c0c7 Fix freeing of delegate wrappers.
* marshal.c (mono_marshal_get_delegate_invoke): If
	the target is a static method with first arg bound
	and it belongs to a different assembly than the delegate
	we might end up with a freed signature in the hashtable.

	Fix a moonlight crash.
2011-01-26 11:37:05 +01:00
Marek Safar 237ac7c68b New test 2011-01-26 08:59:12 +00:00
Marek Safar 73b624bb2d Update to the latest IKVM 2011-01-26 08:59:12 +00:00
Marek Safar 86b3d1371f Optimized constructor readonly access has to be inside same declarting type 2011-01-26 08:59:11 +00:00
Marek Safar b87d4ad402 Improve compatibility of BinaryReader with non-default encoder when reading large strings 2011-01-26 08:59:11 +00:00
Marek Safar 72a7dcbc53 Improve FileStream block reading performance little bit 2011-01-26 08:59:11 +00:00
Geoff Norton ce9afaf47f MonoTouch doesnt support SRE, so we need to disable this code on MT 2011-01-25 22:56:17 -05:00
Zoltan Varga eb8be6f651 Add a 'suspend-on-unhandled' MONO_DEBUG option to help track down the random build failures on ia64. 2011-01-26 04:16:50 +01:00
Geoff Norton 16d4fd790b Further .NET 4.0 ification of the mobile profile 2011-01-25 20:10:54 -05:00
Ankit Jain 78dbed369d [xbuild] Improve error messages for condition evaluation.
Also, add new ExpressionEvaluationException class.
Wrap Expression*Exceptions in InvalidProjectFileException with
info about the full condition being evaluated.
2011-01-26 04:53:12 +05:30
Ankit Jain a3cf6d4379 [xbuild] Support short-circuiting in conditions. 2011-01-26 04:53:12 +05:30
Jb Evain e508315f87 Add test for Reverse over arrays 2011-01-26 00:08:41 +01:00
Jb Evain cb3f41ca57 [linq] Fix Reverse for IList implementors 2011-01-26 00:08:11 +01:00
Jb Evain bce7739486 [linq] Fix overflow check for Count 2011-01-25 23:47:58 +01:00
Jb Evain 96ee0a8380 Add test for Enumeerable.Range high boundaries 2011-01-25 23:46:22 +01:00
Jb Evain f224ec361f [linq] fix Range extreme boundaries 2011-01-25 23:45:44 +01:00
Geoff Norton 6fe8e00cee Fix the mobile build 2011-01-25 14:16:28 -05:00
Zoltan Varga 0765c50516 Print OP_TAILCALL as a call. 2011-01-25 16:34:30 +01:00
Zoltan Varga 76c9d06873 Fix up CAS tests a bit. 2011-01-25 16:34:29 +01:00
Marek Habersack 773e8b4d03 [corlib,crypto] RandomNumberGenerator implements IDisposable in 4.0 2011-01-25 15:47:13 +01:00
Marek Habersack 0f51fe59c2 [system] SmtpClient implements IDisposable on 4.0 (a no-op for now) 2011-01-25 15:46:24 +01:00
Marek Habersack 4fb24e90fc [wcf] Install the System.Data.Services.Client properly. 2011-01-25 15:45:42 +01:00
Marek Safar a4c64b0def New test 2011-01-25 10:44:20 +00:00
Marek Safar dd4b543381 Degrade wrong override member to virtual instead of non-virtual 2011-01-25 10:44:19 +00:00
Marek Safar 58e173c891 Fix caching of missing assemblies 2011-01-25 10:44:19 +00:00
Marek Safar b6daf66fa0 Evaluate preprocessor conditions also in unreachable context 2011-01-25 10:44:19 +00:00
Marek Safar 926585d833 Implicitly typed array cannot have multiple dimensions 2011-01-25 10:44:18 +00:00
Marek Safar e9ff4409d4 Turn 2 errors into warnings, mcs can now compile methods with no implementation 2011-01-25 10:44:18 +00:00
Geoff Norton 83e999b7d7 Add pfx to the mobile profile 2011-01-25 01:51:17 -05:00
Geoff Norton 7f2d20a0a8 Work around a full-aot issue for monotouch System.Json 2011-01-25 01:50:57 -05:00
joncham d6a2891a00 Use correct allocator for marshalled memory. 2011-01-24 20:57:51 -05:00
joncham 03933195e5 Use mono_marshal_free rather than g_free for deallocating marshalled memory. Use correct string icall for MONO_MARSHAL_CONV_LPSTR_STR and MONO_MARSHAL_CONV_LPTSTR_STR. 2011-01-24 20:57:50 -05:00
joncham 669674a166 Fix invalid IL code for marhsalling safe arrays. 2011-01-24 20:57:48 -05:00
Andrew Jorgensen ee84564501 Add WebMatrix.Data to spec 2011-01-24 15:16:24 -07:00
Mark Probst e097a64432 Merge branch 'sgen-android'
Conflicts:
	mono/metadata/sgen-gc.c
2011-01-24 22:26:45 +01:00
Tomasz Kubacki e9d51317d8 [Mono.CSharp] Improve error reporting 2011-01-24 15:23:19 -05:00
Jérémie Laval 02d7955fa4 Add a quirk for Parallel.For stealing 2011-01-24 18:19:56 +00:00
Jérémie Laval a90b8c070d Revert stealing changes in ListPartitioner, too much mess 2011-01-24 18:19:56 +00:00
Jérémie Laval 96a671fba6 Fix range in ListPartitioner when initial division was giving a legitimate 1 2011-01-24 18:19:56 +00:00
Jérémie Laval ffe59cfe9d Track the end of the underlying enumerator in EnumerablePartitioner 2011-01-24 18:19:55 +00:00
Geoff Norton 42becb825f Avoid leaking the vmmap allocated by the kernel for the thread_act_array_t 2011-01-24 12:07:39 -05:00
Geoff Norton 0840a96eee Fix a mach port leak 2011-01-24 11:39:01 -05:00
Jérémie Laval f91a01c747 Sanitize parent-child relation in continuations 2011-01-24 14:26:17 +00:00
Jérémie Laval 6f84c66659 Don't put back stuff in the shared work pool when walking our own deque 2011-01-24 14:26:17 +00:00
Jérémie Laval 1ea727aa74 Don't execute self task so ravenously when waiting 2011-01-24 14:26:17 +00:00
Jérémie Laval 5ba9f7a270 Make sure a synchronous continuation get executed synchronously in all cases 2011-01-24 14:26:17 +00:00
Marek Habersack 4b084b4966 [asp.net] Global.asax assembly must be passed as reference when compiling. BuildManager.GetType improvements.
When user has their own global application class (global.asax is present) the assembly produced from it must
be passed as reference to the compiler.
BuildManager.GetType now supports fully-qualified type names for 'typeName' and searches for the type in the
top-level assemblies, the global.asax assembly and in the assemblies specified in as references in web.config.

All of this fixes certain MVC3+Razor applications.
2011-01-24 15:18:07 +01:00
Marek Safar 32be083d89 Update to the latest IKVM 2011-01-24 13:58:12 +00:00
Marek Safar 0169babb49 Guard against invalid predefined assembly attributes 2011-01-24 13:58:11 +00:00
Marek Safar faabb845d8 Reduced conditional expression requires both sides to be constant 2011-01-24 13:58:11 +00:00
Marek Safar 4e09a1c56d Don't crash when call site type cannot be created (unlikely) 2011-01-24 13:58:10 +00:00
Marek Safar 357546f6ed Report better error message for literal conversion using user operators 2011-01-24 13:58:10 +00:00
Marek Safar f2bc22cbf0 [666476] Use correct parameter count when checking ambiguous params methods 2011-01-24 13:58:10 +00:00
Marek Safar f88963b09d Update C5 to version 1.1.1 2011-01-24 13:58:10 +00:00
Marek Safar 2c12dad9b1 Report better error message when conversion between types of same name fails 2011-01-24 13:58:09 +00:00
Marek Safar 66ceeeebae Optimize reading of base interfaces 2011-01-24 13:58:09 +00:00
Marek Safar 567f2f507e [666376] Implement compiler option fullpaths 2011-01-24 13:58:09 +00:00
Marek Habersack e60769f5d6 [asp.net] Fixed formatting of exception message. It doesn't swallow newlines now 2011-01-24 12:19:53 +01:00
Zoltan Varga 699c32cae6 Dist finally_guard.cs. 2011-01-24 04:14:14 +01:00
Marek Habersack 1465bf891a [ASP.NET] Templated exception reporting and a new look for the Yellow Screen Of Death
This commit implements the base template code along with the default Mono theme for exception/error
reporting in ASP.NET applications. Means for user to implement their own templates will be provided
at a later date.
2011-01-24 03:15:14 +01:00
Gonzalo Paniagua Javier a9d2a48766 Fix Dispose() 2011-01-22 13:29:49 -05:00
Rodrigo Kumpera 402313372c Fix corlib compilation 2011-01-22 14:29:23 +01:00
Marek Habersack d66b7f5543 [asp.net,routing] Fix for bug #651966. Regular expression constraints must be treated as absolute regexps. 2011-01-22 12:43:14 +01:00
Mark Probst 144632ec7c [sgen] Start concurrent sweep thread on GC init.
Starting the concurrent sweep thread only the first time it is needed
is potentially harmful because it happens when the world is stopped
and pthread_create() is not necessarily thread-safe.

Now we start the sweep thread on GC init which is always safe.
2011-01-22 12:03:21 +01:00
Zoltan Varga 4a812850f8 Fix sgen build on PPC linux. 2011-01-22 07:11:36 +01:00
Gonzalo Paniagua Javier b688d53ce7 [HttpListener] Fix incorrect 411 error
Don't send a 411 for unknown methods without content length.
	No need to assign input_stream until requested.

	Fixes bug #666251.
2011-01-21 23:53:05 -05:00
Jérémie Laval 7a505099cf Add unit test for Database 2011-01-22 02:55:15 +00:00
Zoltan Varga bd10f1c50a Force a build. 2011-01-22 03:20:27 +01:00
Jérémie Laval 3a820d87a6 Add unit tests for DynamicRecord 2011-01-22 02:14:23 +00:00
Jérémie Laval b17767ef12 Just fixup comment 2011-01-22 02:14:21 +00:00
Zoltan Varga 6a0cd05f65 Fix an assert which happens when a call is made to Nullable.Unbox from gshared code in AOT. 2011-01-22 03:08:11 +01:00
Bassam Tabbara 585c0ad5ba Fix for 666225 2011-01-21 21:00:29 -05:00
Miguel de Icaza 325a483d42 [getline] Fix history search in the cmdline editor 2011-01-21 20:51:33 -05:00
Jérémie Laval 0b04a18b5c Add GetLastInsertId 2011-01-22 01:21:18 +00:00
Jérémie Laval 175bf44280 Foobar trigger connection 2011-01-22 01:21:18 +00:00
Jérémie Laval e72f9fb0a0 Add Close method 2011-01-22 01:21:17 +00:00
Jérémie Laval 408b7c2c49 Add ConnectionOpened event to Database 2011-01-22 01:21:16 +00:00
Jérémie Laval b4b7fbbd37 Fix up compilation of Database and DynamicRecord 2011-01-22 01:21:16 +00:00
Jérémie Laval bf0339ea2b Add Dispose calls to Database 2011-01-22 01:21:15 +00:00
Jérémie Laval aa0a9518f1 Add Database type 2011-01-22 01:21:14 +00:00
Jérémie Laval 29cba278a0 Complete base DynamicRecord API 2011-01-22 01:21:13 +00:00
Jérémie Laval b6dcc8e3af Stub DynamicRecord 2011-01-22 01:21:12 +00:00
Jérémie Laval 104510d8e2 Add WebMatrix.Data assembly skeleton 2011-01-22 01:21:11 +00:00
Miguel de Icaza 717e88dd0c [Mono.CSharp] Fix bug where overwriting variables cleared the wrong value
This fixes #641910
2011-01-21 20:14:57 -05:00
Miguel de Icaza 9aa6670554 [csharp] repl using statement fix + support for --fatal
Fixes #638585 which kept reporting the same error on the using statements over and over
Added support for the --fatal flag to the REPL
2011-01-21 19:55:30 -05:00
Zoltan Varga 564162304b Force a build. 2011-01-22 00:34:39 +01:00
Marek Safar c0ea39424d Fix broken v4 metadata setting 2011-01-21 21:58:21 +00:00
Zoltan Varga d5cdff0243 Transition non perf-critical users of klass->has_finalize over to mono_class_has_finalizer (). 2011-01-21 22:30:36 +01:00
Zoltan Varga 3e324cc18e Initialize klass->has_finalizer lazily. This allows us to remove the find_method_in_metadata () optimization without a perf cost which is broken in the presence of overrides. Fixes #665769. 2011-01-21 21:52:54 +01:00
Zoltan Varga f01e132493 Obsolete VirtualMachine.GetNextEvent () as it is impossible to determine when to resume after an event, since the debuggee suspends only once per event-set. 2011-01-21 21:52:54 +01:00
Marek Safar c74e30f6ac New test 2011-01-21 20:25:01 +00:00
Marek Safar e278b5edc2 Use byte array as underlying storage for AttributeEncoder 2011-01-21 20:25:01 +00:00
Andrew Jorgensen 48936b2dc6 Oops, Microsoft.Web.Infrastructure, not System. 2011-01-21 12:52:54 -07:00
Andrew Jorgensen 95ce92b57f Add Microsoft.Web.Infrastructure and Mono.Parrallel to spec 2011-01-21 11:15:19 -07:00
Jonathan Pobst ae8a8ff0b2 Fix for building with csc. All fields in a struct must be set before the constructor can return. 2011-01-21 11:52:10 -06:00
Atsushi Eno 3fe5cb1897 Manage opened proxy channels and close them when ChannelFactory is closed. 2011-01-22 00:23:03 +09:00
Marek Safar 165c64a38b [321020] Implemented compilation of forwarded type references 2011-01-21 15:18:24 +00:00
Marek Safar 3b24253962 Fix monodroid build 2011-01-21 15:18:23 +00:00
Marek Safar 7cbc385772 Make type creation the first step in the pipeline to deal with forward referencing types 2011-01-21 15:18:23 +00:00
Marek Safar 6bafe0d2d0 Update to the latest ikvm.reflection 2011-01-21 15:18:23 +00:00
Atsushi Eno 7bbd3a3ec9 Implemented a couple of async methods in InstanceContext as well as disposing. 2011-01-21 23:37:45 +09:00
Jérémie Laval 14ccd823df Restore test to its original state 2011-01-21 12:48:10 +00:00
Jérémie Laval 122b56052b Add a last resort mode to ThreadWorker participative waiting to prevent some deadlock for now 2011-01-21 12:48:09 +00:00
Jérémie Laval 2fd30cbfbe Allow multiple invocation of Task Execute method to allow short-circuiting without breaking deque ordering 2011-01-21 12:48:09 +00:00
Jérémie Laval 1b406592e1 Throw when trying to ExecuteSynchronously a task that is already scheduled/completed 2011-01-21 12:48:09 +00:00
Atsushi Eno 0b2d2e17cd Avoid possible list modification error during close process. 2011-01-21 20:25:23 +09:00
Atsushi Eno f4d59f294f Make sure to close session once the client opened one. 2011-01-21 20:24:58 +09:00
Atsushi Eno 91074e3475 Fix regression, avoid null key. 2011-01-21 20:24:30 +09:00
Jérémie Laval c4cc62d42d Make NestedFuture test faster 2011-01-21 10:52:17 +00:00
Thomas Goldstein 0d732b13a0 MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 13). 2011-01-21 08:23:48 +01:00
Atsushi Eno b2802fa2d5 And rename source file name. 2011-01-21 16:20:23 +09:00
Atsushi Eno 3691992579 Rename InstanceBhavior, too ambiguous among IXxxBehavior interfaces. 2011-01-21 16:18:54 +09:00
Atsushi Eno feec98f870 Sessions should not be keyed by MessageId but be done by channel SessionId. 2011-01-21 16:17:59 +09:00
Zoltan Varga 531147d772 Add NET 4.0 Assembly.UnsafeLoadFrom () method. 2011-01-21 07:26:56 +01:00
Zoltan Varga 65a304bd30 Fix the previous aot fix. 2011-01-21 05:58:09 +01:00
Miguel de Icaza 68bbc4c2d7 Do not build the Socket passing on Mobile systems 2011-01-20 22:44:27 -05:00
Atsushi Eno 7a0f8f89a0 Fix bogus encoding detection in JavaScriptObjectDeserializer. 2011-01-21 12:09:42 +09:00
Gonzalo Paniagua Javier a2ed4f6fc2 [System.Web] Razor works now (modulo DB) 2011-01-20 21:58:59 -05:00
Zoltan Varga 9ab0344df9 Add a test for infinite generic recursion + AOT. 2011-01-21 02:07:24 +01:00
Zoltan Varga b9cdc5ad7f Only add imt items whose is_equal flag is set to the array passed to the full-aot imt thunk. 2011-01-21 02:06:03 +01:00
Zoltan Varga 6d17a89132 Avoid emitting .note.GNU-stack on arm. 2011-01-21 01:51:19 +01:00
Zoltan Varga 697955e768 Detect inifinite generic recursion differently in the AOT compiler. 2011-01-21 01:50:08 +01:00
Zoltan Varga 8bc4226e75 Fix misaligned loads when loading small structures on ARM. 2011-01-21 01:50:08 +01:00
Zoltan Varga c53dcf0463 Fix the DISABLE_JIT build. 2011-01-21 01:50:07 +01:00
Rodrigo Kumpera 4a8b716e0b Speedup LOS scanning.
* sgen-cardtable.c (sgen_cardtable_scan_object): Speedup
	card scanning doing it a word at a time. When scanning
	arrays of references, do a nursery check before calling
	into major.

	This speeds up ms-biology some tests by 3% while lowering
	cardtable scanning time by 1/3.
2011-01-20 23:54:08 +01:00
Rodrigo Kumpera 4f384ab0fc Better cardtable stats.
* sgen-cardtable.c: Add separate timing for major and
	los scanning. Added some counters to better understand
	wb behavior.
2011-01-20 23:54:08 +01:00
Rodrigo Kumpera e92d099435 Fix typo in error message 2011-01-20 23:54:08 +01:00
Rodrigo Kumpera 0f37296695 Fix thread-exit race under sgen.
* threads.c (mono_threads_set_shutting_down): Clean the current
	domain before calling ExitThread otherwise sgen asserts.
2011-01-20 23:54:07 +01:00
Marek Habersack 1a9d2e5148 [asp.net] Don't throw NREX when a cache item to be removed is null 2011-01-20 23:38:27 +01:00
Sebastien Pouliot 37b80b8e29 Add an helper function to deal with NULL MonoMethod pointers
* security-core-clr.c: Use new helper function to get the method names
or, when NULL, a not found string.
2011-01-20 17:10:01 -05:00
Marek Safar 82360af0ca Fix Mono.CSharp dist build 2011-01-20 22:31:12 +00:00
Miguel de Icaza 5b065d9878 [sockets] Implement DuplicateAndClose and Socket (SocketInformation) constructor for in-process socket passing (AppDomains) 2011-01-20 16:53:41 -05:00
Ankit Jain 8a362ef7e6 [xbuild] Correctly set CscToolExe if TargetFrameworkVersion is not set.
* tools/xbuild/xbuild/Microsoft.CSharp.targets: $(CscToolExe)
is set depending on the value of $(TargetFrameworkVersion).
Since, $(TargetFrameworkVersion)'s default value is set
by MS.Common.targets, set $(CscToolExe) *after* importing
MS.Common.targets .
2011-01-21 02:53:19 +05:30
Jérémie Laval 8f13c9cee5 Backport stealing fixups to Parallel.For 2011-01-20 16:49:23 +00:00
Jérémie Laval f125c17b1a [ListPartitioner] Borrow stealing algorithm from Parallel.For and distribute indexes more evenly 2011-01-20 16:49:23 +00:00
Marek Safar d2b89d8151 Put back accidentally removed PROGRAM_COMPILE 2011-01-20 15:57:12 +00:00
Jb Evain 34b2c955cf [bug] Prevent a GetMethodBody call on a dynamic method. Fixes 665788 2011-01-20 16:37:21 +01:00
Jb Evain 4e4e92f4fa Add test for bug 665788 2011-01-20 16:36:37 +01:00
Jb Evain d6ceea638c [linker] fix reading of symbols for assemblies loaded with -a 2011-01-20 16:22:53 +01:00
Marek Habersack f4d9b0ef94 [asp.net] Avoid passing duplicate assemblies on mcs command line. 2011-01-20 14:31:20 +01:00
Marek Habersack d8aaac8baa [asp.net,mvc] Make unobtrustive request validation in MVC v3 possible
Validation is enabled early in the pipeline during request. ValidationUtility makes sure that validation is indeed enabled and
replaces the default form and query string collections with a lazy version which will validate values only when an existing key
is found and requested.
2011-01-20 14:31:20 +01:00
Marek Habersack 90f8bf7ffd [asp.net] Do not throw NREX when firstError is null in ErrorMessage getter 2011-01-20 14:31:20 +01:00
Marek Safar 91286f14ae Fix errors dist 2011-01-20 13:26:40 +00:00
Marek Safar 53467adcb7 Fix mcs dist 2011-01-20 13:13:30 +00:00
Marek Safar 5975fd2bb7 Remove SMCS define and related files 2011-01-20 12:40:55 +00:00
Marek Safar 743508b1f0 Remove unused ?mcs files 2011-01-20 12:09:49 +00:00
Marek Safar d382b36521 Allow referencing multiple versions of same framework assembly 2011-01-20 11:43:17 +00:00
Marek Safar cc3be8ed58 Fix CodeDom mcs path 2011-01-20 11:38:50 +00:00
Marek Safar 79d0cfc7a8 Updated IKVM to the latest version 2011-01-20 11:28:25 +00:00
Marek Safar 1244cd3ac6 CSharpCodeCompiler NET_2_0 cleanup 2011-01-20 11:27:48 +00:00
Marek Safar 63f3a0c93f Remove more *mcs.exe references 2011-01-20 09:30:40 +00:00
Atsushi Eno 5c44482089 Implement XamlMemberInvoker.UnknownInvoker too. 2011-01-20 18:28:19 +09:00
Atsushi Eno fb121b6809 Implement XamlTypeInvoker.UnknownInvoker. 2011-01-20 18:20:08 +09:00
Atsushi Eno 6bfb5c3644 Implement some XamlTypeInvoker methods (mostly unused yet). 2011-01-20 17:55:53 +09:00
Marek Safar e52514e1a1 Update mcs location 2011-01-20 08:31:50 +00:00
Atsushi Eno 21026ad130 Support IXamlLineInfo in XamlNodeQueue. 2011-01-20 17:21:11 +09:00
Atsushi Eno bdef99df34 finish XamlType.BaseType implementation. 2011-01-20 16:59:05 +09:00
Atsushi Eno 4a5f7c742c Contract-based type must ensure that the base type is also contract-based.
Fixed bug #661987 on WCF side.
2011-01-20 16:16:56 +09:00
Atsushi Eno 2464cfc869 Read body content if required. Fixed all issues in bug #656020.
Now it considers message content format and IsWrapped[Request|Response] to
retrieve XmlObjectSerializer.
2011-01-20 15:32:33 +09:00
Ankit Jain 192bc3e85b [xbuild] Fix bug #665637.
Pass $(WarningsNotAsErrors) to Csc task.
2011-01-20 11:00:22 +05:30
Zoltan Varga 00e05147a5 Clean up the ARM generic trampoline. 2011-01-20 06:20:02 +01:00
Zoltan Varga c46e5f9ece Properly align the stack in the arm generic trampoline. 2011-01-20 05:35:44 +01:00
Zoltan Varga c188c7abd3 Add a TID field to ThreadMirror which returns the system thread id. 2011-01-20 02:13:35 +01:00
Thomas Goldstein da16ca5a32 BindingSourceTest.cs: Add FIXME comment (erroneous test). 2011-01-19 23:49:56 +01:00
Thomas Goldstein 19532cd5be BindingSourceTest.cs: Add unit test for bug 664833. 2011-01-19 23:49:24 +01:00
Clinton Volzke 2a3952e27e BindingSource.cs: Fix DataSource setter which could reset the DataMember. Fixes bug 664833. 2011-01-19 23:49:06 +01:00
Andrew Jorgensen f4dd4e067a Dist more files needed by MSVC build 2011-01-19 15:41:35 -07:00
Marek Safar 19f259840c Unify the way the interfaces are checked for shadowing 2011-01-19 19:49:16 +00:00
Marek Safar a4d66b17da [665333] Encode Length of Public Key correctly 2011-01-19 17:58:05 +00:00
Marek Safar e3157bf62d Fix CS0108 for interfaces with multiple methods of same name 2011-01-19 17:58:05 +00:00
Marek Safar fbbbdf8ef1 Clean up resolving of DefaultCharSetAttribute 2011-01-19 17:58:05 +00:00
Marek Safar 5564f2cdab Removed SetCorlibTypeBuilders call 2011-01-19 17:58:04 +00:00
Marek Safar 54c0b5c422 Removed hack for compilation of enums inside corlib 2011-01-19 17:58:04 +00:00
Jérémie Laval 2482aedbb8 Update Mono.Parallel docs with new properties 2011-01-19 14:30:13 +00:00
Rodrigo Kumpera 2fc97ad932 Document precise marking 2011-01-19 14:55:25 +01:00
Rodrigo Kumpera a091409334 Fix mono manpage header 2011-01-19 14:55:25 +01:00
Atsushi Eno 997a5664a9 Enable duplicate "UriMatched" error check, with couple of FIXMEs.
.NET is very unclear about those UriTemplate behavior. Too minor to mind.
2011-01-19 20:22:45 +09:00
Atsushi Eno 7d5b5a1b7f Fix template match logic to first check HTTP-method-matching ones.
Part of the fix for bug #656020.
2011-01-19 19:01:49 +09:00
Ankit Jain 6af5e953e7 [xbuild] Fix bug #665004. Honor /nologo option.
* tools/xbuild/Parameters.cs (DisplayVersion): Remove, not required.
2011-01-19 14:14:31 +05:30
Marek Safar ba3b8be8be Stop building *mcs.exe compilers 2011-01-19 08:24:40 +00:00
Marek Safar 956e8bc42d Update IKVM sources 2011-01-19 08:24:40 +00:00
Marek Safar 01ca29caf8 Update mcs error to test against mcs compiler 2011-01-19 08:24:40 +00:00
Marek Safar c4cc8b4b65 update test results 2011-01-19 08:24:40 +00:00
Marek Safar e7732645c3 Update test target to check mcs compiler 2011-01-19 08:24:39 +00:00
Atsushi Eno e96fbeb319 Serialize non-mapped message parameter as body content. Part of bug #656020 fix. 2011-01-19 17:05:07 +09:00
Gonzalo Paniagua Javier 0501df25ef Happy new year. 2011-01-18 22:43:38 -05:00
Rodrigo Kumpera 667cf394f0 Properly clear weak refs that don't track resurrection.
* sgen-gc.c (finish_gray_stack): We must clear
	weak refs that don't track resurrection before
	processing finalizable objects otherwise we'll
	copy/mark them and the weak ref won't be cleared
	until after finalization.

	Fixes #657408
2011-01-19 01:32:16 +01:00
Gonzalo Paniagua Javier c6b1dd9db3 [HttpWebRequest] New 4.0 AddRange overloads. 2011-01-18 18:56:32 -05:00
Neale Ferguson 8027402817 Cast result of s390x_emit16/32 to eliminate lots of warning messages
Check for wrapper-managed-to-native when assessing call parameters and have emit_prolog use native_size when processing those parameters
Signed-off-by: Neale Ferguson <[email protected]>
2011-01-18 18:21:43 -05:00
Thomas Goldstein 3feb4e7f7f MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 12). 2011-01-19 00:13:54 +01:00
Thomas Goldstein ca2a9ec584 MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 11). 2011-01-19 00:11:50 +01:00
Thomas Goldstein 1f6bdc7f36 MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 10). 2011-01-19 00:10:06 +01:00
Thomas Goldstein 68b93c5ec1 MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 9). 2011-01-19 00:09:06 +01:00
Gonzalo Paniagua Javier fb13ef43ce [HttpWebRequest] Support 4.0 Date property. 2011-01-18 16:44:12 -05:00
Thomas Goldstein 1b95c9e7aa MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 8). 2011-01-18 22:26:25 +01:00
Thomas Goldstein d47d06a19c MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 7). 2011-01-18 22:22:30 +01:00
Thomas Goldstein 839d595e2b MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 6). 2011-01-18 22:19:21 +01:00
Thomas Goldstein 082589b0f7 MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 5). 2011-01-18 22:16:06 +01:00
Jérémie Laval 7f146f9f07 Expose ThreadWorker fields 2011-01-18 19:22:18 +00:00
Gonzalo Paniagua Javier 9ae3d21c17 [HttpWebRequest] Support 4.0 Host property. 2011-01-18 12:52:58 -05:00
Marek Safar 11bf89d6d4 Build declared interface based on full type hierarchy 2011-01-18 17:34:56 +00:00
Zoltan Varga b81c4662c2 Make the stacks of aot image non-executable. 2011-01-18 18:11:31 +01:00
Marek Safar 86190c96d0 Checking skd path for is not enough, add check for mscorlib as well 2011-01-18 17:08:33 +00:00
Marek Safar e6d7773566 Fix loading of same assembly when used with different reference aliases 2011-01-18 17:08:33 +00:00
Marek Safar bacdafc90b Remove unused type 2011-01-18 17:08:33 +00:00
Zoltan Varga ee83bdd1f6 Disable some of the FastCopy fast paths since they are racy. 2011-01-18 17:17:16 +01:00
Jérémie Laval 27bef54a6f Fix Task.Wait timeout regression 2011-01-18 16:00:05 +00:00
Jérémie Laval 4383deb009 Expose ThreadWorker in Mono.Parallel 2011-01-18 16:00:05 +00:00
Jérémie Laval 89ef327cd5 Add doc for IMonoTaskScheduler extra behavior 2011-01-18 16:00:04 +00:00
Jérémie Laval 1e9c83e031 Update MonoTaskExtensions doc 2011-01-18 16:00:04 +00:00
Jérémie Laval 772d9cb780 Further checks of ParticipateUntil mashalling 2011-01-18 16:00:04 +00:00
Zoltan Varga 6c271d651c Allow only primitive types/enums in RuntimeHelpers.InitializeArray (). 2011-01-18 16:41:37 +01:00
Marek Safar 3c06aa3b92 Remove devirtualization for Type members 2011-01-18 13:30:51 +00:00
Marek Safar dfe4190650 Simplify base type interface check 2011-01-18 13:17:27 +00:00
Marek Safar 84c53cecc2 Update to the latest IKVM which now has support for missing types 2011-01-18 12:50:42 +00:00
Jérémie Laval ef6a07d9d1 Add support for external ParticipateUntil method call in user-made TaskScheduler 2011-01-18 11:28:35 +00:00
Jérémie Laval 70df5f5a3d Use static initializer for internal Execute binding 2011-01-18 11:28:35 +00:00
Atsushi Eno b7f41b092a XamlObjectReader does not return non-writable members. Fix Skip() to work with GetObject. 2011-01-18 19:16:25 +09:00
Marek Habersack 9926e923d7 [asp.net] Removed the /noconfig comment - it turns out this is what is supposed to be done 2011-01-18 09:40:23 +01:00
Thomas Goldstein 694d59471f MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 4). 2011-01-18 08:46:13 +01:00
Thomas Goldstein c63efd57c4 MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 3). 2011-01-18 08:43:26 +01:00
Thomas Goldstein 7f89bd25f1 MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 2). 2011-01-18 08:41:06 +01:00
Thomas Goldstein 9557c417b8 MWF: Remove #if NET_2_0 and #if ONLY_1_1 conditions (part 1). 2011-01-18 08:38:07 +01:00
Atsushi Eno 13cc149429 Do no t try to instantiate abstract types. 2011-01-18 16:23:38 +09:00
Tom Hindle 63c991322f Fix and unit test for bug #664647. 2011-01-17 19:31:04 -07:00
Marek Safar dbd3938763 Fallback to corlib location when sdk path cannot be found 2011-01-17 22:30:51 +00:00
Marek Safar 7476fb6eee Make *mcs compiler aliases differ in sdk version only 2011-01-17 22:30:51 +00:00
Zoltan Varga 357c8a8503 Make runtime invoke wrappers use cdecl cconv on windows. 2011-01-17 23:17:42 +01:00
Zoltan Varga b8d211bccf Applied patch from KISHIMOTO, Makoto <[email protected]>. Fix freebsd/amd64 build. 2011-01-17 22:58:56 +01:00
Zoltan Varga 6c02c15153 OP_LCOMPARE_IM has type 'L', not 'I'. Fixes #664630. 2011-01-17 22:44:13 +01:00
Rodrigo Kumpera cb59d308ff Don't check for brokeness when verifying contraints.
* verify.c (is_valid_generic_instantiation): Don't
	check if any argument is broken during constraint check
	as an instance should be valid, but not realizable, even
	if it has broken arguments.

	Fixes one of the issues with #664612
2011-01-17 18:54:17 +01:00
Rodrigo Kumpera 77f622799e Fix verifier test suite to build on OSX as well 2011-01-17 18:54:12 +01:00
Marek Safar cec87bd861 Add new mcs -sdk option 2011-01-17 17:21:07 +00:00
Zoltan Varga 26009f71a0 Fix a warning. 2011-01-17 18:06:42 +01:00
Zoltan Varga acc565bfea Avoid another case of infinite recursion in AOT. 2011-01-17 16:14:54 +01:00
Atsushi Eno a966f0bdae Fix XamlValueConverter; sometimes ConverterType exists but lacks default constructor. 2011-01-18 00:03:28 +09:00
Jb Evain a138175b8f Fix pdb2mdb when a pdb has a method with no seq points.
Patch by Thad Thompson <[email protected]>
2011-01-17 15:54:02 +01:00
Marek Safar 659a007604 Turn X509Certificate2UI into static class for 4.0 2011-01-17 14:08:36 +00:00
Marek Habersack 3e62637623 [asp.net] ValidationUtility implementation 2011-01-17 14:47:08 +01:00
Marek Habersack cd511eafd2 [asp.net] Introduced unvalidated versions of Form and QueryString properties for MVC3 2011-01-17 14:47:07 +01:00
Marek Habersack aa2ad86f6d [asp.net] Implemented dynamic HTTP module registration 2011-01-17 14:47:07 +01:00
Marek Habersack d18d08622c [asp.net] Implemented BuildManager.GetObjectFactory
This method is not used by Mono internally but is called by MVC v3.
2011-01-17 14:47:07 +01:00
Marek Habersack 1d5e3d4350 [asp.net] Added internal property InputValidationEnabled to report whether the user enabled validation for current request. 2011-01-17 14:47:07 +01:00
Marek Habersack 0582257db3 [asp.net] System.Web and Microsoft.Web.Infrastructure are now friends 2011-01-17 14:47:07 +01:00
Marek Habersack c372ab7518 [asp.net] Added the Microsoft.Web.Infrastructure assembly 2011-01-17 14:47:07 +01:00
Marek Safar 8dab9d20d4 [664618] Correctly encode public key length 2011-01-17 13:28:44 +00:00
Marek Habersack 9affd715fb [asp.net] (4.0) Validate the form data in Form getter 2011-01-17 14:01:31 +01:00
Zoltan Varga 4bc6806eb8 Fix the previous marshalling change so it only applies to chars, not structures which contain char fields. 2011-01-17 00:08:46 +01:00
Zoltan Varga 669d9a664d Pass the string encoding to emit_struct_conv () so marshalling of char arrays works on big-ending machines like s390/ppc64. 2011-01-16 21:10:29 +01:00
Zoltan Varga ea617d2555 Fix a warning. 2011-01-16 20:05:39 +01:00
barkerm 0f7a69d568 Add missing files for connection pool changes 2011-01-16 12:07:06 -05:00
barkerm 2b516ade6d - Refactoring, code clean-up and reduced garbage - Introduce connection pooling for improved performance 2011-01-16 12:06:56 -05:00
Zoltan Varga 8566c056b2 Remove GLIB: line from configure output. 2011-01-16 16:44:20 +01:00
Thomas Goldstein e9267b1f21 NumericUpDown.cs: Use base 16 to convert hex string to numeric value. Fixes part of bug 661996. 2011-01-16 11:32:00 +01:00
Marek Habersack c85558427d [asp.net] Pass /noconfig to mcs so that page builds succeed 2011-01-15 01:52:31 +01:00
Zoltan Varga 6c34e3ab54 Make OP_CHECK_THIS do a byte load on arm, since the source argument might point to a vtype if a vtype method is inlined. 2011-01-14 22:29:15 +01:00
Marek Habersack d3a5fe689a [asp.net] Make StopRoutingHandler actually stop the routing instead of throwing an exception
Patch from Damir Simunic <[email protected]>, thanks!
2011-01-14 21:30:11 +01:00
Zoltan Varga 8bafdbd612 Revert "Avoid defining boehm/sgen defines when compiling files in mini/." 2011-01-14 20:59:23 +01:00
Jérémie Laval 674699abef Add MonoTaskExtensions to Mono.Parallel (with test and doc). 2011-01-14 17:21:23 +00:00
Jérémie Laval a4078aa9a9 Update namespaces 2011-01-14 17:21:23 +00:00
Zoltan Varga 83db413a2a Error out instead of crashing when using sgen+pthread. 2011-01-14 14:58:59 +01:00
Zoltan Varga 2daab2feda Fix a warning. 2011-01-14 14:58:58 +01:00
Marek Safar 728847d662 Disable unification into current assembly, it's not fully implemented yet 2011-01-14 13:10:35 +00:00
Marek Safar ee9454fc50 Add weak name as allowed identity comparison result 2011-01-14 12:42:15 +00:00
Zoltan Varga 33947a674f Fix AOT. 2011-01-14 13:40:09 +01:00
Jérémie Laval a47c2f51f4 Make use of the wait changes in the internal TaskScheduler -> IScheduler proxy. 2011-01-14 10:37:01 +00:00
Jérémie Laval e524cfd9e1 Internal ThreadWorker deque creation is now delegated to the scheduler.
Looking into exporting ThreadWorker to Mono.Parallel
2011-01-14 10:37:01 +00:00
Ankit Jain 2fb5ad4bba [xbuild] Update Novell copyright. 2011-01-14 14:51:40 +05:30
Ankit Jain 397b54e8b5 [xbuild] Error out, if no target is found in a project. 2011-01-14 14:51:39 +05:30
Marek Safar ffdb957cf2 Update ikvm sources 2011-01-14 08:26:13 +00:00
Marek Safar a494244e06 Register also default assemblies in loaded files list 2011-01-14 08:26:13 +00:00
Marek Safar ed50eda10f Fix System.Data.Services.Client public key 2011-01-14 08:26:12 +00:00
Zoltan Varga 1e030b8a96 Decrease the length of the dyn_call opcode on arm to fix a warning. 2011-01-14 03:27:43 +01:00
Zoltan Varga 262fe52fbf Avoid defining boehm/sgen defines when compiling files in mini/. 2011-01-14 00:46:10 +01:00
Zoltan Varga b9ec9f676d Add some more functions to gc-internal.h to help remove all HAVE_SGEN_GC defines
from mini/.
2011-01-14 00:46:09 +01:00
Zoltan Varga 16b911500e Fix a warning. 2011-01-14 00:46:09 +01:00
Gonzalo Paniagua Javier 891af303aa [Socket] Implemented TCP keep alive support
Implemented SetTcpKeepAlive for ServicePoint*.
2011-01-13 18:28:16 -05:00
Andrew Jorgensen afd0bc3f79 Add vcxproj files for msbuild 2011-01-13 15:56:16 -07:00
Andrew Jorgensen 965dff7832 2.11 2011-01-13 15:55:25 -07:00
Rodrigo Kumpera b6dc6e1077 Add test for #660685 2011-01-13 23:46:03 +01:00
Rodrigo Kumpera d68c6c9361 Handle one more case of constraint compatibility.
* verify.c (mono_generic_param_is_constraint_compatible):
	Handle the case when a variable has a class constraints
	and the target has reference constraint. For example:

	C : string
	T : class

	On the above case, C can satisfy the T constraint.

	Fixes #660685
2011-01-13 23:46:03 +01:00
Zoltan Varga 4b304dc8c6 Remove an unneccesary HAVE_SGEN_GC. 2011-01-13 23:22:29 +01:00
Ankit Jain bf5c6494a8 [xbuild] Use the backing field directly to avoid evaluating again.
* Microsoft.Build.BuildEngine.Project.cs (InitializeProperties): Use
evaluatedProperties field instead of EvaluatedProperties property,
to avoid invoking a Reevaluate, since it is already in progress.
2011-01-14 03:29:34 +05:30
Ankit Jain 6258fab1c4 [xbuild] Fix bug #664349 .
* Microsoft.Build.BuildEngine/Project.cs (BuildInternal): Set needToReevaluate to
false, when reevaluating.
2011-01-14 03:25:19 +05:30
Ankit Jain e11aa526d2 [xbuild] Add $(TargetDir) property.
Add $(TargetDir) and set TargetPath only if its not set already.
2011-01-14 02:20:07 +05:30
Ankit Jain 8d04b0aabd [xbuild] Clear the built targets cache on project unload.
Remove the entries for a project from the built targets cache, on
project unload.

* Microsoft.Build.BuildEngine/Engine.cs (ClearBuiltTargetsForProject): New.
* Microsoft.Build.BuildEngine/Project.cs (BuiltTargetKeys): Remove.
(RemoveBuiltTargets): Use Engine.ClearBuiltTargetsForProject .
* Microsoft.Build.BuildEngine/Target.cs: Track api changes.
*
2011-01-14 02:20:06 +05:30
Marek Habersack 8a407a87f7 [data-annotations] Added some missing 4.0 members 2011-01-13 20:11:15 +01:00
Marek Habersack 11161ffcfb [asp.net] Implemented the 4.0 type, FileLevelMasterPageControlBuilder 2011-01-13 20:11:15 +01:00
Zoltan Varga 2fdd06c04b Emit all AOT symbols to 4 bytes on apple. 2011-01-13 19:03:43 +01:00
Zoltan Varga e0072cdcfa Add null check to stelem_ref_check () jit icall. Fixes #664297. 2011-01-13 18:41:55 +01:00
Marek Safar 046d0678a5 update ikvm 2011-01-13 16:26:47 +00:00
Marek Safar 0c85cec10b Tests update 2011-01-13 16:26:30 +00:00
Marek Safar a105464971 Recover from invalid constraint syntax 2011-01-13 16:24:26 +00:00
Marek Safar 1a0dda70bc New file 2011-01-13 15:55:03 +00:00
Marek Safar f9d2682cc0 Revert test makefile change 2011-01-13 15:53:53 +00:00
Marek Safar 147580e6cc Implement assembly name unification for imported references 2011-01-13 15:41:12 +00:00
Jérémie Laval 50834de0dd Add CyclicDeque and doc 2011-01-13 15:38:43 +00:00
Jérémie Laval 46b3891b74 Finish ReaderWriterLockSlimmer documentation 2011-01-13 15:38:43 +00:00
Jérémie Laval 2b17a5fa81 Protect RwlSlimmer and add Try equivalent 2011-01-13 15:38:43 +00:00
Jérémie Laval 8ff4c9d487 Add missing documentation files 2011-01-13 15:38:43 +00:00
Jérémie Laval bc16216a6b Adding ReaderWriterLockSlimmer to the build. 2011-01-13 15:38:43 +00:00
Jérémie Laval 88ca4d4c06 Doc for AtomicBoolean(Value) 2011-01-13 15:38:42 +00:00
Jérémie Laval f1b9a15708 Refactor CSnzi node to not expose too much stuff 2011-01-13 15:38:42 +00:00
Jérémie Laval 8d27c2b992 Use correct doc dialect for true and false 2011-01-13 15:38:42 +00:00
Jérémie Laval 74b8f910e1 Finish docs of non-obvious methods in Mono.Collections.Concurrent 2011-01-13 15:38:42 +00:00
Jérémie Laval 3f56bd1df7 Use comparer directly in ConcurrentSkipList rather than wrapped in a lambda. 2011-01-13 15:38:42 +00:00
Jérémie Laval f9aec637ac Make ConcurrentSkipList implements IEnumerable and ICollection instead of IProducerConsummerCollection 2011-01-13 15:38:42 +00:00
Jérémie Laval 4f58465978 Make ConcurrentOrderedList implements IEnumerable and ICollection 2011-01-13 15:38:41 +00:00
Jérémie Laval 579665f7ba Rename namespaces and update docs 2011-01-13 15:38:41 +00:00
Jérémie Laval 10d26a8ad8 Add Mono.Parallel documentation to global documentation compilation step 2011-01-13 15:38:41 +00:00
Jérémie Laval 32bd1f9b70 Move documentation to the right place 2011-01-13 15:38:41 +00:00
Jérémie Laval e74e993f69 More doc for ConcurrentOrderedList 2011-01-13 15:38:41 +00:00
Jérémie Laval 58b0cad7f5 Add Comparer property to ConcurrentOrderedList 2011-01-13 15:38:41 +00:00
Jérémie Laval b22b764ba7 Add mdoc documentation 2011-01-13 15:38:41 +00:00
Jérémie Laval 87d61bce7f Rename QueryReturn to CSnziQueryReturn 2011-01-13 15:38:40 +00:00
Jérémie Laval 398bdfe46a Use proper configuration of MCS extra flags 2011-01-13 15:38:40 +00:00
Jérémie Laval fe3539c36b Plug Mono.Parallel into main build 2011-01-13 15:38:40 +00:00
Jérémie Laval a1d84d7a67 First drop of a new Mono.Parallel assembly 2011-01-13 15:38:40 +00:00
Jérémie Laval 4091f624db Rework internal wait mechanism in thread workers participation code 2011-01-13 15:27:40 +00:00
Jérémie Laval 6b7b757403 Use more modern method in older Task code path 2011-01-13 14:38:59 +00:00
Jérémie Laval f495fea71a Update Watch to a struct 2011-01-13 14:38:59 +00:00
Jérémie Laval 9f3ce4b1e5 Fix continuation not being scheduled because of too early and too greedy disposing. 2011-01-13 14:38:59 +00:00
Jb Evain a50440aef7 Fix marking of default constructor constraint 2011-01-13 14:30:48 +01:00
Atsushi Eno 4a33efa191 Implemented event support. 2011-01-13 21:12:41 +09:00
Rodrigo Kumpera 47fa78c28e Better document how remapping works 2011-01-13 11:43:47 +01:00
Rodrigo Kumpera ee3b72364a Fix 2.0 remapping of System.Transations to 2.0 and not 3.5. 2011-01-13 11:37:42 +01:00
Marek Safar fdda65364f Add more checks for ambiguous assembly references 2011-01-13 09:02:55 +00:00
Zoltan Varga cc80f06487 Document more AOT options. 2011-01-13 01:58:12 +01:00
Zoltan Varga afa06e35df Applied patch from Alexander Stohr <[email protected]>. Add a help argument to --aot. 2011-01-13 01:48:22 +01:00
Rodrigo Kumpera 1a16bb1813 Fix array assignability to one of its generic interfaces.
* verify.c: mono_class_is_assignable_from can't handle
	IList<GTD<T>> x GTD[] since GTD[] won't have the right
	iface slots set. This isn't a problem for the runtime
	since GTD[] will never happen as it's an unrealizable type.

	Fixes #663815
2011-01-12 17:50:54 +01:00
Rodrigo Kumpera 72ebf494e2 Handle more cases of gtd encoded as ginst over itself.
* verify.c (mono_type_is_valid_type_in_context_full):
	The trick of encoding the GTD as an instantiation over its
	own arguments is also valid for component types such as GTD[]
	GTD[,] and Foo<GTD>.
2011-01-12 17:50:53 +01:00
Marek Safar 327d01dc97 Test update 2011-01-12 15:32:01 +00:00
Marek Safar 7b66d53d46 Deal with missing nested type as well 2011-01-12 15:32:01 +00:00
Marek Safar c2042b7835 Report full type name for missing type references 2011-01-12 15:32:00 +00:00
Atsushi Eno abba1c3446 Fix cygwin build. 2011-01-12 19:47:00 +09:00
Marek Safar 64ec934b0e All C# compiler scripts point to mcs.exe now 2011-01-12 09:25:19 +00:00
Marek Safar 0bbf0a2abb [375182] Check AssemblyFileVersion version value 2011-01-12 09:25:18 +00:00
Marek Safar b51e078d37 Report better error for recursive type reference 2011-01-12 09:25:18 +00:00
Atsushi Eno 2e2337e80a Implement XamlBackgroundReader. 2011-01-12 16:49:38 +09:00
Christian Hergert 3fe8ea7fcd Fix broken g_int_hash/g_int_equal semantics
Both g_int_hash and g_int_equal used the semantics that an
integer is stored directly in the pointer. This is incorrect
as the pointer actually points to a location containing an
integer.

For those wanting the previous (incorrect) implementation,
they should look at g_direct_hash and g_direct_equal.
2011-01-11 19:40:41 -05:00
Marek Habersack 5d3c9886fe [asp.net] Fix for bug #662918. Do not create the HtmlTitle child control for HtmlHead if <title> wasn't used in the page code. 2011-01-11 23:19:57 +01:00
Mark Probst f85a022ad0 [sgen] Don't register objects for finalization if the domain is being unloaded.
This fixes a crash in the appdomain unloading test.
2011-01-11 22:50:42 +01:00
Geoff Norton 556f15f6eb Fix the win32 build 2011-01-11 16:42:20 -05:00
Geoff Norton 2cb680cddf Fix win32 build 2011-01-11 16:34:31 -05:00
Mark Probst f272e3663d [sgen] Make binary protocol work again. 2011-01-11 22:10:15 +01:00
Zoltan Varga fd981e67cb Disable system AOT when using the loaded llvm, as it seems to cause crashes on the x86 buildbot. 2011-01-11 20:55:01 +01:00
Ankit Jain 61d56a7148 [xbuild] Copy metadata from Project items to target outputs.
Copy metadata from Project items to the corresponding target
outputs in MSBuild task.

Fix the corresponding test also.
2011-01-11 23:42:47 +05:30
Ankit Jain 009dfc4d52 [xbuild] Ensure trailing slash on some properties.
Ensure trailing slash on $(BaseIntermediateOutputPath) and
$(IntermediateOutputPath).
2011-01-11 23:42:46 +05:30
Atsushi Eno 99ac282cf3 Implement XamlNodeQueue, and add couple of missing files. 2011-01-12 02:03:24 +09:00
Geoff Norton 6b5ab67b05 Fix AOT on OSX/x86 2011-01-11 11:37:43 -05:00
Marek Safar fbe5b6a90b Install new ikvm based C# compiler as mcs 2011-01-11 15:46:04 +00:00
Marek Safar 1b0acda60e Update copyright years 2011-01-11 15:46:03 +00:00
Sebastien Pouliot 25280a542d Allow RSACryptoServiceProvider.SignHash to work with SHA-2 family
* System.Security.Cryptography/CryptoConfig.cs: Add OID for RIPEMD160
* System.Security.Cryptography/RSACryptoServiceProvider.cs: Update
GetHashNameFromOID to include SHA2-family OIDs. Remove historical
comments about 1.x FX behavior.

* Test/System.Security.Cryptography/CryptoConfigTest.cs: Add test cases
wrt RIPEMD160 OID
* Test/System.Security.Cryptography/RSACryptoServiceProviderTest.cs: Add
test case for SignHash with all FX-provided hash implementations (all
working except RIPEMD160). Remove some NET_2_0/NET_1_1 defines.
* Test/System.Security.Cryptography/RSAPKCS1SignatureFormatterTest.cs:
Remove hacks that were needed for running the tests under FX 1.x. Remove
some NET_2_0/NET_1_1 defines.
2011-01-11 10:01:56 -05:00
Zoltan Varga f4b5acc984 Dump the AOT log upon a failure. 2011-01-11 14:51:00 +01:00
Ankit Jain eecee98e4e [xbuild] ConsoleLogger - Correctly indent multi-line messages.
Split and correctly indent multi-line messages in ConsoleLogger.
2011-01-11 18:58:28 +05:30
Marek Safar bebd88b14b Check namespace of build-in base types 2011-01-11 12:37:23 +00:00
Marek Safar 57078fc3bb [662222] Import dynamic attribute using attribute type reader 2011-01-11 12:29:03 +00:00
Marek Safar 6f47ef4a71 Use base type parameters to extract params modifier of virtual method 2011-01-11 11:55:29 +00:00
Rodrigo Kumpera 9ea6bba25e Fix parent instantantiation verification.
* verify.c (mono_verifier_verify_class): Don't verify
	the parent instantiation of generic instances as those are
	allowed to have free variables. Use the right context for
	GTD too.

	Fixes build breakage.
2011-01-11 12:38:02 +01:00
Rodrigo Kumpera e169505e2c Method loading can fail without setting the loader error.
* metadata-verify.c (mono_verifier_verify_methodimpl_row):
	In some cases, a method won't load and the loader error
	won't be set, so properly check for both.

	Fixes #562009
2011-01-11 11:29:59 +01:00
Rodrigo Kumpera aa30274379 Make sure a class's parent is a valid generic instance.
* verify.c (mono_verifier_verify_class): Check if parent
	is valid in the context of the current class.

	Fixes #562150
2011-01-11 10:58:41 +01:00
Jb Evain 8a9521a1ce Remove custom ResolutionException now that Cecil is providing one 2011-01-11 10:38:25 +01:00
Marek Safar 094ec3a24a Update to head IKVM 2011-01-11 09:05:45 +00:00
Geoff Norton bfd4d16e12 Fixed loadedllvm on OSX
The default build of libmono-llvm.dylib includes libmono and all its dependencies,
but our statically compiled mono binary does as well.  OSX can actually load both
into its process space, and get confused as to which symbol it should call, leading
to non-deterministic crashes.  We'll remove all the mono dependencies, and use
-undefined suppress to mitigate this on OSX.
2011-01-11 00:55:58 -05:00
Jonathan Pryor 4dc67cf08a [monodoc/osx] Look for docs in additional directories.
Fixes #663182.

OSX allows multiple framework versions to be installed side-by-side,
and the current version is available through
/Library/Frameworks/Mono.framework/Versions/Current.

However, documentation installed into /L/F/M.f/V/C/lib/monodoc/sources
is specific for that Mono version; upgrade Mono.framework, and the
documentation is "lost," not visible to the newly installed version.

To fix this, we're creating an *unversioned* directory to contain
documentation, which will thus be persistent across Mono.framework
upgrades: /Library/Frameworks/Mono.framework/External/monodoc

This will allow Mono.framework to be upgraded without "losing" the
documentation visible within monodoc.
2011-01-10 20:54:43 -05:00
Marek Habersack 606cbfde03 [asp.net] Fix for bug #659078. AsyncPostBackTrigger must react to events from sub-controls.
Sub-control IDs can be separated using both '$' and '_'.
2011-01-11 01:56:17 +01:00
Marek Habersack f54988c03b [asp.net] Use 'protected internal' only when compiling for System.Web, 'protected' otherwise 2011-01-11 01:56:17 +01:00
Zoltan Varga b953dfd9dc Fix a regression introduced by db4299a1. 2011-01-11 01:08:46 +01:00
Ankit Jain 8dd9fd9092 [xbuild] Update man page, new search paths for extensions and .pc files. 2011-01-11 05:06:19 +05:30
Jb Evain cc881c63a5 Update cecil from upstream 2011-01-11 00:12:13 +01:00
Jb Evain 262e68086c Fix output of local variable names in debugging symbols 2011-01-11 00:10:33 +01:00
9226 changed files with 813078 additions and 388627 deletions

No files matched your search

+4 -1
View File
@@ -15,11 +15,12 @@
/libtool
/ltconfig
/ltmain.sh
/mono-*.tar.gz
/mono-*.tar.*
/*.pc
/mono.spec
/mono-core.spec
/semantic.cache
/mono.h
/stamp-h
/stamp-h.in
/stamp-h1
@@ -36,3 +37,5 @@
/lt~obsolete.m4
/ltversion.m4
*~
*.suo
*.csproj.user
+9
View File
@@ -0,0 +1,9 @@
[submodule "external/aspnetwebstack"]
path = external/aspnetwebstack
url = git://github.com/mono/aspnetwebstack.git
[submodule "external/Newtonsoft.Json"]
path = external/Newtonsoft.Json
url = git://github.com/mono/Newtonsoft.Json.git
[submodule "external/cecil"]
path = external/cecil
url = git://github.com/mono/cecil.git
+13
View File
@@ -1,3 +1,16 @@
2011-04-19 gettextize <[email protected]>
* m4/gettext.m4: New file, from gettext-0.18.1.
* m4/iconv.m4: New file, from gettext-0.18.1.
* m4/lib-ld.m4: New file, from gettext-0.18.1.
* m4/lib-link.m4: New file, from gettext-0.18.1.
* m4/lib-prefix.m4: New file, from gettext-0.18.1.
* m4/nls.m4: Upgrade to gettext-0.18.1.
* m4/po.m4: Upgrade to gettext-0.18.1.
* m4/progtest.m4: Upgrade to gettext-0.18.1.
* m4/Makefile.am (EXTRA_DIST): Add the new files.
* configure.in (AC_CONFIG_FILES): Add po/Makefile.in.
2010-08-05 Andrés G. Aragoneses <[email protected]>
* scripts/.gitignore: added mono-abi-info.
+10 -7
View File
@@ -2,14 +2,14 @@
Mono is made up of many pieces of code, all of them open source, but
different pieces of Mono use different licensing terms.
For comments, corrections and updates, please contact mono@novell.com
For comments, corrections and updates, please contact mono@xamarin.com
* Dual Licensing
Parts of Mono are dual licensed, they are available to the
public in GPL or LGPL forms, but we also offer those pieces
under commercial terms from Novell for when the GPL and the
LGPL are not suitable.
under commercial terms from Xamarin for the cases wher the GPL
and the LGPL are not suitable.
We have tried to pick the licenses that will maximize adoption
of Mono, so we tend to use the MIT X11 or LGPL liceses.
@@ -22,7 +22,10 @@ For comments, corrections and updates, please contact [email protected]
Contributions for other modules should be under the same license
terms as the rest of the module, or under MIT X11 terms.
If you need further information, please contact [email protected]
For the actual license links in the Mono distribution see the
bottom of this file.
If you need further information, please contact [email protected]
* The Modules
@@ -31,7 +34,7 @@ For comments, corrections and updates, please contact [email protected]
This code is dual licensed under the LGPL or commercial licenses.
The LGPL ensures that Mono can be used in most scenarios, but
gives Novell the flexibility to relicense the code for
gives Xamarin the flexibility to relicense the code for
embedded systems, static linking or commercial settings where
the LGPL can not be used.
@@ -39,13 +42,13 @@ For comments, corrections and updates, please contact [email protected]
embedded system where the end user is not able to upgrade the
Mono VM or Moonlight installation or distribution that is part
of your product (Section 6 and 7), you would have to obtain a
commercial license from Novell (consider software burned into
commercial license from Xamarin (consider software burned into
a ROM, systems where end users would not be able to upgrade,
an embedded console, a game console that imposes limitations
on the distribution and access to the code, a phone platform
that prevents end users from upgrading Moonlight).
Contact mono@novell.com for details on obtaining the Mono
Contact mono@xamarin.com for details on obtaining the Mono
runtime under other terms.
** mono/eglib: Mono's X11 glib implementation
+23 -6
View File
@@ -1,5 +1,4 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
ACLOCAL_AMFLAGS = -I m4
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib/src mono
@@ -7,7 +6,7 @@ if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples tools msvc docs
DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native data runtime scripts man samples tools msvc docs
else
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
@@ -15,11 +14,27 @@ else
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
endif
endif
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs autogen.sh
all: update_submodules
SUBMODULE_ERROR='Could not recursively update all git submodules. You may experience compilation problems if some submodules are out of date'
update_submodules:
@$(srcdir)/scripts/update_submodules
.PHONY: update_submodules
EXTRA_DIST= \
LICENSE \
autogen.sh \
build-mingw32.sh \
mkinstalldirs \
mono-uninstalled.pc.in \
winconfig.h \
mono-core.spec \
external
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
@@ -28,7 +43,8 @@ GIT_DIR ?= $(srcdir)/.git
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
# Disable this for now because it is very slow and causes wrench to timeout:
# test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
pkgconfigdir = $(libdir)/pkgconfig
noinst_DATA = mono-uninstalled.pc
@@ -134,6 +150,7 @@ package-inputs:
read output; echo " <output>$$output</output>"; \
read built; echo " <built_sources>$$built</built_sources>"; \
read libou; echo " <library_output>$$libou</library_output>"; \
read fx_ver; echo " <fx_version>$$fx_ver</fx_version>"; \
read resp; echo " <response>$$resp</response>"; \
echo " </project>") >> msvc/scripts/order.xml; \
done
+5
View File
@@ -4,6 +4,7 @@ This is Mono.
1. Installation
2. Using Mono
3. Directory Roadmap
4. git submodules maintenance
1. Compilation and Installation
===============================
@@ -586,3 +587,7 @@ This is Mono.
same prefix than this module gets.
4. Git submodules maintenance
=============================
Read documentation at http://mono-project.com/Git_Submodule_Maintenance
+2 -2
View File
@@ -102,8 +102,8 @@ if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
fi
fi
echo "Running aclocal -I . $ACLOCAL_FLAGS ..."
aclocal -I . $ACLOCAL_FLAGS || {
echo "Running aclocal -I m4 -I . $ACLOCAL_FLAGS ..."
aclocal -I m4 -I . $ACLOCAL_FLAGS || {
echo
echo "**Error**: aclocal failed. This may mean that you have not"
echo "installed all of the packages you need, or you may need to"
+105 -42
View File
@@ -2,9 +2,9 @@
CURDIR="`pwd`"
MINGW=i386-mingw32msvc
CROSS_DIR=/opt/cross/$MINGW
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
EXTRA_CROSS_DIR=
INSTALL_DESTDIR="$CURDIR/mono-win32"
PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
PROFILES="default net_2_0 net_3_5 net_4_0 net_4_5 moonlight"
TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
ORIGINAL_PATH="$PATH"
@@ -17,62 +17,119 @@ function cleanup ()
fi
}
function check_pkg_config_dir ()
{
local DIR="$1"
local DIR_PREFIX="$2"
if [ ! -d "$DIR" ]; then
return
fi
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$DIR"/*.pc; do
if [ -f $pc ]; then
pcname="`basename $pc`"
sed -e "s;^prefix=.*;prefix=$DIR_PREFIX;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
fi;
done
if [ -z "$CROSS_PKG_CONFIG_DIR" ]; then
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi
}
function show_build_info ()
{
cat <<EOF
Installation prefix: $MONO_PREFIX
CPPFLAGS: ${CPPFLAGS:=not set}
LDFLAGS: ${LDFLAGS:=not set}
MONO_PATH: ${MONO_PATH:=not set}
EOF
}
function setup ()
{
local pcname
CROSS_BIN_DIR="$CROSS_DIR/bin"
CROSS_DLL_DIR="$CROSS_DIR/bin"
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/lib/pkgconfig
PATH=$CROSS_BIN_DIR:$PATH
export PATH
if [ -d ./.git/svn ]; then
SVN_INFO='git svn info'
elif [ -d ./.svn ]; then
SVN_INFO='svn info'
MONO_VERSION=`grep AC_INIT configure.in | cut -d ',' -f 2|tr -d '\[ \]'`
if [ -d ./.git ]; then
MONO_GIT_COMMIT="`git log -1 --format=format:%t`"
MONO_GIT_BRANCH="`git branch|grep '\*'|cut -d ' ' -f 2|tr -d '\)'|tr -d '\('`"
MONO_RELEASE="$MONO_VERSION-$MONO_GIT_BRANCH-$MONO_GIT_COMMIT"
else
SVN_INFO=""
MONO_RELEASE="$MONO_VERSION"
fi
if [ -n "$SVN_INFO" ]; then
MONO_SVN_REVISION=`$SVN_INFO | grep Revision | sed 's/.*: //'`
MONO_BRANCH=`$SVN_INFO | grep URL | sed -e 's;.*source/;;g' -e 's;/mono;;g'`
else
MONO_SVN_REVISION="rUNKNOWN"
MONO_BRANCH="tarball"
fi
MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'`
MONO_RELEASE="$MONO_VERSION-$MONO_BRANCH-r$MONO_SVN_REVISION"
MONO_PREFIX="/mono-$MONO_RELEASE"
MONO_PREFIX="$MONO_PREFIX/mono-$MONO_RELEASE"
NOCONFIGURE=yes
export NOCONFIGURE
if [ -d "$CROSS_PKG_CONFIG_DIR" ]; then
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$CROSS_PKG_CONFIG_DIR"/*.pc; do
pcname="`basename $pc`"
sed -e "s;^prefix=.*;prefix=$CROSS_DIR;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
done
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi
check_pkg_config_dir "$CROSS_DIR/lib/pkgconfig" "$CROSS_DIR"
echo Mono Win32 installation prefix: $MONO_PREFIX
if [ -n "$EXTRA_CROSS_DIR" -a -d "$EXTRA_CROSS_DIR" ]; then
if [ -d "$EXTRA_CROSS_DIR/bin" ]; then
PATH="$EXTRA_CROSS_DIR/bin":$PATH
fi
check_pkg_config_dir "$EXTRA_CROSS_DIR/lib/pkgconfig" "$EXTRA_CROSS_DIR"
if [ -d "$EXTRA_CROSS_DIR/include" ]; then
if [ -z "$CPPFLAGS" ]; then
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\""
else
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\" $CFLAGS"
fi
fi
if [ -d "$EXTRA_CROSS_DIR/lib" ]; then
if [ -z "$LDFLAGS" ]; then
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\""
else
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\" $LDFLAGS"
fi
fi
if [ -d "$EXTRA_CROSS_DIR/share/aclocal" ]; then
if [ -z "$MONO_PATH" ]; then
MONO_PATH="\"$EXTRA_CROSS_DIR\""
else
MONO_PATH="\"$EXTRA_CROSS_DIR\":$MONO_PATH"
fi
fi
fi
export PATH MONO_PATH CPPFLAGS
show_build_info
}
function build ()
{
if [ -f ./Makefile ]; then
make distclean
fi
if [ -d ./autom4te.cache ]; then
rm -rf ./autom4te.cache
fi
if [ -f ./config.status ]; then
for f in `find -name config.status -type f`; do
rm $f
done
fi
./autogen.sh
BUILD="`./config.guess`"
if [ -f ./Makefile ]; then
make distclean
rm -rf autom4te.cache
fi
if [ ! -d "$CURDIR/build-cross-windows" ]; then
mkdir "$CURDIR/build-cross-windows"
fi
@@ -105,27 +162,28 @@ function doinstall ()
cd "$CURDIR/build-cross-windows"
make DESTDIR="$INSTALL_DESTDIR" USE_BATCH_FILES=yes install
cd "$CURDIR/../mcs/mcs"
if test -d $CURDIR/mcs; then
mcsdir=$CURDIR/mcs
else
mcsdir=$CURDIR/../mcs
fi
cd "$mcsdir/mcs"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "mcs profile $p installation failed"
done
cd "$CURDIR/../mcs/class"
cd "$mcsdir/class"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "class library profile $p installation failed"
done
cd "$CURDIR/../mcs/tools"
cd "$mcsdir/tools"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "tools profile $p installation failed"
done
cd "$CURDIR/mono-win32"
for dll in $COPY_DLLS; do
cp -ap "$CROSS_DLL_DIR"/$dll "$INSTALL_DESTDIR/$MONO_PREFIX/bin"
done
rm -f "$CURDIR/mono-win32-$MONO_RELEASE".zip
zip -9r "$CURDIR/mono-win32-$MONO_RELEASE".zip .
@@ -139,7 +197,9 @@ Usage: build-mingw32.sh [OPTIONS]
where OPTIONS are:
-d DIR Sets the location of directory where MINGW is installed [$CROSS_DIR]
-e DIR Sets the location of directory where additional cross develoment packages are installed [${EXTRA_CROSS_DIR:=none}]
-m MINGW Sets the MINGW target name to be passed to configure [$MINGW]
-p PREFIX Prefix at which Mono is to be installed. Build will append the 'mono-X.Y' string to that path
EOF
exit 1
@@ -149,10 +209,12 @@ trap cleanup 0
pushd . > /dev/null
while getopts "d:m:h" opt; do
while getopts "d:m:e:p:" opt; do
case "$opt" in
d) CROSS_DIR="$OPTARG" ;;
m) MINGW="$OPTARG" ;;
e) EXTRA_CROSS_DIR="$OPTARG" ;;
p) MONO_PREFIX="$OPTARG" ;;
*) usage ;;
esac
done
@@ -160,5 +222,6 @@ done
setup
build
doinstall
show_build_info
popd > /dev/null
Executable
+672
View File
@@ -0,0 +1,672 @@
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2010 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <[email protected]>, 1996
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# The first argument passed to this file is the canonical host specification,
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
# should be set by the caller.
#
# The set of defined variables is at the end of this script.
# Known limitations:
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
# than 256 bytes, otherwise the compiler driver will dump core. The only
# known workaround is to choose shorter directory names for the build
# directory and/or the installation directory.
# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
shrext=.so
host="$1"
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
# Code taken from libtool.m4's _LT_CC_BASENAME.
for cc_temp in $CC""; do
case $cc_temp in
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
\-*) ;;
*) break;;
esac
done
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
# Code taken from libtool.m4's _LT_COMPILER_PIC.
wl=
if test "$GCC" = yes; then
wl='-Wl,'
else
case "$host_os" in
aix*)
wl='-Wl,'
;;
darwin*)
case $cc_basename in
xlc*)
wl='-Wl,'
;;
esac
;;
mingw* | cygwin* | pw32* | os2* | cegcc*)
;;
hpux9* | hpux10* | hpux11*)
wl='-Wl,'
;;
irix5* | irix6* | nonstopux*)
wl='-Wl,'
;;
newsos6)
;;
linux* | k*bsd*-gnu)
case $cc_basename in
ecc*)
wl='-Wl,'
;;
icc* | ifort*)
wl='-Wl,'
;;
lf95*)
wl='-Wl,'
;;
pgcc | pgf77 | pgf90)
wl='-Wl,'
;;
ccc*)
wl='-Wl,'
;;
como)
wl='-lopt='
;;
*)
case `$CC -V 2>&1 | sed 5q` in
*Sun\ C*)
wl='-Wl,'
;;
esac
;;
esac
;;
osf3* | osf4* | osf5*)
wl='-Wl,'
;;
rdos*)
;;
solaris*)
wl='-Wl,'
;;
sunos4*)
wl='-Qoption ld '
;;
sysv4 | sysv4.2uw2* | sysv4.3*)
wl='-Wl,'
;;
sysv4*MP*)
;;
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
wl='-Wl,'
;;
unicos*)
wl='-Wl,'
;;
uts4*)
;;
esac
fi
# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
case "$host_os" in
cygwin* | mingw* | pw32* | cegcc*)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
if test "$GCC" != yes; then
with_gnu_ld=no
fi
;;
interix*)
# we just hope/assume this is gcc and not c89 (= MSVC++)
with_gnu_ld=yes
;;
openbsd*)
with_gnu_ld=no
;;
esac
ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
# Set some defaults for GNU ld with shared library support. These
# are reset later if shared libraries are not supported. Putting them
# here allows them to be overridden if necessary.
# Unlike libtool, we use -rpath here, not --rpath, since the documented
# option of GNU ld is called -rpath, not --rpath.
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
case "$host_os" in
aix[3-9]*)
# On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# Samuel A. Falvo II <[email protected]> reports
# that the semantics of dynamic libraries on AmigaOS, at least up
# to version 4, is to share data among multiple programs linked
# with the same dynamic library. Since this doesn't match the
# behavior of shared libraries on other platforms, we cannot use
# them.
ld_shlibs=no
;;
beos*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
cygwin* | mingw* | pw32* | cegcc*)
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec='-L$libdir'
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
interix[3-9]*)
hardcode_direct=no
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
gnu* | linux* | k*bsd*-gnu)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
netbsd*)
;;
solaris*)
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
ld_shlibs=no
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
case `$LD -v 2>&1` in
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
ld_shlibs=no
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
else
ld_shlibs=no
fi
;;
esac
;;
sunos4*)
hardcode_direct=yes
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
esac
if test "$ld_shlibs" = no; then
hardcode_libdir_flag_spec=
fi
else
case "$host_os" in
aix3*)
# Note: this linker hardcodes the directories in LIBPATH if there
# are no directories specified by -L.
hardcode_minus_L=yes
if test "$GCC" = yes; then
# Neither direct hardcoding nor static linking is supported with a
# broken collect2.
hardcode_direct=unsupported
fi
;;
aix[4-9]*)
if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
aix_use_runtimelinking=no
else
aix_use_runtimelinking=no
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
aix_use_runtimelinking=yes
break
fi
done
;;
esac
fi
hardcode_direct=yes
hardcode_libdir_separator=':'
if test "$GCC" = yes; then
case $host_os in aix4.[012]|aix4.[012].*)
collect2name=`${CC} -print-prog-name=collect2`
if test -f "$collect2name" && \
strings "$collect2name" | grep resolve_lib_name >/dev/null
then
# We have reworked collect2
:
else
# We have old collect2
hardcode_direct=unsupported
hardcode_minus_L=yes
hardcode_libdir_flag_spec='-L$libdir'
hardcode_libdir_separator=
fi
;;
esac
fi
# Begin _LT_AC_SYS_LIBPATH_AIX.
echo 'int main () { return 0; }' > conftest.c
${CC} ${LDFLAGS} conftest.c -o conftest
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
if test -z "$aix_libpath"; then
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
fi
if test -z "$aix_libpath"; then
aix_libpath="/usr/lib:/lib"
fi
rm -f conftest.c conftest
# End _LT_AC_SYS_LIBPATH_AIX.
if test "$aix_use_runtimelinking" = yes; then
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
else
if test "$host_cpu" = ia64; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
else
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
fi
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# see comment about different semantics on the GNU ld section
ld_shlibs=no
;;
bsdi[45]*)
;;
cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec=' '
libext=lib
;;
darwin* | rhapsody*)
hardcode_direct=no
if test "$GCC" = yes ; then
:
else
case $cc_basename in
xlc*)
;;
*)
ld_shlibs=no
;;
esac
fi
;;
dgux*)
hardcode_libdir_flag_spec='-L$libdir'
;;
freebsd1*)
ld_shlibs=no
;;
freebsd2.2*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
freebsd2*)
hardcode_direct=yes
hardcode_minus_L=yes
;;
freebsd* | dragonfly*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
hpux9*)
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
hpux10*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
fi
;;
hpux11*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
case $host_cpu in
hppa*64*|ia64*)
hardcode_direct=no
;;
*)
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
esac
fi
;;
irix5* | irix6* | nonstopux*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
netbsd*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
newsos6)
hardcode_direct=yes
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
openbsd*)
if test -f /usr/libexec/ld.so; then
hardcode_direct=yes
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
else
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
fi
else
ld_shlibs=no
fi
;;
os2*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
;;
osf3*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
osf4* | osf5*)
if test "$GCC" = yes; then
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
else
# Both cc and cxx compiler support -rpath directly
hardcode_libdir_flag_spec='-rpath $libdir'
fi
hardcode_libdir_separator=:
;;
solaris*)
hardcode_libdir_flag_spec='-R$libdir'
;;
sunos4*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_direct=yes
hardcode_minus_L=yes
;;
sysv4)
case $host_vendor in
sni)
hardcode_direct=yes # is this really true???
;;
siemens)
hardcode_direct=no
;;
motorola)
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
;;
sysv4.3*)
;;
sysv4*MP*)
if test -d /usr/nec; then
ld_shlibs=yes
fi
;;
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
;;
sysv5* | sco3.2v5* | sco5v6*)
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
hardcode_libdir_separator=':'
;;
uts4*)
hardcode_libdir_flag_spec='-L$libdir'
;;
*)
ld_shlibs=no
;;
esac
fi
# Check dynamic linker characteristics
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
# only about the one the linker finds when passed -lNAME. This is the last
# element of library_names_spec in libtool.m4, or possibly two of them if the
# linker has special search rules.
library_names_spec= # the last element of library_names_spec in libtool.m4
libname_spec='lib$name'
case "$host_os" in
aix3*)
library_names_spec='$libname.a'
;;
aix[4-9]*)
library_names_spec='$libname$shrext'
;;
amigaos*)
library_names_spec='$libname.a'
;;
beos*)
library_names_spec='$libname$shrext'
;;
bsdi[45]*)
library_names_spec='$libname$shrext'
;;
cygwin* | mingw* | pw32* | cegcc*)
shrext=.dll
library_names_spec='$libname.dll.a $libname.lib'
;;
darwin* | rhapsody*)
shrext=.dylib
library_names_spec='$libname$shrext'
;;
dgux*)
library_names_spec='$libname$shrext'
;;
freebsd1*)
;;
freebsd* | dragonfly*)
case "$host_os" in
freebsd[123]*)
library_names_spec='$libname$shrext$versuffix' ;;
*)
library_names_spec='$libname$shrext' ;;
esac
;;
gnu*)
library_names_spec='$libname$shrext'
;;
hpux9* | hpux10* | hpux11*)
case $host_cpu in
ia64*)
shrext=.so
;;
hppa*64*)
shrext=.sl
;;
*)
shrext=.sl
;;
esac
library_names_spec='$libname$shrext'
;;
interix[3-9]*)
library_names_spec='$libname$shrext'
;;
irix5* | irix6* | nonstopux*)
library_names_spec='$libname$shrext'
case "$host_os" in
irix5* | nonstopux*)
libsuff= shlibsuff=
;;
*)
case $LD in
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
*) libsuff= shlibsuff= ;;
esac
;;
esac
;;
linux*oldld* | linux*aout* | linux*coff*)
;;
linux* | k*bsd*-gnu)
library_names_spec='$libname$shrext'
;;
knetbsd*-gnu)
library_names_spec='$libname$shrext'
;;
netbsd*)
library_names_spec='$libname$shrext'
;;
newsos6)
library_names_spec='$libname$shrext'
;;
nto-qnx*)
library_names_spec='$libname$shrext'
;;
openbsd*)
library_names_spec='$libname$shrext$versuffix'
;;
os2*)
libname_spec='$name'
shrext=.dll
library_names_spec='$libname.a'
;;
osf3* | osf4* | osf5*)
library_names_spec='$libname$shrext'
;;
rdos*)
;;
solaris*)
library_names_spec='$libname$shrext'
;;
sunos4*)
library_names_spec='$libname$shrext$versuffix'
;;
sysv4 | sysv4.3*)
library_names_spec='$libname$shrext'
;;
sysv4*MP*)
library_names_spec='$libname$shrext'
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
library_names_spec='$libname$shrext'
;;
uts4*)
library_names_spec='$libname$shrext'
;;
esac
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
# How to pass a linker flag through the compiler.
wl="$escaped_wl"
# Static library suffix (normally "a").
libext="$libext"
# Shared library suffix (normally "so").
shlibext="$shlibext"
# Format of library name prefix.
libname_spec="$escaped_libname_spec"
# Library names that the linker finds when passed -lNAME.
library_names_spec="$escaped_library_names_spec"
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator="$hardcode_libdir_separator"
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct="$hardcode_direct"
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L="$hardcode_minus_L"
EOF
+384 -112
View File
File diff suppressed because it is too large. Load diff
+2
View File
@@ -3,3 +3,5 @@
/config
/.cvsignore
/*.pc
/gdb/mono-sgen-gdb.py
/mono-sgen-gdb.py
+10 -6
View File
@@ -1,7 +1,7 @@
SUBDIRS = net_2_0
if INSTALL_4_0
SUBDIRS += net_4_0
SUBDIRS += net_4_0 net_4_5
endif
monodir = $(sysconfdir)/mono
@@ -12,7 +12,7 @@ EXTRA_DIST = \
mono.pc.in mono-2.pc.in monosgen-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in \
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in system.web.mvc3.pc.in aspnetwebstack.pc.in \
net_1_1/machine.config \
gdb/mono-gdb.py \
gdb/gdb-python.diff
@@ -28,21 +28,25 @@ endif
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mono-2.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc $(SGENPCFILE)
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc $(SGENPCFILE)
else
pkgconfig_DATA= mono.pc mono-2.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc $(SGENPCFILE)
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc $(SGENPCFILE)
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
endif
DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc $(SGENPCFILE)
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc $(SGENPCFILE) mono-sgen-gdb.py
mono_DATA = config \
browscap.ini
gdbdir = $(bindir)
gdb_DATA = gdb/mono-gdb.py
mono-sgen-gdb.py: gdb/mono-gdb.py
cp $< $@
gdb_DATA = gdb/mono-gdb.py mono-sgen-gdb.py
+4
View File
@@ -0,0 +1,4 @@
Name: AspNetWebStack
Description: References Microsoft ASP.NET Web Stack
Version: @VERSION@
Libs: -r:System.Web.Razor.dll -r:System.Web.Http.dll -r:System.Web.WebPages -r:System.Web.WebPages.Razor -r:System.Web.WebPages.Deployment
+1 -1
View File
@@ -1,5 +1,5 @@
assemblies_dir=@prefix@/lib/mono
Libraries=${assemblies_dir}/gac/Mono.Cecil/0.9.4.0__0738eb9f132ed756/Mono.Cecil.dll
Libraries=${assemblies_dir}/gac/Mono.Cecil/0.9.5.0__0738eb9f132ed756/Mono.Cecil.dll
Name: Mono Internal -- Do not use.
Description: Mono Internal Libraries -- Do not use
+1
View File
@@ -17,6 +17,7 @@
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
<dllmap dll="libX11" target="@X11@" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
<dllmap dll="libcups" target="libcups.dylib" os="osx"/>
<dllmap dll="i:kernel32.dll">
+23
View File
@@ -166,6 +166,8 @@ class MonoClassPrinter:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
if klass ["generic_class"].cast (gdb.lookup_type ("guint64")) != 0:
class_name = "%s<%s>" % (class_name, str (klass ["generic_class"]["context"]["class_inst"]))
if add_quotes:
return "\"%s\"" % (class_name)
else:
@@ -188,6 +190,8 @@ class MonoGenericInstPrinter:
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
inst = self.val.dereference ()
inst_len = inst ["type_argc"]
inst_args = inst ["type_argv"]
@@ -280,6 +284,21 @@ class MonoMethodRgctxPrinter:
inst_str = inst_str + type_printer.to_string ()
return "MRGCTX[%s, [%s]]" % (klass_printer.to_string(), inst_str)
class MonoVTablePrinter:
"Print a MonoVTable structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
vtable = self.val.dereference ()
klass = vtable ["klass"]
klass_printer = MonoClassPrinter (klass)
return "vtable(%s)" % (klass_printer.to_string ())
def lookup_pretty_printer(val):
t = str (val.type)
if t == "object":
@@ -288,6 +307,8 @@ def lookup_pretty_printer(val):
return ObjectPrinter (val)
if t == "string":
return StringPrinter (val)
if t == "MonoString *":
return StringPrinter (val)
if t == "MonoMethod *":
return MonoMethodPrinter (val)
if t == "MonoClass *":
@@ -300,6 +321,8 @@ def lookup_pretty_printer(val):
return MonoGenericClassPrinter (val)
if t == "MonoMethodRuntimeGenericContext *":
return MonoMethodRgctxPrinter (val)
if t == "MonoVTable *":
return MonoVTablePrinter (val)
return None
def register_csharp_printers(obj):
+1 -1
View File
@@ -4,4 +4,4 @@ Sources=${assemblies_dir}/Options.cs
Name: Mono.Options
Description: Command Line Parsing Library
Version: 0.2.2
Version: 0.2.3
+4
View File
@@ -214,12 +214,16 @@
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
+8
View File
@@ -84,6 +84,10 @@
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
@@ -193,12 +197,16 @@
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
+8
View File
@@ -98,6 +98,10 @@
<section name="routing" type="System.ServiceModel.Routing.Configuration.RoutingSection, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<section name="protocolMapping" type="System.ServiceModel.Configuration.ProtocolMappingSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
@@ -210,12 +214,16 @@
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
File diff suppressed because it is too large. Load diff
+13
View File
@@ -0,0 +1,13 @@
SUBDIRS =
monodir = $(sysconfdir)/mono/4.5
EXTRA_DIST = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
mono_DATA = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
+310
View File
@@ -0,0 +1,310 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="configProtectedData" type="System.Configuration.ProtectedConfigurationSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="appSettings" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="connectionStrings" type="System.Configuration.ConnectionStringsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mscorlib" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="runtime" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="assemblyBinding" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="satelliteassemblies" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="startup" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="system.codedom" type="System.CodeDom.Compiler.CodeDomConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.data" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.runtime.remoting" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<section name="system.windows.forms" type="System.Windows.Forms.WindowsFormsSection, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="windows" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="strongNames" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<sectionGroup name="system.web" type="System.Web.Configuration.SystemWebSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="deployment" type="System.Web.Configuration.DeploymentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" />
<section name="globalization" type="System.Web.Configuration.GlobalizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="healthMonitoring" type="System.Web.Configuration.HealthMonitoringSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="hostingEnvironment" type="System.Web.Configuration.HostingEnvironmentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="httpCookies" type="System.Web.Configuration.HttpCookiesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpModules" type="System.Web.Configuration.HttpModulesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpRuntime" type="System.Web.Configuration.HttpRuntimeSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="sessionState" type="System.Web.Configuration.SessionStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="siteMap" type="System.Web.Configuration.SiteMapSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="trace" type="System.Web.Configuration.TraceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="trust" type="System.Web.Configuration.TrustSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="urlMappings" type="System.Web.Configuration.UrlMappingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="webControls" type="System.Web.Configuration.WebControlsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webParts" type="System.Web.Configuration.WebPartsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webServices" type="System.Web.Services.Configuration.WebServicesSection, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="xhtmlConformance" type="System.Web.Configuration.XhtmlConformanceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<sectionGroup name="caching" type="System.Web.Configuration.SystemWebCachingSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="cache" type="System.Web.Configuration.CacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCache" type="System.Web.Configuration.OutputCacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</sectionGroup>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="connectionManagement" type="System.Net.Configuration.ConnectionManagementSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="mailSettings" type="System.Net.Configuration.MailSettingsSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="smtp" type="System.Net.Configuration.SmtpSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="requestCaching" type="System.Net.Configuration.RequestCachingSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="standardEndpoints" type="System.ServiceModel.Configuration.StandardEndpointsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<section name="routing" type="System.ServiceModel.Routing.Configuration.RoutingSection, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<section name="protocolMapping" type="System.ServiceModel.Configuration.ProtocolMappingSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="memoryCache" type="System.Runtime.Caching.Configuration.MemoryCacheSection, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="LocalSqliteServer" connectionString="Data Source=|DataDirectory|/aspnetdb.sqlite;version=3" providerName="Mono.Data.Sqlite"/>
</connectionStrings>
<configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
<providers>
<add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" keyContainerName="MonoFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
<add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" useMachineProtection="true" keyEntropy="" />
</providers>
</configProtectedData>
<system.net>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http client" displayName="http client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="tcp client" displayName="tcp client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="ipc client" displayName="ipc client (delay loaded)" delayLoadAsClientChannel="true" />
</channels>
</application>
<channels>
<channel id="http" type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http client" type="System.Runtime.Remoting.Channels.Http.HttpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http server" type="System.Runtime.Remoting.Channels.Http.HttpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp" type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp client" type="System.Runtime.Remoting.Channels.Tcp.TcpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp server" type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc" type="System.Runtime.Remoting.Channels.Ipc.IpcChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc client" type="System.Runtime.Remoting.Channels.Ipc.IpcClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc server" type="System.Runtime.Remoting.Channels.Ipc.IpcServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</channels>
<channelSinkProviders>
<clientProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</clientProviders>
<serverProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<provider id="wsdl" type="System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</serverProviders>
</channelSinkProviders>
</system.runtime.remoting>
<appSettings>
<!--<add key="yourkey" value="your value" /> -->
<!--<remove key="a key defined higher in the hierarchy" /> -->
<!--<clear/> Removes all defined settings -->
</appSettings>
<system.diagnostics>
<trace autoflush="false" indentsize="4" />
</system.diagnostics>
<system.drawing>
</system.drawing>
<system.data>
<DbProviderFactories>
<add name="Mono Sqlite Data Provider" invariant="Mono.Data.SqliteClient"
description="Mono Framework Data Provider for SQLite (old version)"
type="Mono.Data.SqliteClient.SqliteFactory, Mono.Data.SqliteClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Mono Sqlite Provider" invariant="Mono.Data.Sqlite"
description="Mono Framework Data Provider for SQLite (new version)"
type="Mono.Data.Sqlite.SqliteFactory, Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Odbc Data Provider" invariant="System.Data.Odbc"
description=".Net Framework Data Provider for Odbc"
type="System.Data.Odbc.OdbcFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OleDb Data Provider" invariant="System.Data.OleDb"
description=".Net Framework Data Provider for OleDb"
type="System.Data.OleDb.OleDbFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OracleClient Data Provider" invariant="System.Data.OracleClient"
description=".Net Framework Data Provider for Oracle"
type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
description=".Net Framework Data Provider for SqlServer"
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
description=".Net Framework Data Provider for Sybase"
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
</DbProviderFactories>
</system.data>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
<strongNames>
<pubTokenMapping>
<!-- ECMA key -->
<map Token="b77a5c561934e089" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (final) key -->
<map Token="b03f5f7f11d50a3a" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (Web Service Enhancement) key -->
<map Token="31bf3856ad364e35" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- IBM (DB2 Data Provider) key -->
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
<system.web>
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<conformanceWarnings>
<add name="BasicProfile1_1"/>
</conformanceWarnings>
<wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
</webServices>
<membership>
<providers>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
<!-- <add name="AspNetSqlMembershipProvider" type="Mainsoft.Web.Security.GenericMembershipProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</membership>
<roleManager>
<providers>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="/" connectionStringName="LocalSqlServer" />
<!-- <add name="AspNetSqlRoleProvider" type="Mainsoft.Web.Security.GenericRoleProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</roleManager>
<profile>
<providers>
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
<endpointExtensions>
<add name="dynamicEndpoint" type="System.ServiceModel.Discovery.Configuration.DynamicEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="discoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.DiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="udpDiscoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpDiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="announcementEndpoint" type="System.ServiceModel.Discovery.Configuration.AnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="udpAnnouncementEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpAnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttpEndpoint" type="System.ServiceModel.Configuration.WebHttpEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webScriptEndpoint" type="System.ServiceModel.Configuration.WebScriptEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</endpointExtensions>
</extensions>
</system.serviceModel>
</configuration>
+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqliteMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlRoleProvider"
type="System.Web.Security.SqliteRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
</settingsMap>
+253
View File
@@ -0,0 +1,253 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<system.web>
<monoSettings>
<compilersCompatibility>
<compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilersCompatibility>
</monoSettings>
<authorization>
<allow users="*" />
</authorization>
<httpHandlers>
<add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
<add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
<add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="True" />
<add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.asax" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ascx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.master" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.skin" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.browser" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sitemap" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dll.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.exe.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.csproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vbproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.webinfo" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.licx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resources" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vjsproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.java" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.jsl" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ad" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.adprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.lddprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdm" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdmDocument" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.exclude" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.refresh" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<!--
<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add path="*.rules" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
<!--
<add path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.xamlx" verb="*" type="System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" />
<add path="*" verb="*" type="System.Web.HttpMethodNotAllowedHandler" validate="True" />
</httpHandlers>
<httpModules>
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
<!--
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
-->
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<!--
<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
-->
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
<!--
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
-->
<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />
<add name="Profile" type="System.Web.Profile.ProfileModule" />
<!--
<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
<add name="ScriptModule-4.0" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
<credentials passwordFormat="Clear">
<!--<user name="gonzalo" password="gonz"/>-->
</credentials>
</forms>
</authentication>
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<globalization requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"/>
<!--
culture="en-US"
uiculture="en-US" />
-->
<sessionState mode="InProc" />
<pages>
<namespaces>
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.Configuration" />
<add namespace="System.Text" />
<add namespace="System.Text.RegularExpressions" />
<add namespace="System.Web" />
<add namespace="System.Web.Caching" />
<add namespace="System.Web.SessionState" />
<add namespace="System.Web.Security" />
<add namespace="System.Web.Profile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<!-- <add namespace="System.Web.UI.WebControls.WebParts" /> -->
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.WebParts" assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.Expressions" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</controls>
</pages>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" >
<assemblies>
<!-- <add assembly="mscorlib" /> -->
<add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<!-- <add assembly="System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> -->
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Channels, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<!-- <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> -->
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
<expressionBuilders>
<add expressionPrefix="Resources"
type="System.Web.Compilation.ResourceExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="ConnectionStrings"
type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="AppSettings"
type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="RouteUrl" type="System.Web.Compilation.RouteUrlExpressionBuilder"/>
<!--
<add expressionPrefix="RouteValue" type="System.Web.Compilation.RouteValueExpressionBuilder"/>
-->
</expressionBuilders>
<buildProviders>
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" />
<add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider" />
<add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider" />
<add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider" />
<add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".resx" type="System.Web.Compilation.ResXBuildProvider" />
<add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider" />
<add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider" />
<add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider" />
<add extension=".js" type="System.Web.Compilation.ForceCopyBuildProvider" />
<add extension=".lic" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<!--
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
<add extension=".xoml" type="System.ServiceModel.Activation.WorkflowServiceBuildProvider, System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add extension=".xamlx" type="System.Xaml.Hosting.XamlBuildProvider, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
</buildProviders>
</compilation>
<httpRuntime executionTimeout="110"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="5000" />
<clientTarget>
<add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="downlevel" userAgent="Unknown" />
</clientTarget>
<siteMap>
<providers>
<add name="AspNetXmlSiteMapProvider"
description="Default site map provider that reads in .sitemap xml files."
type="System.Web.XmlSiteMapProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="Web.sitemap" />
</providers>
</siteMap>
</system.web>
</configuration>
+4
View File
@@ -0,0 +1,4 @@
Name: System.Web.Mvc3
Description: System.Web.Mvc - ASP.NET MVC v3
Version: 3.0.0.0
Libs: -r:@prefix@/lib/mono/gac/System.Web.Mvc/3.0.0.0__31bf3856ad364e35/System.Web.Mvc.dll
+347
View File
@@ -0,0 +1,347 @@
0359470b9f7a2fdaa75e4de12c9f83e78135034f refs/heads/master
f49164bf7658855390b2c19574b170f8728a99ff refs/heads/mono-2-10
f08f8a27bfe3aafda4e430ee2365dec73c1070d7 refs/heads/mono-2-6
746176a37123eda06ee6f9bd70736ac68a78e1aa refs/heads/winforms-clipboard-refactor
3215bf8472af3b66a836af6319bb9410fd84e2ff refs/remotes/origin/C5
0359470b9f7a2fdaa75e4de12c9f83e78135034f refs/remotes/origin/HEAD
773a66abc5e63cc1d2f111daeaa2848891dc8f61 refs/remotes/origin/INITIAL_IMPORT
06e3a751fc70f8b0bb0253dcc634e75b25d67fdc refs/remotes/origin/MCS_0_28
ea23d77f5d686ad196de315b7f251999f409fc8e refs/remotes/origin/MONO_0_28
3b7a7ac0ddf1a952d62a85fbbf7f9864b6de37b4 refs/remotes/origin/Mainsoft.System.Data
7f0542b133e5f1eee15f337e0263c14406091a7e refs/remotes/origin/NUNIT
4e4824afab6cd0f9f0d71aa6baeddb7bee74f8c4 refs/remotes/origin/SAVANNAH_CVS
0fae05ddc83ee034344d50a6d4d618cfb10ee491 refs/remotes/origin/XIMIAN
7e9c74197c9275e89a6c3afc1cfdccfe4f4b9395 refs/remotes/origin/anonymous-methods
b7f7d992745ac1ad98451de3165d9219c5f9f9d0 refs/remotes/origin/anonymous-methods2
a3f972be9e1edf4ec9ae836ad5a6cf35519ec180 refs/remotes/origin/atsushi-200810
2972ef664b391dbdfa612c3ebd0ff55b8b75b5c7 refs/remotes/origin/cecil
dd0a3a7dd70d9f146f968a3114a481f14b2ea1a6 refs/remotes/origin/commit-to-changelog-tests
701861382d1f81fe4ca6f549128e5af5120ad34d refs/remotes/origin/dick/ia64-hpux
ae8eba8d480b8690a915bef3e4899bb98d17b875 refs/remotes/origin/dick/io-layer-files-backend
28e70d66a6d3d24f061e0ba049a8817ead44aeca refs/remotes/origin/dick/io-layer-no-daemon
9229d3a283f618a6a7fdadcfb9a1e66743a6ba2a refs/remotes/origin/jb/cl
121b690b280781fef910972ad6b825ec831ef3b1 refs/remotes/origin/jb/ml2
677178627ed6c3332bff5221d5019b56c5802a17 refs/remotes/origin/jb/reflection-corcompare
a7c74b39baed3961bc814e3508345404c5e03370 refs/remotes/origin/mainsoft/JSF
55afaffae7d224f35eacc1d9d505e662c4223897 refs/remotes/origin/mainsoft/cust_1_2.2
ee61dcd58e7960416c976a18ae025bc4b80713fa refs/remotes/origin/mainsoft/gh1.7
5144d4fd99a7230e317dac4af6b1d2f61d2800d6 refs/remotes/origin/mainsoft/gh2.2
adbed2a2b57bde136348a6b7cd465613b041ce69 refs/remotes/origin/mainsoft/gh2.2_customer2
d03df42d2f13c7e8b3790ff9b3e17975ffdb91af refs/remotes/origin/mainsoft/gh2.2_customer3
f219e12da4b39adcf08432833f3cd06b0b1343e1 refs/remotes/origin/mainsoft/gh2.2_customer4
050c809c8f9f0fa0099b3d5dcaf982a4d0c9cd54 refs/remotes/origin/mainsoft/gh2.2_customer5
7db3f555234c98b481cc7f46f6eb929787885ce8 refs/remotes/origin/mainsoft/gh2.5_customer2
e6b84059b9c42f02c8ac4ef0db12cb7eb88b1884 refs/remotes/origin/mainsoft/gh20
70dbb8d4c74bb6796023abb7aa68fbc678eaeb80 refs/remotes/origin/mainsoft/gh20_Customer2
242fec48e07877683a58350f10922c0f0184589f refs/remotes/origin/mainsoft/gh20_mcs_Customer1
6a59dd91941bb7c7aa026bd25bfec81d6eb1a2c8 refs/remotes/origin/mainsoft/gh20preview
4bb9f1004787e4b52fe4fdb430a5f194ee634073 refs/remotes/origin/mainsoft/gh20preview2
230e23e4f318414c51301127543c01c2005c05e4 refs/remotes/origin/mainsoft/gh3.0preview1
e63e087e0e70925e5d48d0ead2fe65394e5c582d refs/remotes/origin/mainsoft/solutions_2_2
7af82877276c7b88a44deb0e6f2072c50aa28c17 refs/remotes/origin/martin/anonymous-methods2
ba3d2d20235322022f8e875849dab960bfc21b6d refs/remotes/origin/martin/debugger-kahalo
48d03791a1c8abe1d596d879031206d993a83315 refs/remotes/origin/martin/debugger-plophos
0359470b9f7a2fdaa75e4de12c9f83e78135034f refs/remotes/origin/master
41ca39c136de914adeb30deba27ecbb987e05350 refs/remotes/origin/messaging-2008
1429f06a9e3baf56245ec2433dcdb77e76eba684 refs/remotes/origin/mono-1-0
e1eb581e8a9100a929827524d1d2f91bd5685739 refs/remotes/origin/mono-1-0-6
c064f9f178339e54686526a3dd8bfd0ae7b64006 refs/remotes/origin/mono-1-1-10
b28e8eb77161f75a676f160365a860455db15476 refs/remotes/origin/mono-1-1-11
ad29bc9c3105aad5031a2ec84f3c468844e7b49d refs/remotes/origin/mono-1-1-12
a4c46a87cfcea02ab73579c998ed4e67e858b3cf refs/remotes/origin/mono-1-1-13
3f85c6d6d4c066363ae9d6e4de1ae80b954b84eb refs/remotes/origin/mono-1-1-13-8
6a546f60cfc03dc0e4ae09c4463a40f2d5acd8d0 refs/remotes/origin/mono-1-1-14
6e9f255eec4cbd8c53623d52fa26877db451bc34 refs/remotes/origin/mono-1-1-15
812f508c35b2a7247b93e59447afca83452ebc38 refs/remotes/origin/mono-1-1-16
e69a3c507851f27ff9d47d99944ee381fbd8da3e refs/remotes/origin/mono-1-1-17
9fbea2d56a024540d07b680e3eeec3310ba71f86 refs/remotes/origin/mono-1-1-18
b27152cb9d5942cbe886629f6f127fe6d1941930 refs/remotes/origin/mono-1-1-4
d305ee9a95945be36cd4517ef440ce99833068a0 refs/remotes/origin/mono-1-1-5
14db55bb39fee489de084d070ae611dd3503336d refs/remotes/origin/mono-1-1-6
939994df00fc3e1372b9dc1243e261e2f6c6c133 refs/remotes/origin/mono-1-1-7
d5fb27af2b9c68ac7bbada72c342e5b4f3072ebe refs/remotes/origin/mono-1-1-8
4f71550049b0d43f7ae41359e6f38ffa29e1f3b3 refs/remotes/origin/mono-1-1-9
0f9718c237af839c290a4c494a34d78190b99dd5 refs/remotes/origin/mono-1-2
3bb68f1bddf41c5c387e28bbd0dba65df0cca0d3 refs/remotes/origin/mono-1-2-1
c20551c1942db667672b36a07856467caace2d92 refs/remotes/origin/mono-1-2-2
e68e73c7efe7a4e28028d3c0a8c43842caf6dc21 refs/remotes/origin/mono-1-2-3
3c2f76b3001523ae712dcba5b2311a196eb9399d refs/remotes/origin/mono-1-2-4
8bb489774f42a734947859a1742ee5710efd9b49 refs/remotes/origin/mono-1-2-5
7376efd124405d50e11524bed7e91bbcb6bfc91a refs/remotes/origin/mono-1-2-6
bb0cde85b1f31230be337328ebd83d412f6b9c90 refs/remotes/origin/mono-1-9
c115636e0f354c3217920614182a3dfec4337541 refs/remotes/origin/mono-1-9-1-1
a1f3cf39287ceaca189ae1b4c06ad1677c8988cf refs/remotes/origin/mono-2-0
7a0052ae2fa0b9ff2c0dc7b6053e0e7d7630d477 refs/remotes/origin/mono-2-10
852c512d416efb6ed34493571ee87abab7f72890 refs/remotes/origin/mono-2-2
b68a5046d67794cd702518f471c6facdbb2f3a2c refs/remotes/origin/mono-2-4
d161692a50d0164906d5c0ad6ee38db141b6f7b0 refs/remotes/origin/mono-2-4-0
d4aeca63be0e9200f726545d4f8fcacd6a1e2b3f refs/remotes/origin/mono-2-4-1
7cf6ebe0e0dc6e38851a07eaac14062b9a236a19 refs/remotes/origin/mono-2-4-2
906d87f3ff47bf9d1deb9f4db57e3900bd8659ee refs/remotes/origin/mono-2-4-3
f08f8a27bfe3aafda4e430ee2365dec73c1070d7 refs/remotes/origin/mono-2-6
756688b2b8a4988117a2c68cfdba17142284e729 refs/remotes/origin/mono-2-6-4
34096b448e97ec780b3788de2b3185691bc0b9ad refs/remotes/origin/mono-2-6-7
64f045b98659b3552ae2b46b6e4e56fc9dad76e2 refs/remotes/origin/mono-2-8
c7c906d69ac9e360ce3e7d517258b8eea2b962b2 refs/remotes/origin/monotouch-1-0
62121afbb28f0b62f100ec9a942d10c5e0f4814f refs/remotes/origin/monotouch-2-0
97c6f8c4c8d592360ec365777aedb15604ec53ca refs/remotes/origin/moon-2-99-0-1
91b722f1d4b469c10c46fad3396a876c4414c87b refs/remotes/origin/moon-2-99-0-2
79e05e9d6f8eca93467f104aed4fc19733e909a7 refs/remotes/origin/moon-2-99-0-3
ddacacca00cb69f829abf9b0fd52fd6b4076d2c4 refs/remotes/origin/moon-2-99-0-4
4309c0d96184c1675aef708f26a2a058b69e5eb8 refs/remotes/origin/moon-2-99-0-5
60905d3baaa5b6ba9763c3c8b01701bb01853773 refs/remotes/origin/moon-2-99-0-6
851c48f04a8019811231bc9bd6984b0779932dcd refs/remotes/origin/moon-2-99-0-7
a36dc89129d65c4b72e9291d0fce46e0e418196c refs/remotes/origin/moon-2-99-0-8
8fa5360efd91bc9e0bdd9399f6bd484b5ecfd16a refs/remotes/origin/moon-3-99-0-1
32b3b31f74ec411d02efba37d58433ade9fa6d98 refs/remotes/origin/moon-3-99-0-2
fa856a85b50d6adbac6b5d26b32bc608887551bc refs/remotes/origin/moon/1.9.0
348617482b380275d7057e547e806c9be05bdb72 refs/remotes/origin/moon/1.9.1
0d47d8081c828d4b032564a88046a99d0284e6fd refs/remotes/origin/moon/1.9.2
50275053ad48a673500d72dccedab51e5230ad0b refs/remotes/origin/moon/1.9.3
bd19dacb396738bad75ecc8aafc1d8fc0fd6d5cd refs/remotes/origin/moon/1.9.4
f77c706aeb62483bd50e1199f52e1dadd9c520dd refs/remotes/origin/moon/1.9.5
3a5a3cf1d3fd027974b9f8281c6a9c7a22b75029 refs/remotes/origin/moon/1.9.6
ee08a4d041bdb88f49a027ce1a4f7736751a32d5 refs/remotes/origin/moon/1.99.1
c7bb5af6fcf8d1e380a8ec440c4b535c912713e0 refs/remotes/origin/moon/1.99.2
82b4a5cf1336da4f3234e85754a8780c57bb566b refs/remotes/origin/moon/1.99.3
f0a462d9db712ffcad80365561307c06e3acef3f refs/remotes/origin/moon/1.99.4
43dff9dcbf68f1ede9a467c24361a8056440c16a refs/remotes/origin/moon/1.99.5
d4674914b900cba323c2cde86e185b57553fa224 refs/remotes/origin/moon/1.99.6
51bca79c227343ce3a839c4739590406032546f6 refs/remotes/origin/moon/1.99.7
e0eee654e3532610107089762f6c73e923b71036 refs/remotes/origin/moon/1.99.8
ce62f727587b0467218a77829b30d530ca7fb524 refs/remotes/origin/moon/1.99.9
aaa43cdb8ab054b33c23ba2a16475d4108acc1f4 refs/remotes/origin/moon/moon-2-0
a56625169c0ebfd4bdfe0636b04cf3f5c5c1e057 refs/remotes/origin/mwf-handle-branch
0546b514ee0115d7e4bc08d479b952aaa59e0591 refs/remotes/origin/post-1-1-7-4-locking-exp
091a1627fdf10e7e3a12d59138bb4036711d6bdd refs/remotes/origin/post-1-1-8-locking-exp
348617482b380275d7057e547e806c9be05bdb72 refs/remotes/origin/rhowell/1.9.1
bd19dacb396738bad75ecc8aafc1d8fc0fd6d5cd refs/remotes/origin/rhowell/1.9.4
b73887c83da66d0ba9402c9cfe94936a938361a2 refs/remotes/origin/sportsmodel-branch
db39bf49379457cda6efb712dc6b9d9f007e5c9c refs/remotes/origin/vargaz/mini-linear-il
acb9e21b28520b966f30b8575d61ca7ed952134b refs/remotes/origin/vargaz/mini-xp-local-regalloc
6dc86808d6e4e1811ef8746afbd67c1eefca4b44 refs/remotes/origin/wii
2435a146a292e5cbd17d775260e69f9ffe5bd961 refs/stash
3f313cb9ecff29967ddff9bf78004f49816e804d refs/tags/1-0-5
8ee804b1c9cc92fd7bea45adb1270f3d5bbcbdf5 refs/tags/1-1-3
2fb3bf579cca787c4bbe0c2bdccc17c8ac9a189c refs/tags/2.10
668fe4cb4bf709d52ab5660e9198ed2bbcc32289 refs/tags/2.10.1
a401067f098a6c3aa8b273e06e6ccbf14a589852 refs/tags/2.10.2
66187b25b69ab736c0ff93f0b3ebf35f660fb343 refs/tags/2.10.3
d34d67f35bc2a0a48af1c37ac6af4c926df7668c refs/tags/2.8
4f90aa334e08c3137db6e2267192c1c7a14ffb84 refs/tags/2.8-p3
dd287e742d072039b81f1e7351aab45621e60ed4 refs/tags/2.8-p5
b3911d9b59b06d5e39bfa30ea572fdb167c6d478 refs/tags/2.8-p6
15122fd0a5190afc168918bc8e840eb0d3296f38 refs/tags/2.8-rc1
662ad6ee1249ceb0b9873d02034d03fee429b616 refs/tags/2.8.1
47ae77b5608c6dc0e3e5497f857c450fba3a41cf refs/tags/2.8.2
3215bf8472af3b66a836af6319bb9410fd84e2ff refs/tags/C5_0_5
a4367a4aaaa4600954eb64dfd1cc4c433b5f0e3b refs/tags/GENERICS_BASE_MERGE_POINT
5df4e8d92d45ebd27fff80d1cb3317fc6177f1cb refs/tags/GMCS_MARTIN
69876c30ff2e33d15a79f94c8a5560c7066e4900 refs/tags/GMCS_MARTIN_2
b5e0d7eaf38a4e1ec031e91508c602c0e07c14ff refs/tags/MARTIN_PLAYGROUND_TAG
c47f6de70e6a9cfc31ded537d4610efa800302f2 refs/tags/MCS_0_10
6f9059cfb80914c1f48a93bc0efc08e6404c950e refs/tags/MCS_0_11
d7a0fa3525a4baf4da535c3f5c4a6afa61fc1af7 refs/tags/MCS_0_13
af150fc45b9f08337e3c5c517d1a9ae533844927 refs/tags/MCS_0_14
3baf6444e0ba460696c78ddf2e137517664d6d0f refs/tags/MCS_0_15
2060885a61b30e2557d9e938e681842a21be7fb2 refs/tags/MCS_0_16
8a70bb1d0e07b9bda44c4fab515414dd14d98d97 refs/tags/MCS_0_17
8f0db6b55168e6cdf83a94efd6a9c1e75ce4f141 refs/tags/MCS_0_18
1bce5f4a2aab71234fd0aa56f76c71467677281e refs/tags/MCS_0_19
f4d7c3d9ef6b3198ca3436b2a9f7aaa6adfada0b refs/tags/MCS_0_20
cfaea8bc95ea12af4694be8775172ca868ffbd46 refs/tags/MCS_0_21
62975301f29e09b9d989d86986aa43dcddab4338 refs/tags/MCS_0_22
cc6c8473d625470faf0a35975e743890e615484e refs/tags/MCS_0_23
9f09256d3c73b6906965b238779b9bff5b1a39a0 refs/tags/MCS_0_24
4a048a798ca68d31088227e8e9e324358bb9b5f7 refs/tags/MCS_0_25
2c2381e666b95479893c22cddc7e75099d15cb2a refs/tags/MCS_0_26
dd05ade67bd8b0a60a8ae6a5ce7501e9085b29bc refs/tags/MCS_0_27
6e43a5d927ef22ded84720ba9497b8f54f2ef8a4 refs/tags/MCS_0_29
77702ef90fa82d99e5c1f198b79ea8a988b46c79 refs/tags/MCS_0_30
5d657d7bc63e0bf93e6e4c463d71be239d1d6db4 refs/tags/MCS_0_31
b0784aa1318048429a5c94e704a7d3554f6ea2f7 refs/tags/MCS_0_4
d02373e837c4ab265cbbfc3c685670e04a162c25 refs/tags/MCS_0_6
c275f7585f42e64da71678dd2213c76cd2554f71 refs/tags/MCS_0_8
2ba6e3293b552a4be0947afd1d39d8450a4f8237 refs/tags/MCS_0_91
39c87c56fbaf6635cfe7a81285f4c0b8612f302f refs/tags/MCS_0_95
5f2542f7633db1be8a059fd1a1ee4201361d0fa8 refs/tags/MCS_0_96
3742db035a55aa33384cf90c49336ed3bc018c8c refs/tags/MCS_0_97
06d243aef744202bf37a0aa21de8c15bf427a85a refs/tags/MCS_1_0
251a5dabc98ac219c962f950dcef2489c90da2ad refs/tags/MCS_1_0_2
081f745091ca69547afa8c929862a2f5a533c206 refs/tags/MCS_1_0_3
c0ce58ee90ee63da82639d8cccd11f9b2b73d857 refs/tags/MCS_1_0_4
20f50bbc55de5f443511d3670d3b4f597d55e485 refs/tags/MCS_1_1_1
25d006bb42129274760a3bffba0c1289052c21c4 refs/tags/MCS_1_1_2
2f5e6232d1c49b739354a58a5bca5d150bcfdcc3 refs/tags/MCS_JULY_17
2c94e8b66e745c4b06312aafae63f85b8129d0b2 refs/tags/MONO_0_10
ca778a895886cd1f2f1e1dd354955b3e647e6fce refs/tags/MONO_0_11
4f02ecaa9dd5a59c7edce294d255efa58daf61d5 refs/tags/MONO_0_13
adb7ff32d1132ffae1c357388d78d61044931873 refs/tags/MONO_0_14
248504d80db5ae00ea6ab790c602db54db265bdb refs/tags/MONO_0_15
32e69fe2dd5f540b7afcc51260fdf80cd78ebc5d refs/tags/MONO_0_16
f64163bfd7a8049d46518c9ec4efeb5ce3fbb186 refs/tags/MONO_0_17
66332d9ef6f1bc809742c5d3f6410f28f33d717c refs/tags/MONO_0_18
8466b5c35a24c80437a4425608d63e96890c1ae1 refs/tags/MONO_0_19
52b84743694e5f3aa99a1175b151e4bf05d77843 refs/tags/MONO_0_20
46a6b24b434d1ffef5d880099e35872f89fe5a9d refs/tags/MONO_0_21
d32321a6f9da81443d439b33205911efb8229d47 refs/tags/MONO_0_22
8d12301369b39c5737b6eeba8ad47952ecf6482d refs/tags/MONO_0_23
23631f018af1aa50b3d2f7a26ac2ac02c10a9641 refs/tags/MONO_0_24
24ca06b662e3f2a6f7ea59941ea55bbc5e756eb6 refs/tags/MONO_0_25
0d77b961f51dbd9578cc4c0a71e00700d80331c7 refs/tags/MONO_0_26
3c95965b2e209ade91865de62f0a5c3477f83a6e refs/tags/MONO_0_27
395708bec98015ea736ec2c7140a638c72e02450 refs/tags/MONO_0_29
3a24638a9150b340a731bf94621d5abd4cb84211 refs/tags/MONO_0_3
34822afe22085dcdfa99db23ce024c95f39c5328 refs/tags/MONO_0_30
7f5304f8a86db6bdbd5acc97cbf3e94085bead41 refs/tags/MONO_0_31
08cc744ea34ddc11b5e66d62b5681963d3997365 refs/tags/MONO_0_4
ac6a0aff32ced61f3a858961fb0d27679bbd8504 refs/tags/MONO_0_5
9a80f7e7814c11e580621af662a60c5761bb112e refs/tags/MONO_0_6
5bafbfd3411626e5916657ff37179f11628dfdac refs/tags/MONO_0_7
dc0e724dcc70b038ed7d89a7d04baabe1fb9a6e9 refs/tags/MONO_0_8
885709d3bcac901227fac48c0efd63748b88afaa refs/tags/MONO_0_9
3cadc5c762015237c99861f093f8dc2f862133c2 refs/tags/MONO_0_91
a00b9074aa531be3c4a905da7a15786212f14f97 refs/tags/MONO_0_93
c055406f4431bf7695c29026845ac841eea3c1d9 refs/tags/MONO_0_94
920d6fe40d1df03aba5698e8bb1ccca5aa75b3d8 refs/tags/MONO_0_95
0cbb90c2046182f209495aa451ad4cba06bfcc06 refs/tags/MONO_0_96
ffa02af22854b2be49708684d2483a7c0624dda4 refs/tags/MONO_0_97
35e34e2d9dd04d14aea6358ff7ec55763f203fe8 refs/tags/MONO_0_99_2
6340550c2b181e5561266f61093bf581ca275314 refs/tags/MONO_1_0
72b6c41eebe173dfe7cb517deb05961f44dbfb8a refs/tags/MONO_1_0_1
1bae59437320c2cdbcda814b06f43993327ed5a5 refs/tags/MONO_1_0_2
13f4c1a27734a2815a42d3f8826dedfee4744fd1 refs/tags/MONO_1_0_3
408a59e440bbe3dd331ad8ebba505eabcef56157 refs/tags/MONO_1_0_4
8c2a6ff51b3864ee8cd7574d2c55da804fba188e refs/tags/MONO_1_1_1
679f766f0d8c4c56d6cbfe6348c84f6095b5304f refs/tags/MONO_1_1_2
0ed4ed7b6a21f51760f9a1d9a7b5eb4074e09fb2 refs/tags/MONO_BETA2
7f0542b133e5f1eee15f337e0263c14406091a7e refs/tags/NUNIT_1_11
4e4824afab6cd0f9f0d71aa6baeddb7bee74f8c4 refs/tags/RHYS_20020821
e2b6cbaf2793354590a7fe542afe811aa03d0a2e refs/tags/cecil-0.6
cc871f21d86765c372ffd71615de2a5252ce2832 refs/tags/last-commit-with-compulsory-changelog-entry
3f313cb9ecff29967ddff9bf78004f49816e804d refs/tags/mono-1-0-5
c064f9f178339e54686526a3dd8bfd0ae7b64006 refs/tags/mono-1-1-10-1
2dbb2f7a7d72a49b068c3d17aa7cb04aaeeac735 refs/tags/mono-1-1-12-1
0e6e9da90b12ca5c445a3b1eaeb7581dc792c016 refs/tags/mono-1-1-13-1
24906dde223bd634fe2b5ec231ba399eb01ed85e refs/tags/mono-1-1-13-2
933491861325258994290ac573f66db398b2151c refs/tags/mono-1-1-13-3
fbc561d17c6310b2d9c94c37e673956f64956d2b refs/tags/mono-1-1-13-4
5555a9e8dabb3bb9d94d18cb10236e331ff6652c refs/tags/mono-1-1-13-5
33ab4bee8e165e330c6abd3385bb09357afd892a refs/tags/mono-1-1-13-6
6b2f395ce41d181672c1032c0bada5013589aa9d refs/tags/mono-1-1-13-7
7d44efe136a8b624639e244b407694012767d8b2 refs/tags/mono-1-1-13-8-1
3f85c6d6d4c066363ae9d6e4de1ae80b954b84eb refs/tags/mono-1-1-13-8-2
680b340f6d3d64c649c03a35a3946a969c75b9c8 refs/tags/mono-1-1-16-1
3f259856c6b748da5e9db392231bc4cf02067625 refs/tags/mono-1-1-17-1
e69a3c507851f27ff9d47d99944ee381fbd8da3e refs/tags/mono-1-1-17-2
97263cd3ede795aa9214ef6f511a6986caa1d10a refs/tags/mono-1-1-18-1
8ee804b1c9cc92fd7bea45adb1270f3d5bbcbdf5 refs/tags/mono-1-1-3
14db55bb39fee489de084d070ae611dd3503336d refs/tags/mono-1-1-6-2
0e3bb5c75d0e2e46654b01bf9cf2c564fcf36186 refs/tags/mono-1-1-7-1
9fe352c95dea8ef63bc54837a902297643ad95cb refs/tags/mono-1-1-7-10
3212bc410d77569c636eee658215f6ef26727022 refs/tags/mono-1-1-7-11
3a154ae091c27cacef8da21bbcd802c6b20a5fdc refs/tags/mono-1-1-7-12
2dd8006e8e79bb0b6695e83e8b9f8c75614b73cd refs/tags/mono-1-1-7-13
da175f964d6ff43a290436b99dea5c4c874f7d77 refs/tags/mono-1-1-7-14
ce91af0332902c2227985cf72e5267dc93f0082f refs/tags/mono-1-1-7-2
8dd4410b0519704c213252c27e12bc2c3d2f5644 refs/tags/mono-1-1-7-3
669e1211f916836ed1151d494ef6363f477c6875 refs/tags/mono-1-1-7-4
cb211e4e89523e37865b46c53bab8c13667904a5 refs/tags/mono-1-1-7-5
212070688ad11ff8d6db9c79a7a354e73dce0169 refs/tags/mono-1-1-7-6
475bb6ed37428ae214db51de76144ddfc461eab2 refs/tags/mono-1-1-7-7
4163439d14083fe6c88ba52d66d32f1c199e134a refs/tags/mono-1-1-7-8
db8b68eb75dd8a1773ea380c5ab299ecb96a02e8 refs/tags/mono-1-1-7-9
9e4af11a75bbde3b9aa45a8c8dc2a9d28c327ca7 refs/tags/mono-1-1-8-1
97f8625d1092a3087d2561e6a8fd5fec9548ddf8 refs/tags/mono-1-1-8-2
c9228135a78dc90b0fada472767b7501c10a10a1 refs/tags/mono-1-1-8-3
b29c6d9321ae353d5587552c5fd8a3990ef25b8d refs/tags/mono-1-1-9-1
c20187f291f7ab63b0039cc6ea1d0aec666357bc refs/tags/mono-1-1-9-2
434ed78f2343b3c7a2ceb2431bf6e6f3fda96b9d refs/tags/mono-1-2-2-1
6b2181df333da3201aa21e7aac7af0092a95f155 refs/tags/mono-1-2-3-1
e27148fde898ecd8b315ed811d69174ca770f3fe refs/tags/mono-1-2-3-50
ef21dfa4f165958a8d6e643e67fc2fbdc6a4b193 refs/tags/mono-1-2-5-1
97512982957dd59e98473df4de5d023831076ac8 refs/tags/mono-1-2-5-2
b80cb128d794441da87095b62dda79fc977b43a2 refs/tags/mono-1-2-5-p4
3099f3ce8d009126b71e2856744953b706b153b3 refs/tags/mono-1-2-5-p5
59c864c22a7ba865e3d641048f143eef3d78e3bb refs/tags/mono-1-9-1
65cf8c16c5248ce0e3ca9321422e3f3d47e44054 refs/tags/mono-1-9-1-p2
2b3bfcb002d9e7dc8b5bb9e93d5416fa3a7f4a24 refs/tags/mono-1-9-p3
e1eb581e8a9100a929827524d1d2f91bd5685739 refs/tags/mono-1.0.6
269d024dc2796fbffd5b2603cfce01199ddfa354 refs/tags/mono-1.1.10
b28e8eb77161f75a676f160365a860455db15476 refs/tags/mono-1.1.11
f2631aa17b0296460a815794f4c2c1d6dccc1cd3 refs/tags/mono-1.1.12
97c08a345189de79332e75268f5ac806caa800f8 refs/tags/mono-1.1.13
0aea5e52ca5def84eb4bea45a32c46c38382ce54 refs/tags/mono-1.1.13.8
6a546f60cfc03dc0e4ae09c4463a40f2d5acd8d0 refs/tags/mono-1.1.14
6e9f255eec4cbd8c53623d52fa26877db451bc34 refs/tags/mono-1.1.15
fda57d1297a00855038778e4b3c55125cd5b6f6d refs/tags/mono-1.1.16
f0eb908832c00425cb56a563c4d2c2253aa99801 refs/tags/mono-1.1.17
d973adf739079a754013a7aabaf062c6e8362d58 refs/tags/mono-1.1.18
f0cc7b722514f9a66636fbdc2ba46d2ad09290da refs/tags/mono-1.1.4
d305ee9a95945be36cd4517ef440ce99833068a0 refs/tags/mono-1.1.5
4a93eca61ace3b72e9c7d3241e22894ac6527751 refs/tags/mono-1.1.6
999eedbde2286858dee3a28b3de17cf7c7ee6aa3 refs/tags/mono-1.1.7
38ba17f8fba52022c8be480c4d0b7790502fcf5d refs/tags/mono-1.1.8
0c12971f275e1e95d86fcdb69bb3a16782c96c00 refs/tags/mono-1.1.9
d0f800d5aae075fbaec91be79776b05fea6d8b2b refs/tags/mono-1.2
7e26594b5acf982ca712d81018e01192f3698934 refs/tags/mono-1.2.1
3482a0b686b1717a6a7639bdde43123fda150a37 refs/tags/mono-1.2.2
203611f08d6864575fd244f513e8c800fe04538e refs/tags/mono-1.2.3
69353f911160fe45163b3514df295ee5bca196e3 refs/tags/mono-1.2.4
e659f8968d2943e94136787d0256de16d8c21dcc refs/tags/mono-1.2.5
040ba14063f6b9933ac89835e71bd813ca140dc7 refs/tags/mono-1.2.6
e80fe9efc2b64aacf06657cc8951c9739513069d refs/tags/mono-1.9
fa2352e7bba168ce21f63ccdb59cce70e69b0b98 refs/tags/mono-1.9.1.1
ad1e78b37d014bb15d5396736d9db71bb37a902c refs/tags/mono-2-0-1
94c037f620e2f32ca4d0925785e77345bf9436b3 refs/tags/mono-2-0-1-rc1
57dbdb3e42c98860392c8eeccbcbdf3df50ee461 refs/tags/mono-2-0-p1
d7b1a66b945f37e7a62ce28a2cbb4618dbca842b refs/tags/mono-2-0-p2
28021d9e5cc4e8837fb8e060e222e93ed5b6963e refs/tags/mono-2-0-rc1
d33e20924be8193235f574a1da78e7d44b229f21 refs/tags/mono-2-0-rc2
245f79b651af761ca0929d77f14c06e77e56b5fa refs/tags/mono-2-0-rc3
c43c7090b668525e8d6730206883b76b1cd7e8c1 refs/tags/mono-2-2-p1
50619fe4f49cc9358be684132ea197993d3748b1 refs/tags/mono-2-2-p2
dc330f3d57eb21109243f16df6ba7001a68bb963 refs/tags/mono-2-2-p3
08038cbf3b982239d9ed74f6181576a7caf308b4 refs/tags/mono-2-2-rc1
abb08d231bb68b63beb4f34f4c4bab8f3a607092 refs/tags/mono-2-4-2-1
b79738dc7f734a78039567ea35f4e6a7d319a227 refs/tags/mono-2-4-2-2
f79a3230c2f0a8d80b36cdbe067c53e36374a017 refs/tags/mono-2-4-2-3
f64925baf83a71bfffa278c15da8baf6a7d851c2 refs/tags/mono-2-4-2-3-rc1
7337b45f49fadaff8f310b5d432240128b82786d refs/tags/mono-2-4-2-3-rc2
f79a3230c2f0a8d80b36cdbe067c53e36374a017 refs/tags/mono-2-4-2-3-rc3
ab03b83eb4ed48e7f3d667c279ae60335d5c850d refs/tags/mono-2-4-2-p1
8e9b735376ea0dc09c1b0234e0ce8941f0e8dab9 refs/tags/mono-2-4-2-p2
01bbe61085220e441170e93e38c87368cf6726f1 refs/tags/mono-2-4-2-rc1
8a7c716e20f2aeadbe827b5d532fe36f69e74568 refs/tags/mono-2-4-2-rc2
6bf1e1ea5f2d2586bafdd14f1fe538e080a6d5ba refs/tags/mono-2-4-3-1
dc279e74dc85301bb23db6de78d537cb0da9fe9e refs/tags/mono-2-4-p1
c2752833c4c451a9cff77175801370c359b5850e refs/tags/mono-2-6
3a989e7d01e337d2c77bb3218effe39f9ed90a02 refs/tags/mono-2-6-1
53acd8e07620008e5354170ff2ad479db5d200cb refs/tags/mono-2-6-3
3a79ccf17838b6b1d0806cb123428ee065d3d30f refs/tags/mono-2-6-7
43e34e922109adb8cbf6aaaf1dbc1dce3350f88f refs/tags/mono-2-6-p1
1c102ac0d51469c9c4dd245b82ff8a3cc485a67e refs/tags/mono-2-6-rc1
e117097e1f1f8a3cddaac9fb71d86661b6a10b22 refs/tags/mono-2.0
470791b186ea8326f205f17ce2eadac2ff86a564 refs/tags/mono-2.2
27589b59b90f81fb88ab69eee320449c8cf65780 refs/tags/mono-2.4
8a7c716e20f2aeadbe827b5d532fe36f69e74568 refs/tags/mono-2.4.2
1a9965fb222300fafa0eda42cf33c9ab8ff90faf refs/tags/mono-2.4.3
c2752833c4c451a9cff77175801370c359b5850e refs/tags/mono-2.6
680b5eb2d695de54fe4eb3210c07722ef60e5a4b refs/tags/mono-2.6.4
6623fc543d66d06121d7c7cfbe9f5bfa3ed8cf3d refs/tags/mono-android-1-0
7dcae3becc62fdbd1934b5c8b0e924bfe9e72921 refs/tags/monotouch-1-3
781cdd1e28a8060fb31c16817bdff2024002e304 refs/tags/monotouch-1-4
51a238609c4c196985d2fcc3c1edf10442ff94de refs/tags/monotouch-1.0
fa856a85b50d6adbac6b5d26b32bc608887551bc refs/tags/moon-1.9.0
348617482b380275d7057e547e806c9be05bdb72 refs/tags/moon-1.9.1
0d47d8081c828d4b032564a88046a99d0284e6fd refs/tags/moon-1.9.2
1163a482f7430930bee670cf4c6721ecf9880974 refs/tags/moon-1.99.1
c7bb5af6fcf8d1e380a8ec440c4b535c912713e0 refs/tags/moon-1.99.2
d4674914b900cba323c2cde86e185b57553fa224 refs/tags/moon-1.99.6
ee08a4d041bdb88f49a027ce1a4f7736751a32d5 refs/tags/moon/1.99.1.1
19f1c05c5471440bebaa4b29753c831c6c876312 refs/tags/moon/2.0
a17f894b666841189aeffb3d2a172c63c9f4f0b6 refs/tags/moon/2.1
a17f894b666841189aeffb3d2a172c63c9f4f0b6 refs/tags/moon/2.2
a17f894b666841189aeffb3d2a172c63c9f4f0b6 refs/tags/moon/moon-2-3
4147a93068116c5ff6b872fd7cf877af3d4ec04a refs/tags/sportsmodel-base
b07fca3e4eb4ce853b265956eb399f5649220559 refs/tags/type-reflector_0_2
+1 -2
View File
@@ -1,4 +1,3 @@
SSAPRE stands for "SSA based Partial Redundancy Elimination".
The algorithm is explained in this paper:
@@ -242,7 +241,7 @@ Otherwise, the implementation is complete.
Other interesting issues are:
- SSAPRE has the assumption that:
- each SSA variable is related to one "original" (not SSA) variable, and
- no more than one version of each originsl variable is live at the same time
- no more than one version of each original variable is live at the same time
in the CFG.
It would be better to relax these assumptions.
- SSAPRE operates on "syntactic" redundancies, not on "values".
+6 -5
View File
@@ -1,16 +1,17 @@
ACLOCAL_AMFLAGS = -I m4
if HOST_WIN32
SUBDIRS = src
SUBDIRS = m4 src
else
if PLATFORM_DARWIN
SUBDIRS = src
SUBDIRS = m4 src
else
if CROSS_COMPILING
SUBDIRS = src
SUBDIRS = m4 src
else
SUBDIRS = src test
SUBDIRS = m4 src test
endif
endif
endif
EXTRA_DIST = autogen.sh README NEWS AUTHORS ChangeLog winconfig.h
+3 -3
View File
@@ -102,8 +102,8 @@ if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
fi
fi
echo "Running aclocal $ACLOCAL_FLAGS ..."
aclocal $ACLOCAL_FLAGS || {
echo "Running aclocal -I m4 $ACLOCAL_FLAGS ..."
aclocal -I m4 $ACLOCAL_FLAGS || {
echo
echo "**Error**: aclocal failed. This may mean that you have not"
echo "installed all of the packages you need, or you may need to"
@@ -125,7 +125,7 @@ echo "Running autoconf ..."
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
conf_flags="--enable-maintainer-mode" #--enable-compile-warnings --enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
+672
View File
@@ -0,0 +1,672 @@
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2010 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <[email protected]>, 1996
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# The first argument passed to this file is the canonical host specification,
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
# should be set by the caller.
#
# The set of defined variables is at the end of this script.
# Known limitations:
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
# than 256 bytes, otherwise the compiler driver will dump core. The only
# known workaround is to choose shorter directory names for the build
# directory and/or the installation directory.
# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
shrext=.so
host="$1"
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
# Code taken from libtool.m4's _LT_CC_BASENAME.
for cc_temp in $CC""; do
case $cc_temp in
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
\-*) ;;
*) break;;
esac
done
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
# Code taken from libtool.m4's _LT_COMPILER_PIC.
wl=
if test "$GCC" = yes; then
wl='-Wl,'
else
case "$host_os" in
aix*)
wl='-Wl,'
;;
darwin*)
case $cc_basename in
xlc*)
wl='-Wl,'
;;
esac
;;
mingw* | cygwin* | pw32* | os2* | cegcc*)
;;
hpux9* | hpux10* | hpux11*)
wl='-Wl,'
;;
irix5* | irix6* | nonstopux*)
wl='-Wl,'
;;
newsos6)
;;
linux* | k*bsd*-gnu)
case $cc_basename in
ecc*)
wl='-Wl,'
;;
icc* | ifort*)
wl='-Wl,'
;;
lf95*)
wl='-Wl,'
;;
pgcc | pgf77 | pgf90)
wl='-Wl,'
;;
ccc*)
wl='-Wl,'
;;
como)
wl='-lopt='
;;
*)
case `$CC -V 2>&1 | sed 5q` in
*Sun\ C*)
wl='-Wl,'
;;
esac
;;
esac
;;
osf3* | osf4* | osf5*)
wl='-Wl,'
;;
rdos*)
;;
solaris*)
wl='-Wl,'
;;
sunos4*)
wl='-Qoption ld '
;;
sysv4 | sysv4.2uw2* | sysv4.3*)
wl='-Wl,'
;;
sysv4*MP*)
;;
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
wl='-Wl,'
;;
unicos*)
wl='-Wl,'
;;
uts4*)
;;
esac
fi
# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
case "$host_os" in
cygwin* | mingw* | pw32* | cegcc*)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
if test "$GCC" != yes; then
with_gnu_ld=no
fi
;;
interix*)
# we just hope/assume this is gcc and not c89 (= MSVC++)
with_gnu_ld=yes
;;
openbsd*)
with_gnu_ld=no
;;
esac
ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
# Set some defaults for GNU ld with shared library support. These
# are reset later if shared libraries are not supported. Putting them
# here allows them to be overridden if necessary.
# Unlike libtool, we use -rpath here, not --rpath, since the documented
# option of GNU ld is called -rpath, not --rpath.
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
case "$host_os" in
aix[3-9]*)
# On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# Samuel A. Falvo II <[email protected]> reports
# that the semantics of dynamic libraries on AmigaOS, at least up
# to version 4, is to share data among multiple programs linked
# with the same dynamic library. Since this doesn't match the
# behavior of shared libraries on other platforms, we cannot use
# them.
ld_shlibs=no
;;
beos*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
cygwin* | mingw* | pw32* | cegcc*)
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec='-L$libdir'
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
interix[3-9]*)
hardcode_direct=no
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
gnu* | linux* | k*bsd*-gnu)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
netbsd*)
;;
solaris*)
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
ld_shlibs=no
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
case `$LD -v 2>&1` in
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
ld_shlibs=no
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
else
ld_shlibs=no
fi
;;
esac
;;
sunos4*)
hardcode_direct=yes
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
esac
if test "$ld_shlibs" = no; then
hardcode_libdir_flag_spec=
fi
else
case "$host_os" in
aix3*)
# Note: this linker hardcodes the directories in LIBPATH if there
# are no directories specified by -L.
hardcode_minus_L=yes
if test "$GCC" = yes; then
# Neither direct hardcoding nor static linking is supported with a
# broken collect2.
hardcode_direct=unsupported
fi
;;
aix[4-9]*)
if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
aix_use_runtimelinking=no
else
aix_use_runtimelinking=no
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
aix_use_runtimelinking=yes
break
fi
done
;;
esac
fi
hardcode_direct=yes
hardcode_libdir_separator=':'
if test "$GCC" = yes; then
case $host_os in aix4.[012]|aix4.[012].*)
collect2name=`${CC} -print-prog-name=collect2`
if test -f "$collect2name" && \
strings "$collect2name" | grep resolve_lib_name >/dev/null
then
# We have reworked collect2
:
else
# We have old collect2
hardcode_direct=unsupported
hardcode_minus_L=yes
hardcode_libdir_flag_spec='-L$libdir'
hardcode_libdir_separator=
fi
;;
esac
fi
# Begin _LT_AC_SYS_LIBPATH_AIX.
echo 'int main () { return 0; }' > conftest.c
${CC} ${LDFLAGS} conftest.c -o conftest
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
if test -z "$aix_libpath"; then
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
fi
if test -z "$aix_libpath"; then
aix_libpath="/usr/lib:/lib"
fi
rm -f conftest.c conftest
# End _LT_AC_SYS_LIBPATH_AIX.
if test "$aix_use_runtimelinking" = yes; then
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
else
if test "$host_cpu" = ia64; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
else
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
fi
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# see comment about different semantics on the GNU ld section
ld_shlibs=no
;;
bsdi[45]*)
;;
cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec=' '
libext=lib
;;
darwin* | rhapsody*)
hardcode_direct=no
if test "$GCC" = yes ; then
:
else
case $cc_basename in
xlc*)
;;
*)
ld_shlibs=no
;;
esac
fi
;;
dgux*)
hardcode_libdir_flag_spec='-L$libdir'
;;
freebsd1*)
ld_shlibs=no
;;
freebsd2.2*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
freebsd2*)
hardcode_direct=yes
hardcode_minus_L=yes
;;
freebsd* | dragonfly*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
hpux9*)
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
hpux10*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
fi
;;
hpux11*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
case $host_cpu in
hppa*64*|ia64*)
hardcode_direct=no
;;
*)
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
esac
fi
;;
irix5* | irix6* | nonstopux*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
netbsd*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
newsos6)
hardcode_direct=yes
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
openbsd*)
if test -f /usr/libexec/ld.so; then
hardcode_direct=yes
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
else
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
fi
else
ld_shlibs=no
fi
;;
os2*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
;;
osf3*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
osf4* | osf5*)
if test "$GCC" = yes; then
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
else
# Both cc and cxx compiler support -rpath directly
hardcode_libdir_flag_spec='-rpath $libdir'
fi
hardcode_libdir_separator=:
;;
solaris*)
hardcode_libdir_flag_spec='-R$libdir'
;;
sunos4*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_direct=yes
hardcode_minus_L=yes
;;
sysv4)
case $host_vendor in
sni)
hardcode_direct=yes # is this really true???
;;
siemens)
hardcode_direct=no
;;
motorola)
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
;;
sysv4.3*)
;;
sysv4*MP*)
if test -d /usr/nec; then
ld_shlibs=yes
fi
;;
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
;;
sysv5* | sco3.2v5* | sco5v6*)
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
hardcode_libdir_separator=':'
;;
uts4*)
hardcode_libdir_flag_spec='-L$libdir'
;;
*)
ld_shlibs=no
;;
esac
fi
# Check dynamic linker characteristics
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
# only about the one the linker finds when passed -lNAME. This is the last
# element of library_names_spec in libtool.m4, or possibly two of them if the
# linker has special search rules.
library_names_spec= # the last element of library_names_spec in libtool.m4
libname_spec='lib$name'
case "$host_os" in
aix3*)
library_names_spec='$libname.a'
;;
aix[4-9]*)
library_names_spec='$libname$shrext'
;;
amigaos*)
library_names_spec='$libname.a'
;;
beos*)
library_names_spec='$libname$shrext'
;;
bsdi[45]*)
library_names_spec='$libname$shrext'
;;
cygwin* | mingw* | pw32* | cegcc*)
shrext=.dll
library_names_spec='$libname.dll.a $libname.lib'
;;
darwin* | rhapsody*)
shrext=.dylib
library_names_spec='$libname$shrext'
;;
dgux*)
library_names_spec='$libname$shrext'
;;
freebsd1*)
;;
freebsd* | dragonfly*)
case "$host_os" in
freebsd[123]*)
library_names_spec='$libname$shrext$versuffix' ;;
*)
library_names_spec='$libname$shrext' ;;
esac
;;
gnu*)
library_names_spec='$libname$shrext'
;;
hpux9* | hpux10* | hpux11*)
case $host_cpu in
ia64*)
shrext=.so
;;
hppa*64*)
shrext=.sl
;;
*)
shrext=.sl
;;
esac
library_names_spec='$libname$shrext'
;;
interix[3-9]*)
library_names_spec='$libname$shrext'
;;
irix5* | irix6* | nonstopux*)
library_names_spec='$libname$shrext'
case "$host_os" in
irix5* | nonstopux*)
libsuff= shlibsuff=
;;
*)
case $LD in
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
*) libsuff= shlibsuff= ;;
esac
;;
esac
;;
linux*oldld* | linux*aout* | linux*coff*)
;;
linux* | k*bsd*-gnu)
library_names_spec='$libname$shrext'
;;
knetbsd*-gnu)
library_names_spec='$libname$shrext'
;;
netbsd*)
library_names_spec='$libname$shrext'
;;
newsos6)
library_names_spec='$libname$shrext'
;;
nto-qnx*)
library_names_spec='$libname$shrext'
;;
openbsd*)
library_names_spec='$libname$shrext$versuffix'
;;
os2*)
libname_spec='$name'
shrext=.dll
library_names_spec='$libname.a'
;;
osf3* | osf4* | osf5*)
library_names_spec='$libname$shrext'
;;
rdos*)
;;
solaris*)
library_names_spec='$libname$shrext'
;;
sunos4*)
library_names_spec='$libname$shrext$versuffix'
;;
sysv4 | sysv4.3*)
library_names_spec='$libname$shrext'
;;
sysv4*MP*)
library_names_spec='$libname$shrext'
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
library_names_spec='$libname$shrext'
;;
uts4*)
library_names_spec='$libname$shrext'
;;
esac
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
# How to pass a linker flag through the compiler.
wl="$escaped_wl"
# Static library suffix (normally "a").
libext="$libext"
# Shared library suffix (normally "so").
shlibext="$shlibext"
# Format of library name prefix.
libname_spec="$escaped_libname_spec"
# Library names that the linker finds when passed -lNAME.
library_names_spec="$escaped_library_names_spec"
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator="$hardcode_libdir_separator"
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct="$hardcode_direct"
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L="$hardcode_minus_L"
EOF
+68 -24
View File
@@ -1,15 +1,22 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
#
# Copyright 2012 Xamarin Inc
#
AC_INIT(eglib, [0.3],
[http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(eglib,0.3)
AC_CONFIG_SRCDIR([README])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_SYSTEM
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar no-dist-gzip foreign])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
AC_PROG_CC
AM_PROG_LIBTOOL
# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
DOLT
CFLAGS="$CFLAGS -O0"
GNUC_PRETTY=
GNUC_UNUSED=
BREAKPOINT="G_STMT_START { raise (SIGTRAP); } G_STMT_END"
@@ -40,23 +47,35 @@ AM_CONDITIONAL(CROSS_COMPILING, [test x$cross_compiling = xyes])
AC_C_BIGENDIAN([ORDER=G_BIG_ENDIAN],[ORDER=G_LITTLE_ENDIAN])
platform_darwin=no
platform_android=no
case $host in
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
PATHSEP='\\'
SEARCHSEP=';'
OS="WIN32"
PIDTYPE='void *'
;;
*-*darwin*)
platform_darwin=yes
PATHSEP='/'
SEARCHSEP=':'
OS="UNIX"
PIDTYPE='int'
;;
*-*-linux-android*)
platform_android=yes
AC_DEFINE(PLATFORM_ANDROID,1,[Targeting the Android platform])
PATHSEP='/'
SEARCHSEP=':'
OS="UNIX"
PIDTYPE='int'
;;
*)
PATHSEP='/'
SEARCHSEP=':'
OS="UNIX"
PIDTYPE='int'
;;
esac
@@ -84,20 +103,19 @@ AC_SUBST(CFLAGS)
AC_SUBST(PATHSEP)
AC_SUBST(SEARCHSEP)
AC_SUBST(OS)
AC_SUBST(PIDTYPE)
AM_CONDITIONAL(HOST_WIN32, test x$OS = xWIN32)
AM_CONDITIONAL(TARGET_WIN32, test x$OS = xWIN32)
AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes)
AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_FUNCS(strndup strlcpy getpwuid_r strtok_r rewinddir vasprintf)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_FUNCS(strndup strlcpy stpcpy getpwuid_r strtok_r rewinddir vasprintf)
AM_CONDITIONAL(NEED_VASPRINTF, test x$have_vasprintf = x )
AC_CHECK_LIB(iconv, iconv_open, LIBS="$LIBS -liconv")
AC_CHECK_LIB(iconv, libiconv_open, LIBS="$LIBS -liconv")
AC_CHECK_LIB(iconv, iconv_open, ICONV_LIBS="-liconv")
AC_CHECK_LIB(iconv, libiconv_open, ICONV_LIBS="-liconv")
AC_SUBST(ICONV_LIBS)
LIBS="$LIBS $ICONV_LIBS"
AM_ICONV()
AC_SEARCH_LIBS(sqrtf, m)
# nanosleep may not be part of libc, also search it in other libraries
@@ -126,20 +144,11 @@ if test "x$have_iso_varargs" = "xyes"; then
fi
AC_SUBST(G_HAVE_ISO_VARARGS)
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h)
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h)
AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
AC_SUBST(HAVE_ALLOCA_H)
if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then
GPOINTER_TO_INT="((gint)(long) (ptr))"
GPOINTER_TO_UINT="((guint)(long) (ptr))"
GINT_TO_POINTER="((gpointer)(glong) (v))"
GUINT_TO_POINTER="((gpointer)(gulong) (v))"
GSIZE="long"
GSIZE_FORMAT='"lu"'
G_GUINT64_FORMAT='"lu"'
G_GINT64_FORMAT='"ld"'
else
if test $ac_cv_sizeof_void_p = $ac_cv_sizeof_int; then
GPOINTER_TO_INT="((gint) (ptr))"
GPOINTER_TO_UINT="((guint) (ptr))"
GINT_TO_POINTER="((gpointer) (v))"
@@ -148,6 +157,32 @@ else
GSIZE_FORMAT='"u"'
G_GUINT64_FORMAT='"llu"'
G_GINT64_FORMAT='"lld"'
G_GUINT32_FORMAT='"lu"'
G_GINT32_FORMAT='"ld"'
elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long; then
GPOINTER_TO_INT="((gint)(long) (ptr))"
GPOINTER_TO_UINT="((guint)(long) (ptr))"
GINT_TO_POINTER="((gpointer)(glong) (v))"
GUINT_TO_POINTER="((gpointer)(gulong) (v))"
GSIZE="long"
GSIZE_FORMAT='"lu"'
G_GUINT64_FORMAT='"lu"'
G_GINT64_FORMAT='"ld"'
G_GUINT32_FORMAT='"u"'
G_GINT32_FORMAT='"d"'
elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long_long; then
GPOINTER_TO_INT="((gint)(long long) (ptr))"
GPOINTER_TO_UINT="((guint)(unsigned long long) (ptr))"
GINT_TO_POINTER="((gpointer)(long long) (v))"
GUINT_TO_POINTER="((gpointer)(unsigned long long) (v))"
GSIZE="long long"
GSIZE_FORMAT='"I64u"'
G_GUINT64_FORMAT='"I64u"'
G_GINT64_FORMAT='"I64i"'
G_GUINT32_FORMAT='"I32u"'
G_GINT32_FORMAT='"I32i"'
else
AC_MSG_ERROR([unsupported pointer size])
fi
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
@@ -187,14 +222,23 @@ AC_SUBST(GSIZE)
AC_SUBST(GSIZE_FORMAT)
AC_SUBST(G_GUINT64_FORMAT)
AC_SUBST(G_GINT64_FORMAT)
AC_SUBST(G_GUINT32_FORMAT)
AC_SUBST(G_GINT32_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])
AC_CONFIG_COMMANDS([quiet],
[ for i in `find mono src test -name Makefile`; do
if [ grep -q 'generated by automake' $i ]; then
$srcdir/../scripts/patch-quiet.sh $i;
fi;
done
], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT([
Makefile
m4/Makefile
src/Makefile
src/eglib-config.h
test/Makefile
+7
View File
@@ -0,0 +1,7 @@
Makefile
Makefile.in
libtool.m4
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
+1
View File
@@ -0,0 +1 @@
EXTRA_DIST = $(wildcard *.m4)
+214
View File
@@ -0,0 +1,214 @@
# iconv.m4 serial 11 (gettext-0.18.1)
dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl From Bruno Haible.
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
[
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
AC_REQUIRE([AC_LIB_RPATH])
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
dnl accordingly.
AC_LIB_LINKFLAGS_BODY([iconv])
])
AC_DEFUN([AM_ICONV_LINK],
[
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
dnl those with the standalone portable GNU libiconv installed).
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
dnl accordingly.
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
dnl Add $INCICONV to CPPFLAGS before performing the following checks,
dnl because if the user has installed libiconv and not disabled its use
dnl via --without-libiconv-prefix, he wants to use it. The first
dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
am_save_CPPFLAGS="$CPPFLAGS"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
am_cv_func_iconv="no, consider installing GNU libiconv"
am_cv_lib_iconv=no
AC_TRY_LINK([#include <stdlib.h>
#include <iconv.h>],
[iconv_t cd = iconv_open("","");
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);],
[am_cv_func_iconv=yes])
if test "$am_cv_func_iconv" != yes; then
am_save_LIBS="$LIBS"
LIBS="$LIBS $LIBICONV"
AC_TRY_LINK([#include <stdlib.h>
#include <iconv.h>],
[iconv_t cd = iconv_open("","");
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);],
[am_cv_lib_iconv=yes]
[am_cv_func_iconv=yes])
LIBS="$am_save_LIBS"
fi
])
if test "$am_cv_func_iconv" = yes; then
AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10.
am_save_LIBS="$LIBS"
if test $am_cv_lib_iconv = yes; then
LIBS="$LIBS $LIBICONV"
fi
AC_TRY_RUN([
#include <iconv.h>
#include <string.h>
int main ()
{
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
returns. */
{
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
if (cd_utf8_to_88591 != (iconv_t)(-1))
{
static const char input[] = "\342\202\254"; /* EURO SIGN */
char buf[10];
const char *inptr = input;
size_t inbytesleft = strlen (input);
char *outptr = buf;
size_t outbytesleft = sizeof (buf);
size_t res = iconv (cd_utf8_to_88591,
(char **) &inptr, &inbytesleft,
&outptr, &outbytesleft);
if (res == 0)
return 1;
}
}
/* Test against Solaris 10 bug: Failures are not distinguishable from
successful returns. */
{
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
if (cd_ascii_to_88591 != (iconv_t)(-1))
{
static const char input[] = "\263";
char buf[10];
const char *inptr = input;
size_t inbytesleft = strlen (input);
char *outptr = buf;
size_t outbytesleft = sizeof (buf);
size_t res = iconv (cd_ascii_to_88591,
(char **) &inptr, &inbytesleft,
&outptr, &outbytesleft);
if (res == 0)
return 1;
}
}
#if 0 /* This bug could be worked around by the caller. */
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
{
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
if (cd_88591_to_utf8 != (iconv_t)(-1))
{
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
char buf[50];
const char *inptr = input;
size_t inbytesleft = strlen (input);
char *outptr = buf;
size_t outbytesleft = sizeof (buf);
size_t res = iconv (cd_88591_to_utf8,
(char **) &inptr, &inbytesleft,
&outptr, &outbytesleft);
if ((int)res > 0)
return 1;
}
}
#endif
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
provided. */
if (/* Try standardized names. */
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
/* Try IRIX, OSF/1 names. */
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
/* Try AIX names. */
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
/* Try HP-UX names. */
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
return 1;
return 0;
}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
[case "$host_os" in
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
*) am_cv_func_iconv_works="guessing yes" ;;
esac])
LIBS="$am_save_LIBS"
])
case "$am_cv_func_iconv_works" in
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
*) am_func_iconv=yes ;;
esac
else
am_func_iconv=no am_cv_lib_iconv=no
fi
if test "$am_func_iconv" = yes; then
AC_DEFINE([HAVE_ICONV], [1],
[Define if you have the iconv() function and it works.])
fi
if test "$am_cv_lib_iconv" = yes; then
AC_MSG_CHECKING([how to link with libiconv])
AC_MSG_RESULT([$LIBICONV])
else
dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
dnl either.
CPPFLAGS="$am_save_CPPFLAGS"
LIBICONV=
LTLIBICONV=
fi
AC_SUBST([LIBICONV])
AC_SUBST([LTLIBICONV])
])
dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
dnl avoid warnings like
dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
dnl This is tricky because of the way 'aclocal' is implemented:
dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
dnl Otherwise aclocal's initial scan pass would miss the macro definition.
dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
dnl warnings.
m4_define([gl_iconv_AC_DEFUN],
m4_version_prereq([2.64],
[[AC_DEFUN_ONCE(
[$1], [$2])]],
[[AC_DEFUN(
[$1], [$2])]]))
gl_iconv_AC_DEFUN([AM_ICONV],
[
AM_ICONV_LINK
if test "$am_cv_func_iconv" = yes; then
AC_MSG_CHECKING([for iconv declaration])
AC_CACHE_VAL([am_cv_proto_iconv], [
AC_TRY_COMPILE([
#include <stdlib.h>
#include <iconv.h>
extern
#ifdef __cplusplus
"C"
#endif
#if defined(__STDC__) || defined(__cplusplus)
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
#else
size_t iconv();
#endif
], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"])
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
AC_MSG_RESULT([
$am_cv_proto_iconv])
AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
[Define as const if the declaration of iconv() needs const.])
fi
])
+110
View File
@@ -0,0 +1,110 @@
# lib-ld.m4 serial 4 (gettext-0.18)
dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl Subroutines of libtool.m4,
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
dnl with libtool.m4.
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
AC_DEFUN([AC_LIB_PROG_LD_GNU],
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
acl_cv_prog_gnu_ld=yes ;;
*)
acl_cv_prog_gnu_ld=no ;;
esac])
with_gnu_ld=$acl_cv_prog_gnu_ld
])
dnl From libtool-1.4. Sets the variable LD.
AC_DEFUN([AC_LIB_PROG_LD],
[AC_ARG_WITH([gnu-ld],
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
AC_MSG_CHECKING([for ld used by GCC])
case $host in
*-*-mingw*)
# gcc leaves a trailing carriage return which upsets mingw
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
*)
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
esac
case $ac_prog in
# Accept absolute paths.
[[\\/]* | [A-Za-z]:[\\/]*)]
[re_direlt='/[^/][^/]*/\.\./']
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
AC_MSG_CHECKING([for GNU ld])
else
AC_MSG_CHECKING([for non-GNU ld])
fi
AC_CACHE_VAL([acl_cv_path_LD],
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
acl_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
*GNU* | *'with BFD'*)
test "$with_gnu_ld" != no && break ;;
*)
test "$with_gnu_ld" != yes && break ;;
esac
fi
done
IFS="$ac_save_ifs"
else
acl_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
LD="$acl_cv_path_LD"
if test -n "$LD"; then
AC_MSG_RESULT([$LD])
else
AC_MSG_RESULT([no])
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_LIB_PROG_LD_GNU
])
+774
View File
@@ -0,0 +1,774 @@
# lib-link.m4 serial 21 (gettext-0.18)
dnl Copyright (C) 2001-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl From Bruno Haible.
AC_PREREQ([2.54])
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
dnl the libraries corresponding to explicit and implicit dependencies.
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
dnl augments the CPPFLAGS variable.
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
AC_DEFUN([AC_LIB_LINKFLAGS],
[
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
AC_REQUIRE([AC_LIB_RPATH])
pushdef([Name],[translit([$1],[./-], [___])])
pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
AC_LIB_LINKFLAGS_BODY([$1], [$2])
ac_cv_lib[]Name[]_libs="$LIB[]NAME"
ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
])
LIB[]NAME="$ac_cv_lib[]Name[]_libs"
LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
AC_SUBST([LIB]NAME)
AC_SUBST([LTLIB]NAME)
AC_SUBST([LIB]NAME[_PREFIX])
dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
dnl results of this search when this library appears as a dependency.
HAVE_LIB[]NAME=yes
popdef([NAME])
popdef([Name])
])
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
dnl searches for libname and the libraries corresponding to explicit and
dnl implicit dependencies, together with the specified include files and
dnl the ability to compile and link the specified testcode. The missing-message
dnl defaults to 'no' and may contain additional hints for the user.
dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
[
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
AC_REQUIRE([AC_LIB_RPATH])
pushdef([Name],[translit([$1],[./-], [___])])
pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
dnl accordingly.
AC_LIB_LINKFLAGS_BODY([$1], [$2])
dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
dnl because if the user has installed lib[]Name and not disabled its use
dnl via --without-lib[]Name-prefix, he wants to use it.
ac_save_CPPFLAGS="$CPPFLAGS"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
ac_save_LIBS="$LIBS"
dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
dnl because these -l options might require -L options that are present in
dnl LIBS. -l options benefit only from the -L options listed before it.
dnl Otherwise, add it to the front of LIBS, because it may be a static
dnl library that depends on another static library that is present in LIBS.
dnl Static libraries benefit only from the static libraries listed after
dnl it.
case " $LIB[]NAME" in
*" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
*) LIBS="$LIB[]NAME $LIBS" ;;
esac
AC_TRY_LINK([$3], [$4],
[ac_cv_lib[]Name=yes],
[ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
LIBS="$ac_save_LIBS"
])
if test "$ac_cv_lib[]Name" = yes; then
HAVE_LIB[]NAME=yes
AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
AC_MSG_CHECKING([how to link with lib[]$1])
AC_MSG_RESULT([$LIB[]NAME])
else
HAVE_LIB[]NAME=no
dnl If $LIB[]NAME didn't lead to a usable library, we don't need
dnl $INC[]NAME either.
CPPFLAGS="$ac_save_CPPFLAGS"
LIB[]NAME=
LTLIB[]NAME=
LIB[]NAME[]_PREFIX=
fi
AC_SUBST([HAVE_LIB]NAME)
AC_SUBST([LIB]NAME)
AC_SUBST([LTLIB]NAME)
AC_SUBST([LIB]NAME[_PREFIX])
popdef([NAME])
popdef([Name])
])
dnl Determine the platform dependent parameters needed to use rpath:
dnl acl_libext,
dnl acl_shlibext,
dnl acl_hardcode_libdir_flag_spec,
dnl acl_hardcode_libdir_separator,
dnl acl_hardcode_direct,
dnl acl_hardcode_minus_L.
AC_DEFUN([AC_LIB_RPATH],
[
dnl Tell automake >= 1.10 to complain if config.rpath is missing.
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
. ./conftest.sh
rm -f ./conftest.sh
acl_cv_rpath=done
])
wl="$acl_cv_wl"
acl_libext="$acl_cv_libext"
acl_shlibext="$acl_cv_shlibext"
acl_libname_spec="$acl_cv_libname_spec"
acl_library_names_spec="$acl_cv_library_names_spec"
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
acl_hardcode_direct="$acl_cv_hardcode_direct"
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
dnl Determine whether the user wants rpath handling at all.
AC_ARG_ENABLE([rpath],
[ --disable-rpath do not hardcode runtime library paths],
:, enable_rpath=yes)
])
dnl AC_LIB_FROMPACKAGE(name, package)
dnl declares that libname comes from the given package. The configure file
dnl will then not have a --with-libname-prefix option but a
dnl --with-package-prefix option. Several libraries can come from the same
dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
dnl macro call that searches for libname.
AC_DEFUN([AC_LIB_FROMPACKAGE],
[
pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
define([acl_frompackage_]NAME, [$2])
popdef([NAME])
pushdef([PACK],[$2])
pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
define([acl_libsinpackage_]PACKUP,
m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1])
popdef([PACKUP])
popdef([PACK])
])
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
dnl the libraries corresponding to explicit and implicit dependencies.
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
[
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
dnl Autoconf >= 2.61 supports dots in --with options.
pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)])
dnl By default, look in $includedir and $libdir.
use_additional=yes
AC_LIB_WITH_FINAL_PREFIX([
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
])
AC_ARG_WITH(P_A_C_K[-prefix],
[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
--without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
[
if test "X$withval" = "Xno"; then
use_additional=no
else
if test "X$withval" = "X"; then
AC_LIB_WITH_FINAL_PREFIX([
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
])
else
additional_includedir="$withval/include"
additional_libdir="$withval/$acl_libdirstem"
if test "$acl_libdirstem2" != "$acl_libdirstem" \
&& ! test -d "$withval/$acl_libdirstem"; then
additional_libdir="$withval/$acl_libdirstem2"
fi
fi
fi
])
dnl Search the library and its dependencies in $additional_libdir and
dnl $LDFLAGS. Using breadth-first-seach.
LIB[]NAME=
LTLIB[]NAME=
INC[]NAME=
LIB[]NAME[]_PREFIX=
dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
dnl computed. So it has to be reset here.
HAVE_LIB[]NAME=
rpathdirs=
ltrpathdirs=
names_already_handled=
names_next_round='$1 $2'
while test -n "$names_next_round"; do
names_this_round="$names_next_round"
names_next_round=
for name in $names_this_round; do
already_handled=
for n in $names_already_handled; do
if test "$n" = "$name"; then
already_handled=yes
break
fi
done
if test -z "$already_handled"; then
names_already_handled="$names_already_handled $name"
dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
dnl or AC_LIB_HAVE_LINKFLAGS call.
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
eval value=\"\$HAVE_LIB$uppername\"
if test -n "$value"; then
if test "$value" = yes; then
eval value=\"\$LIB$uppername\"
test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
eval value=\"\$LTLIB$uppername\"
test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
else
dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
dnl that this library doesn't exist. So just drop it.
:
fi
else
dnl Search the library lib$name in $additional_libdir and $LDFLAGS
dnl and the already constructed $LIBNAME/$LTLIBNAME.
found_dir=
found_la=
found_so=
found_a=
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
if test -n "$acl_shlibext"; then
shrext=".$acl_shlibext" # typically: shrext=.so
else
shrext=
fi
if test $use_additional = yes; then
dir="$additional_libdir"
dnl The same code as in the loop below:
dnl First look for a shared library.
if test -n "$acl_shlibext"; then
if test -f "$dir/$libname$shrext"; then
found_dir="$dir"
found_so="$dir/$libname$shrext"
else
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
ver=`(cd "$dir" && \
for f in "$libname$shrext".*; do echo "$f"; done \
| sed -e "s,^$libname$shrext\\\\.,," \
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
| sed 1q ) 2>/dev/null`
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
found_dir="$dir"
found_so="$dir/$libname$shrext.$ver"
fi
else
eval library_names=\"$acl_library_names_spec\"
for f in $library_names; do
if test -f "$dir/$f"; then
found_dir="$dir"
found_so="$dir/$f"
break
fi
done
fi
fi
fi
dnl Then look for a static library.
if test "X$found_dir" = "X"; then
if test -f "$dir/$libname.$acl_libext"; then
found_dir="$dir"
found_a="$dir/$libname.$acl_libext"
fi
fi
if test "X$found_dir" != "X"; then
if test -f "$dir/$libname.la"; then
found_la="$dir/$libname.la"
fi
fi
fi
if test "X$found_dir" = "X"; then
for x in $LDFLAGS $LTLIB[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
case "$x" in
-L*)
dir=`echo "X$x" | sed -e 's/^X-L//'`
dnl First look for a shared library.
if test -n "$acl_shlibext"; then
if test -f "$dir/$libname$shrext"; then
found_dir="$dir"
found_so="$dir/$libname$shrext"
else
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
ver=`(cd "$dir" && \
for f in "$libname$shrext".*; do echo "$f"; done \
| sed -e "s,^$libname$shrext\\\\.,," \
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
| sed 1q ) 2>/dev/null`
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
found_dir="$dir"
found_so="$dir/$libname$shrext.$ver"
fi
else
eval library_names=\"$acl_library_names_spec\"
for f in $library_names; do
if test -f "$dir/$f"; then
found_dir="$dir"
found_so="$dir/$f"
break
fi
done
fi
fi
fi
dnl Then look for a static library.
if test "X$found_dir" = "X"; then
if test -f "$dir/$libname.$acl_libext"; then
found_dir="$dir"
found_a="$dir/$libname.$acl_libext"
fi
fi
if test "X$found_dir" != "X"; then
if test -f "$dir/$libname.la"; then
found_la="$dir/$libname.la"
fi
fi
;;
esac
if test "X$found_dir" != "X"; then
break
fi
done
fi
if test "X$found_dir" != "X"; then
dnl Found the library.
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
if test "X$found_so" != "X"; then
dnl Linking with a shared library. We attempt to hardcode its
dnl directory into the executable's runpath, unless it's the
dnl standard /usr/lib.
if test "$enable_rpath" = no \
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
dnl No hardcoding is needed.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
else
dnl Use an explicit option to hardcode DIR into the resulting
dnl binary.
dnl Potentially add DIR to ltrpathdirs.
dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
haveit=
for x in $ltrpathdirs; do
if test "X$x" = "X$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
ltrpathdirs="$ltrpathdirs $found_dir"
fi
dnl The hardcoding into $LIBNAME is system dependent.
if test "$acl_hardcode_direct" = yes; then
dnl Using DIR/libNAME.so during linking hardcodes DIR into the
dnl resulting binary.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
else
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
dnl Use an explicit option to hardcode DIR into the resulting
dnl binary.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
dnl Potentially add DIR to rpathdirs.
dnl The rpathdirs will be appended to $LIBNAME at the end.
haveit=
for x in $rpathdirs; do
if test "X$x" = "X$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
rpathdirs="$rpathdirs $found_dir"
fi
else
dnl Rely on "-L$found_dir".
dnl But don't add it if it's already contained in the LDFLAGS
dnl or the already constructed $LIBNAME
haveit=
for x in $LDFLAGS $LIB[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-L$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
fi
if test "$acl_hardcode_minus_L" != no; then
dnl FIXME: Not sure whether we should use
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
dnl here.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
else
dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
dnl here, because this doesn't fit in flags passed to the
dnl compiler. So give up. No hardcoding. This affects only
dnl very old systems.
dnl FIXME: Not sure whether we should use
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
dnl here.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
fi
fi
fi
fi
else
if test "X$found_a" != "X"; then
dnl Linking with a static library.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
else
dnl We shouldn't come here, but anyway it's good to have a
dnl fallback.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
fi
fi
dnl Assume the include files are nearby.
additional_includedir=
case "$found_dir" in
*/$acl_libdirstem | */$acl_libdirstem/)
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
if test "$name" = '$1'; then
LIB[]NAME[]_PREFIX="$basedir"
fi
additional_includedir="$basedir/include"
;;
*/$acl_libdirstem2 | */$acl_libdirstem2/)
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
if test "$name" = '$1'; then
LIB[]NAME[]_PREFIX="$basedir"
fi
additional_includedir="$basedir/include"
;;
esac
if test "X$additional_includedir" != "X"; then
dnl Potentially add $additional_includedir to $INCNAME.
dnl But don't add it
dnl 1. if it's the standard /usr/include,
dnl 2. if it's /usr/local/include and we are using GCC on Linux,
dnl 3. if it's already present in $CPPFLAGS or the already
dnl constructed $INCNAME,
dnl 4. if it doesn't exist as a directory.
if test "X$additional_includedir" != "X/usr/include"; then
haveit=
if test "X$additional_includedir" = "X/usr/local/include"; then
if test -n "$GCC"; then
case $host_os in
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
for x in $CPPFLAGS $INC[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-I$additional_includedir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_includedir"; then
dnl Really add $additional_includedir to $INCNAME.
INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
fi
fi
fi
fi
fi
dnl Look for dependencies.
if test -n "$found_la"; then
dnl Read the .la file. It defines the variables
dnl dlname, library_names, old_library, dependency_libs, current,
dnl age, revision, installed, dlopen, dlpreopen, libdir.
save_libdir="$libdir"
case "$found_la" in
*/* | *\\*) . "$found_la" ;;
*) . "./$found_la" ;;
esac
libdir="$save_libdir"
dnl We use only dependency_libs.
for dep in $dependency_libs; do
case "$dep" in
-L*)
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
dnl But don't add it
dnl 1. if it's the standard /usr/lib,
dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
dnl 3. if it's already present in $LDFLAGS or the already
dnl constructed $LIBNAME,
dnl 4. if it doesn't exist as a directory.
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
haveit=
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
if test -n "$GCC"; then
case $host_os in
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
haveit=
for x in $LDFLAGS $LIB[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
dnl Really add $additional_libdir to $LIBNAME.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
fi
fi
haveit=
for x in $LDFLAGS $LTLIB[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
dnl Really add $additional_libdir to $LTLIBNAME.
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
fi
fi
fi
fi
;;
-R*)
dir=`echo "X$dep" | sed -e 's/^X-R//'`
if test "$enable_rpath" != no; then
dnl Potentially add DIR to rpathdirs.
dnl The rpathdirs will be appended to $LIBNAME at the end.
haveit=
for x in $rpathdirs; do
if test "X$x" = "X$dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
rpathdirs="$rpathdirs $dir"
fi
dnl Potentially add DIR to ltrpathdirs.
dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
haveit=
for x in $ltrpathdirs; do
if test "X$x" = "X$dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
ltrpathdirs="$ltrpathdirs $dir"
fi
fi
;;
-l*)
dnl Handle this in the next round.
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
;;
*.la)
dnl Handle this in the next round. Throw away the .la's
dnl directory; it is already contained in a preceding -L
dnl option.
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
;;
*)
dnl Most likely an immediate library name.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
;;
esac
done
fi
else
dnl Didn't find the library; assume it is in the system directories
dnl known to the linker and runtime loader. (All the system
dnl directories known to the linker should also be known to the
dnl runtime loader, otherwise the system is severely misconfigured.)
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
fi
fi
fi
done
done
if test "X$rpathdirs" != "X"; then
if test -n "$acl_hardcode_libdir_separator"; then
dnl Weird platform: only the last -rpath option counts, the user must
dnl pass all path elements in one option. We can arrange that for a
dnl single library, but not when more than one $LIBNAMEs are used.
alldirs=
for found_dir in $rpathdirs; do
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
done
dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
acl_save_libdir="$libdir"
libdir="$alldirs"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
else
dnl The -rpath options are cumulative.
for found_dir in $rpathdirs; do
acl_save_libdir="$libdir"
libdir="$found_dir"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
done
fi
fi
if test "X$ltrpathdirs" != "X"; then
dnl When using libtool, the option that works for both libraries and
dnl executables is -R. The -R options are cumulative.
for found_dir in $ltrpathdirs; do
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
done
fi
popdef([P_A_C_K])
popdef([PACKLIBS])
popdef([PACKUP])
popdef([PACK])
popdef([NAME])
])
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
dnl unless already present in VAR.
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
dnl contains two or three consecutive elements that belong together.
AC_DEFUN([AC_LIB_APPENDTOVAR],
[
for element in [$2]; do
haveit=
for x in $[$1]; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X$element"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
[$1]="${[$1]}${[$1]:+ }$element"
fi
done
])
dnl For those cases where a variable contains several -L and -l options
dnl referring to unknown libraries and directories, this macro determines the
dnl necessary additional linker options for the runtime path.
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
dnl otherwise linking without libtool is assumed.
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
[
AC_REQUIRE([AC_LIB_RPATH])
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
$1=
if test "$enable_rpath" != no; then
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
dnl Use an explicit option to hardcode directories into the resulting
dnl binary.
rpathdirs=
next=
for opt in $2; do
if test -n "$next"; then
dir="$next"
dnl No need to hardcode the standard /usr/lib.
if test "X$dir" != "X/usr/$acl_libdirstem" \
&& test "X$dir" != "X/usr/$acl_libdirstem2"; then
rpathdirs="$rpathdirs $dir"
fi
next=
else
case $opt in
-L) next=yes ;;
-L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
dnl No need to hardcode the standard /usr/lib.
if test "X$dir" != "X/usr/$acl_libdirstem" \
&& test "X$dir" != "X/usr/$acl_libdirstem2"; then
rpathdirs="$rpathdirs $dir"
fi
next= ;;
*) next= ;;
esac
fi
done
if test "X$rpathdirs" != "X"; then
if test -n ""$3""; then
dnl libtool is used for linking. Use -R options.
for dir in $rpathdirs; do
$1="${$1}${$1:+ }-R$dir"
done
else
dnl The linker is used for linking directly.
if test -n "$acl_hardcode_libdir_separator"; then
dnl Weird platform: only the last -rpath option counts, the user
dnl must pass all path elements in one option.
alldirs=
for dir in $rpathdirs; do
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
done
acl_save_libdir="$libdir"
libdir="$alldirs"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
$1="$flag"
else
dnl The -rpath options are cumulative.
for dir in $rpathdirs; do
acl_save_libdir="$libdir"
libdir="$dir"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
$1="${$1}${$1:+ }$flag"
done
fi
fi
fi
fi
fi
AC_SUBST([$1])
])
+224
View File
@@ -0,0 +1,224 @@
# lib-prefix.m4 serial 7 (gettext-0.18)
dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl From Bruno Haible.
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
dnl require excessive bracketing.
ifdef([AC_HELP_STRING],
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
dnl to access previously installed libraries. The basic assumption is that
dnl a user will want packages to use other packages he previously installed
dnl with the same --prefix option.
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
dnl libraries, but is otherwise very convenient.
AC_DEFUN([AC_LIB_PREFIX],
[
AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST])
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
dnl By default, look in $includedir and $libdir.
use_additional=yes
AC_LIB_WITH_FINAL_PREFIX([
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
])
AC_LIB_ARG_WITH([lib-prefix],
[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
--without-lib-prefix don't search for libraries in includedir and libdir],
[
if test "X$withval" = "Xno"; then
use_additional=no
else
if test "X$withval" = "X"; then
AC_LIB_WITH_FINAL_PREFIX([
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
])
else
additional_includedir="$withval/include"
additional_libdir="$withval/$acl_libdirstem"
fi
fi
])
if test $use_additional = yes; then
dnl Potentially add $additional_includedir to $CPPFLAGS.
dnl But don't add it
dnl 1. if it's the standard /usr/include,
dnl 2. if it's already present in $CPPFLAGS,
dnl 3. if it's /usr/local/include and we are using GCC on Linux,
dnl 4. if it doesn't exist as a directory.
if test "X$additional_includedir" != "X/usr/include"; then
haveit=
for x in $CPPFLAGS; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-I$additional_includedir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test "X$additional_includedir" = "X/usr/local/include"; then
if test -n "$GCC"; then
case $host_os in
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
if test -d "$additional_includedir"; then
dnl Really add $additional_includedir to $CPPFLAGS.
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
fi
fi
fi
fi
dnl Potentially add $additional_libdir to $LDFLAGS.
dnl But don't add it
dnl 1. if it's the standard /usr/lib,
dnl 2. if it's already present in $LDFLAGS,
dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
dnl 4. if it doesn't exist as a directory.
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
haveit=
for x in $LDFLAGS; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
if test -n "$GCC"; then
case $host_os in
linux*) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
dnl Really add $additional_libdir to $LDFLAGS.
LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
fi
fi
fi
fi
fi
])
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
dnl acl_final_exec_prefix, containing the values to which $prefix and
dnl $exec_prefix will expand at the end of the configure script.
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
[
dnl Unfortunately, prefix and exec_prefix get only finally determined
dnl at the end of configure.
if test "X$prefix" = "XNONE"; then
acl_final_prefix="$ac_default_prefix"
else
acl_final_prefix="$prefix"
fi
if test "X$exec_prefix" = "XNONE"; then
acl_final_exec_prefix='${prefix}'
else
acl_final_exec_prefix="$exec_prefix"
fi
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
prefix="$acl_save_prefix"
])
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
dnl variables prefix and exec_prefix bound to the values they will have
dnl at the end of the configure script.
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
[
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
$1
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
])
dnl AC_LIB_PREPARE_MULTILIB creates
dnl - a variable acl_libdirstem, containing the basename of the libdir, either
dnl "lib" or "lib64" or "lib/64",
dnl - a variable acl_libdirstem2, as a secondary possible value for
dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
dnl "lib/amd64".
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
[
dnl There is no formal standard regarding lib and lib64.
dnl On glibc systems, the current practice is that on a system supporting
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
dnl the compiler's default mode by looking at the compiler's library search
dnl path. If at least one of its elements ends in /lib64 or points to a
dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
dnl Otherwise we use the default, namely "lib".
dnl On Solaris systems, the current practice is that on a system supporting
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
AC_REQUIRE([AC_CANONICAL_HOST])
acl_libdirstem=lib
acl_libdirstem2=
case "$host_os" in
solaris*)
dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
dnl symlink is missing, so we set acl_libdirstem2 too.
AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
[AC_EGREP_CPP([sixtyfour bits], [
#ifdef _LP64
sixtyfour bits
#endif
], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
])
if test $gl_cv_solaris_64bit = yes; then
acl_libdirstem=lib/64
case "$host_cpu" in
sparc*) acl_libdirstem2=lib/sparcv9 ;;
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
esac
fi
;;
*)
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
if test -n "$searchpath"; then
acl_save_IFS="${IFS= }"; IFS=":"
for searchdir in $searchpath; do
if test -d "$searchdir"; then
case "$searchdir" in
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
*/../ | */.. )
# Better ignore directories of this form. They are misleading.
;;
*) searchdir=`cd "$searchdir" && pwd`
case "$searchdir" in
*/lib64 ) acl_libdirstem=lib64 ;;
esac ;;
esac
fi
done
IFS="$acl_save_IFS"
fi
;;
esac
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
])
+8 -3
View File
@@ -24,7 +24,6 @@ os_files = $(unix_files)
endif
libeglib_la_SOURCES = \
eglib-config.h \
eglib-remap.h \
sort.frag.h \
glib.h \
@@ -32,9 +31,11 @@ libeglib_la_SOURCES = \
gbytearray.c \
gerror.c \
ghashtable.c \
giconv.c \
gmem.c \
gmodule.h \
goutput.c \
gqsort.c \
gstr.c \
gslist.c \
gstring.c \
@@ -61,10 +62,14 @@ libeglib_static_la_CFLAGS = $(libeglib_la_CFLAGS)
INCLUDES = -I$(srcdir)
if HOST_WIN32
libeglib_la_LIBADD = -lm $(ICONV_LIBS) -lpsapi
libeglib_la_LIBADD = -lm $(LIBICONV) -lpsapi
else
if PLATFORM_ANDROID
libeglib_la_LIBADD = -llog
endif
endif
libeglib_static_la_LIBADD = $(libeglib_la_LIBADD)
libeglib_static_la_LIBADD = $(libeglib_la_LIBADD) $(LIBICONV)
libeglib_static_la_LDFLAGS = -static
MAINTAINERCLEANFILES = Makefile.in
+4
View File
@@ -29,6 +29,8 @@ typedef signed @GSIZE@ gssize;
#define G_GSIZE_FORMAT @GSIZE_FORMAT@
#define G_GUINT64_FORMAT @G_GUINT64_FORMAT@
#define G_GINT64_FORMAT @G_GINT64_FORMAT@
#define G_GUINT32_FORMAT @G_GUINT32_FORMAT@
#define G_GINT32_FORMAT @G_GINT32_FORMAT@
#if @G_HAVE_ISO_VARARGS@ == 1
#define G_HAVE_ISO_VARARGS
@@ -42,4 +44,6 @@ typedef signed @GSIZE@ gssize;
#define G_BREAKPOINT()
#endif
typedef @PIDTYPE@ GPid;
#endif
+5 -3
View File
@@ -33,12 +33,15 @@ typedef int pid_t;
#define GINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
#define GUINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
/* VS 2010 and later have stdint.h */
#if defined(_MSC_VER) && _MSC_VER < 1600
#define INT32_MAX 2147483647
#define INT32_MIN (~ INT32_MAX)
#define INT64_MAX 9223372036854775807i64
#define INT64_MIN (~INT64_MAX)
#define UINT32_MAX 0xffffffffU
#define UINT64_MAX 0xffffffffffffffffULL
#endif
#define STDOUT_FILENO (int)(intptr_t)stdout
#define STDERR_FILENO (int)(intptr_t)stderr
@@ -62,8 +65,6 @@ typedef int pid_t;
#undef G_HAVE_STRNDUP
#define G_HAVE_GETOPT_H 1
int vasprintf(char **ret, const char *fmt, va_list ap);
/* disable the following warnings
* C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.
* C4127: conditional expression is constant
@@ -71,4 +72,5 @@ int vasprintf(char **ret, const char *fmt, va_list ap);
#pragma warning(disable:4100 4127)
#endif
#endif
typedef void * GPid;
#endif
+42 -2
View File
@@ -5,11 +5,16 @@
#define g_array_new monoeg_g_array_new
#define g_array_remove_index monoeg_g_array_remove_index
#define g_array_remove_index_fast monoeg_g_array_remove_index_fast
#define g_array_set_size monoeg_g_array_set_size
#define g_array_sized_new monoeg_g_array_sized_new
#define g_ascii_strdown monoeg_g_ascii_strdown
#define g_ascii_strncasecmp monoeg_g_ascii_strncasecmp
#define g_ascii_tolower monoeg_g_ascii_tolower
#define g_ascii_xdigit_value monoeg_g_ascii_xdigit_value
#define g_build_path monoeg_g_build_path
#define g_byte_array_append monoeg_g_byte_array_append
#define g_byte_array_free monoeg_g_byte_array_free
#define g_byte_array_new monoeg_g_byte_array_new
#define g_clear_error monoeg_g_clear_error
#define g_convert monoeg_g_convert
#define g_convert_error_quark monoeg_g_convert_error_quark
@@ -17,13 +22,16 @@
#define g_dir_open monoeg_g_dir_open
#define g_dir_read_name monoeg_g_dir_read_name
#define g_dir_rewind monoeg_g_dir_rewind
#define g_mkdir_with_parents monoeg_g_mkdir_with_parents
#define g_direct_equal monoeg_g_direct_equal
#define g_direct_hash monoeg_g_direct_hash
#define g_error_free monoeg_g_error_free
#define g_error_new monoeg_g_error_new
#define g_error_vnew monoeg_g_error_vnew
#define g_file_error_quark monoeg_g_file_error_quark
#define g_file_error_from_errno monoeg_g_file_error_from_errno
#define g_file_get_contents monoeg_g_file_get_contents
#define g_file_set_contents monoeg_g_file_set_contents
#define g_file_open_tmp monoeg_g_file_open_tmp
#define g_file_test monoeg_g_file_test
#define g_filename_from_uri monoeg_g_filename_from_uri
@@ -45,17 +53,23 @@
#define g_hash_table_foreach monoeg_g_hash_table_foreach
#define g_hash_table_foreach_remove monoeg_g_hash_table_foreach_remove
#define g_hash_table_foreach_steal monoeg_g_hash_table_foreach_steal
#define g_hash_table_get_keys monoeg_g_hash_table_get_keys
#define g_hash_table_get_values monoeg_g_hash_table_get_values
#define g_hash_table_insert_replace monoeg_g_hash_table_insert_replace
#define g_hash_table_lookup monoeg_g_hash_table_lookup
#define g_hash_table_lookup_extended monoeg_g_hash_table_lookup_extended
#define g_hash_table_new monoeg_g_hash_table_new
#define g_hash_table_new_full monoeg_g_hash_table_new_full
#define g_hash_table_remove monoeg_g_hash_table_remove
#define g_hash_table_steal monoeg_g_hash_table_steal
#define g_hash_table_size monoeg_g_hash_table_size
#define g_hash_table_print_stats monoeg_g_hash_table_print_stats
#define g_hash_table_remove_all monoeg_g_hash_table_remove_all
#define g_hash_table_iter_init monoeg_g_hash_table_iter_init
#define g_hash_table_iter_next monoeg_g_hash_table_iter_next
#define g_iconv monoeg_g_iconv
#define g_iconv_close monoeg_g_iconv_close
#define g_iconv_open monoeg_g_iconv_open
#define g_int_equal monoeg_g_int_equal
#define g_int_hash monoeg_g_int_hash
#define g_list_alloc monoeg_g_list_alloc
@@ -78,6 +92,7 @@
#define g_list_nth_data monoeg_g_list_nth_data
#define g_list_prepend monoeg_g_list_prepend
#define g_list_remove monoeg_g_list_remove
#define g_list_remove_all monoeg_g_list_remove_all
#define g_list_remove_link monoeg_g_list_remove_link
#define g_list_reverse monoeg_g_list_reverse
#define g_list_sort monoeg_g_list_sort
@@ -119,6 +134,7 @@
#define g_ptr_array_sized_new monoeg_g_ptr_array_sized_new
#define g_ptr_array_sort monoeg_g_ptr_array_sort
#define g_ptr_array_sort_with_data monoeg_g_ptr_array_sort_with_data
#define g_qsort_with_data monoeg_g_qsort_with_data
#define g_queue_free monoeg_g_queue_free
#define g_queue_is_empty monoeg_g_queue_is_empty
#define g_queue_foreach monoeg_g_queue_foreach
@@ -160,6 +176,7 @@
#define g_spawn_async_with_pipes monoeg_g_spawn_async_with_pipes
#define g_spawn_command_line_sync monoeg_g_spawn_command_line_sync
#define g_sprintf monoeg_g_sprintf
#define g_stpcpy monoeg_g_stpcpy
#define g_str_equal monoeg_g_str_equal
#define g_str_has_prefix monoeg_g_str_has_prefix
#define g_str_has_suffix monoeg_g_str_has_suffix
@@ -178,12 +195,17 @@
#define g_string_append monoeg_g_string_append
#define g_string_append_c monoeg_g_string_append_c
#define g_string_append_len monoeg_g_string_append_len
#define g_string_append_unichar monoeg_g_string_append_unichar
#define g_string_append_printf monoeg_g_string_append_printf
#define g_string_append_vprintf monoeg_g_string_append_vprintf
#define g_string_erase monoeg_g_string_erase
#define g_string_free monoeg_g_string_free
#define g_string_insert monoeg_g_string_insert
#define g_string_new monoeg_g_string_new
#define g_string_new_len monoeg_g_string_new_len
#define g_string_prepend monoeg_g_string_prepend
#define g_string_printf monoeg_g_string_printf
#define g_string_set_size monoeg_g_string_set_size
#define g_string_sized_new monoeg_g_string_sized_new
#define g_string_truncate monoeg_g_string_truncate
#define g_strjoin monoeg_g_strjoin
@@ -201,6 +223,7 @@
#define g_timer_start monoeg_g_timer_start
#define g_timer_stop monoeg_g_timer_stop
#define g_trailingBytesForUTF8 monoeg_g_trailingBytesForUTF8
#define g_ucs4_to_utf8 monoeg_g_ucs4_to_utf8
#define g_ucs4_to_utf16 monoeg_g_ucs4_to_utf16
#define g_unichar_case monoeg_g_unichar_case
#define g_unichar_isxdigit monoeg_g_unichar_isxdigit
@@ -214,11 +237,20 @@
#define g_utf16_to_ucs4 monoeg_g_utf16_to_ucs4
#define g_utf16_to_utf8 monoeg_g_utf16_to_utf8
#define g_utf8_get_char monoeg_g_utf8_get_char
#define g_utf8_offset_to_pointer monoeg_g_utf8_offset_to_pointer
#define g_utf8_pointer_to_offset monoeg_g_utf8_pointer_to_offset
#define g_utf8_strdown monoeg_g_utf8_strdown
#define g_utf8_strlen monoeg_g_utf8_strlen
#define g_utf8_strup monoeg_g_utf8_strup
#define g_utf8_to_ucs4_fast monoeg_g_utf8_to_ucs4_fast
#define g_utf8_to_utf16 monoeg_g_utf8_to_utf16
#define g_utf8_validate monoeg_g_utf8_validate
#define g_unichar_to_utf8 monoeg_g_unichar_to_utf8
#define g_unichar_is_space monoeg_g_unichar_is_space
#define g_unicode_break_type monoeg_g_unicode_break_type
#define g_utf8_offset_to_pointer monoeg_g_utf8_offset_to_pointer
#define g_utf8_pointer_to_offset monoeg_g_utf8_pointer_to_offset
#define g_utf8_to_ucs4_fast monoeg_g_utf8_to_ucs4_fast
#define g_win32_getlocale monoeg_g_win32_getlocale
#define g_assertion_message monoeg_assertion_message
#define g_malloc monoeg_malloc
@@ -230,6 +262,14 @@
#define g_strdup monoeg_strdup
#define g_ucs4_to_utf16_len monoeg_ucs4_to_utf16_len
#define g_utf16_to_ucs4_len monoeg_utf16_to_ucs4_len
#define g_byte_array_free monoeg_g_byte_array_free
#define g_byte_array_new monoeg_g_byte_array_new
#define g_ascii_strcasecmp monoeg_ascii_strcasecmp
#define g_ascii_strup monoeg_ascii_strup
#define g_ascii_toupper monoeg_ascii_toupper
#define g_unichar_break_type monoeg_unichar_break_type
#define g_unichar_isspace monoeg_unichar_isspace
#define g_unichar_to_utf16 monoeg_unichar_to_utf16
#define g_utf8_find_prev_char monoeg_utf8_find_prev_char
#define g_utf8_get_char_validated monoeg_utf8_get_char_validated
#define g_utf8_prev_char monoeg_utf8_prev_char
#define g_utf8_to_ucs4 monoeg_utf8_to_ucs4
+47 -15
View File
@@ -39,30 +39,28 @@ typedef struct {
gboolean clear_;
guint element_size;
gboolean zero_terminated;
gint capacity;
guint capacity;
} GArrayPriv;
static void
ensure_capacity (GArrayPriv *priv,
int capacity)
ensure_capacity (GArrayPriv *priv, guint capacity)
{
int new_capacity = MAX (priv->capacity, INITIAL_CAPACITY);
if (capacity < priv->capacity)
guint new_capacity;
if (capacity <= priv->capacity)
return;
while (new_capacity < capacity) {
new_capacity <<= 1;
}
capacity = new_capacity;
priv->array.data = (gchar*)g_realloc (priv->array.data, element_length (priv, capacity));
new_capacity = (capacity + 63) & ~63;
priv->array.data = g_realloc (priv->array.data, element_length (priv, new_capacity));
if (priv->clear_) {
memset (element_offset (priv, priv->capacity),
0,
element_length (priv, capacity - priv->capacity));
element_length (priv, new_capacity - priv->capacity));
}
priv->capacity = capacity;
priv->capacity = new_capacity;
}
GArray *
@@ -80,6 +78,22 @@ g_array_new (gboolean zero_terminated,
return (GArray*)rv;
}
GArray *
g_array_sized_new (gboolean zero_terminated,
gboolean clear_,
guint element_size,
guint reserved_size)
{
GArrayPriv *rv = g_new0 (GArrayPriv, 1);
rv->zero_terminated = zero_terminated;
rv->clear_ = clear_;
rv->element_size = element_size;
ensure_capacity (rv, reserved_size);
return (GArray*)rv;
}
gchar*
g_array_free (GArray *array,
gboolean free_segment)
@@ -204,3 +218,21 @@ g_array_remove_index_fast (GArray *array,
return array;
}
void
g_array_set_size (GArray *array, gint length)
{
GArrayPriv *priv = (GArrayPriv*)array;
g_return_if_fail (array != NULL);
g_return_if_fail (length >= 0);
if (length == priv->capacity)
return; // nothing to be done
if (length > priv->capacity) {
// grow the array
ensure_capacity (priv, length);
}
array->len = length;
}
+5 -49
View File
@@ -29,67 +29,23 @@
#include <stdlib.h>
#include <glib.h>
#define INITIAL_CAPACITY 16
static void
ensure_capacity (GByteArray *array,
int capacity)
{
int new_capacity = MAX (array->len, INITIAL_CAPACITY);
if (capacity < array->len)
return;
while (new_capacity < capacity) {
new_capacity <<= 1;
}
capacity = new_capacity;
array->data = (guint8*) g_realloc (array->data, capacity);
memset (array->data + array->len, 0, capacity - array->len);
array->len = capacity;
}
GByteArray *
g_byte_array_new ()
{
GByteArray *rv = g_new0 (GByteArray, 1);
ensure_capacity (rv, INITIAL_CAPACITY);
return rv;
return (GByteArray *) g_array_new (FALSE, TRUE, 1);
}
guint8*
g_byte_array_free (GByteArray *array,
gboolean free_segment)
{
guint8* rv = NULL;
g_return_val_if_fail (array != NULL, NULL);
if (free_segment)
g_free (array->data);
else
rv = array->data;
g_free (array);
return rv;
return (guint8*) g_array_free ((GArray *)array, free_segment);
}
GByteArray *
g_array_append (GByteArray *array,
guint8 *data,
g_byte_array_append (GByteArray *array,
const guint8 *data,
guint len)
{
g_return_val_if_fail (array != NULL, NULL);
ensure_capacity (array, array->len + len);
memmove (array->data + array->len, data, len);
array->len += len;
return array;
return (GByteArray *)g_array_append_vals ((GArray *)array, data, len);
}
+38
View File
@@ -105,4 +105,42 @@ g_dir_close (GDir *dir)
g_free (dir);
}
int
g_mkdir_with_parents (const gchar *pathname, int mode)
{
char *path, *d;
int rv;
if (!pathname || *pathname == '\0') {
errno = EINVAL;
return -1;
}
d = path = g_strdup (pathname);
if (*d == '/')
d++;
while (TRUE) {
if (*d == '/' || *d == '\0') {
char orig = *d;
*d = '\0';
rv = mkdir (path, mode);
if (rv == -1 && errno != EEXIST) {
g_free (path);
return -1;
}
*d++ = orig;
while (orig == '/' && *d == '/')
d++;
if (orig == '\0')
break;
} else {
d++;
}
}
g_free (path);
return 0;
}
+5 -5
View File
@@ -47,14 +47,14 @@ g_dir_open (const gchar *path, guint flags, GError **error)
GDir *dir;
gunichar2* path_utf16;
gunichar2* path_utf16_search;
WIN32_FIND_DATA find_data;
WIN32_FIND_DATAW find_data;
g_return_val_if_fail (path != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
dir = g_new0 (GDir, 1);
path_utf16 = u8to16 (path);
path_utf16_search = g_malloc ((wcslen(path_utf16) + 3)*sizeof(gunichar2));
path_utf16_search = g_malloc ((wcslen((wchar_t *) path_utf16) + 3)*sizeof(gunichar2));
wcscpy (path_utf16_search, path_utf16);
wcscat (path_utf16_search, L"\\*");
@@ -72,7 +72,7 @@ g_dir_open (const gchar *path, guint flags, GError **error)
g_free (path_utf16_search);
g_free (path_utf16);
while ((wcscmp (find_data.cFileName, L".") == 0) || (wcscmp (find_data.cFileName, L"..") == 0)) {
while ((wcscmp ((wchar_t *) find_data.cFileName, L".") == 0) || (wcscmp ((wchar_t *) find_data.cFileName, L"..") == 0)) {
if (!FindNextFileW (dir->handle, &find_data)) {
if (error) {
gint err = errno;
@@ -91,7 +91,7 @@ g_dir_open (const gchar *path, guint flags, GError **error)
const gchar *
g_dir_read_name (GDir *dir)
{
WIN32_FIND_DATA find_data;
WIN32_FIND_DATAW find_data;
g_return_val_if_fail (dir != NULL && dir->handle != 0, NULL);
@@ -111,7 +111,7 @@ g_dir_read_name (GDir *dir)
dir->next = NULL;
return dir->current;
}
} while ((wcscmp (find_data.cFileName, L".") == 0) || (wcscmp (find_data.cFileName, L"..") == 0));
} while ((wcscmp ((wchar_t *) find_data.cFileName, L".") == 0) || (wcscmp ((wchar_t *) find_data.cFileName, L"..") == 0));
dir->next = u16to8 (find_data.cFileName);
return dir->current;
+8 -4
View File
@@ -29,13 +29,18 @@
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <fcntl.h>
#include <errno.h>
#ifdef _MSC_VER
#include <direct.h>
#endif
#ifdef G_OS_WIN32
int mkstemp (char *tmp_template);
#endif
@@ -168,4 +173,3 @@ g_get_current_dir (void)
*/
return buffer;
}
+2 -6
View File
@@ -29,12 +29,10 @@
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@@ -80,5 +78,3 @@ g_file_test (const gchar *filename, GFileTest test)
}
return FALSE;
}
+4
View File
@@ -39,9 +39,13 @@
#ifdef G_OS_WIN32
#include <io.h>
#define open _open
#ifndef S_ISREG
#define S_ISREG(x) ((x & _S_IFMT) == _S_IFREG)
#endif
#ifndef S_ISDIR
#define S_ISDIR(x) ((x & _S_IFMT) == _S_IFDIR)
#endif
#endif
int mkstemp (char *tmp_template)
{
+63
View File
@@ -25,11 +25,25 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <glib.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <errno.h>
static gpointer error_quark = "FileError";
gpointer
g_file_error_quark (void)
{
return error_quark;
}
GFileError
g_file_error_from_errno (gint err_no)
{
@@ -91,4 +105,53 @@ g_file_error_from_errno (gint err_no)
}
}
#ifdef G_OS_WIN32
#define TMP_FILE_FORMAT "%.*s%s.tmp"
#else
#define TMP_FILE_FORMAT "%.*s.%s~"
#endif
gboolean
g_file_set_contents (const gchar *filename, const gchar *contents, gssize length, GError **err)
{
const char *name;
char *path;
FILE *fp;
if (!(name = strrchr (filename, G_DIR_SEPARATOR)))
name = filename;
else
name++;
path = g_strdup_printf (TMP_FILE_FORMAT, name - filename, filename, name);
if (!(fp = fopen (path, "wb"))) {
g_set_error (err, G_FILE_ERROR, g_file_error_from_errno (errno), "%s", g_strerror (errno));
g_free (path);
return FALSE;
}
if (length < 0)
length = strlen (contents);
if (fwrite (contents, 1, length, fp) < length) {
g_set_error (err, G_FILE_ERROR, g_file_error_from_errno (ferror (fp)), "%s", g_strerror (ferror (fp)));
g_unlink (path);
g_free (path);
fclose (fp);
return FALSE;
}
fclose (fp);
if (g_rename (path, filename) != 0) {
g_set_error (err, G_FILE_ERROR, g_file_error_from_errno (errno), "%s", g_strerror (errno));
g_unlink (path);
g_free (path);
return FALSE;
}
g_free (path);
return TRUE;
}
+68 -4
View File
@@ -264,6 +264,37 @@ g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gbo
sanity_check (hash);
}
GList*
g_hash_table_get_keys (GHashTable *hash)
{
GHashTableIter iter;
GList *rv = NULL;
gpointer key;
g_hash_table_iter_init (&iter, hash);
while (g_hash_table_iter_next (&iter, &key, NULL))
rv = g_list_prepend (rv, key);
return g_list_reverse (rv);
}
GList*
g_hash_table_get_values (GHashTable *hash)
{
GHashTableIter iter;
GList *rv = NULL;
gpointer value;
g_hash_table_iter_init (&iter, hash);
while (g_hash_table_iter_next (&iter, NULL, &value))
rv = g_list_prepend (rv, value);
return g_list_reverse (rv);
}
guint
g_hash_table_size (GHashTable *hash)
{
@@ -298,8 +329,10 @@ g_hash_table_lookup_extended (GHashTable *hash, gconstpointer key, gpointer *ori
for (s = hash->table [hashcode]; s != NULL; s = s->next){
if ((*equal)(s->key, key)){
*orig_key = s->key;
*value = s->value;
if (orig_key)
*orig_key = s->key;
if (value)
*value = s->value;
return TRUE;
}
}
@@ -436,6 +469,37 @@ g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data)
return count;
}
gboolean
g_hash_table_steal (GHashTable *hash, gconstpointer key)
{
GEqualFunc equal;
Slot *s, *last;
guint hashcode;
g_return_val_if_fail (hash != NULL, FALSE);
sanity_check (hash);
equal = hash->key_equal_func;
hashcode = ((*hash->hash_func)(key)) % hash->table_size;
last = NULL;
for (s = hash->table [hashcode]; s != NULL; s = s->next){
if ((*equal)(s->key, key)) {
if (last == NULL)
hash->table [hashcode] = s->next;
else
last->next = s->next;
g_free (s);
hash->in_use--;
sanity_check (hash);
return TRUE;
}
last = s;
}
sanity_check (hash);
return FALSE;
}
guint
g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data)
{
@@ -579,13 +643,13 @@ g_direct_hash (gconstpointer v1)
gboolean
g_int_equal (gconstpointer v1, gconstpointer v2)
{
return GPOINTER_TO_INT (v1) == GPOINTER_TO_INT (v2);
return *(gint *)v1 == *(gint *)v2;
}
guint
g_int_hash (gconstpointer v1)
{
return GPOINTER_TO_UINT(v1);
return *(guint *)v1;
}
gboolean
+1316
View File
File diff suppressed because it is too large. Load diff
+242 -117
View File
@@ -11,12 +11,12 @@
#ifdef _MSC_VER
#pragma include_alias(<eglib-config.h>, <eglib-config.hw>)
#endif
/* VS 2010 and later have stdint.h */
#if defined(_MSC_VER) && _MSC_VER < 1600
#else
#include <stdint.h>
/* For pid_t */
#ifndef WIN32
#include <unistd.h>
#endif
#endif
#include <eglib-config.h>
@@ -28,6 +28,11 @@
#include <alloca.h>
#endif
#ifdef WIN32
/* For alloca */
#include <malloc.h>
#endif
#ifndef offsetof
# define offsetof(s_name,n_name) (size_t)(char *)&(((s_name*)0)->m_name)
#endif
@@ -44,6 +49,12 @@
G_BEGIN_DECLS
#ifdef G_OS_WIN32
/* MSC and Cross-compilatin will use this */
int vasprintf (char **strp, const char *fmt, va_list ap);
#endif
/*
* Basic data types
*/
@@ -59,19 +70,19 @@ typedef char gchar;
typedef unsigned char guchar;
#if !G_TYPES_DEFINED
#ifdef _MSC_VER
typedef __int8 gint8;
/* VS 2010 and later have stdint.h */
#if defined(_MSC_VER) && _MSC_VER < 1600
typedef __int8 gint8;
typedef unsigned __int8 guint8;
typedef __int16 gint16;
typedef __int16 gint16;
typedef unsigned __int16 guint16;
typedef __int32 gint32;
typedef __int32 gint32;
typedef unsigned __int32 guint32;
typedef __int64 gint64;
typedef __int64 gint64;
typedef unsigned __int64 guint64;
typedef float gfloat;
typedef double gdouble;
typedef unsigned __int16 gunichar2;
typedef int gboolean;
typedef float gfloat;
typedef double gdouble;
typedef int gboolean;
#else
/* Types defined in terms of the stdint.h */
typedef int8_t gint8;
@@ -84,11 +95,13 @@ typedef int64_t gint64;
typedef uint64_t guint64;
typedef float gfloat;
typedef double gdouble;
typedef uint16_t gunichar2;
typedef int32_t gboolean;
#endif
#endif
typedef guint16 gunichar2;
typedef guint32 gunichar;
/*
* Macros
*/
@@ -97,9 +110,13 @@ typedef int32_t gboolean;
#define FALSE 0
#define TRUE 1
#define G_MINSHORT SHRT_MIN
#define G_MAXSHORT SHRT_MAX
#define G_MAXUSHORT USHRT_MAX
#define G_MAXINT INT_MAX
#define G_MININT INT_MIN
#define G_MAXINT32 INT32_MAX
#define G_MAXUINT32 UINT32_MAX
#define G_MININT32 INT32_MIN
#define G_MININT64 INT64_MIN
#define G_MAXINT64 INT64_MAX
@@ -112,7 +129,9 @@ typedef int32_t gboolean;
#define G_USEC_PER_SEC 1000000
#ifndef ABS
#define ABS(a) ((a) > 0 ? (a) : -(a))
#endif
#define G_STRUCT_OFFSET(p_type,field) offsetof(p_type,field)
@@ -174,65 +193,10 @@ gchar* g_win32_getlocale(void);
/*
* Precondition macros
*/
#define g_warn_if_fail(x) G_STMT_START { if (!(x)) { g_warning ("%s:%d: assertion '%s' failed", __FILE__, __LINE__, #x); } } G_STMT_END
#define g_return_if_fail(x) G_STMT_START { if (!(x)) { g_critical ("%s:%d: assertion '%s' failed", __FILE__, __LINE__, #x); return; } } G_STMT_END
#define g_return_val_if_fail(x,e) G_STMT_START { if (!(x)) { g_critical ("%s:%d: assertion '%s' failed", __FILE__, __LINE__, #x); return (e); } } G_STMT_END
/*
* Hashtables
*/
typedef struct _GHashTable GHashTable;
typedef struct _GHashTableIter GHashTableIter;
/* Private, but needed for stack allocation */
struct _GHashTableIter
{
gpointer dummy [8];
};
typedef void (*GFunc) (gpointer data, gpointer user_data);
typedef gint (*GCompareFunc) (gconstpointer a, gconstpointer b);
typedef gint (*GCompareDataFunc) (gconstpointer a, gconstpointer b, gpointer user_data);
typedef void (*GHFunc) (gpointer key, gpointer value, gpointer user_data);
typedef gboolean (*GHRFunc) (gpointer key, gpointer value, gpointer user_data);
typedef void (*GDestroyNotify) (gpointer data);
typedef guint (*GHashFunc) (gconstpointer key);
typedef gboolean (*GEqualFunc) (gconstpointer a, gconstpointer b);
typedef void (*GFreeFunc) (gpointer data);
GHashTable *g_hash_table_new (GHashFunc hash_func, GEqualFunc key_equal_func);
GHashTable *g_hash_table_new_full (GHashFunc hash_func, GEqualFunc key_equal_func,
GDestroyNotify key_destroy_func, GDestroyNotify value_destroy_func);
void g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gboolean replace);
guint g_hash_table_size (GHashTable *hash);
gpointer g_hash_table_lookup (GHashTable *hash, gconstpointer key);
gboolean g_hash_table_lookup_extended (GHashTable *hash, gconstpointer key, gpointer *orig_key, gpointer *value);
void g_hash_table_foreach (GHashTable *hash, GHFunc func, gpointer user_data);
gpointer g_hash_table_find (GHashTable *hash, GHRFunc predicate, gpointer user_data);
gboolean g_hash_table_remove (GHashTable *hash, gconstpointer key);
void g_hash_table_remove_all (GHashTable *hash);
guint g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data);
guint g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data);
void g_hash_table_destroy (GHashTable *hash);
void g_hash_table_print_stats (GHashTable *table);
void g_hash_table_iter_init (GHashTableIter *iter, GHashTable *hash_table);
gboolean g_hash_table_iter_next (GHashTableIter *iter, gpointer *key, gpointer *value);
guint g_spaced_primes_closest (guint x);
#define g_hash_table_insert(h,k,v) g_hash_table_insert_replace ((h),(k),(v),FALSE)
#define g_hash_table_replace(h,k,v) g_hash_table_insert_replace ((h),(k),(v),TRUE)
gboolean g_direct_equal (gconstpointer v1, gconstpointer v2);
guint g_direct_hash (gconstpointer v1);
gboolean g_int_equal (gconstpointer v1, gconstpointer v2);
guint g_int_hash (gconstpointer v1);
gboolean g_str_equal (gconstpointer v1, gconstpointer v2);
guint g_str_hash (gconstpointer v1);
#define g_assert(x) G_STMT_START { if (!(x)) g_assertion_message ("* Assertion at %s:%d, condition `%s' not met\n", __FILE__, __LINE__, #x); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); } G_STMT_END
/*
* Errors
*/
@@ -288,11 +252,16 @@ gint g_snprintf (gchar *string, gulong n, gchar const *format, ..
#define g_vsnprintf vsnprintf
#define g_vasprintf vasprintf
gsize g_strlcpy (gchar *dest, const gchar *src, gsize dest_size);
gsize g_strlcpy (gchar *dest, const gchar *src, gsize dest_size);
gchar *g_stpcpy (gchar *dest, const char *src);
gchar g_ascii_tolower (gchar c);
gchar g_ascii_toupper (gchar c);
gchar *g_ascii_strdown (const gchar *str, gssize len);
gchar *g_ascii_strup (const gchar *str, gssize len);
gint g_ascii_strncasecmp (const gchar *s1, const gchar *s2, gsize n);
gint g_ascii_strcasecmp (const gchar *s1, const gchar *s2);
gint g_ascii_xdigit_value (gchar c);
#define g_ascii_isspace(c) (isspace (c) != 0)
#define g_ascii_isalpha(c) (isalpha (c) != 0)
@@ -302,16 +271,15 @@ gint g_ascii_xdigit_value (gchar c);
/* FIXME: g_strcasecmp supports utf8 unicode stuff */
#ifdef _MSC_VER
#define g_strcasecmp stricmp
#define g_ascii_strcasecmp stricmp
#define g_strncasecmp strnicmp
#define g_strstrip(a) g_strchug (g_strchomp (a))
#else
#define g_strcasecmp strcasecmp
#define g_ascii_strcasecmp strcasecmp
#define g_ascii_strtoull strtoull
#define g_strncasecmp strncasecmp
#define g_strstrip(a) g_strchug (g_strchomp (a))
#endif
#define g_ascii_strdup strdup
#define G_STR_DELIMITERS "_-|> <."
@@ -332,14 +300,29 @@ gchar *g_string_free (GString *string, gboolean free_segment);
GString *g_string_append (GString *string, const gchar *val);
void g_string_printf (GString *string, const gchar *format, ...);
void g_string_append_printf (GString *string, const gchar *format, ...);
void g_string_append_vprintf (GString *string, const gchar *format, va_list args);
GString *g_string_append_unichar (GString *string, gunichar c);
GString *g_string_append_c (GString *string, gchar c);
GString *g_string_append (GString *string, const gchar *val);
GString *g_string_append_len (GString *string, const gchar *val, gssize len);
GString *g_string_truncate (GString *string, gsize len);
GString *g_string_prepend (GString *string, const gchar *val);
GString *g_string_insert (GString *string, gssize pos, const gchar *val);
GString *g_string_set_size (GString *string, gsize len);
GString *g_string_erase (GString *string, gssize pos, gssize len);
#define g_string_sprintfa g_string_append_printf
typedef void (*GFunc) (gpointer data, gpointer user_data);
typedef gint (*GCompareFunc) (gconstpointer a, gconstpointer b);
typedef gint (*GCompareDataFunc) (gconstpointer a, gconstpointer b, gpointer user_data);
typedef void (*GHFunc) (gpointer key, gpointer value, gpointer user_data);
typedef gboolean (*GHRFunc) (gpointer key, gpointer value, gpointer user_data);
typedef void (*GDestroyNotify) (gpointer data);
typedef guint (*GHashFunc) (gconstpointer key);
typedef gboolean (*GEqualFunc) (gconstpointer a, gconstpointer b);
typedef void (*GFreeFunc) (gpointer data);
/*
* Lists
*/
@@ -435,6 +418,8 @@ GList *g_list_find_custom (GList *list,
GCompareFunc func);
GList *g_list_remove (GList *list,
gconstpointer data);
GList *g_list_remove_all (GList *list,
gconstpointer data);
GList *g_list_reverse (GList *list);
GList *g_list_remove_link (GList *list,
GList *link);
@@ -449,6 +434,52 @@ GList *g_list_insert_before (GList *list,
GList *g_list_sort (GList *sort,
GCompareFunc func);
/*
* Hashtables
*/
typedef struct _GHashTable GHashTable;
typedef struct _GHashTableIter GHashTableIter;
/* Private, but needed for stack allocation */
struct _GHashTableIter
{
gpointer dummy [8];
};
GHashTable *g_hash_table_new (GHashFunc hash_func, GEqualFunc key_equal_func);
GHashTable *g_hash_table_new_full (GHashFunc hash_func, GEqualFunc key_equal_func,
GDestroyNotify key_destroy_func, GDestroyNotify value_destroy_func);
void g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gboolean replace);
guint g_hash_table_size (GHashTable *hash);
GList *g_hash_table_get_keys (GHashTable *hash);
GList *g_hash_table_get_values (GHashTable *hash);
gpointer g_hash_table_lookup (GHashTable *hash, gconstpointer key);
gboolean g_hash_table_lookup_extended (GHashTable *hash, gconstpointer key, gpointer *orig_key, gpointer *value);
void g_hash_table_foreach (GHashTable *hash, GHFunc func, gpointer user_data);
gpointer g_hash_table_find (GHashTable *hash, GHRFunc predicate, gpointer user_data);
gboolean g_hash_table_remove (GHashTable *hash, gconstpointer key);
gboolean g_hash_table_steal (GHashTable *hash, gconstpointer key);
void g_hash_table_remove_all (GHashTable *hash);
guint g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data);
guint g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data);
void g_hash_table_destroy (GHashTable *hash);
void g_hash_table_print_stats (GHashTable *table);
void g_hash_table_iter_init (GHashTableIter *iter, GHashTable *hash_table);
gboolean g_hash_table_iter_next (GHashTableIter *iter, gpointer *key, gpointer *value);
guint g_spaced_primes_closest (guint x);
#define g_hash_table_insert(h,k,v) g_hash_table_insert_replace ((h),(k),(v),FALSE)
#define g_hash_table_replace(h,k,v) g_hash_table_insert_replace ((h),(k),(v),TRUE)
gboolean g_direct_equal (gconstpointer v1, gconstpointer v2);
guint g_direct_hash (gconstpointer v1);
gboolean g_int_equal (gconstpointer v1, gconstpointer v2);
guint g_int_hash (gconstpointer v1);
gboolean g_str_equal (gconstpointer v1, gconstpointer v2);
guint g_str_hash (gconstpointer v1);
/*
* ByteArray
*/
@@ -474,16 +505,24 @@ struct _GArray {
};
GArray *g_array_new (gboolean zero_terminated, gboolean clear_, guint element_size);
GArray *g_array_sized_new (gboolean zero_terminated, gboolean clear_, guint element_size, guint reserved_size);
gchar* g_array_free (GArray *array, gboolean free_segment);
GArray *g_array_append_vals (GArray *array, gconstpointer data, guint len);
GArray* g_array_insert_vals (GArray *array, guint index_, gconstpointer data, guint len);
GArray* g_array_remove_index (GArray *array, guint index_);
GArray* g_array_remove_index_fast (GArray *array, guint index_);
void g_array_set_size (GArray *array, gint length);
#define g_array_append_val(a,v) (g_array_append_vals((a),&(v),1))
#define g_array_insert_val(a,i,v) (g_array_insert_vals((a),(i),&(v),1))
#define g_array_index(a,t,i) *(t*)(((a)->data) + sizeof(t) * (i))
/*
* QSort
*/
void g_qsort_with_data (gpointer base, size_t nmemb, size_t size, GCompareDataFunc compare, gpointer user_data);
/*
* Pointer Array
*/
@@ -586,7 +625,6 @@ gpointer g_convert_error_quark(void);
* only used if the old collation code is activated, so this is only the
* bare minimum to build.
*/
typedef guint32 gunichar;
typedef enum {
G_UNICODE_CONTROL,
@@ -621,12 +659,53 @@ typedef enum {
G_UNICODE_SPACE_SEPARATOR
} GUnicodeType;
typedef enum {
G_UNICODE_BREAK_MANDATORY,
G_UNICODE_BREAK_CARRIAGE_RETURN,
G_UNICODE_BREAK_LINE_FEED,
G_UNICODE_BREAK_COMBINING_MARK,
G_UNICODE_BREAK_SURROGATE,
G_UNICODE_BREAK_ZERO_WIDTH_SPACE,
G_UNICODE_BREAK_INSEPARABLE,
G_UNICODE_BREAK_NON_BREAKING_GLUE,
G_UNICODE_BREAK_CONTINGENT,
G_UNICODE_BREAK_SPACE,
G_UNICODE_BREAK_AFTER,
G_UNICODE_BREAK_BEFORE,
G_UNICODE_BREAK_BEFORE_AND_AFTER,
G_UNICODE_BREAK_HYPHEN,
G_UNICODE_BREAK_NON_STARTER,
G_UNICODE_BREAK_OPEN_PUNCTUATION,
G_UNICODE_BREAK_CLOSE_PUNCTUATION,
G_UNICODE_BREAK_QUOTATION,
G_UNICODE_BREAK_EXCLAMATION,
G_UNICODE_BREAK_IDEOGRAPHIC,
G_UNICODE_BREAK_NUMERIC,
G_UNICODE_BREAK_INFIX_SEPARATOR,
G_UNICODE_BREAK_SYMBOL,
G_UNICODE_BREAK_ALPHABETIC,
G_UNICODE_BREAK_PREFIX,
G_UNICODE_BREAK_POSTFIX,
G_UNICODE_BREAK_COMPLEX_CONTEXT,
G_UNICODE_BREAK_AMBIGUOUS,
G_UNICODE_BREAK_UNKNOWN,
G_UNICODE_BREAK_NEXT_LINE,
G_UNICODE_BREAK_WORD_JOINER,
G_UNICODE_BREAK_HANGUL_L_JAMO,
G_UNICODE_BREAK_HANGUL_V_JAMO,
G_UNICODE_BREAK_HANGUL_T_JAMO,
G_UNICODE_BREAK_HANGUL_LV_SYLLABLE,
G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE
} GUnicodeBreakType;
gunichar g_unichar_toupper (gunichar c);
gunichar g_unichar_tolower (gunichar c);
gunichar g_unichar_totitle (gunichar c);
GUnicodeType g_unichar_type (gunichar c);
gboolean g_unichar_isspace (gunichar c);
gboolean g_unichar_isxdigit (gunichar c);
gint g_unichar_xdigit_value (gunichar c);
GUnicodeBreakType g_unichar_break_type (gunichar c);
#ifndef MAX
#define MAX(a,b) (((a)>(b)) ? (a) : (b))
@@ -648,6 +727,9 @@ gint g_unichar_xdigit_value (gunichar c);
#define G_UNLIKELY(x) (x)
#endif
#define g_assert(x) G_STMT_START { if (G_UNLIKELY (!(x))) g_assertion_message ("* Assertion at %s:%d, condition `%s' not met\n", __FILE__, __LINE__, #x); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); } G_STMT_END
/*
* Unicode conversion
*/
@@ -663,17 +745,21 @@ typedef enum {
G_CONVERT_ERROR_NOT_ABSOLUTE_PATH
} GConvertError;
gchar* g_utf8_strup (const gchar *str, gssize len);
gchar* g_utf8_strdown (const gchar *str, gssize len);
gunichar2 *g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **error);
gchar *g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error);
gunichar2 *g_ucs4_to_utf16 (const gunichar *str, glong len, glong *items_read, glong *items_written, GError **error);
gunichar *g_utf16_to_ucs4 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error);
gchar *g_utf8_strup (const gchar *str, gssize len);
gchar *g_utf8_strdown (const gchar *str, gssize len);
gint g_unichar_to_utf8 (gunichar c, gchar *outbuf);
gunichar *g_utf8_to_ucs4_fast (const gchar *str, glong len, glong *items_written);
gunichar *g_utf8_to_ucs4 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **err);
gunichar2 *g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **err);
gchar *g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **err);
gunichar *g_utf16_to_ucs4 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **err);
gchar *g_ucs4_to_utf8 (const gunichar *str, glong len, glong *items_read, glong *items_written, GError **err);
gunichar2 *g_ucs4_to_utf16 (const gunichar *str, glong len, glong *items_read, glong *items_written, GError **err);
#define u8to16(str) g_utf8_to_utf16(str, (glong)strlen(str), NULL, NULL, NULL)
#ifdef G_OS_WIN32
#define u16to8(str) g_utf16_to_utf8(str, (glong)wcslen(str), NULL, NULL, NULL)
#define u16to8(str) g_utf16_to_utf8((gunichar2 *) (str), (glong)wcslen((wchar_t *) (str)), NULL, NULL, NULL)
#else
#define u16to8(str) g_utf16_to_utf8(str, (glong)strlen(str), NULL, NULL, NULL)
#endif
@@ -716,8 +802,6 @@ typedef enum {
G_SPAWN_FILE_AND_ARGV_ZERO = 1 << 6
} GSpawnFlags;
typedef pid_t GPid;
typedef void (*GSpawnChildSetupFunc) (gpointer user_data);
gboolean g_spawn_command_line_sync (const gchar *command_line, gchar **standard_output, gchar **standard_error, gint *exit_status, GError **error);
@@ -751,6 +835,10 @@ void g_usleep (gulong microseconds);
* File
*/
gpointer g_file_error_quark (void);
#define G_FILE_ERROR g_file_error_quark ()
typedef enum {
G_FILE_ERROR_EXIST,
G_FILE_ERROR_ISDIR,
@@ -788,11 +876,24 @@ typedef enum {
} GFileTest;
gboolean g_file_set_contents (const gchar *filename, const gchar *contents, gssize length, GError **error);
gboolean g_file_get_contents (const gchar *filename, gchar **contents, gsize *length, GError **error);
GFileError g_file_error_from_errno (gint err_no);
gint g_file_open_tmp (const gchar *tmpl, gchar **name_used, GError **error);
gboolean g_file_test (const gchar *filename, GFileTest test);
#define g_open open
#define g_rename rename
#define g_stat stat
#define g_unlink unlink
#define g_fopen fopen
#define g_lstat lstat
#define g_rmdir rmdir
#define g_mkstemp mkstemp
#define g_ascii_isdigit isdigit
#define g_ascii_strtod strtod
#define g_ascii_isalnum isalnum
/*
* Pattern matching
*/
@@ -809,6 +910,8 @@ GDir *g_dir_open (const gchar *path, guint flags, GError **error);
const gchar *g_dir_read_name (GDir *dir);
void g_dir_rewind (GDir *dir);
void g_dir_close (GDir *dir);
int g_mkdir_with_parents (const gchar *pathname, int mode);
#define g_mkdir mkdir
/*
@@ -865,14 +968,11 @@ gboolean g_markup_parse_context_end_parse (GMarkupParseContext *context,
/*
* Character set conversion
*/
/*
* Index into the table below with the first byte of a UTF-8 sequence to
* get the number of trailing bytes that are supposed to follow it.
* Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
* left as-is for anyone who may want to do such conversion, which was
* allowed in earlier algorithms.
*/
extern const gchar g_trailingBytesForUTF8[256];
typedef struct _GIConv *GIConv;
gsize g_iconv (GIConv cd, gchar **inbytes, gsize *inbytesleft, gchar **outbytes, gsize *outbytesleft);
GIConv g_iconv_open (const gchar *to_charset, const gchar *from_charset);
int g_iconv_close (GIConv cd);
gboolean g_get_charset (G_CONST_RETURN char **charset);
gchar *g_locale_to_utf8 (const gchar *opsysstring, gssize len,
@@ -885,10 +985,27 @@ gchar *g_filename_from_utf8 (const gchar *utf8string, gssize len, gsize *byte
gchar *g_convert (const gchar *str, gssize len,
const gchar *to_codeset, const gchar *from_codeset,
gsize *bytes_read, gsize *bytes_written, GError **error);
/*
* Unicode manipulation
*/
extern const guchar g_utf8_jump_table[256];
gboolean g_utf8_validate (const gchar *str, gssize max_len, const gchar **end);
gunichar g_utf8_get_char_validated (const gchar *str, gssize max_len);
gchar *g_utf8_find_prev_char (const char *str, const char *p);
gchar *g_utf8_prev_char (const char *str);
#define g_utf8_next_char(p) ((p) + g_utf8_jump_table[(guchar)(*p)])
gunichar g_utf8_get_char (const gchar *src);
glong g_utf8_strlen (const gchar *str, gssize max);
#define g_utf8_next_char(p) p + (g_trailingBytesForUTF8[(guchar)(*p)] + 1)
gchar *g_utf8_offset_to_pointer (const gchar *str, glong offset);
glong g_utf8_pointer_to_offset (const gchar *str, const gchar *pos);
/*
* priorities
*/
#define G_PRIORITY_DEFAULT 0
#define G_PRIORITY_DEFAULT_IDLE 200
/*
* Empty thread functions, not used by eglib
@@ -918,40 +1035,48 @@ glong g_utf8_strlen (const gchar *str, gssize max);
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
# define GUINT32_TO_LE(x) (x)
# define GUINT64_TO_LE(x) (x)
# define GUINT16_TO_LE(x) (x)
# define GUINT_TO_LE(x) (x)
# define GUINT32_TO_BE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT16_FROM_BE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT32_FROM_BE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT64_FROM_BE(x) GUINT64_SWAP_LE_BE(x)
# define GINT16_FROM_BE(x) GUINT16_SWAP_LE_BE(x)
# define GINT32_FROM_BE(x) GUINT32_SWAP_LE_BE(x)
# define GINT64_FROM_BE(x) GUINT64_SWAP_LE_BE(x)
# define GUINT32_FROM_BE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT16_FROM_BE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT_FROM_BE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT64_FROM_LE(x) (x)
# define GUINT32_FROM_LE(x) (x)
# define GUINT16_FROM_LE(x) (x)
# define GUINT_FROM_LE(x) (x)
# define GUINT64_TO_BE(x) GUINT64_SWAP_LE_BE(x)
# define GUINT32_TO_BE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT16_TO_BE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT_TO_BE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT64_TO_LE(x) (x)
# define GUINT32_TO_LE(x) (x)
# define GUINT16_TO_LE(x) (x)
# define GUINT_TO_LE(x) (x)
#else
# define GUINT32_TO_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT64_TO_LE(x) GUINT64_SWAP_LE_BE(x)
# define GUINT16_TO_LE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT_TO_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT32_TO_BE(x) (x)
# define GUINT16_FROM_BE(x) (x)
# define GUINT32_FROM_BE(x) (x)
# define GUINT64_FROM_BE(x) (x)
# define GINT16_FROM_BE(x) (x)
# define GINT32_FROM_BE(x) (x)
# define GINT64_FROM_BE(x) (x)
# define GUINT32_FROM_BE(x) (x)
# define GUINT16_FROM_BE(x) (x)
# define GUINT_FROM_BE(x) (x)
# define GUINT64_FROM_LE(x) GUINT64_SWAP_LE_BE(x)
# define GUINT32_FROM_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT16_FROM_LE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT_FROM_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT64_TO_BE(x) (x)
# define GUINT32_TO_BE(x) (x)
# define GUINT16_TO_BE(x) (x)
# define GUINT_TO_BE(x) (x)
# define GUINT64_TO_LE(x) GUINT64_SWAP_LE_BE(x)
# define GUINT32_TO_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT16_TO_LE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT_TO_LE(x) GUINT32_SWAP_LE_BE(x)
#endif
#define GINT64_FROM_BE(x) (GUINT64_TO_BE (x))
#define GINT32_FROM_BE(x) (GUINT32_TO_BE (x))
#define GINT16_FROM_BE(x) (GUINT16_TO_BE (x))
#define GINT64_FROM_LE(x) (GUINT64_TO_LE (x))
#define GINT32_FROM_LE(x) (GUINT32_TO_LE (x))
#define GINT16_FROM_LE(x) (GUINT16_TO_LE (x))
#define GUINT32_FROM_LE(x) (GUINT32_TO_LE (x))
#define GUINT64_FROM_LE(x) (GUINT64_TO_LE (x))
#define GUINT16_FROM_LE(x) (GUINT16_TO_LE (x))
#define GUINT_FROM_LE(x) (GUINT_TO_LE (x))
#define _EGLIB_MAJOR 2
#define _EGLIB_MIDDLE 4
#define _EGLIB_MINOR 0
+19
View File
@@ -125,6 +125,25 @@ g_list_remove (GList *list, gconstpointer data)
return list;
}
GList*
g_list_remove_all (GList *list, gconstpointer data)
{
GList *current = g_list_find (list, data);
if (!current)
return list;
while (current) {
if (current == list)
list = list->next;
g_list_free_1 (disconnect_node (current));
current = g_list_find (list, data);
}
return list;
}
GList*
g_list_remove_link (GList *list, GList *link)
{
+4 -3
View File
@@ -80,7 +80,7 @@ g_unsetenv(const gchar *variable)
{
gunichar2 *var;
var = u8to16(variable);
SetEnvironmentVariableW(var, TEXT(""));
SetEnvironmentVariableW(var, L"");
g_free(var);
}
@@ -98,14 +98,15 @@ g_path_is_absolute (const char *filename)
{
g_return_val_if_fail (filename != NULL, FALSE);
if (filename[0] != '\0' && filename[1] != '\0')
if (filename[1] == ':' && filename[2] != '\0' &&
if (filename[0] != '\0' && filename[1] != '\0') {
if (filename[1] == ':' && filename[2] != '\0' &&
(filename[2] == '\\' || filename[2] == '/'))
return TRUE;
/* UNC paths */
else if (filename[0] == '\\' && filename[1] == '\\' &&
filename[2] != '\0')
return TRUE;
}
return FALSE;
}
+1 -1
View File
@@ -53,7 +53,7 @@ g_module_open (const gchar *file, GModuleFlags flags)
gunichar2 *file16;
file16 = u8to16(file);
module->main_module = FALSE;
module->handle = LoadLibrary (file16);
module->handle = LoadLibraryW (file16);
g_free(file16);
if (!module->handle) {
g_free (module);
+12 -10
View File
@@ -5,6 +5,8 @@
* Miguel de Icaza ([email protected])
*
* (C) 2006 Novell, Inc.
* Copyright 2011 Xamarin Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@@ -24,6 +26,7 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
@@ -111,26 +114,25 @@ g_log_set_fatal_mask (const gchar *log_domain, GLogLevelFlags fatal_mask)
void
g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, va_list args)
{
#if PLATFORM_ANDROID
__android_log_vprint (to_android_priority (log_level), log_domain, format, args);
#else
char *msg;
vasprintf (&msg, format, args);
#if PLATFORM_ANDROID
__android_log_print (to_android_priority (log_level),
/* TODO: provide a proper app name */
"mono", "%s%s%s",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#else
if (vasprintf (&msg, format, args) < 0)
return;
printf ("%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#endif
free (msg);
if (log_level & fatal){
fflush (stdout);
fflush (stderr);
}
#endif
if (log_level & fatal){
abort ();
}
}
+56 -31
View File
@@ -41,44 +41,69 @@
gchar *
g_build_path (const gchar *separator, const gchar *first_element, ...)
{
GString *result;
const char *s, *p, *next;
size_t slen;
const char *elem, *next, *endptr;
gboolean trimmed;
GString *path;
va_list args;
size_t slen;
g_return_val_if_fail (separator != NULL, NULL);
if (first_element == NULL)
return g_strdup ("");
result = g_string_sized_new (48);
path = g_string_sized_new (48);
slen = strlen (separator);
va_start (args, first_element);
for (s = first_element; s != NULL; s = next){
next = va_arg (args, char *);
p = (s + strlen (s));
if (next && p - slen > s){
for (; strncmp (p-slen, separator, slen) == 0; ){
p -= slen;
}
for (elem = first_element; elem != NULL; elem = next) {
/* trim any trailing separators from @elem */
endptr = elem + strlen (elem);
trimmed = FALSE;
while (endptr >= elem + slen) {
if (strncmp (endptr - slen, separator, slen) != 0)
break;
endptr -= slen;
trimmed = TRUE;
}
g_string_append_len (result, s, p - s);
if (next && *next){
if (strncmp (separator, result->str + strlen (result->str) - slen, slen))
g_string_append (result, separator);
for (; strncmp (next, separator, slen) == 0; )
/* append elem, not including any trailing separators */
if (endptr > elem)
g_string_append_len (path, elem, endptr - elem);
/* get the next element */
do {
if (!(next = va_arg (args, char *)))
break;
/* remove leading separators */
while (!strncmp (next, separator, slen))
next += slen;
}
} while (*next == '\0');
if (next || trimmed)
g_string_append_len (path, separator, slen);
}
g_string_append_c (result, 0);
va_end (args);
return g_string_free (path, FALSE);
}
return g_string_free (result, FALSE);
static gchar*
strrchr_seperator (const gchar* filename)
{
#ifdef G_OS_WIN32
char *p2;
#endif
char *p;
p = strrchr (filename, G_DIR_SEPARATOR);
#ifdef G_OS_WIN32
p2 = strrchr (filename, '/');
if (p2 > p)
p = p2;
#endif
return p;
}
gchar *
@@ -88,7 +113,7 @@ g_path_get_dirname (const gchar *filename)
size_t count;
g_return_val_if_fail (filename != NULL, NULL);
p = strrchr (filename, G_DIR_SEPARATOR);
p = strrchr_seperator (filename);
if (p == NULL)
return g_strdup (".");
if (p == filename)
@@ -112,7 +137,7 @@ g_path_get_basename (const char *filename)
return g_strdup (".");
/* No separator -> filename */
r = strrchr (filename, G_DIR_SEPARATOR);
r = strrchr_seperator (filename);
if (r == NULL)
return g_strdup (filename);
@@ -120,7 +145,7 @@ g_path_get_basename (const char *filename)
if (r [1] == 0){
char *copy = g_strdup (filename);
copy [r-filename] = 0;
r = strrchr (copy, G_DIR_SEPARATOR);
r = strrchr_seperator (copy);
if (r == NULL){
g_free (copy);
@@ -194,7 +219,7 @@ g_find_program_in_path (const gchar *program)
char *p = g_strdup (g_getenv ("PATH"));
char *x = p, *l;
gchar *curdir = NULL;
char *save;
char *save = NULL;
#ifdef G_OS_WIN32
char *program_exe;
char *suffix_list[5] = {".exe",".cmd",".bat",".com",NULL};
+10 -8
View File
@@ -3,8 +3,10 @@
*
* Author:
* Aaron Bockover ([email protected])
* Gonzalo Paniagua Javier ([email protected])
* Jeffrey Stedfast ([email protected])
*
* (C) 2006 Novell, Inc.
* (C) 2006,2011 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@@ -57,7 +59,7 @@ g_ptr_array_grow(GPtrArrayPriv *array, guint length)
}
GPtrArray *
g_ptr_array_new()
g_ptr_array_new(void)
{
return g_ptr_array_sized_new(0);
}
@@ -209,17 +211,17 @@ g_ptr_array_foreach(GPtrArray *array, GFunc func, gpointer user_data)
}
void
g_ptr_array_sort(GPtrArray *array, GCompareFunc compare_func)
g_ptr_array_sort(GPtrArray *array, GCompareFunc compare)
{
g_return_if_fail(array != NULL);
qsort(array->pdata, array->len, sizeof(gpointer), compare_func);
qsort(array->pdata, array->len, sizeof(gpointer), compare);
}
void
g_ptr_array_sort_with_data(GPtrArray *array, GCompareDataFunc compare_func,
gpointer user_data)
g_ptr_array_sort_with_data (GPtrArray *array, GCompareDataFunc compare, gpointer user_data)
{
g_return_if_fail (array != NULL);
g_qsort_with_data (array->pdata, array->len, sizeof (gpointer), compare, user_data);
}
+165
View File
@@ -0,0 +1,165 @@
/*
* QuickSort
*
* Author: Jeffrey Stedfast <[email protected]>
*
* (C) 2011 Novell, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdlib.h>
#include <glib.h>
/* Any segment <= this threshold will be sorted using insertion
* sort. OpenBSD seems to use a value of 7 so we'll go with that for
* now... */
#define MAX_THRESHOLD 7
#define STACK_SIZE (8 * sizeof (size_t))
typedef struct _QSortStack {
char *array;
size_t count;
} QSortStack;
#define QSORT_PUSH(sp, a, c) (sp->array = a, sp->count = c, sp++)
#define QSORT_POP(sp, a, c) (sp--, a = sp->array, c = sp->count)
#define SWAPTYPE(TYPE, a, b) { \
long __n = size / sizeof (TYPE); \
register TYPE *__a = (TYPE *) (a); \
register TYPE *__b = (TYPE *) (b); \
register TYPE t; \
\
do { \
t = *__a; \
*__a++ = *__b; \
*__b++ = t; \
} while (--__n > 0); \
}
#define SWAPBYTE(a, b) SWAPTYPE(char, (a), (b))
#define SWAPLONG(a, b) SWAPTYPE(long, (a), (b))
#define SWAP(a, b) if (swaplong) SWAPLONG((a), (b)) else SWAPBYTE((a), (b))
/* check if we can swap by longs rather than bytes by making sure that
* memory is properly aligned and that the element size is a multiple
* of sizeof (long) */
#define SWAP_INIT() swaplong = (((char *) base) - ((char *) 0)) % sizeof (long) == 0 && (size % sizeof (long)) == 0
void
g_qsort_with_data (gpointer base, size_t nmemb, size_t size, GCompareDataFunc compare, gpointer user_data)
{
QSortStack stack[STACK_SIZE], *sp;
register char *i, *k, *mid;
size_t n, n1, n2;
char *lo, *hi;
int swaplong;
if (nmemb <= 1)
return;
SWAP_INIT ();
/* initialize our stack */
sp = stack;
QSORT_PUSH (sp, base, nmemb);
do {
QSORT_POP (sp, lo, n);
hi = lo + (n - 1) * size;
if (n < MAX_THRESHOLD) {
/* switch to insertion sort */
for (i = lo + size; i <= hi; i += size)
for (k = i; k > lo && compare (k - size, k, user_data) > 0; k -= size)
SWAP (k - size, k);
continue;
}
/* calculate the middle element */
mid = lo + (n / 2) * size;
/* once we re-order the lo, mid, and hi elements to be in
* ascending order, we'll use mid as our pivot. */
if (compare (mid, lo, user_data) < 0) {
SWAP (mid, lo);
}
if (compare (hi, mid, user_data) < 0) {
SWAP (mid, hi);
if (compare (mid, lo, user_data) < 0) {
SWAP (mid, lo);
}
}
/* since we've already guaranteed that lo <= mid and mid <= hi,
* we can skip comparing them again */
i = lo + size;
k = hi - size;
do {
/* find the first element with a value > pivot value */
while (i < k && compare (i, mid, user_data) <= 0)
i += size;
/* find the last element with a value <= pivot value */
while (k >= i && compare (mid, k, user_data) < 0)
k -= size;
if (k <= i)
break;
SWAP (i, k);
/* make sure we keep track of our pivot element */
if (mid == i) {
mid = k;
} else if (mid == k) {
mid = i;
}
i += size;
k -= size;
} while (1);
if (k != mid) {
/* swap the pivot with the last element in the first partition */
SWAP (mid, k);
}
/* calculate segment sizes */
n2 = (hi - k) / size;
n1 = (k - lo) / size;
/* push our partitions onto the stack, largest first
* (to make sure we don't run out of stack space) */
if (n2 > n1) {
if (n2 > 1) QSORT_PUSH (sp, k + size, n2);
if (n1 > 1) QSORT_PUSH (sp, lo, n1);
} else {
if (n1 > 1) QSORT_PUSH (sp, lo, n1);
if (n2 > 1) QSORT_PUSH (sp, k + size, n2);
}
} while (sp > stack);
}
+2 -2
View File
@@ -57,7 +57,7 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
} else if (quote_char) {
if (c == quote_char) {
quote_char = '\0';
if (fresh && g_ascii_isspace (*ptr)){
if (fresh && (g_ascii_isspace (*ptr) || *ptr == '\0')){
g_ptr_array_add (array, g_string_free (str, FALSE));
str = g_string_new ("");
}
@@ -225,7 +225,7 @@ g_shell_unquote (const gchar *quoted_string, GError **error)
}
} else if (*p == '\\'){
char c = *(++p);
if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == 0))
if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == '\'' || c == 0 ))
g_string_append_c (result, '\\');
if (c == 0)
break;
+27 -4
View File
@@ -79,6 +79,7 @@ gchar ***_NSGetEnviron();
extern char **environ;
#endif
#ifndef G_OS_WIN32
static int
safe_read (int fd, gchar *buffer, gint count, GError **error)
{
@@ -185,6 +186,28 @@ create_pipe (int *fds, GError **error)
}
return TRUE;
}
#endif /* G_OS_WIN32 */
static int
write_all (int fd, const void *vbuf, size_t n)
{
const char *buf = (const char *) vbuf;
size_t nwritten = 0;
int w;
do {
do {
w = write (fd, buf + nwritten, n - nwritten);
} while (w == -1 && errno == EINTR);
if (w == -1)
return -1;
nwritten += w;
} while (nwritten < n);
return nwritten;
}
gboolean
g_spawn_command_line_sync (const gchar *command_line,
@@ -359,12 +382,12 @@ g_spawn_async_with_pipes (const gchar *working_directory,
if ((flags & G_SPAWN_DO_NOT_REAP_CHILD) == 0) {
pid = getpid ();
NO_INTR (unused, write (info_pipe [1], &pid, sizeof (pid_t)));
NO_INTR (unused, write_all (info_pipe [1], &pid, sizeof (pid_t)));
}
if (working_directory && chdir (working_directory) == -1) {
int err = errno;
NO_INTR (unused, write (info_pipe [1], &err, sizeof (int)));
NO_INTR (unused, write_all (info_pipe [1], &err, sizeof (int)));
exit (0);
}
@@ -406,13 +429,13 @@ g_spawn_async_with_pipes (const gchar *working_directory,
arg0 = g_find_program_in_path (argv [0]);
if (arg0 == NULL) {
int err = ENOENT;
write (info_pipe [1], &err, sizeof (int));
write_all (info_pipe [1], &err, sizeof (int));
exit (0);
}
}
execve (arg0, actual_args, envp);
write (info_pipe [1], &errno, sizeof (int));
write_all (info_pipe [1], &errno, sizeof (int));
exit (0);
}
} else if ((flags & G_SPAWN_DO_NOT_REAP_CHILD) == 0) {
+92 -29
View File
@@ -351,21 +351,21 @@ g_strsplit_set (const gchar *string, const gchar *delimiter, gint max_tokens)
gchar *
g_strreverse (gchar *str)
{
size_t len, half;
size_t i;
size_t i, j;
gchar c;
if (str == NULL)
return NULL;
len = strlen (str);
half = len / 2;
len--;
for (i = 0; i < half; i++, len--) {
if (*str == 0)
return str;
for (i = 0, j = strlen (str) - 1; i < j; i++, j--) {
c = str [i];
str [i] = str [len];
str [len] = c;
str [i] = str [j];
str [j] = c;
}
return str;
}
@@ -373,13 +373,14 @@ gchar *
g_strjoin (const gchar *separator, ...)
{
va_list args;
char *res, *s;
char *res, *s, *r;
size_t len, slen;
if (separator != NULL)
slen = strlen (separator);
else
slen = 0;
len = 0;
va_start (args, separator);
for (s = va_arg (args, char *); s != NULL; s = va_arg (args, char *)){
@@ -387,21 +388,22 @@ g_strjoin (const gchar *separator, ...)
len += slen;
}
va_end (args);
if (len == 0)
return g_strdup ("");
/* Remove the last separator */
if (slen > 0 && len > 0)
len -= slen;
len++;
res = g_malloc (len);
res = g_malloc (len + 1);
va_start (args, separator);
s = va_arg (args, char *);
strcpy (res, s);
r = g_stpcpy (res, s);
for (s = va_arg (args, char *); s != NULL; s = va_arg (args, char *)){
if (separator != NULL)
strcat (res, separator);
strcat (res, s);
r = g_stpcpy (r, separator);
r = g_stpcpy (r, s);
}
va_end (args);
@@ -411,7 +413,7 @@ g_strjoin (const gchar *separator, ...)
gchar *
g_strjoinv (const gchar *separator, gchar **str_array)
{
char *res;
char *res, *r;
size_t slen, len, i;
if (separator != NULL)
@@ -424,18 +426,21 @@ g_strjoinv (const gchar *separator, gchar **str_array)
len += strlen (str_array [i]);
len += slen;
}
if (len == 0)
return g_strdup ("");
if (slen > 0 && len > 0)
len -= slen;
len++;
res = g_malloc (len);
strcpy (res, str_array [0]);
res = g_malloc (len + 1);
r = g_stpcpy (res, str_array [0]);
for (i = 1; str_array [i] != NULL; i++){
if (separator != NULL)
strcat (res, separator);
strcat (res, str_array [i]);
r = g_stpcpy (r, separator);
r = g_stpcpy (r, str_array [i]);
}
return res;
}
@@ -701,6 +706,31 @@ g_ascii_strdown (const gchar *str, gssize len)
return ret;
}
gchar
g_ascii_toupper (gchar c)
{
return c >= 'a' && c <= 'z' ? c + ('A' - 'a') : c;
}
gchar *
g_ascii_strup (const gchar *str, gssize len)
{
char *ret;
int i;
g_return_val_if_fail (str != NULL, NULL);
if (len == -1)
len = strlen (str);
ret = g_malloc (len + 1);
for (i = 0; i < len; i++)
ret [i] = (guchar) g_ascii_toupper (str [i]);
ret [i] = 0;
return ret;
}
gint
g_ascii_strncasecmp (const gchar *s1, const gchar *s2, gsize n)
{
@@ -709,22 +739,37 @@ g_ascii_strncasecmp (const gchar *s1, const gchar *s2, gsize n)
g_return_val_if_fail (s1 != NULL, 0);
g_return_val_if_fail (s2 != NULL, 0);
for (i = 0; i < n; i++){
for (i = 0; i < n; i++) {
gchar c1 = g_ascii_tolower (*s1++);
gchar c2 = g_ascii_tolower (*s2++);
if (c1 == c2)
continue;
if (c1 == 0)
return -1;
if (c2 == 0)
return 1;
return c1-c2;
if (c1 != c2)
return c1 - c2;
}
return 0;
}
gint
g_ascii_strcasecmp (const gchar *s1, const gchar *s2)
{
const char *sp1 = s1;
const char *sp2 = s2;
g_return_val_if_fail (s1 != NULL, 0);
g_return_val_if_fail (s2 != NULL, 0);
while (*sp1 != '\0') {
char c1 = g_ascii_tolower (*sp1++);
char c2 = g_ascii_tolower (*sp2++);
if (c1 != c2)
return c1 - c2;
}
return (*sp1) - (*sp2);
}
gchar *
g_strdelimit (gchar *string, const gchar *delimiters, gchar new_delimiter)
{
@@ -778,6 +823,24 @@ g_strlcpy (gchar *dest, const gchar *src, gsize dest_size)
#endif
}
gchar *
g_stpcpy (gchar *dest, const char *src)
{
g_return_val_if_fail (dest != NULL, dest);
g_return_val_if_fail (src != NULL, dest);
#if HAVE_STPCPY
return stpcpy (dest, src);
#else
while (*src)
*dest++ = *src++;
*dest = '\0';
return dest;
#endif
}
static const gchar escaped_dflt [256] = {
1, 1, 1, 1, 1, 1, 1, 1, 'b', 't', 'n', 1, 'f', 'r', 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+76
View File
@@ -132,6 +132,20 @@ g_string_append_c (GString *string, gchar c)
return string;
}
GString *
g_string_append_unichar (GString *string, gunichar c)
{
gchar utf8[6];
gint len;
g_return_val_if_fail (string != NULL, NULL);
if ((len = g_unichar_to_utf8 (c, utf8)) <= 0)
return string;
return g_string_append_len (string, utf8, len);
}
GString *
g_string_prepend (GString *string, const gchar *val)
{
@@ -149,6 +163,24 @@ g_string_prepend (GString *string, const gchar *val)
return string;
}
GString *
g_string_insert (GString *string, gssize pos, const gchar *val)
{
gssize len;
g_return_val_if_fail (string != NULL, string);
g_return_val_if_fail (val != NULL, string);
g_return_val_if_fail (pos <= string->len, string);
len = strlen (val);
GROW_IF_NECESSARY(string, len);
memmove(string->str + pos + len, string->str + pos, string->len - pos - len + 1);
memcpy(string->str + pos, val, len);
return string;
}
void
g_string_append_printf (GString *string, const gchar *format, ...)
{
@@ -166,6 +198,19 @@ g_string_append_printf (GString *string, const gchar *format, ...)
g_free (ret);
}
void
g_string_append_vprintf (GString *string, const gchar *format, va_list args)
{
char *ret;
g_return_if_fail (string != NULL);
g_return_if_fail (format != NULL);
ret = g_strdup_vprintf (format, args);
g_string_append (string, ret);
g_free (ret);
}
void
g_string_printf (GString *string, const gchar *format, ...)
{
@@ -199,3 +244,34 @@ g_string_truncate (GString *string, gsize len)
return string;
}
GString *
g_string_set_size (GString *string, gsize len)
{
g_return_val_if_fail (string != NULL, string);
GROW_IF_NECESSARY(string, len);
string->len = len;
string->str[len] = 0;
return string;
}
GString *
g_string_erase (GString *string, gssize pos, gssize len)
{
g_return_val_if_fail (string != NULL, string);
/* Silent return */
if (pos >= string->len)
return string;
if (len == -1 || (pos + len) >= string->len) {
string->str[pos] = 0;
}
else {
memmove (string->str + pos, string->str + pos + len, string->len - (pos + len) + 1);
string->len -= len;
}
return string;
}
+24 -229
View File
@@ -43,57 +43,26 @@
/* FIXME */
# define CODESET 1
# include <windows.h>
# ifdef _MSC_VER
typedef int iconv_t;
# endif
#else
# ifdef HAVE_LANGINFO_H
# include <langinfo.h>
# endif
# ifdef HAVE_ICONV_H
# include <iconv.h>
# endif
# ifdef HAVE_LOCALCHARSET_H
# include <localcharset.h>
# endif
#endif
static char *my_charset;
static const char *my_charset;
static gboolean is_utf8;
/*
* Character set conversion
*/
/*
* Index into the table below with the first byte of a UTF-8 sequence to
* get the number of trailing bytes that are supposed to follow it.
* Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
* left as-is for anyone who may want to do such conversion, which was
* allowed in earlier algorithms.
*/
const gchar g_trailingBytesForUTF8 [256] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,0,0
};
/*
* Magic values subtracted from a buffer value during UTF8 conversion.
* This table contains as many values as there might be trailing bytes
* in a UTF-8 sequence.
*/
static const gulong offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
0x03C82080UL, 0xFA082080UL, 0x82082080UL };
GUnicodeType
g_unichar_type (gunichar c)
{
int i;
int i;
guint16 cp = (guint16) c;
for (i = 0; i < unicode_category_ranges_count; i++) {
@@ -130,6 +99,13 @@ int i;
return 0;
}
GUnicodeBreakType
g_unichar_break_type (gunichar c)
{
// MOONLIGHT_FIXME
return G_UNICODE_BREAK_UNKNOWN;
}
gunichar
g_unichar_case (gunichar c, gboolean upper)
{
@@ -203,84 +179,19 @@ g_unichar_xdigit_value (gunichar c)
return -1;
}
gchar *
g_convert (const gchar *str, gssize len,
const gchar *to_codeset, const gchar *from_codeset,
gsize *bytes_read, gsize *bytes_written, GError **error)
gboolean
g_unichar_isspace (gunichar c)
{
char *result = NULL;
#ifdef G_OS_WIN32
#elif HAVE_ICONV_H
iconv_t convertor;
char *buffer, *output;
const char *strptr = (const char *) str;
size_t str_len = len == -1 ? strlen (str) : len;
size_t buffer_size;
size_t left, out_left;
convertor = iconv_open (to_codeset, from_codeset);
if (convertor == (iconv_t) -1){
if (bytes_written)
*bytes_written = 0;
if (bytes_read)
*bytes_read = 0;
return NULL;
}
GUnicodeType type = g_unichar_type (c);
if (type == G_UNICODE_LINE_SEPARATOR ||
type == G_UNICODE_PARAGRAPH_SEPARATOR ||
type == G_UNICODE_SPACE_SEPARATOR)
return TRUE;
buffer_size = str_len + 1 + 8;
buffer = g_malloc (buffer_size);
out_left = str_len;
output = buffer;
left = str_len;
while (left > 0){
int res = iconv (convertor, (char **) &strptr, &left, &output, &out_left);
if (res == (size_t) -1){
if (errno == E2BIG){
char *n;
size_t extra_space = 8 + left;
size_t output_used = output - buffer;
buffer_size += extra_space;
n = g_realloc (buffer, buffer_size);
if (n == NULL){
if (error != NULL)
*error = g_error_new (NULL, G_CONVERT_ERROR_FAILED, "No memory left");
g_free (buffer);
result = NULL;
goto leave;
}
buffer = n;
out_left += extra_space;
output = buffer + output_used;
} else if (errno == EILSEQ){
if (error != NULL)
*error = g_error_new (NULL, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, "Invalid multi-byte sequence on input");
result = NULL;
g_free (buffer);
goto leave;
} else if (errno == EINVAL){
if (error != NULL)
*error = g_error_new (NULL, G_CONVERT_ERROR_PARTIAL_INPUT, "Partial character sequence");
result = NULL;
g_free (buffer);
goto leave;
}
}
}
if (bytes_read != NULL)
*bytes_read = strptr - str;
if (bytes_written != NULL)
*bytes_written = output - buffer;
*output = 0;
result = buffer;
leave:
iconv_close (convertor);
#endif
return result;
return FALSE;
}
/*
* This is broken, and assumes an UTF8 system, but will do for eglib's first user
*/
@@ -300,13 +211,13 @@ g_filename_from_utf8 (const gchar *utf8string, gssize len, gsize *bytes_read, gs
gboolean
g_get_charset (G_CONST_RETURN char **charset)
{
if (my_charset == NULL) {
#ifdef G_OS_WIN32
static char buf[14];
sprintf (buf, "CP%u", GetACP ());
*charset = buf;
is_utf8 = FALSE;
static char buf [14];
sprintf (buf, "CP%u", GetACP ());
my_charset = buf;
is_utf8 = FALSE;
#else
if (my_charset == NULL){
/* These shouldn't be heap allocated */
#if HAVE_LOCALCHARSET_H
my_charset = locale_charset ();
@@ -316,12 +227,12 @@ g_get_charset (G_CONST_RETURN char **charset)
my_charset = "UTF-8";
#endif
is_utf8 = strcmp (my_charset, "UTF-8") == 0;
#endif
}
if (charset != NULL)
*charset = my_charset;
#endif
return is_utf8;
}
@@ -340,119 +251,3 @@ g_locale_from_utf8 (const gchar *utf8string, gssize len, gsize *bytes_read, gsiz
return g_convert (utf8string, len, my_charset, "UTF-8", bytes_read, bytes_written, error);
}
/**
* g_utf8_validate
* @utf: Pointer to putative UTF-8 encoded string.
*
* Checks @utf for being valid UTF-8. @utf is assumed to be
* null-terminated. This function is not super-strict, as it will
* allow longer UTF-8 sequences than necessary. Note that Java is
* capable of producing these sequences if provoked. Also note, this
* routine checks for the 4-byte maximum size, but does not check for
* 0x10ffff maximum value.
*
* Return value: true if @utf is valid.
**/
gboolean
g_utf8_validate (const gchar *str, gssize max_len, const gchar **end)
{
gssize byteCount = 0;
gboolean retVal = TRUE;
gboolean lastRet = TRUE;
guchar* ptr = (guchar*) str;
guint length;
guchar a;
guchar* srcPtr;
if (max_len == 0)
return 0;
else if (max_len < 0)
byteCount = max_len;
while (*ptr != 0 && byteCount <= max_len) {
length = g_trailingBytesForUTF8 [*ptr] + 1;
srcPtr = (guchar*) ptr + length;
switch (length) {
default: retVal = FALSE;
/* Everything else falls through when "TRUE"... */
case 4: if ((a = (*--srcPtr)) < (guchar) 0x80 || a > (guchar) 0xBF) retVal = FALSE;
if ((a == (guchar) 0xBF || a == (guchar) 0xBE) && *(srcPtr-1) == (guchar) 0xBF) {
if (*(srcPtr-2) == (guchar) 0x8F || *(srcPtr-2) == (guchar) 0x9F ||
*(srcPtr-2) == (guchar) 0xAF || *(srcPtr-2) == (guchar) 0xBF)
retVal = FALSE;
}
case 3: if ((a = (*--srcPtr)) < (guchar) 0x80 || a > (guchar) 0xBF) retVal = FALSE;
case 2: if ((a = (*--srcPtr)) < (guchar) 0x80 || a > (guchar) 0xBF) retVal = FALSE;
switch (*ptr) {
/* no fall-through in this inner switch */
case 0xE0: if (a < (guchar) 0xA0) retVal = FALSE; break;
case 0xED: if (a > (guchar) 0x9F) retVal = FALSE; break;
case 0xEF: if (a == (guchar)0xB7 && (*(srcPtr+1) > (guchar) 0x8F && *(srcPtr+1) < 0xB0)) retVal = FALSE;
if (a == (guchar)0xBF && (*(srcPtr+1) == (guchar) 0xBE || *(srcPtr+1) == 0xBF)) retVal = FALSE; break;
case 0xF0: if (a < (guchar) 0x90) retVal = FALSE; break;
case 0xF4: if (a > (guchar) 0x8F) retVal = FALSE; break;
default: if (a < (guchar) 0x80) retVal = FALSE;
}
case 1: if (*ptr >= (guchar ) 0x80 && *ptr < (guchar) 0xC2) retVal = FALSE;
}
if (*ptr > (guchar) 0xF4)
retVal = FALSE;
//If the string is invalid, set the end to the invalid byte.
if (!retVal && lastRet) {
if (end != NULL)
*end = (gchar*) ptr;
lastRet = FALSE;
}
ptr += length;
if(max_len > 0)
byteCount += length;
}
if (retVal && end != NULL)
*end = (gchar*) ptr;
return retVal;
}
/**
* g_utf8_get_char
* @src: Pointer to UTF-8 encoded character.
*
* Return value: UTF-16 value of @src
**/
gunichar
g_utf8_get_char (const gchar *src)
{
gunichar ch = 0;
guchar* ptr = (guchar*) src;
gushort extraBytesToRead = g_trailingBytesForUTF8 [*ptr];
switch (extraBytesToRead) {
case 5: ch += *ptr++; ch <<= 6; // remember, illegal UTF-8
case 4: ch += *ptr++; ch <<= 6; // remember, illegal UTF-8
case 3: ch += *ptr++; ch <<= 6;
case 2: ch += *ptr++; ch <<= 6;
case 1: ch += *ptr++; ch <<= 6;
case 0: ch += *ptr;
}
ch -= offsetsFromUTF8 [extraBytesToRead];
return ch;
}
glong
g_utf8_strlen (const gchar *str, gssize max)
{
gssize byteCount = 0;
guchar* ptr = (guchar*) str;
glong length = 0;
if (max == 0)
return 0;
else if (max < 0)
byteCount = max;
while (*ptr != 0 && byteCount <= max) {
gssize cLen = g_trailingBytesForUTF8 [*ptr] + 1;
if (max > 0 && (byteCount + cLen) > max)
return length;
ptr += cLen;
length++;
if (max > 0)
byteCount += cLen;
}
return length;
}
+325 -569
View File
@@ -5,613 +5,369 @@
* Atsushi Enomoto <[email protected]>
*
* (C) 2006 Novell, Inc.
* Copyright 2012 Xamarin Inc
*/
#include <stdio.h>
#include <glib.h>
gpointer error_quark = "ERROR";
/*
* Index into the table below with the first byte of a UTF-8 sequence to get
* the number of bytes that are supposed to follow it to complete the sequence.
*
* Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is left
* as-is for anyone who may want to do such conversion, which was allowed in
* earlier algorithms.
*/
const guchar g_utf8_jump_table[256] = {
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, 4,4,4,4,4,4,4,4,5,5,5,5,6,6,1,1
};
static glong utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **error);
static glong utf16_to_utf8_len (const gunichar2 *str, glong len, glong *items_read, GError **error);
gpointer
g_convert_error_quark ()
{
return error_quark;
}
static gunichar*
static gchar *
utf8_case_conv (const gchar *str, gssize len, gboolean upper)
{
glong i, u16len, u32len;
gunichar2 *u16str;
gunichar *u32str;
gchar *u8str;
GError **err = NULL;
u16str = g_utf8_to_utf16 (str, (glong)len, NULL, &u16len, err);
u32str = g_utf16_to_ucs4 (u16str, u16len, NULL, &u32len, err);
for (i = 0; i < u32len; i++) {
u32str [i] = upper ? g_unichar_toupper (u32str [i]) : g_unichar_tolower (u32str [i]);
}
g_free (u16str);
u16str = g_ucs4_to_utf16 (u32str, u32len, NULL, &u16len, err);
u8str = g_utf16_to_utf8 (u16str, u16len, NULL, NULL, err);
g_free (u32str);
g_free (u16str);
return (gunichar*)u8str;
gunichar *ustr;
glong i, ulen;
gchar *utf8;
ustr = g_utf8_to_ucs4_fast (str, (glong) len, &ulen);
for (i = 0; i < ulen; i++)
ustr[i] = upper ? g_unichar_toupper (ustr[i]) : g_unichar_tolower (ustr[i]);
utf8 = g_ucs4_to_utf8 (ustr, ulen, NULL, NULL, NULL);
g_free (ustr);
return utf8;
}
gchar*
gchar *
g_utf8_strup (const gchar *str, gssize len)
{
return (gchar*)utf8_case_conv (str, len, TRUE);
return utf8_case_conv (str, len, TRUE);
}
gchar*
gchar *
g_utf8_strdown (const gchar *str, gssize len)
{
return (gchar*)utf8_case_conv (str, len, FALSE);
return utf8_case_conv (str, len, FALSE);
}
static glong
utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **error)
static gboolean
utf8_validate (const unsigned char *inptr, size_t len)
{
/* It is almost identical to UTF8Encoding.GetCharCount() */
guchar ch, mb_size, mb_remain;
gboolean overlong;
guint32 codepoint;
glong in_pos, ret;
if (len < 0)
len = (glong) strlen (str);
in_pos = 0;
ret = 0;
/* Common case */
for (in_pos = 0; in_pos < len && str [in_pos] < 0x80; in_pos++)
ret ++;
if (in_pos == len) {
if (items_read)
*items_read = in_pos;
return ret;
}
mb_size = 0;
mb_remain = 0;
overlong = 0;
for (; in_pos < len; in_pos++) {
ch = str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
ret++;
else if ((ch & 0xE0) == 0xC0) {
codepoint = ch & 0x1F;
mb_size = 2;
} else if ((ch & 0xF0) == 0xE0) {
codepoint = ch & 0x0F;
mb_size = 3;
} else if ((ch & 0xF8) == 0xF0) {
codepoint = ch & 7;
mb_size = 4;
} else if ((ch & 0xFC) == 0xF8) {
codepoint = ch & 3;
mb_size = 5;
} else if ((ch & 0xFE) == 0xFC) {
codepoint = ch & 3;
mb_size = 6;
} else {
/* invalid utf-8 sequence */
if (error) {
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, "invalid utf-8 sequence at %d (illegal first byte)", in_pos);
if (items_read)
*items_read = in_pos;
return -1;
} else {
codepoint = 0;
mb_remain = mb_size = 0;
}
}
if (mb_size > 1)
mb_remain = mb_size - 1;
} else {
if ((ch & 0xC0) == 0x80) {
codepoint = (codepoint << 6) | (ch & 0x3F);
if (--mb_remain == 0) {
/* multi byte character is fully consumed now. */
if (codepoint < 0x10000) {
switch (mb_size) {
case 2:
overlong = codepoint < 0x7F;
break;
case 3:
overlong = codepoint < 0x7FF;
break;
case 4:
overlong = codepoint < 0xFFFF;
break;
case 5:
overlong = codepoint < 0x1FFFFF;
break;
case 6:
overlong = codepoint < 0x03FFFFFF;
break;
}
if (overlong) {
/* invalid utf-8 sequence (overlong) */
if (error) {
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, "invalid utf-8 sequence at %d (overlong)", in_pos);
if (items_read)
*items_read = in_pos;
return -1;
} else {
codepoint = 0;
mb_remain = 0;
overlong = FALSE;
}
}
else
ret++;
} else if (codepoint < 0x110000) {
/* surrogate pair */
ret += 2;
} else {
/* invalid utf-8 sequence (excess) */
if (error) {
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, "invalid utf-8 sequence at %d (codepoint range excess)", in_pos);
if (items_read)
*items_read = in_pos;
return -1;
} else {
codepoint = 0;
mb_remain = 0;
}
}
mb_size = 0;
}
} else {
/* invalid utf-8 sequence */
if (error) {
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, "invalid utf-8 sequence at %d (illegal following bytes)", in_pos);
if (items_read)
*items_read = in_pos;
return -1;
} else {
codepoint = 0;
mb_remain = mb_size = 0;
}
}
const unsigned char *ptr = inptr + len;
unsigned char c;
/* Everything falls through when TRUE... */
switch (len) {
default:
return FALSE;
case 4:
if ((c = (*--ptr)) < 0x80 || c > 0xBF)
return FALSE;
if ((c == 0xBF || c == 0xBE) && ptr[-1] == 0xBF) {
if (ptr[-2] == 0x8F || ptr[-2] == 0x9F ||
ptr[-2] == 0xAF || ptr[-2] == 0xBF)
return FALSE;
}
}
if (items_read)
*items_read = in_pos;
return ret;
}
gunichar2*
g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **error)
{
/* The conversion logic is almost identical to UTF8Encoding.GetChars(),
but error check is always done at utf8_to_utf16_len() so that
the conversion core below simply resets erroreous bits */
glong utf16_len;
gunichar2 *ret;
guchar ch, mb_size, mb_remain;
guint32 codepoint;
glong in_pos, out_pos;
utf16_len = 0;
mb_size = 0;
mb_remain = 0;
in_pos = 0;
out_pos = 0;
if (error)
*error = NULL;
if (len < 0)
len = (glong) strlen (str);
if (items_read)
*items_read = 0;
if (items_written)
*items_written = 0;
utf16_len = utf8_to_utf16_len (str, len, items_read, error);
if (error)
if (*error)
return NULL;
if (utf16_len < 0)
return NULL;
ret = g_malloc ((1 + utf16_len) * sizeof (gunichar2));
/* Common case */
for (in_pos = 0; in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (ch >= 0x80)
case 3:
if ((c = (*--ptr)) < 0x80 || c > 0xBF)
return FALSE;
case 2:
if ((c = (*--ptr)) < 0x80 || c > 0xBF)
return FALSE;
/* no fall-through in this inner switch */
switch (*inptr) {
case 0xE0: if (c < 0xA0) return FALSE; break;
case 0xED: if (c > 0x9F) return FALSE; break;
case 0xEF: if (c == 0xB7 && (ptr[1] > 0x8F && ptr[1] < 0xB0)) return FALSE;
if (c == 0xBF && (ptr[1] == 0xBE || ptr[1] == 0xBF)) return FALSE;
break;
ret [out_pos++] = ch;
}
for (; in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
ret [out_pos++] = ch;
else if ((ch & 0xE0) == 0xC0) {
codepoint = ch & 0x1F;
mb_size = 2;
} else if ((ch & 0xF0) == 0xE0) {
codepoint = ch & 0x0F;
mb_size = 3;
} else if ((ch & 0xF8) == 0xF0) {
codepoint = ch & 7;
mb_size = 4;
} else if ((ch & 0xFC) == 0xF8) {
codepoint = ch & 3;
mb_size = 5;
} else if ((ch & 0xFE) == 0xFC) {
codepoint = ch & 3;
mb_size = 6;
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
if (mb_size > 1)
mb_remain = mb_size - 1;
} else {
if ((ch & 0xC0) == 0x80) {
codepoint = (codepoint << 6) | (ch & 0x3F);
if (--mb_remain == 0) {
/* multi byte character is fully consumed now. */
if (codepoint < 0x10000) {
ret [out_pos++] = (gunichar2)(codepoint % 0x10000);
} else if (codepoint < 0x110000) {
/* surrogate pair */
codepoint -= 0x10000;
ret [out_pos++] = (gunichar2)((codepoint >> 10) + 0xD800);
ret [out_pos++] = (gunichar2)((codepoint & 0x3FF) + 0xDC00);
} else {
/* invalid utf-8 sequence (excess) */
codepoint = 0;
mb_remain = 0;
}
mb_size = 0;
}
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
case 0xF0: if (c < 0x90) return FALSE; break;
case 0xF4: if (c > 0x8F) return FALSE; break;
default: if (c < 0x80) return FALSE; break;
}
case 1: if (*inptr >= 0x80 && *inptr < 0xC2) return FALSE;
}
ret [out_pos] = 0;
if (items_written)
*items_written = out_pos;
return ret;
if (*inptr > 0xF4)
return FALSE;
return TRUE;
}
gchar*
g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error)
/**
* g_utf8_validate:
* @str: a utf-8 encoded string
* @max_len: max number of bytes to validate (or -1 to validate the entire null-terminated string)
* @end: output parameter to mark the end of the valid input
*
* Checks @utf for being valid UTF-8. @str is assumed to be
* null-terminated. This function is not super-strict, as it will
* allow longer UTF-8 sequences than necessary. Note that Java is
* capable of producing these sequences if provoked. Also note, this
* routine checks for the 4-byte maximum size, but does not check for
* 0x10ffff maximum value.
*
* Return value: %TRUE if @str is valid or %FALSE otherwise.
**/
gboolean
g_utf8_validate (const gchar *str, gssize max_len, const gchar **end)
{
/* The conversion logic is almost identical to UTF8Encoding.GetBytes(),
but error check is always done at utf16_to_utf8_len() so that
the conversion core below simply resets erroreous bits */
glong utf8_len;
gchar *ret;
glong in_pos, out_pos;
gunichar2 ch;
guint32 codepoint = 0;
gboolean surrogate;
in_pos = 0;
out_pos = 0;
surrogate = FALSE;
if (items_read)
*items_read = 0;
if (items_written)
*items_written = 0;
utf8_len = utf16_to_utf8_len (str, len, items_read, error);
if (error)
if (*error)
return NULL;
if (utf8_len < 0)
return NULL;
ret = g_malloc ((1+utf8_len) * sizeof (gchar));
while (len < 0 ? str [in_pos] : in_pos < len) {
ch = str [in_pos];
if (surrogate) {
if (ch >= 0xDC00 && ch <= 0xDFFF) {
codepoint = 0x10000 + (ch - 0xDC00) + ((surrogate - 0xD800) << 10);
surrogate = 0;
} else {
surrogate = 0;
/* invalid surrogate pair */
continue;
}
} else {
/* fast path optimization */
if (ch < 0x80) {
for (; len < 0 ? str [in_pos] : in_pos < len; in_pos++) {
if (str [in_pos] < 0x80)
ret [out_pos++] = (gchar)(str [in_pos]);
else
break;
}
continue;
}
else if (ch >= 0xD800 && ch <= 0xDBFF)
surrogate = ch;
else if (ch >= 0xDC00 && ch <= 0xDFFF) {
/* invalid surrogate pair */
continue;
}
else
codepoint = ch;
}
in_pos++;
if (surrogate != 0)
continue;
if (codepoint < 0x80)
ret [out_pos++] = (gchar) codepoint;
else if (codepoint < 0x0800) {
ret [out_pos++] = (gchar) (0xC0 | (codepoint >> 6));
ret [out_pos++] = (gchar) (0x80 | (codepoint & 0x3F));
} else if (codepoint < 0x10000) {
ret [out_pos++] = (gchar) (0xE0 | (codepoint >> 12));
ret [out_pos++] = (gchar) (0x80 | ((codepoint >> 6) & 0x3F));
ret [out_pos++] = (gchar) (0x80 | (codepoint & 0x3F));
} else {
ret [out_pos++] = (gchar) (0xF0 | (codepoint >> 18));
ret [out_pos++] = (gchar) (0x80 | ((codepoint >> 12) & 0x3F));
ret [out_pos++] = (gchar) (0x80 | ((codepoint >> 6) & 0x3F));
ret [out_pos++] = (gchar) (0x80 | (codepoint & 0x3F));
}
}
ret [out_pos] = 0;
if (items_written)
*items_written = out_pos;
return ret;
}
static glong
utf16_to_utf8_len (const gunichar2 *str, glong len, glong *items_read, GError **error)
{
glong ret, in_pos;
gunichar2 ch;
gboolean surrogate;
ret = 0;
in_pos = 0;
surrogate = FALSE;
while (len < 0 ? str [in_pos] : in_pos < len) {
ch = str [in_pos];
if (surrogate) {
if (ch >= 0xDC00 && ch <= 0xDFFF) {
ret += 4;
} else {
/* invalid surrogate pair */
if (error) {
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, "invalid utf-16 sequence at %d (missing surrogate tail)", in_pos);
if (items_read)
*items_read = in_pos;
return -1;
} /* otherwise just ignore. */
}
surrogate = FALSE;
} else {
/* fast path optimization */
if (ch < 0x80) {
for (; len < 0 ? str [in_pos] : in_pos < len; in_pos++) {
if (str [in_pos] < 0x80)
++ret;
else
break;
}
continue;
}
else if (ch < 0x0800)
ret += 2;
else if (ch >= 0xD800 && ch <= 0xDBFF)
surrogate = TRUE;
else if (ch >= 0xDC00 && ch <= 0xDFFF) {
/* invalid surrogate pair */
if (error) {
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, "invalid utf-16 sequence at %d (missing surrogate head)", in_pos);
if (items_read)
*items_read = in_pos;
return -1;
} /* otherwise just ignore. */
}
else
ret += 3;
}
in_pos++;
}
if (items_read)
*items_read = in_pos;
return ret;
}
static glong
g_ucs4_to_utf16_len (const gunichar *str, glong len, glong *items_read, GError **error)
{
glong retlen = 0;
glong errindex = 0;
const gunichar *lstr = str;
if (!str)
return 0;
while (*lstr != '\0' && len--) {
gunichar ch;
ch = *lstr++;
if (ch <= 0x0000FFFF) {
if (ch >= 0xD800 && ch <= 0xDFFF) {
errindex = (glong)(lstr - str)-1;
if (error)
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
"Invalid sequence in conversion input");
if (items_read)
*items_read = errindex;
return 0;
} else {
retlen++;
}
} else if (ch > 0x10FFFF) {
errindex = (glong)(lstr - str)-1;
if (error)
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
"Character out of range for UTF-16");
if (items_read)
*items_read = errindex;
return 0;
} else {
retlen+=2;
}
}
if (items_read)
*items_read = (glong)(lstr - str);
return retlen;
}
gunichar2*
g_ucs4_to_utf16 (const gunichar *str, glong len, glong *items_read, glong *items_written, GError **error)
{
glong allocsz;
gunichar2 *retstr = 0;
gunichar2 *retch = 0;
glong nwritten = 0;
GError *lerror =0 ;
allocsz = g_ucs4_to_utf16_len (str, len, items_read, &lerror);
if (!lerror) {
retch = retstr = g_malloc ((allocsz+1) * sizeof (gunichar2));
retstr[allocsz] = '\0';
while (*str != '\0' && len--) {
gunichar ch;
ch = *str++;
if (ch <= 0x0000FFFF && (ch < 0xD800 || ch > 0xDFFF)) {
*retch++ = (gunichar2)ch;
nwritten ++;
} else {
ch -= 0x0010000UL;
*retch++ = (gunichar2)((ch >> 10) + 0xD800);
*retch++ = (gunichar2)((ch & 0x3FFUL) + 0xDC00);
nwritten +=2;
}
}
}
if (items_written)
*items_written = nwritten;
if (error)
*error = lerror;
return retstr;
}
static glong
g_utf16_to_ucs4_len (const gunichar2 *str, glong len, glong *items_read, GError **error)
{
glong retlen = 0;
glong errindex = 0;
const gunichar2 *lstr = str;
gunichar2 ch,ch2;
if (!str)
return 0;
while (*lstr != '\0' && len--) {
ch = *lstr++;
if (ch >= 0xD800 && ch <= 0xDBFF) {
if (!len--) {
lstr--;
guchar *inptr = (guchar *) str;
gboolean valid = TRUE;
guint length, min;
gssize n = 0;
if (max_len == 0)
return FALSE;
if (max_len < 0) {
while (*inptr != 0) {
length = g_utf8_jump_table[*inptr];
if (!utf8_validate (inptr, length)) {
valid = FALSE;
break;
}
ch2 = *lstr;
if (ch2 >= 0xDC00 && ch2 <= 0xDFFF) {
lstr++;
} else {
errindex = (glong)(lstr - str);
if (error)
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
"Invalid sequence in conversion input");
if (items_read)
*items_read = errindex;
return 0;
inptr += length;
}
} else {
while (n < max_len) {
if (*inptr == 0) {
/* Note: return FALSE if we encounter nul-byte
* before max_len is reached. */
valid = FALSE;
break;
}
} else {
if (ch >= 0xDC00 && ch <= 0xDFFF) {
errindex = (glong)(lstr - str)-1;
if (error)
g_set_error (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
"Invalid sequence in conversion input");
if (items_read)
*items_read = errindex;
return 0;
length = g_utf8_jump_table[*inptr];
min = MIN (length, max_len - n);
if (!utf8_validate (inptr, min)) {
valid = FALSE;
break;
}
if (min < length) {
valid = FALSE;
break;
}
inptr += length;
n += length;
}
retlen++;
}
if (items_read)
*items_read = (glong)(lstr - str);
return retlen;
if (end != NULL)
*end = (gchar *) inptr;
return valid;
}
gunichar*
g_utf16_to_ucs4 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error)
gunichar
g_utf8_get_char_validated (const gchar *str, gssize max_len)
{
glong allocsz;
gunichar *retstr = 0;
gunichar *retch = 0;
glong nwritten = 0;
GError *lerror =0 ;
gunichar ch,ch2;
unsigned char *inptr = (unsigned char *) str;
gunichar u = *inptr;
int n, i;
if (max_len == 0)
return -2;
if (u < 0x80) {
/* simple ascii case */
return u;
} else if (u < 0xc2) {
return -1;
} else if (u < 0xe0) {
u &= 0x1f;
n = 2;
} else if (u < 0xf0) {
u &= 0x0f;
n = 3;
} else if (u < 0xf8) {
u &= 0x07;
n = 4;
} else if (u < 0xfc) {
u &= 0x03;
n = 5;
} else if (u < 0xfe) {
u &= 0x01;
n = 6;
} else {
return -1;
}
if (max_len > 0) {
if (!utf8_validate (inptr, MIN (max_len, n)))
return -1;
if (max_len < n)
return -2;
} else {
if (!utf8_validate (inptr, n))
return -1;
}
for (i = 1; i < n; i++)
u = (u << 6) | (*++inptr ^ 0x80);
return u;
}
allocsz = g_utf16_to_ucs4_len (str, len, items_read, &lerror);
if (!lerror) {
retch = retstr = g_malloc ((allocsz+1) * sizeof (gunichar));
retstr[allocsz] = '\0';
nwritten = allocsz;
while (*str != '\0' && allocsz--) {
ch = *str++;
if (ch >= 0xD800 && ch <= 0xDBFF) {
ch2 = *str++;
ch = ((ch - (gunichar)0xD800) << 10)
+ (ch2 - (gunichar)0xDC00) + (gunichar)0x0010000UL;
}
*retch++ = ch;
glong
g_utf8_strlen (const gchar *str, gssize max_len)
{
const guchar *inptr = (const guchar *) str;
glong clen = 0, len = 0, n;
if (max_len == 0)
return 0;
if (max_len < 0) {
while (*inptr) {
inptr += g_utf8_jump_table[*inptr];
len++;
}
} else {
while (len < max_len && *inptr) {
n = g_utf8_jump_table[*inptr];
if ((clen + n) > max_len)
break;
inptr += n;
clen += n;
len++;
}
}
return len;
}
if (items_written)
*items_written = nwritten;
if (error)
*error = lerror;
gunichar
g_utf8_get_char (const gchar *src)
{
unsigned char *inptr = (unsigned char *) src;
gunichar u = *inptr;
int n, i;
if (u < 0x80) {
/* simple ascii case */
return u;
} else if (u < 0xe0) {
u &= 0x1f;
n = 2;
} else if (u < 0xf0) {
u &= 0x0f;
n = 3;
} else if (u < 0xf8) {
u &= 0x07;
n = 4;
} else if (u < 0xfc) {
u &= 0x03;
n = 5;
} else {
u &= 0x01;
n = 6;
}
for (i = 1; i < n; i++)
u = (u << 6) | (*++inptr ^ 0x80);
return u;
}
return retstr;
gchar *
g_utf8_find_prev_char (const gchar *str, const gchar *p)
{
while (p > str) {
p--;
if ((*p & 0xc0) != 0xb0)
return (gchar *)p;
}
return NULL;
}
gchar *
g_utf8_prev_char (const gchar *str)
{
const gchar *p = str;
do {
p--;
} while ((*p & 0xc0) == 0xb0);
return (gchar *)p;
}
gchar *
g_utf8_offset_to_pointer (const gchar *str, glong offset)
{
const gchar *p = str;
if (offset > 0) {
do {
p = g_utf8_next_char (p);
offset --;
} while (offset > 0);
}
else if (offset < 0) {
const gchar *jump = str;
do {
// since the minimum size of a character is 1
// we know we can step back at least offset bytes
jump = jump + offset;
// if we land in the middle of a character
// walk to the beginning
while ((*jump & 0xc0) == 0xb0)
jump --;
// count how many characters we've actually walked
// by going forward
p = jump;
do {
p = g_utf8_next_char (p);
offset ++;
} while (p < jump);
} while (offset < 0);
}
return (gchar *)p;
}
glong
g_utf8_pointer_to_offset (const gchar *str, const gchar *pos)
{
const gchar *inptr, *inend;
glong offset = 0;
glong sign = 1;
if (pos == str)
return 0;
if (str < pos) {
inptr = str;
inend = pos;
} else {
inptr = pos;
inend = str;
sign = -1;
}
do {
inptr = g_utf8_next_char (inptr);
offset++;
} while (inptr < inend);
return offset * sign;
}
+3 -2
View File
@@ -9,7 +9,7 @@ int vasprintf(char **ret, const char *fmt, va_list ap)
size_t buflen;
va_list ap2;
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
ap2 = ap;
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
#else
@@ -17,7 +17,7 @@ int vasprintf(char **ret, const char *fmt, va_list ap)
len = vsnprintf(NULL, 0, fmt, ap2);
#endif
if (len > 0 && (buf = malloc((buflen = (size_t) (len + 1)))) != NULL) {
if (len >= 0 && (buf = malloc ((buflen = (size_t) (len + 1)))) != NULL) {
len = vsnprintf(buf, buflen, fmt, ap);
*ret = buf;
} else {
@@ -28,3 +28,4 @@ int vasprintf(char **ret, const char *fmt, va_list ap)
va_end(ap2);
return len;
}
+5 -3
View File
@@ -1,3 +1,5 @@
EXTRA_DIST = UTF-8.txt UTF-16BE.txt UTF-16LE.txt UTF-32BE.txt UTF-32LE.txt
SOURCES = \
test.c \
test.h \
@@ -30,10 +32,10 @@ SOURCES = \
test_eglib_SOURCES = $(SOURCES)
test_eglib_CFLAGS = -Wall -D_FORTIFY_SOURCE=2 -I$(srcdir)/../src -I../src -DDRIVER_NAME=\"EGlib\"
test_eglib_LDADD = ../src/libeglib.la
test_eglib_LDADD = ../src/libeglib.la $(LIBICONV)
run-eglib: all
./test-eglib
srcdir=`readlink -f $(srcdir)` ./test-eglib
if HAVE_GLIB
@@ -45,7 +47,7 @@ test_glib_CFLAGS = `pkg-config --cflags glib-2.0` -DDRIVER_NAME=\"GLib\"
test_glib_LDFLAGS = `pkg-config --libs glib-2.0 gmodule-2.0`
run-glib: all
./test-glib
srcdir=`readlink -f $(srcdir)` ./test-glib
run-both: run-glib run-eglib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+212
View File
@@ -0,0 +1,212 @@
UTF-8 encoded sample plain-text file
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Markus Kuhn [ˈmaʳkʊs kuːn] <http://www.cl.cam.ac.uk/~mgk25/> — 2002-07-25
The ASCII compatible UTF-8 encoding used in this plain-text file
is defined in Unicode, ISO 10646-1, and RFC 2279.
Using Unicode/UTF-8, you can write in emails and source code things such as
Mathematics and sciences:
∮ E⋅da = Q, n → ∞, ∑ f(i) = ∏ g(i), ⎧⎡⎛┌─────┐⎞⎤⎫
⎪⎢⎜│a²+b³ ⎟⎥⎪
∀x∈ℝ: ⌈x⌉ = −⌊−x⌋, α ∧ ¬β = ¬(¬α ∨ β), ⎪⎢⎜│───── ⎟⎥⎪
⎪⎢⎜⎷ c₈ ⎟⎥⎪
ℕ ⊆ ℕ₀ ⊂ ℤ ⊂ ℚ ⊂ ℝ ⊂ ℂ, ⎨⎢⎜ ⎟⎥⎬
⎪⎢⎜ ∞ ⎟⎥⎪
⊥ < a ≠ b ≡ c ≤ d ≪ ⊤ ⇒ (⟦A⟧ ⇔ ⟪B⟫), ⎪⎢⎜ ⎲ ⎟⎥⎪
⎪⎢⎜ ⎳aⁱ-bⁱ⎟⎥⎪
2H₂ + O₂ ⇌ 2H₂O, R = 4.7 kΩ, ⌀ 200 mm ⎩⎣⎝i=1 ⎠⎦⎭
Linguistics and dictionaries:
ði ıntəˈnæʃənəl fəˈnɛtık əsoʊsiˈeıʃn
Y [ˈʏpsilɔn], Yen [jɛn], Yoga [ˈjoːgɑ]
APL:
((V⍳V)=⍳⍴V)/V←,V ⌷←⍳→⍴∆∇⊃‾⍎⍕⌈
Nicer typography in plain text files:
╔══════════════════════════════════════════╗
║ ║
║ • ‘single’ and “double” quotes ║
║ ║
║ • Curly apostrophes: “We’ve been here” ║
║ ║
║ • Latin-1 apostrophe and accents: '´` ║
║ ║
║ • ‚deutsche‘ „Anführungszeichen“ ║
║ ║
║ • †, ‡, ‰, •, 3–4, —, −5/+5, ™, … ║
║ ║
║ • ASCII safety test: 1lI|, 0OD, 8B ║
║ ╭─────────╮ ║
║ • the euro symbol: │ 14.95 € │ ║
║ ╰─────────╯ ║
╚══════════════════════════════════════════╝
Combining characters:
STARGΛ̊TE SG-1, a = v̇ = r̈, a⃑ ⊥ b⃑
Greek (in Polytonic):
The Greek anthem:
Σὲ γνωρίζω ἀπὸ τὴν κόψη
τοῦ σπαθιοῦ τὴν τρομερή,
σὲ γνωρίζω ἀπὸ τὴν ὄψη
ποὺ μὲ βία μετράει τὴ γῆ.
᾿Απ᾿ τὰ κόκκαλα βγαλμένη
τῶν ῾Ελλήνων τὰ ἱερά
καὶ σὰν πρῶτα ἀνδρειωμένη
χαῖρε, ὦ χαῖρε, ᾿Ελευθεριά!
From a speech of Demosthenes in the 4th century BC:
Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν, ὦ ἄνδρες ᾿Αθηναῖοι,
ὅταν τ᾿ εἰς τὰ πράγματα ἀποβλέψω καὶ ὅταν πρὸς τοὺς
λόγους οὓς ἀκούω· τοὺς μὲν γὰρ λόγους περὶ τοῦ
τιμωρήσασθαι Φίλιππον ὁρῶ γιγνομένους, τὰ δὲ πράγματ᾿
εἰς τοῦτο προήκοντα, ὥσθ᾿ ὅπως μὴ πεισόμεθ᾿ αὐτοὶ
πρότερον κακῶς σκέψασθαι δέον. οὐδέν οὖν ἄλλο μοι δοκοῦσιν
οἱ τὰ τοιαῦτα λέγοντες ἢ τὴν ὑπόθεσιν, περὶ ἧς βουλεύεσθαι,
οὐχὶ τὴν οὖσαν παριστάντες ὑμῖν ἁμαρτάνειν. ἐγὼ δέ, ὅτι μέν
ποτ᾿ ἐξῆν τῇ πόλει καὶ τὰ αὑτῆς ἔχειν ἀσφαλῶς καὶ Φίλιππον
τιμωρήσασθαι, καὶ μάλ᾿ ἀκριβῶς οἶδα· ἐπ᾿ ἐμοῦ γάρ, οὐ πάλαι
γέγονεν ταῦτ᾿ ἀμφότερα· νῦν μέντοι πέπεισμαι τοῦθ᾿ ἱκανὸν
προλαβεῖν ἡμῖν εἶναι τὴν πρώτην, ὅπως τοὺς συμμάχους
σώσομεν. ἐὰν γὰρ τοῦτο βεβαίως ὑπάρξῃ, τότε καὶ περὶ τοῦ
τίνα τιμωρήσεταί τις καὶ ὃν τρόπον ἐξέσται σκοπεῖν· πρὶν δὲ
τὴν ἀρχὴν ὀρθῶς ὑποθέσθαι, μάταιον ἡγοῦμαι περὶ τῆς
τελευτῆς ὁντινοῦν ποιεῖσθαι λόγον.
Δημοσθένους, Γ´ ᾿Ολυνθιακὸς
Georgian:
From a Unicode conference invitation:
გთხოვთ ახლავე გაიაროთ რეგისტრაცია Unicode-ის მეათე საერთაშორისო
კონფერენციაზე დასასწრებად, რომელიც გაიმართება 10-12 მარტს,
ქ. მაინცში, გერმანიაში. კონფერენცია შეჰკრებს ერთად მსოფლიოს
ექსპერტებს ისეთ დარგებში როგორიცაა ინტერნეტი და Unicode-ი,
ინტერნაციონალიზაცია და ლოკალიზაცია, Unicode-ის გამოყენება
ოპერაციულ სისტემებსა, და გამოყენებით პროგრამებში, შრიფტებში,
ტექსტების დამუშავებასა და მრავალენოვან კომპიუტერულ სისტემებში.
Russian:
From a Unicode conference invitation:
Зарегистрируйтесь сейчас на Десятую Международную Конференцию по
Unicode, которая состоится 10-12 марта 1997 года в Майнце в Германии.
Конференция соберет широкий круг экспертов по вопросам глобального
Интернета и Unicode, локализации и интернационализации, воплощению и
применению Unicode в различных операционных системах и программных
приложениях, шрифтах, верстке и многоязычных компьютерных системах.
Thai (UCS Level 2):
Excerpt from a poetry on The Romance of The Three Kingdoms (a Chinese
classic 'San Gua'):
[----------------------------|------------------------]
๏ แผ่นดินฮั่นเสื่อมโทรมแสนสังเวช พระปกเกศกองบู๊กู้ขึ้นใหม่
สิบสองกษัตริย์ก่อนหน้าแลถัดไป สององค์ไซร้โง่เขลาเบาปัญญา
ทรงนับถือขันทีเป็นที่พึ่ง บ้านเมืองจึงวิปริตเป็นนักหนา
โฮจิ๋นเรียกทัพทั่วหัวเมืองมา หมายจะฆ่ามดชั่วตัวสำคัญ
เหมือนขับไสไล่เสือจากเคหา รับหมาป่าเข้ามาเลยอาสัญ
ฝ่ายอ้องอุ้นยุแยกให้แตกกัน ใช้สาวนั้นเป็นชนวนชื่นชวนใจ
พลันลิฉุยกุยกีกลับก่อเหตุ ช่างอาเพศจริงหนาฟ้าร้องไห้
ต้องรบราฆ่าฟันจนบรรลัย ฤๅหาใครค้ำชูกู้บรรลังก์ ฯ
(The above is a two-column text. If combining characters are handled
correctly, the lines of the second column should be aligned with the
| character above.)
Ethiopian:
Proverbs in the Amharic language:
ሰማይ አይታረስ ንጉሥ አይከሰስ።
ብላ ካለኝ እንደአባቴ በቆመጠኝ።
ጌጥ ያለቤቱ ቁምጥና ነው።
ደሀ በሕልሙ ቅቤ ባይጠጣ ንጣት በገደለው።
የአፍ ወለምታ በቅቤ አይታሽም።
አይጥ በበላ ዳዋ ተመታ።
ሲተረጉሙ ይደረግሙ።
ቀስ በቀስ፥ ዕንቁላል በእግሩ ይሄዳል።
ድር ቢያብር አንበሳ ያስር።
ሰው እንደቤቱ እንጅ እንደ ጉረቤቱ አይተዳደርም።
እግዜር የከፈተውን ጉሮሮ ሳይዘጋው አይድርም።
የጎረቤት ሌባ፥ ቢያዩት ይስቅ ባያዩት ያጠልቅ።
ሥራ ከመፍታት ልጄን ላፋታት።
ዓባይ ማደሪያ የለው፥ ግንድ ይዞ ይዞራል።
የእስላም አገሩ መካ የአሞራ አገሩ ዋርካ።
ተንጋሎ ቢተፉ ተመልሶ ባፉ።
ወዳጅህ ማር ቢሆን ጨርስህ አትላሰው።
እግርህን በፍራሽህ ልክ ዘርጋ።
Runes:
ᚻᛖ ᚳᚹᚫᚦ ᚦᚫᛏ ᚻᛖ ᛒᚢᛞᛖ ᚩᚾ ᚦᚫᛗ ᛚᚪᚾᛞᛖ ᚾᚩᚱᚦᚹᛖᚪᚱᛞᚢᛗ ᚹᛁᚦ ᚦᚪ ᚹᛖᛥᚫ
(Old English, which transcribed into Latin reads 'He cwaeth that he
bude thaem lande northweardum with tha Westsae.' and means 'He said
that he lived in the northern land near the Western Sea.')
Braille:
⡌⠁⠧⠑ ⠼⠁⠒ ⡍⠜⠇⠑⠹⠰⠎ ⡣⠕⠌
⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠙⠑⠁⠙⠒ ⠞⠕ ⠃⠑⠛⠔ ⠺⠊⠹⠲ ⡹⠻⠑ ⠊⠎ ⠝⠕ ⠙⠳⠃⠞
⠱⠁⠞⠑⠧⠻ ⠁⠃⠳⠞ ⠹⠁⠞⠲ ⡹⠑ ⠗⠑⠛⠊⠌⠻ ⠕⠋ ⠙⠊⠎ ⠃⠥⠗⠊⠁⠇ ⠺⠁⠎
⠎⠊⠛⠝⠫ ⠃⠹ ⠹⠑ ⠊⠇⠻⠛⠹⠍⠁⠝⠂ ⠹⠑ ⠊⠇⠻⠅⠂ ⠹⠑ ⠥⠝⠙⠻⠞⠁⠅⠻⠂
⠁⠝⠙ ⠹⠑ ⠡⠊⠑⠋ ⠍⠳⠗⠝⠻⠲ ⡎⠊⠗⠕⠕⠛⠑ ⠎⠊⠛⠝⠫ ⠊⠞⠲ ⡁⠝⠙
⡎⠊⠗⠕⠕⠛⠑⠰⠎ ⠝⠁⠍⠑ ⠺⠁⠎ ⠛⠕⠕⠙ ⠥⠏⠕⠝ ⠰⡡⠁⠝⠛⠑⠂ ⠋⠕⠗ ⠁⠝⠹⠹⠔⠛ ⠙⠑
⠡⠕⠎⠑ ⠞⠕ ⠏⠥⠞ ⠙⠊⠎ ⠙⠁⠝⠙ ⠞⠕⠲
⡕⠇⠙ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲
⡍⠔⠙⠖ ⡊ ⠙⠕⠝⠰⠞ ⠍⠑⠁⠝ ⠞⠕ ⠎⠁⠹ ⠹⠁⠞ ⡊ ⠅⠝⠪⠂ ⠕⠋ ⠍⠹
⠪⠝ ⠅⠝⠪⠇⠫⠛⠑⠂ ⠱⠁⠞ ⠹⠻⠑ ⠊⠎ ⠏⠜⠞⠊⠊⠥⠇⠜⠇⠹ ⠙⠑⠁⠙ ⠁⠃⠳⠞
⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ ⡊ ⠍⠊⠣⠞ ⠙⠁⠧⠑ ⠃⠑⠲ ⠔⠊⠇⠔⠫⠂ ⠍⠹⠎⠑⠇⠋⠂ ⠞⠕
⠗⠑⠛⠜⠙ ⠁ ⠊⠕⠋⠋⠔⠤⠝⠁⠊⠇ ⠁⠎ ⠹⠑ ⠙⠑⠁⠙⠑⠌ ⠏⠊⠑⠊⠑ ⠕⠋ ⠊⠗⠕⠝⠍⠕⠝⠛⠻⠹
⠔ ⠹⠑ ⠞⠗⠁⠙⠑⠲ ⡃⠥⠞ ⠹⠑ ⠺⠊⠎⠙⠕⠍ ⠕⠋ ⠳⠗ ⠁⠝⠊⠑⠌⠕⠗⠎
⠊⠎ ⠔ ⠹⠑ ⠎⠊⠍⠊⠇⠑⠆ ⠁⠝⠙ ⠍⠹ ⠥⠝⠙⠁⠇⠇⠪⠫ ⠙⠁⠝⠙⠎
⠩⠁⠇⠇ ⠝⠕⠞ ⠙⠊⠌⠥⠗⠃ ⠊⠞⠂ ⠕⠗ ⠹⠑ ⡊⠳⠝⠞⠗⠹⠰⠎ ⠙⠕⠝⠑ ⠋⠕⠗⠲ ⡹⠳
⠺⠊⠇⠇ ⠹⠻⠑⠋⠕⠗⠑ ⠏⠻⠍⠊⠞ ⠍⠑ ⠞⠕ ⠗⠑⠏⠑⠁⠞⠂ ⠑⠍⠏⠙⠁⠞⠊⠊⠁⠇⠇⠹⠂ ⠹⠁⠞
⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲
(The first couple of paragraphs of "A Christmas Carol" by Dickens)
Compact font selection example text:
ABCDEFGHIJKLMNOPQRSTUVWXYZ /0123456789
abcdefghijklmnopqrstuvwxyz £©µÀÆÖÞßéöÿ
–—‘“”„†•…‰™œŠŸž€ ΑΒΓΔΩαβγδω АБВГДабвгд
∀∂∈ℝ∧∪≡∞ ↑↗↨↻⇣ ┐┼╔╘░►☺♀ fi�⑀₂ἠḂӥẄɐː⍎אԱა
Greetings in various languages:
Hello world, Καλημέρα κόσμε, コンニチハ
Box drawing alignment tests: █
▉
╔══╦══╗ ┌──┬──┐ ╭──┬──╮ ╭──┬──╮ ┏━━┳━━┓ ┎┒┏┑ ╷ ╻ ┏┯┓ ┌┰┐ ▊ ╱╲╱╲╳╳╳
║┌─╨─┐║ │╔═╧═╗│ │╒═╪═╕│ │╓─╁─╖│ ┃┌─╂─┐┃ ┗╃╄┙ ╶┼╴╺╋╸┠┼┨ ┝╋┥ ▋ ╲╱╲╱╳╳╳
║│╲ ╱│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╿ │┃ ┍╅╆┓ ╵ ╹ ┗┷┛ └┸┘ ▌ ╱╲╱╲╳╳╳
╠╡ ╳ ╞╣ ├╢ ╟┤ ├┼─┼─┼┤ ├╫─╂─╫┤ ┣┿╾┼╼┿┫ ┕┛┖┚ ┌┄┄┐ ╎ ┏┅┅┓ ┋ ▍ ╲╱╲╱╳╳╳
║│╱ ╲│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╽ │┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▎
║└─╥─┘║ │╚═╤═╝│ │╘═╪═╛│ │╙─╀─╜│ ┃└─╂─┘┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▏
╚══╩══╝ └──┴──┘ ╰──┴──╯ ╰──┴──╯ ┗━━┻━━┛ ▗▄▖▛▀▜ └╌╌┘ ╎ ┗╍╍┛ ┋ ▁▂▃▄▅▆▇█
▝▀▘▙▄▟
+31 -3
View File
@@ -20,6 +20,8 @@ RESULT
test_buildpath ()
{
char *s;
char *buffer = "var/private";
char *dir = "/";
s = g_build_path ("/", "hola///", "//mundo", NULL);
if (strcmp (s, "hola/mundo") != 0)
@@ -99,6 +101,16 @@ test_buildpath ()
return FAILED ("must get a non-NULL return");
if (s [0] != 0)
return FAILED ("must get an empty string");
// This is to test the regression introduced by Levi for the Windows support
// that code errouneously read below the allowed area (in this case dir [-1]).
// and caused all kinds of random errors.
dir = "//";
dir++;
s = g_build_filename (dir, buffer, NULL);
if (s [0] != '/')
return FAILED ("Must have a '/' at the start");
g_free (s);
return OK;
}
@@ -117,15 +129,16 @@ test_buildfname ()
return FAILED ("1 Got wrong result, got: %s", s);
g_free (s);
s = g_build_filename ("/", "a", NULL);
#ifdef G_OS_WIN32
if (strcmp (s, "\\a") != 0)
s = g_build_filename ("C:\\", "a", NULL);
if (strcmp (s, "C:\\a") != 0)
#else
s = g_build_filename ("/", "a", NULL);
if (strcmp (s, "/a") != 0)
#endif
return FAILED ("1 Got wrong result, got: %s", s);
#ifndef OS_WIN32
#ifndef G_OS_WIN32
s = g_build_filename ("/", "foo", "/bar", "tolo/", "/meo/", NULL);
if (strcmp (s, "/foo/bar/tolo/meo/") != 0)
return FAILED ("1 Got wrong result, got: %s", s);
@@ -145,6 +158,11 @@ test_dirname ()
return FAILED ("Expected c:\\home, got %s", s);
g_free (s);
s = g_path_get_dirname ("c:/home/miguel");
if (strcmp (s, "c:/home") != 0)
return FAILED ("Expected c:/home, got %s", s);
g_free (s);
s = g_path_get_dirname ("c:\\home\\dingus\\");
if (strcmp (s, "c:\\home\\dingus") != 0)
return FAILED ("Expected c:\\home\\dingus, got %s", s);
@@ -197,10 +215,20 @@ test_basename ()
return FAILED ("1 Expected dingus, got %s", s);
g_free (s);
s = g_path_get_basename ("c:/home/dingus/");
if (strcmp (s, "dingus") != 0)
return FAILED ("1 Expected dingus, got %s", s);
g_free (s);
s = g_path_get_basename ("c:\\home\\dingus");
if (strcmp (s, "dingus") != 0)
return FAILED ("2 Expected dingus, got %s", s);
g_free (s);
s = g_path_get_basename ("c:/home/dingus");
if (strcmp (s, "dingus") != 0)
return FAILED ("2 Expected dingus, got %s", s);
g_free (s);
#else
s = g_path_get_basename ("");
if (strcmp (s, ".") != 0)
+40 -2
View File
@@ -243,8 +243,8 @@ RESULT ptrarray_sort()
for(i = 0; i < array->len; i++) {
if(array->pdata[i] != letters[i]) {
return FAILED("Array out of order, expected %s got %s",
(gchar *)array->pdata[i], letters[i]);
return FAILED("Array out of order, expected %s got %s at position %d",
letters [i], (gchar *) array->pdata [i], i);
}
}
@@ -253,6 +253,43 @@ RESULT ptrarray_sort()
return OK;
}
static gint ptrarray_sort_compare_with_data (gconstpointer a, gconstpointer b, gpointer user_data)
{
gchar *stra = *(gchar **) a;
gchar *strb = *(gchar **) b;
if (strcmp (user_data, "this is the data for qsort") != 0)
fprintf (stderr, "oops at compare with_data\n");
return strcmp(stra, strb);
}
RESULT ptrarray_sort_with_data ()
{
GPtrArray *array = g_ptr_array_new();
guint i;
gchar *letters [] = { "A", "B", "C", "D", "E" };
g_ptr_array_add(array, letters[4]);
g_ptr_array_add(array, letters[1]);
g_ptr_array_add(array, letters[2]);
g_ptr_array_add(array, letters[0]);
g_ptr_array_add(array, letters[3]);
g_ptr_array_sort_with_data(array, ptrarray_sort_compare_with_data, "this is the data for qsort");
for(i = 0; i < array->len; i++) {
if(array->pdata[i] != letters[i]) {
return FAILED("Array out of order, expected %s got %s at position %d",
letters [i], (gchar *) array->pdata [i], i);
}
}
g_ptr_array_free(array, TRUE);
return OK;
}
RESULT ptrarray_remove_fast()
{
GPtrArray *array = g_ptr_array_new();
@@ -303,6 +340,7 @@ static Test ptrarray_tests [] = {
{"remove", ptrarray_remove},
{"sort", ptrarray_sort},
{"remove_fast", ptrarray_remove_fast},
{"sort_with_data", ptrarray_sort_with_data},
{NULL, NULL}
};
+23 -7
View File
@@ -296,27 +296,37 @@ test_split_set ()
RESULT
test_strreverse ()
{
RESULT res = OK;
gchar *a = g_strdup ("onetwothree");
gchar *a_target = "eerhtowteno";
gchar *b = g_strdup ("onetwothre");
gchar *b_target = "erhtowteno";
gchar *c = g_strdup ("");
gchar *c_target = "";
g_strreverse (a);
if (strcmp (a, a_target)) {
g_free (b);
g_free (a);
return FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", a, a_target);
res = FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", a, a_target);
goto cleanup;
}
g_strreverse (b);
if (strcmp (b, b_target)) {
g_free (b);
g_free (a);
return FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", b, b_target);
res = FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", b, b_target);
goto cleanup;
}
g_strreverse (c);
if (strcmp (c, c_target)) {
res = FAILED("strreverse failed. Expecting: '%s' and got '%s'\n", b, b_target);
goto cleanup;
}
cleanup:
g_free (c);
g_free (b);
g_free (a);
return OK;
return res;
}
RESULT
@@ -404,6 +414,8 @@ test_strstrip ()
RESULT
test_filename_to_uri ()
{
#ifdef G_OS_WIN32
#else
char *s;
urit ("/a", "file:///a");
@@ -422,6 +434,7 @@ test_filename_to_uri ()
urit ("/@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", "file:///@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
errit ("a");
errit ("./hola");
#endif
return OK;
}
@@ -433,6 +446,8 @@ test_filename_to_uri ()
RESULT
test_filename_from_uri ()
{
#ifdef G_OS_WIN32
#else
char *s;
fileit ("file:///a", "/a");
@@ -446,6 +461,7 @@ test_filename_from_uri ()
ferrit ("file:///%");
ferrit ("file:///%0");
ferrit ("file:///%jj");
#endif
return OK;
}
+113 -26
View File
@@ -1,3 +1,5 @@
#include <stdlib.h>
#include "test.h"
/*
@@ -191,7 +193,7 @@ test_utf8_seq ()
GError *error = NULL;
gunichar2 *dst;
printf ("got: %s\n", src);
//printf ("got: %s\n", src);
dst = g_utf8_to_utf16 (src, (glong)strlen (src), &in_read, &out_read, &error);
if (error != NULL){
return error->message;
@@ -238,25 +240,110 @@ test_utf8_to_utf16 ()
return OK;
}
typedef struct {
char *content;
size_t length;
} convert_result_t;
RESULT
test_convert ()
{
gsize n;
char *s = g_convert ("\242\241\243\242\241\243\242\241\243\242\241\243", -1, "UTF-8", "ISO-8859-1", NULL, &n, NULL);
guchar *u = (guchar *) s;
static const char *charsets[] = { "UTF-8", "UTF-16LE", "UTF-16BE", "UTF-32LE", "UTF-32BE" };
gsize length, converted_length, n;
char *content, *converted, *path;
convert_result_t **expected;
GError *err = NULL;
const char *srcdir;
gboolean loaded;
guint i, j, k;
char c;
if (!s)
return FAILED ("Expected 24 bytes, got: NULL");
if (strlen (s) != 24)
return FAILED ("Expected 24 bytes, got: %d", strlen (s));
if (u [1] != 162 || u [2] != 194 ||
u [3] != 161 || u [4] != 194 ||
u [5] != 163 || u [6] != 194)
return FAILED ("Incorrect conversion");
if (!(srcdir = getenv ("srcdir")) && !(srcdir = getenv ("PWD")))
return FAILED ("srcdir not defined!");
g_free (s);
expected = g_malloc (sizeof (convert_result_t *) * G_N_ELEMENTS (charsets));
/* first load all our test samples... */
for (i = 0; i < G_N_ELEMENTS (charsets); i++) {
path = g_strdup_printf ("%s%c%s.txt", srcdir, G_DIR_SEPARATOR, charsets[i]);
loaded = g_file_get_contents (path, &content, &length, &err);
g_free (path);
if (!loaded) {
for (j = 0; j < i; j++) {
g_free (expected[j]->content);
g_free (expected[j]);
}
g_free (expected);
return FAILED ("Failed to load content for %s: %s", charsets[i], err->message);
}
expected[i] = g_malloc (sizeof (convert_result_t));
expected[i]->content = content;
expected[i]->length = length;
}
/* test conversion from every charset to every other charset */
for (i = 0; i < G_N_ELEMENTS (charsets); i++) {
for (j = 0; j < G_N_ELEMENTS (charsets); j++) {
converted = g_convert (expected[i]->content, expected[i]->length, charsets[j],
charsets[i], NULL, &converted_length, NULL);
if (converted == NULL) {
for (k = 0; k < G_N_ELEMENTS (charsets); k++) {
g_free (expected[k]->content);
g_free (expected[k]);
}
g_free (expected);
return FAILED ("Failed to convert from %s to %s: NULL", charsets[i], charsets[j]);
}
if (converted_length != expected[j]->length) {
length = expected[j]->length;
for (k = 0; k < G_N_ELEMENTS (charsets); k++) {
g_free (expected[k]->content);
g_free (expected[k]);
}
g_free (converted);
g_free (expected);
return FAILED ("Failed to convert from %s to %s: expected %u bytes, got %u",
charsets[i], charsets[j], length, converted_length);
}
for (n = 0; n < converted_length; n++) {
if (converted[n] != expected[j]->content[n]) {
c = expected[j]->content[n];
for (k = 0; k < G_N_ELEMENTS (charsets); k++) {
g_free (expected[k]->content);
g_free (expected[k]);
}
g_free (converted);
g_free (expected);
return FAILED ("Failed to convert from %s to %s: expected 0x%x at offset %u, got 0x%x",
charsets[i], charsets[j], c, n, converted[n]);
}
}
g_free (converted);
}
}
for (k = 0; k < G_N_ELEMENTS (charsets); k++) {
g_free (expected[k]->content);
g_free (expected[k]);
}
g_free (expected);
return OK;
}
@@ -293,9 +380,9 @@ ucs4_to_utf16_check_result (const gunichar2 *result_str, const gunichar2 *expect
{
glong i;
if (result_items_read != expected_items_read)
return FAILED("Incorrect number of items read %d", result_items_read);
return FAILED("Incorrect number of items read; expected %d, got %d", expected_items_read, result_items_read);
if (result_items_written != expected_items_written)
return FAILED("Incorrect number of items written %d", result_items_written);
return FAILED("Incorrect number of items written; expected %d, got %d", expected_items_written, result_items_written);
if (result_error && !expect_error)
return FAILED("There should not be an error code.");
if (!result_error && expect_error)
@@ -403,9 +490,9 @@ utf16_to_ucs4_check_result (const gunichar *result_str, const gunichar *expected
{
glong i;
if (result_items_read != expected_items_read)
return FAILED("Incorrect number of items read %d", result_items_read);
return FAILED("Incorrect number of items read; expected %d, got %d", expected_items_read, result_items_read);
if (result_items_written != expected_items_written)
return FAILED("Incorrect number of items written %d", result_items_written);
return FAILED("Incorrect number of items written; expected %d, got %d", expected_items_written, result_items_written);
if (result_error && !expect_error)
return FAILED("There should not be an error code.");
if (!result_error && expect_error)
@@ -449,13 +536,13 @@ test_utf16_to_ucs4 ()
check_result = utf16_to_ucs4_check_result (res, exp1, items_read, 11, items_written, 11, err, FALSE);
if (check_result) return check_result;
g_free (res);
items_read = items_written = 0;
res = g_utf16_to_ucs4 (str2, 0, &items_read, &items_written, &err);
check_result = utf16_to_ucs4_check_result (res, exp2, items_read, 0, items_written, 0, err, FALSE);
if (check_result) return check_result;
g_free (res);
items_read = items_written = 0;
res = g_utf16_to_ucs4 (str2, 1, &items_read, &items_written, &err);
check_result = utf16_to_ucs4_check_result (res, exp2, items_read, 1, items_written, 1, err, FALSE);
@@ -467,32 +554,32 @@ test_utf16_to_ucs4 ()
check_result = utf16_to_ucs4_check_result (res, exp2, items_read, 1, items_written, 1, err, FALSE);
if (check_result) return check_result;
g_free (res);
items_read = items_written = 0;
res = g_utf16_to_ucs4 (str2, 3, &items_read, &items_written, &err);
check_result = utf16_to_ucs4_check_result (res, exp2, items_read, 3, items_written, 2, err, FALSE);
if (check_result) return check_result;
g_free (res);
items_read = items_written = 0;
res = g_utf16_to_ucs4 (str2, 4, &items_read, &items_written, &err);
check_result = utf16_to_ucs4_check_result (res, exp2, items_read, 3, items_written, 2, err, FALSE);
if (check_result) return check_result;
g_free (res);
items_read = items_written = 0;
res = g_utf16_to_ucs4 (str2, 5, &items_read, &items_written, &err);
check_result = utf16_to_ucs4_check_result (res, exp2, items_read, 4, items_written, 0, err, TRUE);
if (check_result) return check_result;
g_free (res);
items_read = items_written = 0;
err = 0;
res = g_utf16_to_ucs4 (str3, 5, &items_read, &items_written, &err);
check_result = utf16_to_ucs4_check_result (res, exp3, items_read, 1, items_written, 0, err, TRUE);
if (check_result) return check_result;
g_free (res);
// This loop tests the bounds of the conversion algorithm
current_read_index = current_write_index = 0;
for (i=0;i<11;i++) {
Vendored Submodule
+1
Submodule external/Newtonsoft.Json added at 471c3e0803.
Vendored Submodule
+1
Submodule external/aspnetwebstack added at 1836deff6a.
Vendored Submodule
+1
Submodule external/cecil added at 54e0a50464.
+2 -2
View File
@@ -18,9 +18,9 @@
## files that should be in the distribution are not mentioned in this
## Makefile.am.
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include doc
SUBDIRS = m4 include doc
INCLUDES = -I$(top_builddir)/.. -I$(top_srcdir)/..
+6 -4
View File
@@ -14,12 +14,12 @@
dnl Process this file with autoconf to produce configure.
AC_PREREQ(2.53)
AC_INIT(libgc-mono, 6.6, [email protected])
AM_INIT_AUTOMAKE(libgc-mono, 6.6, no-define)
AC_PREREQ([2.53])
AC_INIT([libgc-mono], [6.6], [[email protected]])
AM_INIT_AUTOMAKE([1.9 no-define foreign])
AC_CONFIG_SRCDIR(gcj_mlc.c)
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AC_SUBST(PACKAGE)
@@ -122,6 +122,7 @@ case "$THREADS" in
else
THREADDLLIBS="$PTHREAD_LIBS"
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-solaris*)
AC_DEFINE(GC_SOLARIS_THREADS)
@@ -524,6 +525,7 @@ if test x$enable_quiet_build = xyes; then
fi
AC_OUTPUT(Makefile
m4/Makefile
include/Makefile
include/private/Makefile
doc/Makefile,,
+28 -2
View File
@@ -79,7 +79,7 @@ void GC_push_all_stacks() {
kern_return_t r;
GC_thread p;
pthread_t me;
ptr_t lo, hi;
ptr_t lo, hi, altstack_lo, altstack_hi;
#if defined(POWERPC)
ppc_thread_state_t state;
mach_msg_type_number_t thread_state_count = PPC_THREAD_STATE_COUNT;
@@ -252,6 +252,16 @@ void GC_push_all_stacks() {
hi = GC_stackbottom;
else
hi = p->stack_end;
if (p->altstack && lo >= p->altstack && lo <= p->altstack + p->altstack_size) {
altstack_lo = lo;
altstack_hi = p->altstack + p->altstack_size;
lo = (char*)p->stack;
hi = (char*)p->stack + p->stack_size;
} else {
altstack_lo = NULL;
}
#if DEBUG_THREADS
GC_printf3("Darwin: Stack for thread 0x%lx = [%lx,%lx)\n",
(unsigned long) p -> id,
@@ -259,7 +269,10 @@ void GC_push_all_stacks() {
(unsigned long) hi
);
#endif
GC_push_all_stack(lo,hi);
if (lo)
GC_push_all_stack(lo,hi);
if (altstack_lo)
GC_push_all_stack(altstack_lo,altstack_hi);
} /* for(p=GC_threads[i]...) */
} /* for(i=0;i<THREAD_TABLE_SZ...) */
}
@@ -569,6 +582,9 @@ void GC_stop_world()
thread_act_array_t act_list, prev_list;
mach_msg_type_number_t listcount, prevcount;
if (GC_notify_event)
GC_notify_event (GC_EVENT_PRE_STOP_WORLD);
# if DEBUG_THREADS
GC_printf1("Stopping the world from 0x%lx\n", mach_thread_self());
# endif
@@ -639,6 +655,9 @@ void GC_stop_world()
#endif
mach_port_deallocate(my_task, my_thread);
if (GC_notify_event)
GC_notify_event (GC_EVENT_POST_STOP_WORLD);
}
/* Caller holds allocation lock, and has held it continuously since */
@@ -654,6 +673,9 @@ void GC_start_world()
mach_msg_type_number_t listcount;
struct thread_basic_info info;
mach_msg_type_number_t outCount = THREAD_INFO_MAX;
if (GC_notify_event)
GC_notify_event (GC_EVENT_PRE_START_WORLD);
# if DEBUG_THREADS
GC_printf0("World starting\n");
@@ -700,6 +722,10 @@ void GC_start_world()
vm_deallocate(my_task, (vm_address_t)act_list, sizeof(thread_t) * listcount);
mach_port_deallocate(my_task, my_thread);
if (GC_notify_event)
GC_notify_event (GC_EVENT_POST_START_WORLD);
# if DEBUG_THREADS
GC_printf0("World started\n");
# endif
+6
View File
@@ -841,6 +841,12 @@ GC_API GC_PTR GC_is_valid_displacement GC_PROTO((GC_PTR p));
/* Returns 1 if the calling thread is registered with the GC, 0 otherwise */
GC_API int GC_thread_is_registered GC_PROTO((void));
/* Notify the collector about the stack and the altstack of the current thread */
/* STACK/STACK_SIZE is used to determine the stack dimensions when a thread is
* suspended while it is on an altstack.
*/
GC_API void GC_register_altstack GC_PROTO((void *stack, int stack_size, void *altstack, int altstack_size));
/* Safer, but slow, pointer addition. Probably useful mainly with */
/* a preprocessor. Useful only for heap pointers. */
#ifdef GC_DEBUG
+8
View File
@@ -250,6 +250,14 @@
#endif
}
# define GC_TEST_AND_SET_DEFINED
inline static void GC_clear(volatile unsigned int *addr) {
#ifdef HAVE_ARMV6
/* Memory barrier */
__asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory");
#endif
*(addr) = 0;
}
# define GC_CLEAR_DEFINED
# endif /* ARM32 */
# ifdef CRIS
inline static int GC_test_and_set(volatile unsigned int *addr) {
+13 -11
View File
@@ -371,6 +371,8 @@ void GC_print_callers GC_PROTO((struct callinfo info[NFRAMES]));
# define GC_MACH_THREAD_STATE_FLAVOR PPC_THREAD_STATE
# elif defined(I386)
# define GC_MACH_THREAD_STATE_FLAVOR i386_THREAD_STATE
# elif defined(X86_64)
# define GC_MACH_THREAD_STATE_FLAVOR x86_THREAD_STATE64
# else
# define GC_MACH_THREAD_STATE_FLAVOR MACHINE_THREAD_STATE
# endif
@@ -401,9 +403,9 @@ void GC_print_callers GC_PROTO((struct callinfo info[NFRAMES]));
# define ENABLE_SIGNALS()
# else
# define DISABLE_SIGNALS() GC_disable_signals()
void GC_disable_signals();
void GC_disable_signals(void);
# define ENABLE_SIGNALS() GC_enable_signals()
void GC_enable_signals();
void GC_enable_signals(void);
# endif
# endif
@@ -423,8 +425,8 @@ void GC_print_callers GC_PROTO((struct callinfo info[NFRAMES]));
# else
# if defined(GC_SOLARIS_THREADS) || defined(GC_WIN32_THREADS) \
|| defined(GC_PTHREADS)
void GC_stop_world();
void GC_start_world();
void GC_stop_world(void);
void GC_start_world(void);
# define STOP_WORLD() GC_stop_world()
# define START_WORLD() GC_start_world()
# else
@@ -1840,7 +1842,7 @@ void GC_dump GC_PROTO((void));
# ifdef __DMC__
GC_API void GC_noop(...);
# else
GC_API void GC_noop();
GC_API void GC_noop(void*,...);
# endif
# endif
@@ -1929,17 +1931,17 @@ void GC_err_puts GC_PROTO((GC_CONST char *s));
/* GC_notify_all_builder() is called when GC_fl_builder_count */
/* reaches 0. */
extern void GC_acquire_mark_lock();
extern void GC_release_mark_lock();
extern void GC_notify_all_builder();
extern void GC_acquire_mark_lock(void);
extern void GC_release_mark_lock(void);
extern void GC_notify_all_builder(void);
/* extern void GC_wait_builder(); */
extern void GC_wait_for_reclaim();
extern void GC_wait_for_reclaim(void);
extern word GC_fl_builder_count; /* Protected by mark lock. */
# endif /* PARALLEL_MARK || THREAD_LOCAL_ALLOC */
# ifdef PARALLEL_MARK
extern void GC_notify_all_marker();
extern void GC_wait_marker();
extern void GC_notify_all_marker(void);
extern void GC_wait_marker(void);
extern word GC_mark_no; /* Protected by mark lock. */
extern void GC_help_marker(word my_mark_no);
+7 -3
View File
@@ -325,8 +325,10 @@
These aren't used when dyld support is enabled (it is by default) */
# define DATASTART ((ptr_t) get_etext())
# define DATAEND ((ptr_t) get_end())
# define STACKBOTTOM ((ptr_t) 0xc0000000)
# define STACKBOTTOM ((ptr_t) pthread_get_stackaddr_np(pthread_self()))
#ifndef USE_MMAP
# define USE_MMAP
#endif
# define USE_MMAP_ANON
# define USE_ASM_PUSH_REGS
/* This is potentially buggy. It needs more testing. See the comments in
@@ -1202,7 +1204,8 @@
# ifdef NACL
# define OS_TYPE "NACL"
extern int etext[];
# define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff))
//# define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff))
# define DATASTART ((ptr_t)0x10000000)
extern int _end[];
# define DATAEND (_end)
# ifdef STACK_GRAN
@@ -1445,6 +1448,7 @@
# define DYNAMIC_LOADING
extern int _end[];
# define DATAEND (_end)
#pragma weak __data_start
extern int __data_start[];
# define DATASTART ((ptr_t)(__data_start))
# if defined(_MIPS_SZPTR) && (_MIPS_SZPTR == 64)
@@ -2480,7 +2484,7 @@
extern void *ps3_get_mem (size_t size);
# define GET_MEM(bytes) (struct hblk*) ps3_get_mem (bytes)
# else
extern ptr_t GC_unix_get_mem();
extern ptr_t GC_unix_get_mem(word size);
# define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes)
#endif
# endif
+5 -1
View File
@@ -47,6 +47,10 @@ typedef struct GC_Thread_Rep {
/* not need to be sent a signal to stop */
/* it. */
ptr_t stack_end; /* Cold end of the stack. */
ptr_t altstack; /* The start of the altstack if there is one, NULL otherwise */
int altstack_size; /* The size of the altstack if there is one */
ptr_t stack; /* The start of the normal stack */
int stack_size; /* The size of the normal stack */
# ifdef IA64
ptr_t backing_store_end;
ptr_t backing_store_ptr;
@@ -102,7 +106,7 @@ GC_thread GC_lookup_thread(pthread_t id);
void GC_thread_deregister_foreign (void *data);
void GC_stop_init();
void GC_stop_init(void);
extern GC_bool GC_in_thread_creation;
/* We may currently be in thread creation or destruction. */
+7
View File
@@ -0,0 +1,7 @@
Makefile
Makefile.in
libtool.m4
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
+1
View File
@@ -0,0 +1 @@
EXTRA_DIST = $(wildcard *.m4)
+110
View File
@@ -0,0 +1,110 @@
# lib-ld.m4 serial 4 (gettext-0.18)
dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl Subroutines of libtool.m4,
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
dnl with libtool.m4.
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
AC_DEFUN([AC_LIB_PROG_LD_GNU],
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
acl_cv_prog_gnu_ld=yes ;;
*)
acl_cv_prog_gnu_ld=no ;;
esac])
with_gnu_ld=$acl_cv_prog_gnu_ld
])
dnl From libtool-1.4. Sets the variable LD.
AC_DEFUN([AC_LIB_PROG_LD],
[AC_ARG_WITH([gnu-ld],
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
AC_MSG_CHECKING([for ld used by GCC])
case $host in
*-*-mingw*)
# gcc leaves a trailing carriage return which upsets mingw
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
*)
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
esac
case $ac_prog in
# Accept absolute paths.
[[\\/]* | [A-Za-z]:[\\/]*)]
[re_direlt='/[^/][^/]*/\.\./']
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
AC_MSG_CHECKING([for GNU ld])
else
AC_MSG_CHECKING([for non-GNU ld])
fi
AC_CACHE_VAL([acl_cv_path_LD],
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
acl_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
*GNU* | *'with BFD'*)
test "$with_gnu_ld" != no && break ;;
*)
test "$with_gnu_ld" != yes && break ;;
esac
fi
done
IFS="$ac_save_ifs"
else
acl_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
LD="$acl_cv_path_LD"
if test -n "$LD"; then
AC_MSG_RESULT([$LD])
else
AC_MSG_RESULT([no])
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_LIB_PROG_LD_GNU
])
+774
View File
@@ -0,0 +1,774 @@
# lib-link.m4 serial 21 (gettext-0.18)
dnl Copyright (C) 2001-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl From Bruno Haible.
AC_PREREQ([2.54])
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
dnl the libraries corresponding to explicit and implicit dependencies.
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
dnl augments the CPPFLAGS variable.
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
AC_DEFUN([AC_LIB_LINKFLAGS],
[
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
AC_REQUIRE([AC_LIB_RPATH])
pushdef([Name],[translit([$1],[./-], [___])])
pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
AC_LIB_LINKFLAGS_BODY([$1], [$2])
ac_cv_lib[]Name[]_libs="$LIB[]NAME"
ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
])
LIB[]NAME="$ac_cv_lib[]Name[]_libs"
LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
AC_SUBST([LIB]NAME)
AC_SUBST([LTLIB]NAME)
AC_SUBST([LIB]NAME[_PREFIX])
dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
dnl results of this search when this library appears as a dependency.
HAVE_LIB[]NAME=yes
popdef([NAME])
popdef([Name])
])
dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
dnl searches for libname and the libraries corresponding to explicit and
dnl implicit dependencies, together with the specified include files and
dnl the ability to compile and link the specified testcode. The missing-message
dnl defaults to 'no' and may contain additional hints for the user.
dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
[
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
AC_REQUIRE([AC_LIB_RPATH])
pushdef([Name],[translit([$1],[./-], [___])])
pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
dnl accordingly.
AC_LIB_LINKFLAGS_BODY([$1], [$2])
dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
dnl because if the user has installed lib[]Name and not disabled its use
dnl via --without-lib[]Name-prefix, he wants to use it.
ac_save_CPPFLAGS="$CPPFLAGS"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
ac_save_LIBS="$LIBS"
dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
dnl because these -l options might require -L options that are present in
dnl LIBS. -l options benefit only from the -L options listed before it.
dnl Otherwise, add it to the front of LIBS, because it may be a static
dnl library that depends on another static library that is present in LIBS.
dnl Static libraries benefit only from the static libraries listed after
dnl it.
case " $LIB[]NAME" in
*" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
*) LIBS="$LIB[]NAME $LIBS" ;;
esac
AC_TRY_LINK([$3], [$4],
[ac_cv_lib[]Name=yes],
[ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
LIBS="$ac_save_LIBS"
])
if test "$ac_cv_lib[]Name" = yes; then
HAVE_LIB[]NAME=yes
AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
AC_MSG_CHECKING([how to link with lib[]$1])
AC_MSG_RESULT([$LIB[]NAME])
else
HAVE_LIB[]NAME=no
dnl If $LIB[]NAME didn't lead to a usable library, we don't need
dnl $INC[]NAME either.
CPPFLAGS="$ac_save_CPPFLAGS"
LIB[]NAME=
LTLIB[]NAME=
LIB[]NAME[]_PREFIX=
fi
AC_SUBST([HAVE_LIB]NAME)
AC_SUBST([LIB]NAME)
AC_SUBST([LTLIB]NAME)
AC_SUBST([LIB]NAME[_PREFIX])
popdef([NAME])
popdef([Name])
])
dnl Determine the platform dependent parameters needed to use rpath:
dnl acl_libext,
dnl acl_shlibext,
dnl acl_hardcode_libdir_flag_spec,
dnl acl_hardcode_libdir_separator,
dnl acl_hardcode_direct,
dnl acl_hardcode_minus_L.
AC_DEFUN([AC_LIB_RPATH],
[
dnl Tell automake >= 1.10 to complain if config.rpath is missing.
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
. ./conftest.sh
rm -f ./conftest.sh
acl_cv_rpath=done
])
wl="$acl_cv_wl"
acl_libext="$acl_cv_libext"
acl_shlibext="$acl_cv_shlibext"
acl_libname_spec="$acl_cv_libname_spec"
acl_library_names_spec="$acl_cv_library_names_spec"
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
acl_hardcode_direct="$acl_cv_hardcode_direct"
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
dnl Determine whether the user wants rpath handling at all.
AC_ARG_ENABLE([rpath],
[ --disable-rpath do not hardcode runtime library paths],
:, enable_rpath=yes)
])
dnl AC_LIB_FROMPACKAGE(name, package)
dnl declares that libname comes from the given package. The configure file
dnl will then not have a --with-libname-prefix option but a
dnl --with-package-prefix option. Several libraries can come from the same
dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
dnl macro call that searches for libname.
AC_DEFUN([AC_LIB_FROMPACKAGE],
[
pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
define([acl_frompackage_]NAME, [$2])
popdef([NAME])
pushdef([PACK],[$2])
pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
define([acl_libsinpackage_]PACKUP,
m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1])
popdef([PACKUP])
popdef([PACK])
])
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
dnl the libraries corresponding to explicit and implicit dependencies.
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
[
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
dnl Autoconf >= 2.61 supports dots in --with options.
pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)])
dnl By default, look in $includedir and $libdir.
use_additional=yes
AC_LIB_WITH_FINAL_PREFIX([
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
])
AC_ARG_WITH(P_A_C_K[-prefix],
[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
--without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
[
if test "X$withval" = "Xno"; then
use_additional=no
else
if test "X$withval" = "X"; then
AC_LIB_WITH_FINAL_PREFIX([
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
])
else
additional_includedir="$withval/include"
additional_libdir="$withval/$acl_libdirstem"
if test "$acl_libdirstem2" != "$acl_libdirstem" \
&& ! test -d "$withval/$acl_libdirstem"; then
additional_libdir="$withval/$acl_libdirstem2"
fi
fi
fi
])
dnl Search the library and its dependencies in $additional_libdir and
dnl $LDFLAGS. Using breadth-first-seach.
LIB[]NAME=
LTLIB[]NAME=
INC[]NAME=
LIB[]NAME[]_PREFIX=
dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
dnl computed. So it has to be reset here.
HAVE_LIB[]NAME=
rpathdirs=
ltrpathdirs=
names_already_handled=
names_next_round='$1 $2'
while test -n "$names_next_round"; do
names_this_round="$names_next_round"
names_next_round=
for name in $names_this_round; do
already_handled=
for n in $names_already_handled; do
if test "$n" = "$name"; then
already_handled=yes
break
fi
done
if test -z "$already_handled"; then
names_already_handled="$names_already_handled $name"
dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
dnl or AC_LIB_HAVE_LINKFLAGS call.
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
eval value=\"\$HAVE_LIB$uppername\"
if test -n "$value"; then
if test "$value" = yes; then
eval value=\"\$LIB$uppername\"
test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
eval value=\"\$LTLIB$uppername\"
test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
else
dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
dnl that this library doesn't exist. So just drop it.
:
fi
else
dnl Search the library lib$name in $additional_libdir and $LDFLAGS
dnl and the already constructed $LIBNAME/$LTLIBNAME.
found_dir=
found_la=
found_so=
found_a=
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
if test -n "$acl_shlibext"; then
shrext=".$acl_shlibext" # typically: shrext=.so
else
shrext=
fi
if test $use_additional = yes; then
dir="$additional_libdir"
dnl The same code as in the loop below:
dnl First look for a shared library.
if test -n "$acl_shlibext"; then
if test -f "$dir/$libname$shrext"; then
found_dir="$dir"
found_so="$dir/$libname$shrext"
else
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
ver=`(cd "$dir" && \
for f in "$libname$shrext".*; do echo "$f"; done \
| sed -e "s,^$libname$shrext\\\\.,," \
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
| sed 1q ) 2>/dev/null`
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
found_dir="$dir"
found_so="$dir/$libname$shrext.$ver"
fi
else
eval library_names=\"$acl_library_names_spec\"
for f in $library_names; do
if test -f "$dir/$f"; then
found_dir="$dir"
found_so="$dir/$f"
break
fi
done
fi
fi
fi
dnl Then look for a static library.
if test "X$found_dir" = "X"; then
if test -f "$dir/$libname.$acl_libext"; then
found_dir="$dir"
found_a="$dir/$libname.$acl_libext"
fi
fi
if test "X$found_dir" != "X"; then
if test -f "$dir/$libname.la"; then
found_la="$dir/$libname.la"
fi
fi
fi
if test "X$found_dir" = "X"; then
for x in $LDFLAGS $LTLIB[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
case "$x" in
-L*)
dir=`echo "X$x" | sed -e 's/^X-L//'`
dnl First look for a shared library.
if test -n "$acl_shlibext"; then
if test -f "$dir/$libname$shrext"; then
found_dir="$dir"
found_so="$dir/$libname$shrext"
else
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
ver=`(cd "$dir" && \
for f in "$libname$shrext".*; do echo "$f"; done \
| sed -e "s,^$libname$shrext\\\\.,," \
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
| sed 1q ) 2>/dev/null`
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
found_dir="$dir"
found_so="$dir/$libname$shrext.$ver"
fi
else
eval library_names=\"$acl_library_names_spec\"
for f in $library_names; do
if test -f "$dir/$f"; then
found_dir="$dir"
found_so="$dir/$f"
break
fi
done
fi
fi
fi
dnl Then look for a static library.
if test "X$found_dir" = "X"; then
if test -f "$dir/$libname.$acl_libext"; then
found_dir="$dir"
found_a="$dir/$libname.$acl_libext"
fi
fi
if test "X$found_dir" != "X"; then
if test -f "$dir/$libname.la"; then
found_la="$dir/$libname.la"
fi
fi
;;
esac
if test "X$found_dir" != "X"; then
break
fi
done
fi
if test "X$found_dir" != "X"; then
dnl Found the library.
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
if test "X$found_so" != "X"; then
dnl Linking with a shared library. We attempt to hardcode its
dnl directory into the executable's runpath, unless it's the
dnl standard /usr/lib.
if test "$enable_rpath" = no \
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
dnl No hardcoding is needed.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
else
dnl Use an explicit option to hardcode DIR into the resulting
dnl binary.
dnl Potentially add DIR to ltrpathdirs.
dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
haveit=
for x in $ltrpathdirs; do
if test "X$x" = "X$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
ltrpathdirs="$ltrpathdirs $found_dir"
fi
dnl The hardcoding into $LIBNAME is system dependent.
if test "$acl_hardcode_direct" = yes; then
dnl Using DIR/libNAME.so during linking hardcodes DIR into the
dnl resulting binary.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
else
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
dnl Use an explicit option to hardcode DIR into the resulting
dnl binary.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
dnl Potentially add DIR to rpathdirs.
dnl The rpathdirs will be appended to $LIBNAME at the end.
haveit=
for x in $rpathdirs; do
if test "X$x" = "X$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
rpathdirs="$rpathdirs $found_dir"
fi
else
dnl Rely on "-L$found_dir".
dnl But don't add it if it's already contained in the LDFLAGS
dnl or the already constructed $LIBNAME
haveit=
for x in $LDFLAGS $LIB[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-L$found_dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
fi
if test "$acl_hardcode_minus_L" != no; then
dnl FIXME: Not sure whether we should use
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
dnl here.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
else
dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
dnl here, because this doesn't fit in flags passed to the
dnl compiler. So give up. No hardcoding. This affects only
dnl very old systems.
dnl FIXME: Not sure whether we should use
dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
dnl here.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
fi
fi
fi
fi
else
if test "X$found_a" != "X"; then
dnl Linking with a static library.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
else
dnl We shouldn't come here, but anyway it's good to have a
dnl fallback.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
fi
fi
dnl Assume the include files are nearby.
additional_includedir=
case "$found_dir" in
*/$acl_libdirstem | */$acl_libdirstem/)
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
if test "$name" = '$1'; then
LIB[]NAME[]_PREFIX="$basedir"
fi
additional_includedir="$basedir/include"
;;
*/$acl_libdirstem2 | */$acl_libdirstem2/)
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
if test "$name" = '$1'; then
LIB[]NAME[]_PREFIX="$basedir"
fi
additional_includedir="$basedir/include"
;;
esac
if test "X$additional_includedir" != "X"; then
dnl Potentially add $additional_includedir to $INCNAME.
dnl But don't add it
dnl 1. if it's the standard /usr/include,
dnl 2. if it's /usr/local/include and we are using GCC on Linux,
dnl 3. if it's already present in $CPPFLAGS or the already
dnl constructed $INCNAME,
dnl 4. if it doesn't exist as a directory.
if test "X$additional_includedir" != "X/usr/include"; then
haveit=
if test "X$additional_includedir" = "X/usr/local/include"; then
if test -n "$GCC"; then
case $host_os in
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
for x in $CPPFLAGS $INC[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-I$additional_includedir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_includedir"; then
dnl Really add $additional_includedir to $INCNAME.
INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
fi
fi
fi
fi
fi
dnl Look for dependencies.
if test -n "$found_la"; then
dnl Read the .la file. It defines the variables
dnl dlname, library_names, old_library, dependency_libs, current,
dnl age, revision, installed, dlopen, dlpreopen, libdir.
save_libdir="$libdir"
case "$found_la" in
*/* | *\\*) . "$found_la" ;;
*) . "./$found_la" ;;
esac
libdir="$save_libdir"
dnl We use only dependency_libs.
for dep in $dependency_libs; do
case "$dep" in
-L*)
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
dnl But don't add it
dnl 1. if it's the standard /usr/lib,
dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
dnl 3. if it's already present in $LDFLAGS or the already
dnl constructed $LIBNAME,
dnl 4. if it doesn't exist as a directory.
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
haveit=
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
if test -n "$GCC"; then
case $host_os in
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
haveit=
for x in $LDFLAGS $LIB[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
dnl Really add $additional_libdir to $LIBNAME.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
fi
fi
haveit=
for x in $LDFLAGS $LTLIB[]NAME; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
dnl Really add $additional_libdir to $LTLIBNAME.
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
fi
fi
fi
fi
;;
-R*)
dir=`echo "X$dep" | sed -e 's/^X-R//'`
if test "$enable_rpath" != no; then
dnl Potentially add DIR to rpathdirs.
dnl The rpathdirs will be appended to $LIBNAME at the end.
haveit=
for x in $rpathdirs; do
if test "X$x" = "X$dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
rpathdirs="$rpathdirs $dir"
fi
dnl Potentially add DIR to ltrpathdirs.
dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
haveit=
for x in $ltrpathdirs; do
if test "X$x" = "X$dir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
ltrpathdirs="$ltrpathdirs $dir"
fi
fi
;;
-l*)
dnl Handle this in the next round.
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
;;
*.la)
dnl Handle this in the next round. Throw away the .la's
dnl directory; it is already contained in a preceding -L
dnl option.
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
;;
*)
dnl Most likely an immediate library name.
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
;;
esac
done
fi
else
dnl Didn't find the library; assume it is in the system directories
dnl known to the linker and runtime loader. (All the system
dnl directories known to the linker should also be known to the
dnl runtime loader, otherwise the system is severely misconfigured.)
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
fi
fi
fi
done
done
if test "X$rpathdirs" != "X"; then
if test -n "$acl_hardcode_libdir_separator"; then
dnl Weird platform: only the last -rpath option counts, the user must
dnl pass all path elements in one option. We can arrange that for a
dnl single library, but not when more than one $LIBNAMEs are used.
alldirs=
for found_dir in $rpathdirs; do
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
done
dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
acl_save_libdir="$libdir"
libdir="$alldirs"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
else
dnl The -rpath options are cumulative.
for found_dir in $rpathdirs; do
acl_save_libdir="$libdir"
libdir="$found_dir"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
done
fi
fi
if test "X$ltrpathdirs" != "X"; then
dnl When using libtool, the option that works for both libraries and
dnl executables is -R. The -R options are cumulative.
for found_dir in $ltrpathdirs; do
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
done
fi
popdef([P_A_C_K])
popdef([PACKLIBS])
popdef([PACKUP])
popdef([PACK])
popdef([NAME])
])
dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
dnl unless already present in VAR.
dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
dnl contains two or three consecutive elements that belong together.
AC_DEFUN([AC_LIB_APPENDTOVAR],
[
for element in [$2]; do
haveit=
for x in $[$1]; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X$element"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
[$1]="${[$1]}${[$1]:+ }$element"
fi
done
])
dnl For those cases where a variable contains several -L and -l options
dnl referring to unknown libraries and directories, this macro determines the
dnl necessary additional linker options for the runtime path.
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
dnl otherwise linking without libtool is assumed.
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
[
AC_REQUIRE([AC_LIB_RPATH])
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
$1=
if test "$enable_rpath" != no; then
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
dnl Use an explicit option to hardcode directories into the resulting
dnl binary.
rpathdirs=
next=
for opt in $2; do
if test -n "$next"; then
dir="$next"
dnl No need to hardcode the standard /usr/lib.
if test "X$dir" != "X/usr/$acl_libdirstem" \
&& test "X$dir" != "X/usr/$acl_libdirstem2"; then
rpathdirs="$rpathdirs $dir"
fi
next=
else
case $opt in
-L) next=yes ;;
-L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
dnl No need to hardcode the standard /usr/lib.
if test "X$dir" != "X/usr/$acl_libdirstem" \
&& test "X$dir" != "X/usr/$acl_libdirstem2"; then
rpathdirs="$rpathdirs $dir"
fi
next= ;;
*) next= ;;
esac
fi
done
if test "X$rpathdirs" != "X"; then
if test -n ""$3""; then
dnl libtool is used for linking. Use -R options.
for dir in $rpathdirs; do
$1="${$1}${$1:+ }-R$dir"
done
else
dnl The linker is used for linking directly.
if test -n "$acl_hardcode_libdir_separator"; then
dnl Weird platform: only the last -rpath option counts, the user
dnl must pass all path elements in one option.
alldirs=
for dir in $rpathdirs; do
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
done
acl_save_libdir="$libdir"
libdir="$alldirs"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
$1="$flag"
else
dnl The -rpath options are cumulative.
for dir in $rpathdirs; do
acl_save_libdir="$libdir"
libdir="$dir"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
libdir="$acl_save_libdir"
$1="${$1}${$1:+ }$flag"
done
fi
fi
fi
fi
fi
AC_SUBST([$1])
])
+224
View File
@@ -0,0 +1,224 @@
# lib-prefix.m4 serial 7 (gettext-0.18)
dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl From Bruno Haible.
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
dnl require excessive bracketing.
ifdef([AC_HELP_STRING],
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
dnl to access previously installed libraries. The basic assumption is that
dnl a user will want packages to use other packages he previously installed
dnl with the same --prefix option.
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
dnl libraries, but is otherwise very convenient.
AC_DEFUN([AC_LIB_PREFIX],
[
AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST])
AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
dnl By default, look in $includedir and $libdir.
use_additional=yes
AC_LIB_WITH_FINAL_PREFIX([
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
])
AC_LIB_ARG_WITH([lib-prefix],
[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
--without-lib-prefix don't search for libraries in includedir and libdir],
[
if test "X$withval" = "Xno"; then
use_additional=no
else
if test "X$withval" = "X"; then
AC_LIB_WITH_FINAL_PREFIX([
eval additional_includedir=\"$includedir\"
eval additional_libdir=\"$libdir\"
])
else
additional_includedir="$withval/include"
additional_libdir="$withval/$acl_libdirstem"
fi
fi
])
if test $use_additional = yes; then
dnl Potentially add $additional_includedir to $CPPFLAGS.
dnl But don't add it
dnl 1. if it's the standard /usr/include,
dnl 2. if it's already present in $CPPFLAGS,
dnl 3. if it's /usr/local/include and we are using GCC on Linux,
dnl 4. if it doesn't exist as a directory.
if test "X$additional_includedir" != "X/usr/include"; then
haveit=
for x in $CPPFLAGS; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-I$additional_includedir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test "X$additional_includedir" = "X/usr/local/include"; then
if test -n "$GCC"; then
case $host_os in
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
if test -d "$additional_includedir"; then
dnl Really add $additional_includedir to $CPPFLAGS.
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
fi
fi
fi
fi
dnl Potentially add $additional_libdir to $LDFLAGS.
dnl But don't add it
dnl 1. if it's the standard /usr/lib,
dnl 2. if it's already present in $LDFLAGS,
dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
dnl 4. if it doesn't exist as a directory.
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
haveit=
for x in $LDFLAGS; do
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
if test "X$x" = "X-L$additional_libdir"; then
haveit=yes
break
fi
done
if test -z "$haveit"; then
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
if test -n "$GCC"; then
case $host_os in
linux*) haveit=yes;;
esac
fi
fi
if test -z "$haveit"; then
if test -d "$additional_libdir"; then
dnl Really add $additional_libdir to $LDFLAGS.
LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
fi
fi
fi
fi
fi
])
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
dnl acl_final_exec_prefix, containing the values to which $prefix and
dnl $exec_prefix will expand at the end of the configure script.
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
[
dnl Unfortunately, prefix and exec_prefix get only finally determined
dnl at the end of configure.
if test "X$prefix" = "XNONE"; then
acl_final_prefix="$ac_default_prefix"
else
acl_final_prefix="$prefix"
fi
if test "X$exec_prefix" = "XNONE"; then
acl_final_exec_prefix='${prefix}'
else
acl_final_exec_prefix="$exec_prefix"
fi
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
prefix="$acl_save_prefix"
])
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
dnl variables prefix and exec_prefix bound to the values they will have
dnl at the end of the configure script.
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
[
acl_save_prefix="$prefix"
prefix="$acl_final_prefix"
acl_save_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
$1
exec_prefix="$acl_save_exec_prefix"
prefix="$acl_save_prefix"
])
dnl AC_LIB_PREPARE_MULTILIB creates
dnl - a variable acl_libdirstem, containing the basename of the libdir, either
dnl "lib" or "lib64" or "lib/64",
dnl - a variable acl_libdirstem2, as a secondary possible value for
dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
dnl "lib/amd64".
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
[
dnl There is no formal standard regarding lib and lib64.
dnl On glibc systems, the current practice is that on a system supporting
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
dnl the compiler's default mode by looking at the compiler's library search
dnl path. If at least one of its elements ends in /lib64 or points to a
dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
dnl Otherwise we use the default, namely "lib".
dnl On Solaris systems, the current practice is that on a system supporting
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
AC_REQUIRE([AC_CANONICAL_HOST])
acl_libdirstem=lib
acl_libdirstem2=
case "$host_os" in
solaris*)
dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
dnl symlink is missing, so we set acl_libdirstem2 too.
AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
[AC_EGREP_CPP([sixtyfour bits], [
#ifdef _LP64
sixtyfour bits
#endif
], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
])
if test $gl_cv_solaris_64bit = yes; then
acl_libdirstem=lib/64
case "$host_cpu" in
sparc*) acl_libdirstem2=lib/sparcv9 ;;
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
esac
fi
;;
*)
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
if test -n "$searchpath"; then
acl_save_IFS="${IFS= }"; IFS=":"
for searchdir in $searchpath; do
if test -d "$searchdir"; then
case "$searchdir" in
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
*/../ | */.. )
# Better ignore directories of this form. They are misleading.
;;
*) searchdir=`cd "$searchdir" && pwd`
case "$searchdir" in
*/lib64 ) acl_libdirstem=lib64 ;;
esac ;;
esac
fi
done
IFS="$acl_save_IFS"
fi
;;
esac
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
])
+1 -1
View File
@@ -28,7 +28,7 @@
#ifdef __WATCOMC__
void GC_noop(void *p, ...) {}
#else
void GC_noop() {}
void GC_noop(void *p, ...) {}
#endif
/* Single argument version, robust against whole program analysis. */
+8 -1
View File
@@ -2131,7 +2131,14 @@ void GC_unmap_gap(ptr_t start1, word bytes1, ptr_t start2, word bytes2)
len -= free_len;
}
# else
if (len != 0 && munmap(start_addr, len) != 0) ABORT("munmap failed");
if (len != 0) {
/* Immediately remap as above. */
void * result;
result = mmap(start_addr, len, PROT_NONE,
MAP_PRIVATE | MAP_FIXED | OPT_MAP_ANON,
zero_fd, 0/* offset */);
if (result != (void *)start_addr) ABORT("mmap(...PROT_NONE...) failed");
}
GC_unmapped_bytes += len;
# endif
}
+14
View File
@@ -290,6 +290,10 @@ static void pthread_push_all_stacks()
(unsigned long) lo, (unsigned long) hi);
#endif
if (0 == lo) ABORT("GC_push_all_stacks: sp not set!\n");
if (p->altstack && lo >= p->altstack && lo <= p->altstack + p->altstack_size)
hi = p->altstack + p->altstack_size;
/* FIXME: Need to scan the normal stack too, but how ? */
# ifdef STACK_GROWS_UP
/* We got them backwards! */
GC_push_all_stack(hi, lo);
@@ -461,6 +465,7 @@ static void pthread_stop_world()
#else /* NACL */
GC_thread p;
int i;
int num_sleeps = 0;
#if DEBUG_THREADS
GC_printf1("pthread_stop_world: num_threads %d\n", nacl_num_gc_threads - 1);
@@ -470,6 +475,7 @@ static void pthread_stop_world()
while (1) {
#define NACL_PARK_WAIT_NANOSECONDS 100000
#define NANOS_PER_SECOND 1000000000
int num_threads_parked = 0;
struct timespec ts;
int num_used = 0;
@@ -491,6 +497,10 @@ static void pthread_stop_world()
GC_printf1("sleeping waiting for %d threads to park...\n", nacl_num_gc_threads - num_threads_parked - 1);
#endif
nanosleep(&ts, 0);
if (++num_sleeps > NANOS_PER_SECOND / NACL_PARK_WAIT_NANOSECONDS) {
GC_printf1("GC appears stalled waiting for %d threads to park...\n", nacl_num_gc_threads - num_threads_parked - 1);
num_sleeps = 0;
}
}
#endif /* NACL */
@@ -674,10 +684,14 @@ static void pthread_start_world()
GC_printf0("World started\n");
#endif
#else /* NACL */
if (GC_notify_event)
GC_notify_event (GC_EVENT_PRE_START_WORLD);
# if DEBUG_THREADS
GC_printf0("World starting\n");
# endif
nacl_park_threads_now = 0;
if (GC_notify_event)
GC_notify_event (GC_EVENT_POST_START_WORLD);
#endif /* NACL */
}
+44 -4
View File
@@ -69,6 +69,7 @@
# if (defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) || \
defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)) || \
defined(GC_NETBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) || \
defined(GC_FREEBSD_THREADS) && !defined(USE_PTHREAD_SPECIFIC) || \
defined(GC_OPENBSD_THREADS)
# define USE_PTHREAD_SPECIFIC
# endif
@@ -215,6 +216,10 @@ static int GC_setspecific (GC_key_t key, void *value) {
static GC_bool keys_initialized;
static pthread_t main_pthread_self;
static void *main_stack, *main_altstack;
static int main_stack_size, main_altstack_size;
#ifdef MONO_DEBUGGER_SUPPORTED
#include "include/libgc-mono-debugger.h"
#endif
@@ -688,9 +693,14 @@ extern pthread_mutex_t nacl_thread_alloc_lock;
extern __thread int nacl_thread_idx;
extern __thread GC_thread nacl_gc_thread_self;
extern void nacl_pre_syscall_hook();
extern void nacl_post_syscall_hook();
extern void nacl_register_gc_hooks(void (*pre)(), void (*post)());
void nacl_initialize_gc_thread()
{
int i;
nacl_register_gc_hooks(nacl_pre_syscall_hook, nacl_post_syscall_hook);
pthread_mutex_lock(&nacl_thread_alloc_lock);
if (!nacl_thread_parking_inited)
{
@@ -729,7 +739,7 @@ void nacl_shutdown_gc_thread()
/* Caller holds allocation lock. */
GC_thread GC_new_thread(pthread_t id)
{
int hv = ((word)id) % THREAD_TABLE_SZ;
int hv = ((unsigned long)id) % THREAD_TABLE_SZ;
GC_thread result;
static GC_bool first_thread_used = FALSE;
@@ -760,7 +770,7 @@ GC_thread GC_new_thread(pthread_t id)
/* Caller holds allocation lock. */
void GC_delete_thread(pthread_t id)
{
int hv = ((word)id) % THREAD_TABLE_SZ;
int hv = ((unsigned long)id) % THREAD_TABLE_SZ;
register GC_thread p = GC_threads[hv];
register GC_thread prev = 0;
@@ -796,7 +806,7 @@ void GC_delete_thread(pthread_t id)
/* This is OK, but we need a way to delete a specific one. */
void GC_delete_gc_thread(pthread_t id, GC_thread gc_id)
{
int hv = ((word)id) % THREAD_TABLE_SZ;
int hv = ((unsigned long)id) % THREAD_TABLE_SZ;
register GC_thread p = GC_threads[hv];
register GC_thread prev = 0;
@@ -825,7 +835,7 @@ void GC_delete_gc_thread(pthread_t id, GC_thread gc_id)
/* return the most recent one. */
GC_thread GC_lookup_thread(pthread_t id)
{
int hv = ((word)id) % THREAD_TABLE_SZ;
int hv = ((unsigned long)id) % THREAD_TABLE_SZ;
register GC_thread p = GC_threads[hv];
while (p != 0 && !pthread_equal(p -> id, id)) p = p -> next;
@@ -843,6 +853,30 @@ int GC_thread_is_registered (void)
return ptr ? 1 : 0;
}
void GC_register_altstack (void *stack, int stack_size, void *altstack, int altstack_size)
{
GC_thread thread;
LOCK();
thread = (void *)GC_lookup_thread(pthread_self());
if (thread) {
thread->stack = stack;
thread->stack_size = stack_size;
thread->altstack = altstack;
thread->altstack_size = altstack_size;
} else {
/*
* This happens if we are called before GC_thr_init ().
*/
main_pthread_self = pthread_self ();
main_stack = stack;
main_stack_size = stack_size;
main_altstack = altstack;
main_altstack_size = altstack_size;
}
UNLOCK();
}
#ifdef HANDLE_FORK
/* Remove all entries from the GC_threads table, except the */
/* one for the current thread. We need to do this in the child */
@@ -1078,6 +1112,12 @@ void GC_thr_init()
gc_thread_vtable->thread_created (pthread_self (), &t->stop_info.stack_ptr);
# endif
#endif
if (pthread_self () == main_pthread_self) {
t->stack = main_stack;
t->stack_size = main_stack_size;
t->altstack = main_altstack;
t->altstack_size = main_altstack_size;
}
GC_stop_init();
+4
View File
@@ -648,6 +648,10 @@ int GC_thread_register_foreign (void *base_addr)
return 0;
}
void GC_register_altstack (void *stack, int stack_size, void *altstack, int altstack_size)
{
}
/* Solaris 2/Intel uses an initial stack size limit slightly bigger than the
SPARC default of 8 MB. Account for this to warn only if the user has
raised the limit beyond the default.
+4
View File
@@ -85,6 +85,10 @@ int GC_thread_is_registered (void)
#endif
}
void GC_register_altstack (void *stack, int stack_size, void *altstack, int altstack_size)
{
}
/*
* This may be called from DllMain, and hence operates under unusual
* constraints.
Loaded 100 of 9226 files, more files were not shown because too many files have changed in this diff. Show more