mono.git
13 years ago[Socket] Improved ConnectAsync
Gonzalo Paniagua Javier [Tue, 26 Apr 2011 17:47:15 +0000 (13:47 -0400)]
[Socket] Improved ConnectAsync

ConnectAsync() now uses the improved BeginConnect.

13 years agoGet rid of magic UTF8 subtraction table
Jeffrey Stedfast [Tue, 26 Apr 2011 22:25:10 +0000 (18:25 -0400)]
Get rid of magic UTF8 subtraction table

13 years agoImplemented g_utf8_get_char_validated() properly
Jeffrey Stedfast [Tue, 26 Apr 2011 22:23:02 +0000 (18:23 -0400)]
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.

13 years ago[utils] Fix a bug in the lock-free hazard table.
Mark Probst [Tue, 26 Apr 2011 22:19:31 +0000 (00:19 +0200)]
[utils] Fix a bug in the lock-free hazard table.

Missing write barriers in the delayed free table.

13 years agoConsolidated charset conversion routines
Jeffrey Stedfast [Tue, 26 Apr 2011 21:39:26 +0000 (17:39 -0400)]
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).

13 years agoFixed g_build_path() (was failing a test)
Jeffrey Stedfast [Tue, 26 Apr 2011 20:38:19 +0000 (16:38 -0400)]
Fixed g_build_path() (was failing a test)

13 years agoSilence gcc warning and make more robust
Jeffrey Stedfast [Tue, 26 Apr 2011 20:34:49 +0000 (16:34 -0400)]
Silence gcc warning and make more robust

13 years ago[moonlight] Always use INTERNAL_GMCS as it's always there.
Alan McGovern [Tue, 26 Apr 2011 19:37:00 +0000 (20:37 +0100)]
[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.

13 years ago[moonlight] Fix up the bootstrap mcs when building
Alan McGovern [Tue, 26 Apr 2011 17:05:41 +0000 (18:05 +0100)]
[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.

13 years ago[moonlight] Build mcs.exe as part of the moonlight build
Alan McGovern [Tue, 26 Apr 2011 12:38:51 +0000 (13:38 +0100)]
[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.

13 years agoReset the blocking flag as soon as possible.
Gonzalo Paniagua Javier [Tue, 26 Apr 2011 15:01:41 +0000 (11:01 -0400)]
Reset the blocking flag as soon as possible.

13 years ago[socket] Fixed other BeginConnect overloads
Gonzalo Paniagua Javier [Tue, 26 Apr 2011 07:06:30 +0000 (03:06 -0400)]
[socket] Fixed other BeginConnect overloads

The BeginConnect overload taking an IPAddress[] was not really
asynchronous.

13 years agoFail gracefully when CancellationToken has been created uninitialized by user.
Jérémie Laval [Tue, 26 Apr 2011 14:50:37 +0000 (16:50 +0200)]
Fail gracefully when CancellationToken has been created uninitialized by user.

Also add corresponding unit test.

13 years agoAdd CancellationToken unit tests
Jérémie Laval [Tue, 26 Apr 2011 14:38:36 +0000 (16:38 +0200)]
Add CancellationToken unit tests

13 years agoHonors correctly canceled ctor parameter of CancellationToken
Jérémie Laval [Tue, 26 Apr 2011 13:47:33 +0000 (15:47 +0200)]
Honors correctly canceled ctor parameter of CancellationToken

13 years agoMake sure everything that links with eglib also links with libiconv
Jeffrey Stedfast [Tue, 26 Apr 2011 14:24:58 +0000 (10:24 -0400)]
Make sure everything that links with eglib also links with libiconv

13 years agoRemove using of obsolte __TryReadTypeName
Marek Safar [Tue, 26 Apr 2011 11:32:05 +0000 (12:32 +0100)]
Remove using of obsolte __TryReadTypeName

13 years agoUpdate to the latest ikvm.reflection
Marek Safar [Tue, 26 Apr 2011 10:48:08 +0000 (11:48 +0100)]
Update to the latest ikvm.reflection

13 years agoModify fixup_cattrs () to handle a corner case where a cattr is created using a MonoC...
Zoltan Varga [Tue, 26 Apr 2011 11:06:17 +0000 (13:06 +0200)]
Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533.

13 years agoFix monodroid/monotouch build.
Atsushi Eno [Tue, 26 Apr 2011 10:36:23 +0000 (19:36 +0900)]
Fix monodroid/monotouch build.

13 years ago[689593] Unwrap array element type when checking return type type-inference
Marek Safar [Tue, 26 Apr 2011 09:47:49 +0000 (10:47 +0100)]
[689593] Unwrap array element type when checking return type type-inference

13 years ago[Socket] Fix BeginConnect
Gonzalo Paniagua Javier [Tue, 26 Apr 2011 04:00:44 +0000 (00:00 -0400)]
[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.

13 years agoFix compilation in *BSD
Gonzalo Paniagua Javier [Tue, 26 Apr 2011 03:58:43 +0000 (23:58 -0400)]
Fix compilation in *BSD

13 years agoOptimized utf8_case_conv() by not converting strings in stages
Jeffrey Stedfast [Mon, 25 Apr 2011 21:25:42 +0000 (17:25 -0400)]
Optimized utf8_case_conv() by not converting strings in stages

13 years agoIn *AllLines use WriteLine instead of Write.
Gonzalo Paniagua Javier [Mon, 25 Apr 2011 20:21:57 +0000 (16:21 -0400)]
In *AllLines use WriteLine instead of Write.

This fixes bug #689670.

13 years agoDon't unroll the loops unless told to
Jeffrey Stedfast [Mon, 25 Apr 2011 19:29:53 +0000 (15:29 -0400)]
Don't unroll the loops unless told to

13 years agoMake the signature match the header
Geoff Norton [Mon, 25 Apr 2011 19:30:29 +0000 (15:30 -0400)]
Make the signature match the header

13 years agoDon't increment inptr more than we need to
Jeffrey Stedfast [Mon, 25 Apr 2011 18:57:36 +0000 (14:57 -0400)]
Don't increment inptr more than we need to

13 years agoAdd new WP7 properties in HttpWebRequest
Sebastien Pouliot [Mon, 25 Apr 2011 17:31:18 +0000 (13:31 -0400)]
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

13 years agoLog net.tcp transport messages too.
Atsushi Eno [Mon, 25 Apr 2011 09:29:10 +0000 (18:29 +0900)]
Log net.tcp transport messages too.

13 years agoMake our own simple log format actually diagnostics-compatible.
Atsushi Eno [Mon, 25 Apr 2011 09:27:54 +0000 (18:27 +0900)]
Make our own simple log format actually diagnostics-compatible.

So MS ServiceTraceViewer.exe can open our log now.

13 years agoDocument MONO_WCF_TRACE environment variable.
Atsushi Eno [Mon, 25 Apr 2011 07:23:59 +0000 (16:23 +0900)]
Document MONO_WCF_TRACE environment variable.

13 years agominor diagnostic log format brush up.
Atsushi Eno [Mon, 25 Apr 2011 07:13:27 +0000 (16:13 +0900)]
minor diagnostic log format brush up.

13 years agoActual source directory changes after changing namespaces.
Atsushi Eno [Mon, 25 Apr 2011 06:55:22 +0000 (15:55 +0900)]
Actual source directory changes after changing namespaces.

13 years agoMore nettcp namespace changes.
Atsushi Eno [Mon, 25 Apr 2011 06:53:17 +0000 (15:53 +0900)]
More nettcp namespace changes.

13 years agoMove NetTcp namespace to internal one.
Atsushi Eno [Mon, 25 Apr 2011 06:40:47 +0000 (15:40 +0900)]
Move NetTcp namespace to internal one.

13 years agoEnable environment-controled output on non-moon profile too. Add error logging.
Atsushi Eno [Mon, 25 Apr 2011 06:35:03 +0000 (15:35 +0900)]
Enable environment-controled output on non-moon profile too. Add error logging.

13 years agoMerge branch 'master' of github.com:/mono/mono
Chris Toshok [Mon, 25 Apr 2011 04:24:12 +0000 (21:24 -0700)]
Merge branch 'master' of github.com:/mono/mono

13 years ago[eglib] add printf specifiers for [u]int32
Chris Toshok [Mon, 25 Apr 2011 03:51:18 +0000 (20:51 -0700)]
[eglib] add printf specifiers for [u]int32

13 years agoDon't depend on ENOTSUP as it does not exist on Windows.
Jeffrey Stedfast [Sun, 24 Apr 2011 11:16:56 +0000 (07:16 -0400)]
Don't depend on ENOTSUP as it does not exist on Windows.

13 years agoMoved all g_iconv() state updates out of encoders/decoders
Jeffrey Stedfast [Sat, 23 Apr 2011 22:06:08 +0000 (18:06 -0400)]
Moved all g_iconv() state updates out of encoders/decoders

This gives a HUGE performance improvement as well as
simplifying the code.

13 years agoUnroll the loop in encode_utf8()
Jeffrey Stedfast [Sat, 23 Apr 2011 21:48:23 +0000 (17:48 -0400)]
Unroll the loop in encode_utf8()

13 years agoUnroll the loop in decode_utf8() to improve perf
Jeffrey Stedfast [Sat, 23 Apr 2011 21:06:12 +0000 (17:06 -0400)]
Unroll the loop in decode_utf8() to improve perf

13 years agoAvoid endianness swap decisions in the inner loop
Jeffrey Stedfast [Sat, 23 Apr 2011 18:54:49 +0000 (14:54 -0400)]
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.

13 years agoDo not go beyond our string boundaries
Miguel de Icaza [Sat, 23 Apr 2011 16:53:53 +0000 (12:53 -0400)]
Do not go beyond our string boundaries

13 years agoFixed capacity to be unsigned
Jeffrey Stedfast [Sat, 23 Apr 2011 13:09:00 +0000 (09:09 -0400)]
Fixed capacity to be unsigned

Also soptimized new_capacity calculation.

13 years agoDon't override eglib's CFLAGS to add -O0
Jeffrey Stedfast [Sat, 23 Apr 2011 02:29:50 +0000 (22:29 -0400)]
Don't override eglib's CFLAGS to add -O0

13 years agoAnother soptimization for g_convert()
Jeffrey Stedfast [Sat, 23 Apr 2011 02:26:18 +0000 (22:26 -0400)]
Another soptimization for g_convert()

If we need to grow our buffer, instead of growing by 'inleft'
bytes, grow by 2 * inleft bytes.

13 years agoSlight soptimization for utf8/latin1 decoding
Jeffrey Stedfast [Sat, 23 Apr 2011 01:54:10 +0000 (21:54 -0400)]
Slight soptimization for utf8/latin1 decoding

13 years agoFixed Makefile to set srcdir when running tests
Jeffrey Stedfast [Sat, 23 Apr 2011 01:34:58 +0000 (21:34 -0400)]
Fixed Makefile to set srcdir when running tests

Also modified the test to fallback to PWD if srcdir is unset.

13 years agoUpdated EXTRA_DIST for eglib test input files
Jeffrey Stedfast [Fri, 22 Apr 2011 22:33:31 +0000 (18:33 -0400)]
Updated EXTRA_DIST for eglib test input files

13 years agoFixed g_iconv() and g_convert(), improved unit test
Jeffrey Stedfast [Fri, 22 Apr 2011 22:29:44 +0000 (18:29 -0400)]
Fixed g_iconv() and g_convert(), improved unit test

13 years agoRemove unused variable
Gonzalo Paniagua Javier [Fri, 22 Apr 2011 03:29:32 +0000 (23:29 -0400)]
Remove unused variable

13 years agoFixed latin1 decoder (simple unsigned vs signed cast)
Jeffrey Stedfast [Fri, 22 Apr 2011 17:11:19 +0000 (13:11 -0400)]
Fixed latin1 decoder (simple unsigned vs signed cast)

eglib unit tests now pass for g_convert()

13 years agoLog HTTP reply Message too. Make logging customizible on under the moon.
Atsushi Eno [Fri, 22 Apr 2011 17:05:35 +0000 (02:05 +0900)]
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.

13 years agoFix cygwin build.
Zoltan Varga [Fri, 22 Apr 2011 15:47:17 +0000 (17:47 +0200)]
Fix cygwin build.

13 years agoFix processing of double vararg arguments on 32 bit platforms.
Zoltan Varga [Fri, 22 Apr 2011 13:47:11 +0000 (15:47 +0200)]
Fix processing of double vararg arguments on 32 bit platforms.

13 years agoFix compilation
Marek Habersack [Fri, 22 Apr 2011 12:02:14 +0000 (14:02 +0200)]
Fix compilation

13 years ago[asp.net] Do nothing if null SessionStateStoreData is passed to SessionStateServerHan...
Marek Habersack [Fri, 22 Apr 2011 10:34:03 +0000 (12:34 +0200)]
[asp.net] Do nothing if null SessionStateStoreData is passed to SessionStateServerHandler.SetAndReleaseItemExclusive

13 years agoTurn off warn as error for Release as well.
joncham [Fri, 22 Apr 2011 02:54:43 +0000 (22:54 -0400)]
Turn off warn as error for Release as well.

13 years agoFix AOT support for isinst_with_cache wrappers. Fixes #687865.
Zoltan Varga [Fri, 22 Apr 2011 01:40:05 +0000 (03:40 +0200)]
Fix AOT support for isinst_with_cache wrappers. Fixes #687865.

13 years agoDisable vtune profiler by default.
joncham [Fri, 22 Apr 2011 01:18:56 +0000 (21:18 -0400)]
Disable vtune profiler by default.

13 years agoUse SwitchToThread instead of sched_yield on Windows.
joncham [Fri, 22 Apr 2011 01:01:05 +0000 (21:01 -0400)]
Use SwitchToThread instead of sched_yield on Windows.

13 years agoRemove a warning and allow eglib to build with warnings.
joncham [Fri, 22 Apr 2011 00:28:19 +0000 (20:28 -0400)]
Remove a warning and allow eglib to build with warnings.

13 years agoFix a JIT crash when -v -v -v -v is used.
Zoltan Varga [Fri, 22 Apr 2011 01:23:00 +0000 (03:23 +0200)]
Fix a JIT crash when -v -v -v -v is used.

13 years agoMerge branch 'master' of github.com:/mono/mono
Chris Toshok [Fri, 22 Apr 2011 00:03:26 +0000 (17:03 -0700)]
Merge branch 'master' of github.com:/mono/mono

13 years agoImplement a simple g_utf8_get_char
Larry Ewing [Thu, 21 Apr 2011 23:50:38 +0000 (18:50 -0500)]
Implement a simple g_utf8_get_char

13 years agoMerge branch 'master' of github.com:/mono/mono
Chris Toshok [Thu, 21 Apr 2011 19:26:46 +0000 (12:26 -0700)]
Merge branch 'master' of github.com:/mono/mono

13 years ago[utils] Lock-free hazard pointers.
Mark Probst [Thu, 21 Apr 2011 19:06:49 +0000 (21:06 +0200)]
[utils] Lock-free hazard pointers.

By making hazard pointers lock-free we can use them in the garbage
collector.

13 years agoWe support hard breakpoints on arm, not sure why this is here at all
Geoff Norton [Thu, 21 Apr 2011 19:00:42 +0000 (15:00 -0400)]
We support hard breakpoints on arm, not sure why this is here at all

13 years agoMerge branch 'master' of github.com:/mono/mono
Chris Toshok [Thu, 21 Apr 2011 18:24:25 +0000 (11:24 -0700)]
Merge branch 'master' of github.com:/mono/mono

13 years ago[eglib] add g_ascii_strup/g_ascii_toupper
Chris Toshok [Thu, 21 Apr 2011 18:24:05 +0000 (11:24 -0700)]
[eglib] add g_ascii_strup/g_ascii_toupper

13 years agoupdate msvc build
Rodrigo Kumpera [Thu, 21 Apr 2011 17:45:16 +0000 (14:45 -0300)]
update msvc build

13 years agoAdd win32 stub backend for mono-threads
Rodrigo Kumpera [Thu, 21 Apr 2011 17:29:21 +0000 (14:29 -0300)]
Add win32 stub backend for mono-threads

13 years agoOops
Jeffrey Stedfast [Thu, 21 Apr 2011 16:06:16 +0000 (12:06 -0400)]
Oops

13 years agoAdd prototype for g_file_set_contents to glib.h
Jeffrey Stedfast [Thu, 21 Apr 2011 16:05:15 +0000 (12:05 -0400)]
Add prototype for g_file_set_contents to glib.h

13 years agoRevert "[moonlight] Build the mcs compiler as part of the moon build."
Alan McGovern [Thu, 21 Apr 2011 15:13:24 +0000 (16:13 +0100)]
Revert "[moonlight] Build the mcs compiler as part of the moon build."

This is broken, it needs to be done right.

13 years ago[moonlight] Build the mcs compiler as part of the moon build.
Alan McGovern [Thu, 21 Apr 2011 12:49:16 +0000 (13:49 +0100)]
[moonlight] Build the mcs compiler as part of the moon build.

13 years agoFixed g_strjoin*() and g_stpcpy()
Jeffrey Stedfast [Thu, 21 Apr 2011 13:53:23 +0000 (09:53 -0400)]
Fixed g_strjoin*() and g_stpcpy()

13 years ago[asp.net] Inform user about all exceptions thrown during HttpRuntime static initializ...
Marek Habersack [Thu, 21 Apr 2011 13:13:52 +0000 (15:13 +0200)]
[asp.net] Inform user about all exceptions thrown during HttpRuntime static initialization

13 years agoUse XPathNavigator output in WCF diagnostics. Got sorta-valid message trace.
Atsushi Eno [Thu, 21 Apr 2011 12:11:34 +0000 (21:11 +0900)]
Use XPathNavigator output in WCF diagnostics. Got sorta-valid message trace.

13 years agoFix wrapper elements. It should be <TraceData><DataItem>...
Atsushi Eno [Thu, 21 Apr 2011 12:08:36 +0000 (21:08 +0900)]
Fix wrapper elements. It should be <TraceData><DataItem>...

13 years agoXmlWriterTraceListener supports XPathNavigator as non-escaped xml output.
Atsushi Eno [Thu, 21 Apr 2011 11:54:40 +0000 (20:54 +0900)]
XmlWriterTraceListener supports XPathNavigator as non-escaped xml output.

13 years agoDon't warn about uninitialized struct fields
Marek Safar [Thu, 21 Apr 2011 11:40:01 +0000 (12:40 +0100)]
Don't warn about uninitialized struct fields

13 years agoFix WindowsBase test build under 2.0 profile
Marek Safar [Thu, 21 Apr 2011 09:26:58 +0000 (10:26 +0100)]
Fix WindowsBase test build under 2.0 profile

13 years agoUse correct namespace name when adding it to completion list
Marek Safar [Thu, 21 Apr 2011 09:21:22 +0000 (10:21 +0100)]
Use correct namespace name when adding it to completion list

13 years agoRemove support for older LLVM versions.
Zoltan Varga [Thu, 21 Apr 2011 11:00:47 +0000 (13:00 +0200)]
Remove support for older LLVM versions.

13 years agoAdd new test
Marek Safar [Thu, 21 Apr 2011 09:03:42 +0000 (10:03 +0100)]
Add new test

13 years ago[688891] Copy type parameters for base proxy method
Marek Safar [Thu, 21 Apr 2011 08:55:49 +0000 (09:55 +0100)]
[688891] Copy type parameters for base proxy method

13 years agoAdd async keywords
Marek Safar [Thu, 21 Apr 2011 08:55:06 +0000 (09:55 +0100)]
Add async keywords

13 years agoUse xmlns-ignoring XmlDocument derivation for config files. Fixed bug #641935.
Atsushi Eno [Thu, 21 Apr 2011 08:45:35 +0000 (17:45 +0900)]
Use xmlns-ignoring XmlDocument derivation for config files. Fixed bug #641935.

13 years agoRooArray types were rejected as unknown when it is at root. Fixed bug #688414.
Atsushi Eno [Thu, 21 Apr 2011 07:19:15 +0000 (16:19 +0900)]
RooArray types were rejected as unknown when it is at root. Fixed bug #688414.

13 years agoDon't allow compiling with stock LLVM versions, only the Mono LLVM repo at https...
Zoltan Varga [Thu, 21 Apr 2011 00:55:22 +0000 (02:55 +0200)]
Don't allow compiling with stock LLVM versions, only the Mono LLVM repo at https://github.com/mono/llvm is supported.

13 years ago[asp.net] Implemented composite scripts support in System.Web.Extensions
Marek Habersack [Thu, 21 Apr 2011 00:23:33 +0000 (02:23 +0200)]
[asp.net] Implemented composite scripts support in System.Web.Extensions

13 years agoadd crlupdate to spec
Andrew Jorgensen [Wed, 20 Apr 2011 23:04:59 +0000 (17:04 -0600)]
add crlupdate to spec

13 years agoMerge branch 'master' of github.com:/mono/mono
Chris Toshok [Wed, 20 Apr 2011 21:34:25 +0000 (14:34 -0700)]
Merge branch 'master' of github.com:/mono/mono

13 years ago[eglib] add g_hash_table_get_keys/values
Chris Toshok [Wed, 20 Apr 2011 21:30:26 +0000 (14:30 -0700)]
[eglib] add g_hash_table_get_keys/values

13 years agoUse g_rename() instead of rename()
Jeffrey Stedfast [Wed, 20 Apr 2011 21:19:29 +0000 (17:19 -0400)]
Use g_rename() instead of rename()

13 years agoImplemented g_file_set_contents() in eglib
Jeffrey Stedfast [Wed, 20 Apr 2011 21:15:44 +0000 (17:15 -0400)]
Implemented g_file_set_contents() in eglib

13 years agoInclude the m4 dir in the subdirs for `make dist`
Jeffrey Stedfast [Wed, 20 Apr 2011 20:24:35 +0000 (16:24 -0400)]
Include the m4 dir in the subdirs for `make dist`