mono.git
14 years ago2009-09-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Sep 2009 23:48:59 +0000 (23:48 -0000)]
2009-09-06  Zoltan Varga  <vargaz@gmail.com>

* tramp-x86.c (mono_arch_create_trampoline_code): Align the stack
when calling mono_thread_force_interruption_checkpoint ().

svn path=/trunk/mono/; revision=141389

14 years ago2009-09-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Sep 2009 23:46:46 +0000 (23:46 -0000)]
2009-09-06  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_method_compile): Disable llvm when AOT compiling.

* tramp-amd64.c (mono_arch_patch_callsite): Add support for 32 bit ->
64 bit thunks.
(mono_arch_nullify_class_init_trampoline): Read 'buf' instead of 'code'.

* mini-llvm.c (mono_llvm_emit_method): Add a few missing conversions so a
bootstrap could run.

svn path=/trunk/mono/; revision=141388

14 years ago2009-09-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Sep 2009 18:22:35 +0000 (18:22 -0000)]
2009-09-05  Zoltan Varga  <vargaz@gmail.com>

* handles.c (_wapi_handle_real_new): Call _wapi_process_reap () when running
out of shared handes. Fixes #536776.

svn path=/trunk/mono/; revision=141381

14 years ago2009-09-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Sep 2009 18:22:29 +0000 (18:22 -0000)]
2009-09-05  Zoltan Varga  <vargaz@gmail.com>

* process-stress.cs: New stress test for spawning processes.

svn path=/trunk/mono/; revision=141380

14 years ago2009-09-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 5 Sep 2009 17:22:42 +0000 (17:22 -0000)]
2009-09-05  Zoltan Varga  <vargaz@gmail.com>

* processes.c (CreateProcess): Return false and set the error to
ERROR_OUTOFMEMORY when a process handle cannot be created.
(ShellExecuteEx): Propagate an ERROR_OUTOFMEMORY error code. Fixes part of
#536776.

svn path=/trunk/mono/; revision=141379

14 years ago2009-09-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 22:31:10 +0000 (22:31 -0000)]
2009-09-05  Zoltan Varga  <vargaz@gmail.com>

* MemoryMappedFileTest.cs: Add a minimal test for CreateViewAccessor ().

svn path=/trunk/mcs/; revision=141377

14 years ago2009-09-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 22:22:58 +0000 (22:22 -0000)]
2009-09-05  Zoltan Varga  <vargaz@gmail.com>

* MemoryMappedViewAccessor.cs: New net 4.0 class.

* MemoryMappedViewStream.cs: Move the mmap code to MemoryMappedFile.cs,
so it can be used by ViewAccessor as well.

svn path=/trunk/mcs/; revision=141375

14 years ago2009-09-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 21:50:07 +0000 (21:50 -0000)]
2009-09-04  Zoltan Varga  <vargaz@gmail.com>

* corlib.dll.sources: Add System.IO/UnmanagedMemoryAccessor.cs.

svn path=/trunk/mcs/; revision=141374

14 years ago2009-09-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 21:50:00 +0000 (21:50 -0000)]
2009-09-04  Zoltan Varga  <vargaz@gmail.com>

* UnmanagedMemoryAccessor.cs: New net 4.0 class.

svn path=/trunk/mcs/; revision=141373

14 years ago2009-09-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 21:49:51 +0000 (21:49 -0000)]
2009-09-04  Zoltan Varga  <vargaz@gmail.com>

* SafeBuffer.cs: Mark specific methods as non-cls compliant instead of
the whole class.

svn path=/trunk/mcs/; revision=141372

14 years ago2009-09-04 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 4 Sep 2009 21:38:17 +0000 (21:38 -0000)]
2009-09-04  Marek Habersack  <mhabersack@novell.com>

* HttpRuntime.cs: retrieve real Mono version from the runtime and
store it in the MonoVersion internal static property.

svn path=/trunk/mcs/; revision=141370

14 years ago2009-09-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 21:28:31 +0000 (21:28 -0000)]
2009-09-04  Zoltan Varga  <vargaz@gmail.com>

* corlib.dll.sources: Add System.Runtime.InteropServices/SafeBuffer.cs.

svn path=/trunk/mcs/; revision=141369

14 years ago2009-09-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 21:28:17 +0000 (21:28 -0000)]
2009-09-04  Zoltan Varga  <vargaz@gmail.com>

* SafeBuffer.cs: New net 4.0 class.

svn path=/trunk/mcs/; revision=141368

14 years ago2009-09-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 21:23:36 +0000 (21:23 -0000)]
2009-09-04  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Set callbacks.get_runtime_build_info ().

svn path=/trunk/mono/; revision=141367

14 years ago2009-09-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 4 Sep 2009 21:23:29 +0000 (21:23 -0000)]
2009-09-04  Zoltan Varga  <vargaz@gmail.com>

* object-internals.h (MonoRuntimeCallbacks): Add a 'get_runtime_build_info' callback.

* object.c (mono_get_runtime_callbacks): New helper function to return
the runtime callbacks.

* icall.c (ves_icall_Mono_Runtime_GetDisplayName): Use the result of
mono_get_runtime_build_info () as the display name.

svn path=/trunk/mono/; revision=141366

14 years ago * Makefile: Also rsync dblinq2007/examples sources.
Jonathan Pryor [Fri, 4 Sep 2009 20:50:26 +0000 (20:50 -0000)]
* Makefile: Also rsync dblinq2007/examples sources.
* build/DbLinq.Sqlite_test_mono_strict.dll.sources: Added; .sources
  file to build build/DbLinq.Sqlite_test_mono_strict.dll, the
  "end-to-end" unit tests for SQLite using Mono.Data.Sqlite.
* build/Makefile: Added; builds all "end-to-end" unit tests.
* examples/**/*: Sync with DbLinq r1217; includes sources needed for
  end-to-end tests located in 'build'.

svn path=/trunk/mcs/; revision=141365

14 years ago2009-09-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 4 Sep 2009 20:35:29 +0000 (20:35 -0000)]
2009-09-04 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: make the Sleep() alertable to prevent delays exiting
applications that take less than 2s to execute.
Bug #524984 fixed.

svn path=/trunk/mono/; revision=141363

14 years ago2009-09-04 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 4 Sep 2009 19:13:17 +0000 (19:13 -0000)]
2009-09-04  Miguel de Icaza  <miguel@novell.com>

* TermInfoDriver.cs: Handle a few more key combinations.

svn path=/trunk/mcs/; revision=141360

14 years ago2009-09-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 4 Sep 2009 17:35:08 +0000 (17:35 -0000)]
2009-09-04 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConnection.cs: if the request has already finished reading, don't
throw ObjectDisposedException here, just return as if nothing
happened. Fixes bug #312968.

svn path=/trunk/mcs/; revision=141346

14 years ago * src/**/*: Sync with DbLinq r1217. This removes a slew of
Jonathan Pryor [Fri, 4 Sep 2009 17:22:41 +0000 (17:22 -0000)]
* src/**/*: Sync with DbLinq r1217.  This removes a slew of
  FieldAccessExceptions when running the DbLinq unit tests.

svn path=/trunk/mcs/; revision=141344

14 years agodont crash is config is null
Geoff Norton [Fri, 4 Sep 2009 17:21:45 +0000 (17:21 -0000)]
dont crash is config is null

svn path=/trunk/mcs/; revision=141343

14 years ago2009-09-04 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 4 Sep 2009 16:05:39 +0000 (16:05 -0000)]
2009-09-04  Marek Habersack  <mhabersack@novell.com>

* HttpRuntime.cs: detect (and parse if possible) real Mono version
and make it available via internal, static property
MonoVersion. MonoVersionParsed property tells whether
Mono.Runtime.GetDisplayName returned string in a format we
understood.

* HttpException.cs: report real Mono version when backtrace is
displayed.

svn path=/trunk/mcs/; revision=141339

14 years agoAvoid nullref in 2.0 too
Gonzalo Paniagua Javier [Fri, 4 Sep 2009 15:15:05 +0000 (15:15 -0000)]
Avoid nullref in 2.0 too

svn path=/trunk/mcs/; revision=141334

14 years agoNew test.
Marek Safar [Fri, 4 Sep 2009 15:00:02 +0000 (15:00 -0000)]
New test.

svn path=/trunk/mcs/; revision=141332

14 years ago2009-09-04 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 4 Sep 2009 14:59:38 +0000 (14:59 -0000)]
2009-09-04  Marek Safar  <marek.safar@gmail.com>

* statement.cs, ecore.cs: Removed error reporting from emit code.

svn path=/trunk/mcs/; revision=141331

14 years ago2009-09-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 4 Sep 2009 13:51:22 +0000 (13:51 -0000)]
2009-09-04  Atsushi Enomoto  <atsushi@ximian.com>

* OperationInvokerHandler.cs, ReplyHandler.cs :
  - Eliminate ReplyHandler use. What is does is simple reply, while
    it brings inconsistency between sync and async models.
    What reply handler used to do are now integrated.
  - Support ErrorHandlers and InputSessionShutdownHandlers.
    Actually ErrorHandlers were processed at wrong place and they
    weren't called where they are expected.
* InputOrReplyRequestProcessor.cs : hence eliminated ReplyHandler.
* BaseRequestProcessor.cs : add FIXME notes on ErrorHandlers.

svn path=/trunk/mcs/; revision=141326

14 years ago2009-09-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 4 Sep 2009 10:43:30 +0000 (10:43 -0000)]
2009-09-04  Atsushi Enomoto  <atsushi@ximian.com>

* OutgoingWebResponseContext.cs : add missing methods.

svn path=/trunk/mcs/; revision=141317

14 years agoNew test.
Marek Safar [Fri, 4 Sep 2009 10:42:13 +0000 (10:42 -0000)]
New test.

svn path=/trunk/mcs/; revision=141316

14 years ago2009-09-04 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 4 Sep 2009 10:42:01 +0000 (10:42 -0000)]
2009-09-04  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay, parameter.cs: Moved parser check out of constructor

svn path=/trunk/mcs/; revision=141315

14 years ago2009-09-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 4 Sep 2009 10:41:45 +0000 (10:41 -0000)]
2009-09-04  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs : remove obsoleted method.

svn path=/trunk/mcs/; revision=141314

14 years ago2009-09-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 4 Sep 2009 09:55:04 +0000 (09:55 -0000)]
2009-09-04  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : URI trailing '/' can be added only when the
  relative URI is non-empty. Do not make http://host/foo.svc as
  http://host/foo.svc/ , it's not a directory.

* SvcHttpHandler.cs : set Uri property based on baseAddresses and
  path, to pick those endpoints that are added at custom factories.

svn path=/trunk/mcs/; revision=141307

14 years ago2009-09-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 4 Sep 2009 09:06:47 +0000 (09:06 -0000)]
2009-09-04  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBaseTest.cs : a few more base address test.
  Remove NotWorking marks.

svn path=/trunk/mcs/; revision=141305

14 years ago2009-09-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 4 Sep 2009 08:44:18 +0000 (08:44 -0000)]
2009-09-04  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : add AddBaseAddress(). BaseAddresses must be
  non-null.

* ServiceHostBaseTest.cs : added test for AddBaseAddress().

svn path=/trunk/mcs/; revision=141301

14 years ago2009-09-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 4 Sep 2009 07:45:49 +0000 (07:45 -0000)]
2009-09-04  Atsushi Enomoto  <atsushi@ximian.com>

* WebScriptServiceHostFactory.cs : endpoints are automatically added
  and if they are added through configuration, it is an error
  (as documented).

svn path=/trunk/mcs/; revision=141294

14 years ago2009-09-03 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 3 Sep 2009 19:06:26 +0000 (19:06 -0000)]
2009-09-03  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs, expression.cs, statement.cs, cs-parser.jay: Moved
parser checks out of constructors.

svn path=/trunk/mcs/; revision=141280

14 years ago2009-09-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Sep 2009 18:00:48 +0000 (18:00 -0000)]
2009-09-03  Ivan N. Zlatev  <contact@i-nz.net>

* DataColumnPropertyDescriptor.cs, DataView.cs: Not browsable if Hidden.
[Fixes the second part of bug #536547]

svn path=/trunk/mcs/; revision=141272

14 years ago2009-09-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 3 Sep 2009 17:56:32 +0000 (17:56 -0000)]
2009-09-03  Zoltan Varga  <vargaz@gmail.com>

* pinvoke3.cs libtest.c: Add a test for #481559.

svn path=/trunk/mono/; revision=141269

14 years ago2009-09-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 3 Sep 2009 17:56:25 +0000 (17:56 -0000)]
2009-09-03  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (emit_marshal_array): Call conv.ovf.i on the array parameter
argument, since NEWARR expects a native int. Fixes #481559.

svn path=/trunk/mono/; revision=141268

14 years ago2009-09-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 3 Sep 2009 17:48:48 +0000 (17:48 -0000)]
2009-09-03  Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_MonoMethod_GetDllImportAttribute): Guard
against broken SRE methods.

svn path=/trunk/mono/; revision=141267

14 years ago2009-09-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 3 Sep 2009 17:48:38 +0000 (17:48 -0000)]
2009-09-03  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_type_get_full): Don't call mono_metadata_free_type on
a NULL variable. Abort early on failure.

svn path=/trunk/mono/; revision=141266

14 years ago2009-09-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 3 Sep 2009 17:48:27 +0000 (17:48 -0000)]
2009-09-03  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (can_access_type): Fail visibility test for non nested
types with nested visibility.

svn path=/trunk/mono/; revision=141265

14 years ago2009-09-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Thu, 3 Sep 2009 16:32:22 +0000 (16:32 -0000)]
2009-09-03  Ivan N. Zlatev  <contact@i-nz.net>

* BindingSource.cs: Implement support for chained data sources.
* ListBindingHelper.cs: Add support for ICurrencyManagerProvider and
clean up.
[Fixes part of bug #536547]

svn path=/trunk/mcs/; revision=141261

14 years ago2009-09-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 3 Sep 2009 16:14:27 +0000 (16:14 -0000)]
2009-09-03  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
of the method to
mono_breakpoint_clean_code () when using LLVM as the prologues generated by
LLVM might be very short.

svn path=/trunk/mono/; revision=141260

14 years ago2009-09-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 3 Sep 2009 16:14:20 +0000 (16:14 -0000)]
2009-09-03  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
of the method to
mono_breakpoint_clean_code () when using LLVM as the prologues generated by
LLVM might be very short.

svn path=/trunk/mono/; revision=141259

14 years agotypo
Gonzalo Paniagua Javier [Thu, 3 Sep 2009 15:07:06 +0000 (15:07 -0000)]
typo

svn path=/trunk/mono/; revision=141254

14 years agoWe need the g_free symbol in the library
Gonzalo Paniagua Javier [Thu, 3 Sep 2009 15:06:28 +0000 (15:06 -0000)]
We need the g_free symbol in the library

svn path=/trunk/mono/; revision=141253

14 years ago2009-09-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 3 Sep 2009 14:46:13 +0000 (14:46 -0000)]
2009-09-03  Zoltan Varga  <vargaz@gmail.com>

* mini-x86.c (mono_arch_output_basic_block): Maintain stack alignment
in OP_THROW/RETHROW.

* exceptions-x86.c: Rewrite the throw trampolines so they maintain stack
alignment on osx.

svn path=/trunk/mono/; revision=141250

14 years agoFix the VS build. Part 2/2
Gonzalo Paniagua Javier [Thu, 3 Sep 2009 14:42:17 +0000 (14:42 -0000)]
Fix the VS build. Part 2/2

svn path=/trunk/mono/; revision=141249

14 years agoFix the MSVC build. Part 1/2.
Gonzalo Paniagua Javier [Thu, 3 Sep 2009 14:41:31 +0000 (14:41 -0000)]
Fix the MSVC build. Part 1/2.

svn path=/trunk/mono/; revision=141248

14 years agoCompilation fix: typo
Marek Habersack [Thu, 3 Sep 2009 13:13:38 +0000 (13:13 -0000)]
Compilation fix: typo

svn path=/trunk/mcs/; revision=141245

14 years ago2009-09-03 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 3 Sep 2009 12:10:36 +0000 (12:10 -0000)]
2009-09-03  Jb Evain  <jbevain@novell.com>

* ExpressionTest_Constant.cs: add test to emit dbnull constants.

svn path=/trunk/mcs/; revision=141242

14 years ago2009-09-03 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 3 Sep 2009 12:10:09 +0000 (12:10 -0000)]
2009-09-03  Jb Evain  <jbevain@novell.com>

* ConstantExpression.cs (Emit): add support to emit DBNull values.

svn path=/trunk/mcs/; revision=141241

14 years ago2009-09-03 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 3 Sep 2009 12:00:59 +0000 (12:00 -0000)]
2009-09-03  Jb Evain  <jbevain@novell.com>

* ExpressionTest_Constant.cs: add test to emit DateTime constants.

svn path=/trunk/mcs/; revision=141239

14 years ago2009-09-03 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 3 Sep 2009 12:00:32 +0000 (12:00 -0000)]
2009-09-03  Jb Evain  <jbevain@novell.com>

* ConstantExpression.cs (Emit): add support for emitting
DateTime constants.

svn path=/trunk/mcs/; revision=141238

14 years ago2009-09-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Sep 2009 11:34:45 +0000 (11:34 -0000)]
2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : move DispatcherBuilder out from ServiceHostBase.

svn path=/trunk/mcs/; revision=141236

14 years ago2009-09-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Sep 2009 11:08:35 +0000 (11:08 -0000)]
2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>

* SvcHttpHandler.cs : apply configuration, and if there is still no
  endpoint, then add default one.

svn path=/trunk/mcs/; revision=141230

14 years ago2009-09-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Sep 2009 10:51:59 +0000 (10:51 -0000)]
2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : on service contract lookup, do not always
  expect contract name to match type name.
* ServiceHost.cs : remove extra local var.

svn path=/trunk/mcs/; revision=141229

14 years ago2009-09-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Sep 2009 10:49:35 +0000 (10:49 -0000)]
2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>

* SvcHttpHandler.cs : another URL to make relative.

svn path=/trunk/mcs/; revision=141227

14 years ago2009-09-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Sep 2009 10:13:08 +0000 (10:13 -0000)]
2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>

* SvcHttpHandlerFactory.cs : some GetHandler changes.
* SvcHttpHandler.cs : significant changes on receiver structure. Now
  ProcessRequest() stores pending requests (this might be extraneous,
  but maybe useful when it implements async handler). Also removed
  reply_channel field as it may become to handle multiple requests.
* HttpChannelListener.cs : bind to corresponding SvcHttpHandler.
* AspNetReplyChannel.cs : make it receive requests like
  HttpReplyChannel (for HttpListener) to make them consistent.

svn path=/trunk/mcs/; revision=141224

14 years agoFix the build.
Zoltan Varga [Thu, 3 Sep 2009 09:57:55 +0000 (09:57 -0000)]
Fix the build.

svn path=/trunk/mono/; revision=141221

14 years ago2009-09-03 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 3 Sep 2009 09:57:31 +0000 (09:57 -0000)]
2009-09-03  Marek Habersack  <mhabersack@novell.com>

* AppResourcesCompiler.cs: SanitizeResourceName uses VB/C# rules
to attempt to create valid identifiers from resource
names. Identifier is also escaped by the CodeDOM provider before
returning. Possible fix for bug #536364

svn path=/trunk/mcs/; revision=141220

14 years ago2009-09-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Sep 2009 09:52:07 +0000 (09:52 -0000)]
2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>

* AspNetRequestContext.cs, HttpRequestContext.cs :
  fix NRE on HttpListenerContext for AspNetRequestContext (mismatch)
  by splitting HttpListener-based context out from common code base.

svn path=/trunk/mcs/; revision=141219

14 years ago2009-09-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Sep 2009 09:48:56 +0000 (09:48 -0000)]
2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : fix wrong listenUri argument in
  AddServiceEndpoint() call chain.

svn path=/trunk/mcs/; revision=141218

14 years ago2009-09-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Sep 2009 06:13:18 +0000 (06:13 -0000)]
2009-09-03  Atsushi Enomoto  <atsushi@ximian.com>

* SvcHttpHandler.cs : use baseAddresses in ServiceHost and make URIs
  relative or absolute. new Uri ("/foobar") doesn't work on non-unix
  environment.

svn path=/trunk/mcs/; revision=141206

14 years ago2009-08-11 Jérémie Laval <jeremie.laval@gmail.com>
Miguel de Icaza [Thu, 3 Sep 2009 00:11:57 +0000 (00:11 -0000)]
2009-08-11  Jérémie Laval  <jeremie.laval@gmail.com>

* corlib.dll.sources: Update with moved files.
* corlib_test.dll.source: Updated with moved files.

2009-07-31  Jérémie Laval  <jeremie.laval@gmail.com>

svn path=/trunk/mcs/; revision=141190

14 years ago2009-09-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 2 Sep 2009 23:50:56 +0000 (23:50 -0000)]
2009-09-03  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_get_vcall_slot): Pass the start of the method to
mono_breakpoint_clean_code () when using LLVM as the prologues generated by
LLVM might be very short.

svn path=/trunk/mono/; revision=141189

14 years ago2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Sep 2009 22:56:13 +0000 (22:56 -0000)]
2009-09-02  Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c, icall-def.h: Remove some dead code from early SRE changes.

svn path=/trunk/mono/; revision=141185

14 years ago2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Sep 2009 22:56:02 +0000 (22:56 -0000)]
2009-09-02  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_setup_fields): Remove duplicated local variable
named gklass.
Rename gklass to gtd to reflect the fact that it points to the generic
type definition.
Remove the duplicated call to mono_class_setup_fields on gtd and move
the error check to the beginning.

svn path=/trunk/mono/; revision=141184

14 years ago2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Sep 2009 22:55:53 +0000 (22:55 -0000)]
2009-09-02  Rodrigo Kumpera  <rkumpera@novell.com>

* time.c (Mono_Posix_Syscall_nanosleep): Avoid referencing unitialized
memory.

svn path=/trunk/mono/; revision=141183

14 years ago2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Sep 2009 20:50:08 +0000 (20:50 -0000)]
2009-09-02 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Test for #536243.

svn path=/trunk/mcs/; revision=141177

14 years ago2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Sep 2009 20:49:48 +0000 (20:49 -0000)]
2009-09-02 Rodrigo Kumpera  <rkumpera@novell.com>

* ILGenerator.cs (label_fixup): Check for unmarked labels.
Fixes #536243.

svn path=/trunk/mcs/; revision=141176

14 years ago * src/**/*: Sync with DbLinq r1215. This fixes the
Jonathan Pryor [Wed, 2 Sep 2009 19:42:28 +0000 (19:42 -0000)]
* src/**/*: Sync with DbLinq r1215.  This fixes the
  ../../tools/sqlmetal build.

svn path=/trunk/mcs/; revision=141172

14 years ago2009-09-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 2 Sep 2009 19:11:12 +0000 (19:11 -0000)]
2009-09-02  Sebastien Pouliot  <sebastien@ximian.com>

* assembly.c (parse_public_key): Avoid allocating (and not
freeing) the public key array when it's not requested by the
caller.
* threads.c (mono_thread_manage, mono_thread_create_internal,
ves_icall_System_Threading_Thread_Thread_internal): Free
allocated memory on error.

svn path=/trunk/mono/; revision=141170

14 years ago2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Sep 2009 19:03:45 +0000 (19:03 -0000)]
2009-09-02  Rodrigo Kumpera  <rkumpera@novell.com>

* marshal.c (mono_array_to_lparray): Do DISABLE_COM properly.
Remove cruft of the previous patch.

svn path=/trunk/mono/; revision=141169

14 years agoUpdate comment
Miguel de Icaza [Wed, 2 Sep 2009 18:45:48 +0000 (18:45 -0000)]
Update comment

svn path=/trunk/mono/; revision=141167

14 years ago2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Sep 2009 18:13:44 +0000 (18:13 -0000)]
2009-09-02 Rodrigo Kumpera  <rkumpera@novell.com>

* mono-sha1.c: Update documentation.

svn path=/trunk/mono/; revision=141163

14 years ago2009-09-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 2 Sep 2009 18:09:00 +0000 (18:09 -0000)]
2009-09-02 Rodrigo Kumpera  <rkumpera@novell.com>

* mono-md5.c: Update documentation.

svn path=/trunk/mono/; revision=141162

14 years ago2009-09-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 2 Sep 2009 18:07:11 +0000 (18:07 -0000)]
2009-09-02  Sebastien Pouliot  <sebastien@ximian.com>

* mono-dl.c (mono_dl_open): Don't leak module if name is NULL
* mono-md5.c (mono_md5_get_digest_from_file): Close 'fp' even on
success (just like we do for sha1)

svn path=/trunk/mono/; revision=141161

14 years ago * src/**/*: Sync with DbLinq r1214. This integrates several
Jonathan Pryor [Wed, 2 Sep 2009 17:56:50 +0000 (17:56 -0000)]
* src/**/*: Sync with DbLinq r1214.  This integrates several
  performance patches from Zoltan Varga, and adds a
  DataContextSubclass(string) constructor to sqlmetal output.

svn path=/trunk/mcs/; revision=141160

14 years ago2009-09-02 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 2 Sep 2009 16:04:02 +0000 (16:04 -0000)]
2009-09-02  Jb Evain  <jbevain@novell.com>

* Makefile: include System.Json in monotouch.

svn path=/trunk/mcs/; revision=141140

14 years ago2009-09-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 2 Sep 2009 15:50:55 +0000 (15:50 -0000)]
2009-09-02  Marek Safar  <marek.safar@gmail.com>

* expression.cs, statement.cs, ecore.cs: Use common Report.Error.

svn path=/trunk/mcs/; revision=141138

14 years agoNew test.
Marek Safar [Wed, 2 Sep 2009 12:56:15 +0000 (12:56 -0000)]
New test.

svn path=/trunk/mcs/; revision=141130

14 years ago2009-09-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 2 Sep 2009 12:56:00 +0000 (12:56 -0000)]
2009-09-02  Marek Safar  <marek.safar@gmail.com>

A fix for bug #535448
* anonymous.cs, class.cs: Copy return label between all contexts.

svn path=/trunk/mcs/; revision=141129

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 12:48:01 +0000 (12:48 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* SvcHttpHandlerFactory.cs : make use of BuildManager aid. Now it
  loads types from system assemblies appropriately.

svn path=/trunk/mcs/; revision=141128

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 11:41:43 +0000 (11:41 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* WebMessageFormatter.cs : it was not returning value with correct
  wrapper name/namespace. Fix interop with .NET client.

svn path=/trunk/mcs/; revision=141121

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 11:16:45 +0000 (11:16 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* WebMessageEncodingBindingElement.cs : implement GetProperty<T>().

svn path=/trunk/mcs/; revision=141119

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 11:04:52 +0000 (11:04 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* WebMessageFormatter.cs : Made the same prohibition for dispatch
  formatters too. Support WebMessageBodyStyle on dispatcher side too.

svn path=/trunk/mcs/; revision=141117

14 years agoNew test.
Marek Safar [Wed, 2 Sep 2009 10:53:05 +0000 (10:53 -0000)]
New test.

svn path=/trunk/mcs/; revision=141116

14 years ago2009-09-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 2 Sep 2009 10:52:53 +0000 (10:52 -0000)]
2009-09-02  Marek Safar  <marek.safar@gmail.com>

A fix for bug #535395
* namespace.cs: Resolve context can be null.

svn path=/trunk/mcs/; revision=141115

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 10:35:08 +0000 (10:35 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* WebHttpBehavior.cs : now message formatters are pairs of request/
  reply formatters.

* WebMessageFormatter.cs : override some serialization methods as
  prohibited.

* WebHttpBehaviorTest.cs : some message formatters tests.

svn path=/trunk/mcs/; revision=141112

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 10:18:38 +0000 (10:18 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* BaseMessagesFormatter.cs :
  implement XmlBodyWriter.OnCreateBufferedCopy().

* XmlReaderBodyWriter.cs : implement OnCreateBufferedCopy()
  for XmlReader input.

svn path=/trunk/mcs/; revision=141111

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 10:16:21 +0000 (10:16 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* HttpRequestMessageProperty.cs : fix default values.

* HttpRequestMessagePropertyTest.cs : new test.

* System.ServiceModel_test.dll.sources:
  add HttpRequestMessagePropertyTest.cs

svn path=/trunk/mcs/; revision=141110

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 08:53:30 +0000 (08:53 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* WebHttpDispatchOperationSelector.cs : use common extension method.
* WebMessageFormatter.cs : support WebMessageBodyStyle(.Wrapped*).
  Cache serializers.

svn path=/trunk/mcs/; revision=141102

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 08:48:19 +0000 (08:48 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile : use System.Core.

svn path=/trunk/mcs/; revision=141101

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 08:47:23 +0000 (08:47 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* WebHttpBehavior.cs : BodyStyle is operation specific.

svn path=/trunk/mcs/; revision=141100

14 years ago2009-09-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Sep 2009 08:44:31 +0000 (08:44 -0000)]
2009-09-02  Atsushi Enomoto  <atsushi@ximian.com>

* JsonQueryStringConverterTest.cs : comment out one cosmetic case
  that is not working under .NET.

svn path=/trunk/mcs/; revision=141099

14 years ago2009-09-01 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 1 Sep 2009 21:48:31 +0000 (21:48 -0000)]
2009-09-01 Gonzalo Paniagua Javier <gonzalo@novell.com>

* DB2CLIWrapper.cs: changed libname to 'db2'. Use 'int' instead of
'IntPtr' for most of the SQL handles. Only SQLPOINTER is 64 bits in
64-bit machines.

svn path=/trunk/mcs/; revision=141088

14 years ago2009-09-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 1 Sep 2009 21:04:16 +0000 (21:04 -0000)]
2009-09-01  Rodrigo Kumpera  <rkumpera@novell.com>

* cli-tables-tests.md: New test for method abstract + final.
Tests #534175.

svn path=/trunk/mono/; revision=141081

14 years ago2009-09-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 1 Sep 2009 21:04:08 +0000 (21:04 -0000)]
2009-09-01  Rodrigo Kumpera  <rkumpera@novell.com>

* Makefile: Fix makefile.

svn path=/trunk/mono/; revision=141080

14 years ago2009-09-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 1 Sep 2009 21:04:00 +0000 (21:04 -0000)]
2009-09-01  Rodrigo Kumpera  <rkumpera@novell.com>

* assembly-with-fields.cs: New test source.

* Makefile: Add test source

svn path=/trunk/mono/; revision=141079