mono.git
12 years ago[xbuild] Add property $(SkipCopyUnchangedFiles)
Ankit Jain [Fri, 27 May 2011 19:49:16 +0000 (01:19 +0530)]
[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 <tom.philpot@logos.com>

12 years agoMerge pull request #106 from XTZGZoReX/master
Marek Safar [Fri, 27 May 2011 10:05:20 +0000 (03:05 -0700)]
Merge pull request #106 from XTZGZoReX/master

mcs: Remove ctest target (dead NET_1_0 code)

12 years agomcs: Remove ctest target (dead NET_1_0 code).
XTZGZoReX [Fri, 27 May 2011 12:03:21 +0000 (14:03 +0200)]
mcs: Remove ctest target (dead NET_1_0 code).

12 years agoAdd test for XmlMembersMapping.TypeName and .Namespace (not very useful yet...)
Atsushi Eno [Fri, 27 May 2011 08:29:05 +0000 (17:29 +0900)]
Add test for XmlMembersMapping.TypeName and .Namespace (not very useful yet...)

12 years agoFill type info in MessagePartDescription from XmlSerializer-based wsdl importer.
Atsushi Eno [Fri, 27 May 2011 08:24:01 +0000 (17:24 +0900)]
Fill type info in MessagePartDescription from XmlSerializer-based wsdl importer.

It still needs some fixes to import message elements.

12 years agoFix HEAVY_STATS
Rodrigo Kumpera [Thu, 26 May 2011 23:36:39 +0000 (20:36 -0300)]
Fix HEAVY_STATS

12 years agoAdd stats for the nursery allocator
Rodrigo Kumpera [Thu, 26 May 2011 23:36:23 +0000 (20:36 -0300)]
Add stats for the nursery allocator

12 years agoSanitize assertions in the unmanaged object allocator.
Rodrigo Kumpera [Thu, 26 May 2011 22:05:26 +0000 (19:05 -0300)]
Sanitize assertions in the unmanaged object allocator.

12 years agoChange the managed allocator so the tlab wastage trick works with it enabled.
Rodrigo Kumpera [Thu, 26 May 2011 20:45:15 +0000 (17:45 -0300)]
Change the managed allocator so the tlab wastage trick works with it enabled.

12 years agoBound tlab wastage to SGEN_MAX_NURSERY_WASTE.
Rodrigo Kumpera [Thu, 26 May 2011 15:39:58 +0000 (12:39 -0300)]
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.

12 years agoCleanup and move nursery allocator tunables to sgen-gc.h
Rodrigo Kumpera [Thu, 26 May 2011 15:39:23 +0000 (12:39 -0300)]
Cleanup and move nursery allocator tunables to sgen-gc.h

12 years agoAdd nursery wastage accounting under heavy stats
Rodrigo Kumpera [Thu, 26 May 2011 23:08:32 +0000 (20:08 -0300)]
Add nursery wastage accounting under heavy stats

12 years agoIntroduce mono_sgen_nursery_retire_region.
Rodrigo Kumpera [Thu, 26 May 2011 14:25:07 +0000 (11:25 -0300)]
Introduce mono_sgen_nursery_retire_region.

* sgen-nursery-allocator.c: Add function that is notified of
wasted tlab space.

12 years agoImplement nursery allocation tracking.
Rodrigo Kumpera [Wed, 25 May 2011 04:54:13 +0000 (01:54 -0300)]
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.

12 years agoImplement lock free nursery allocation.
Rodrigo Kumpera [Tue, 17 May 2011 06:23:30 +0000 (03:23 -0300)]
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.

12 years agoUse a separate field to hold freed fragments
Rodrigo Kumpera [Tue, 17 May 2011 03:38:13 +0000 (00:38 -0300)]
Use a separate field to hold freed fragments

12 years agoKill nursery_next, now each fragment has a bump pointer.
Rodrigo Kumpera [Tue, 17 May 2011 02:51:11 +0000 (23:51 -0300)]
Kill nursery_next, now each fragment has a bump pointer.

12 years agoAdd mono_sgen_can_alloc_size and trim some unusued parts of the API
Rodrigo Kumpera [Mon, 16 May 2011 21:38:48 +0000 (18:38 -0300)]
Add mono_sgen_can_alloc_size and trim some unusued parts of the API

12 years agoFinish spliting sgen-nursery-allocator into a separate compilation unit
Rodrigo Kumpera [Sat, 14 May 2011 22:43:40 +0000 (19:43 -0300)]
Finish spliting sgen-nursery-allocator into a separate compilation unit

12 years agoExport mono_sgen_get_nursery_clear_policy from sgen-gc
Rodrigo Kumpera [Sat, 14 May 2011 21:38:35 +0000 (18:38 -0300)]
Export mono_sgen_get_nursery_clear_policy from sgen-gc

12 years agoRename functions that will be part of the nursery-allocator API.
Rodrigo Kumpera [Sat, 14 May 2011 21:26:11 +0000 (18:26 -0300)]
Rename functions that will be part of the nursery-allocator API.

* sgen-gc.c: Move more nursery-allocator behavior to
the new file.

12 years agoMove more nursery fragment code from sgen-gc.c
Rodrigo Kumpera [Sat, 14 May 2011 21:04:04 +0000 (18:04 -0300)]
Move more nursery fragment code from sgen-gc.c

12 years agoMove nursery fragment handling to a separate file
Rodrigo Kumpera [Sat, 14 May 2011 18:56:15 +0000 (15:56 -0300)]
Move nursery fragment handling to a separate file

12 years agoMerge pull request #104 from XTZGZoReX/master
Marek Safar [Thu, 26 May 2011 10:08:57 +0000 (03:08 -0700)]
Merge pull request #104 from XTZGZoReX/master

[repl] Make some output consistent.

12 years ago[repl] Make some output consistent.
XTZGZoReX [Thu, 26 May 2011 11:40:26 +0000 (13:40 +0200)]
[repl] Make some output consistent.

12 years agoInferred type argument cannot be of method group
Marek Safar [Thu, 26 May 2011 08:28:42 +0000 (09:28 +0100)]
Inferred type argument cannot be of method group

12 years agoAdd more async infrastructure
Marek Safar [Thu, 26 May 2011 08:28:14 +0000 (09:28 +0100)]
Add more async infrastructure

12 years agoNew test.
Marek Safar [Wed, 25 May 2011 17:18:03 +0000 (18:18 +0100)]
New test.

12 years agoDon't report ambiguous property error when one of the candidates is not C# compatible
Marek Safar [Wed, 25 May 2011 14:52:28 +0000 (15:52 +0100)]
Don't report ambiguous property error when one of the candidates is not C# compatible

12 years agoThe TLS shutdown race only happen in signal based STW. Disable work-around for mach.
Rodrigo Kumpera [Wed, 25 May 2011 18:56:39 +0000 (15:56 -0300)]
The TLS shutdown race only happen in signal based STW. Disable work-around for mach.

12 years agoFix mul_imm under amd64
Rodrigo Kumpera [Wed, 25 May 2011 18:00:41 +0000 (15:00 -0300)]
Fix mul_imm under amd64

12 years agoEnable llvm support for the new Monitor.Enter () wrapper.
Zoltan Varga [Wed, 25 May 2011 11:29:13 +0000 (13:29 +0200)]
Enable llvm support for the new Monitor.Enter () wrapper.

12 years agoFix a warning.
Zoltan Varga [Wed, 25 May 2011 11:15:35 +0000 (13:15 +0200)]
Fix a warning.

12 years agoFix mono-cq under sgen.
Rodrigo Kumpera [Wed, 25 May 2011 06:40:56 +0000 (03:40 -0300)]
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.

12 years agoImplement AOT support for the new Monitor.Enter () wrapper.
Zoltan Varga [Wed, 25 May 2011 02:15:11 +0000 (04:15 +0200)]
Implement AOT support for the new Monitor.Enter () wrapper.

12 years agoDisable v4 monitor.enter fastpath under aot and llvm
Rodrigo Kumpera [Tue, 24 May 2011 23:16:20 +0000 (20:16 -0300)]
Disable v4 monitor.enter fastpath under aot and llvm

12 years agoReapply the fast v4 monitor enter IL. AOT and LLVM are possibly broken.
Rodrigo Kumpera [Tue, 24 May 2011 23:09:49 +0000 (20:09 -0300)]
Reapply the fast v4 monitor enter IL. AOT and LLVM are possibly broken.

12 years agoRevert "Reapply 171e69041898f488f332c5a2fad71e40f5863c5d fixed to compile under linux."
Marek Habersack [Tue, 24 May 2011 23:01:25 +0000 (01:01 +0200)]
Revert "Reapply 171e69041898f488f332c5a2fad71e40f5863c5d fixed to compile under linux."

This reverts commit 20c6d0aaea815512306a916ef7701233d671200d. 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

12 years agoReapply 171e69041898f488f332c5a2fad71e40f5863c5d fixed to compile under linux.
Rodrigo Kumpera [Tue, 24 May 2011 21:57:54 +0000 (18:57 -0300)]
Reapply 171e69041898f488f332c5a2fad71e40f5863c5d 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.

12 years ago[asp.net] Don't throw an exception if a session item being released does not have...
Marek Habersack [Tue, 24 May 2011 09:12:43 +0000 (11:12 +0200)]
[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.

12 years agoFix global schema component resolution issue in ids and identity constraints.
Atsushi Eno [Tue, 24 May 2011 04:02:37 +0000 (13:02 +0900)]
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.

12 years agoRevert "Implement fast il wrapper for v4 Monitor.Enter."
Marek Habersack [Mon, 23 May 2011 23:46:18 +0000 (01:46 +0200)]
Revert "Implement fast il wrapper for v4 Monitor.Enter."

This reverts commit 171e69041898f488f332c5a2fad71e40f5863c5d. 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

12 years agoImplement fast il wrapper for v4 Monitor.Enter.
Rodrigo Kumpera [Mon, 23 May 2011 21:27:07 +0000 (18:27 -0300)]
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.

12 years agoBetter handle broken types when loading default value.
Rodrigo Kumpera [Mon, 23 May 2011 18:02:56 +0000 (15:02 -0300)]
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

12 years agoFixed #include ordering for stat()
Jeffrey Stedfast [Wed, 18 May 2011 19:43:14 +0000 (15:43 -0400)]
Fixed #include ordering for stat()

12 years agoSupport named wildcard in UriTemplate matching. Fixed bug #693996.
Atsushi Eno [Mon, 23 May 2011 11:31:00 +0000 (20:31 +0900)]
Support named wildcard in UriTemplate matching. Fixed bug #693996.

12 years agoFix warnings.
Zoltan Varga [Mon, 23 May 2011 11:00:14 +0000 (13:00 +0200)]
Fix warnings.

12 years agoLook for KnownTypeAttributes on known types (recursively). Fixed bug #695203.
Atsushi Eno [Mon, 23 May 2011 10:27:55 +0000 (19:27 +0900)]
Look for KnownTypeAttributes on known types (recursively). Fixed bug #695203.

12 years agoRevert "Fix some warnings."
Marek Habersack [Mon, 23 May 2011 10:03:05 +0000 (12:03 +0200)]
Revert "Fix some warnings."

This reverts commit 709bdf0209905555cbcdf93c7b0e2af2a52bcd70. 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

12 years agoReorder fields to improve object layout since the runtime can't do it for corlib...
Rodrigo Kumpera [Mon, 23 May 2011 04:11:44 +0000 (01:11 -0300)]
Reorder fields to improve object layout since the runtime can't do it for corlib types.

12 years agoFix some warnings.
Zoltan Varga [Sat, 21 May 2011 13:32:31 +0000 (15:32 +0200)]
Fix some warnings.

12 years agoDisable the -Wunused-by-set-variable warning supported by newer gcc versions.
Zoltan Varga [Sat, 21 May 2011 13:25:23 +0000 (15:25 +0200)]
Disable the -Wunused-by-set-variable warning supported by newer gcc versions.

12 years agoAdd an assert.
Zoltan Varga [Sat, 21 May 2011 12:52:40 +0000 (14:52 +0200)]
Add an assert.

12 years ago[tests] Add test case for large vtypes in SGen.
Mark Probst [Fri, 20 May 2011 21:05:10 +0000 (23:05 +0200)]
[tests] Add test case for large vtypes in SGen.

12 years ago[sgen] Handle all cases in major_scan_vtable().
Mark Probst [Fri, 20 May 2011 20:27:17 +0000 (22:27 +0200)]
[sgen] Handle all cases in major_scan_vtable().

12 years ago[sgen] Don't pass vtables to FOREACH macros when the descriptor is enough.
Mark Probst [Fri, 20 May 2011 19:35:38 +0000 (21:35 +0200)]
[sgen] Don't pass vtables to FOREACH macros when the descriptor is enough.

12 years ago[sgen] Remove superfluous arguments from minor_scan_vtype().
Mark Probst [Fri, 20 May 2011 19:24:36 +0000 (21:24 +0200)]
[sgen] Remove superfluous arguments from minor_scan_vtype().

12 years ago[sgen] Remove small bitmap descriptor type.
Mark Probst [Fri, 20 May 2011 19:16:09 +0000 (21:16 +0200)]
[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.

12 years agoFix aligninig copy and improve overlap detection
Rodrigo Kumpera [Fri, 20 May 2011 18:41:08 +0000 (15:41 -0300)]
Fix aligninig copy and improve overlap detection

12 years ago[sgen] Fix a compiler warning.
Mark Probst [Fri, 20 May 2011 17:21:37 +0000 (19:21 +0200)]
[sgen] Fix a compiler warning.

12 years agoAdd more checks for async modifier
Marek Safar [Fri, 20 May 2011 16:59:26 +0000 (17:59 +0100)]
Add more checks for async modifier

12 years agoRename Task<T> implementation file
Marek Safar [Fri, 20 May 2011 16:55:36 +0000 (17:55 +0100)]
Rename Task<T> implementation file

12 years agoApparently I'm too stupid to implement memmove correctly, unbreak the build while...
Rodrigo Kumpera [Fri, 20 May 2011 16:32:47 +0000 (13:32 -0300)]
Apparently I'm too stupid to implement memmove correctly, unbreak the build while I learn how to do it.

12 years agoPass first async test
Marek Safar [Fri, 20 May 2011 08:35:15 +0000 (09:35 +0100)]
Pass first async test

12 years agoMerge pull request #102 from konrad-kruczynski/fix_bug_635971
Miguel de Icaza [Fri, 20 May 2011 01:18:52 +0000 (18:18 -0700)]
Merge pull request #102 from konrad-kruczynski/fix_bug_635971

[Fix] #635971 Fixed throwing exception in case of using zero timeout. Now

12 years agoFix mono_gc_memmove backward copy.
Rodrigo Kumpera [Thu, 19 May 2011 22:16:33 +0000 (19:16 -0300)]
Fix mono_gc_memmove backward copy.

12 years agoFix tp_poll_wait to work with sgen
Rodrigo Kumpera [Thu, 19 May 2011 20:28:25 +0000 (17:28 -0300)]
Fix tp_poll_wait to work with sgen

12 years agoAdd mono_ptr_array_reset and mono_ptr_array_clear
Rodrigo Kumpera [Thu, 19 May 2011 20:28:11 +0000 (17:28 -0300)]
Add mono_ptr_array_reset and mono_ptr_array_clear

12 years agoUse new mono_gc_(memmove|bzero) in places messing with managed memory.
Rodrigo Kumpera [Thu, 19 May 2011 19:42:45 +0000 (16:42 -0300)]
Use new mono_gc_(memmove|bzero) in places messing with managed memory.

12 years agoAdd new API to copy managed memory.
Rodrigo Kumpera [Wed, 18 May 2011 19:04:24 +0000 (16:04 -0300)]
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.

12 years agoNew tests.
Marek Safar [Thu, 19 May 2011 16:30:14 +0000 (17:30 +0100)]
New tests.

12 years agoAllow DocumentType in ImportNode().
Atsushi Eno [Thu, 19 May 2011 04:15:46 +0000 (13:15 +0900)]
Allow DocumentType in ImportNode().

http://lists.ximian.com/pipermail/mono-devel-list/2011-May/037575.html

12 years ago[asp.net] Ignore JavaScript blocks enclosed in HTML comments
Marek Habersack [Thu, 19 May 2011 01:35:42 +0000 (03:35 +0200)]
[asp.net] Ignore JavaScript blocks enclosed in HTML comments

12 years ago[runtime] When shadow-copying assemblies, use the io portability function to find...
Marek Habersack [Wed, 18 May 2011 19:54:56 +0000 (21:54 +0200)]
[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.

12 years ago[runtime] fix the partial version check, it should only check the first 4 chars
Andreia Gaita [Wed, 18 May 2011 01:12:58 +0000 (02:12 +0100)]
[runtime] fix the partial version check, it should only check the first 4 chars

12 years agoSupport colors on 256-color terminals
Marek Habersack [Tue, 17 May 2011 19:54:35 +0000 (21:54 +0200)]
Support colors on 256-color terminals

12 years agoMerge pull request #103 from XTZGZoReX/master
Rodrigo Kumpera [Tue, 17 May 2011 18:34:39 +0000 (11:34 -0700)]
Merge pull request #103 from XTZGZoReX/master

Mono.Tasklets: Suppress Continuation finalization when explicitly disposed.

12 years agoMono.Tasklets: Suppress Continuation finalization when explicitly disposed.
XTZGZoReX [Tue, 17 May 2011 09:56:50 +0000 (11:56 +0200)]
Mono.Tasklets: Suppress Continuation finalization when explicitly disposed.

12 years agoCheck invalid recursion of xs:group use. Fixed bug #650117.
Atsushi Eno [Tue, 17 May 2011 16:09:21 +0000 (01:09 +0900)]
Check invalid recursion of xs:group use. Fixed bug #650117.

12 years agoAdd C launcher for Mono-shipped binaries
Miguel de Icaza [Tue, 17 May 2011 13:29:47 +0000 (09:29 -0400)]
Add C launcher for Mono-shipped binaries

12 years ago[693947] Ignore delegate declaration when looking for type name
Marek Safar [Tue, 17 May 2011 08:09:12 +0000 (09:09 +0100)]
[693947] Ignore delegate declaration when looking for type name

12 years ago[Fix] #635971 Fixed throwing exception in case of using zero timeout. Now it is legal.
Konrad M. Kruczynski [Mon, 16 May 2011 20:21:35 +0000 (22:21 +0200)]
[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.

12 years ago[692149] Fixed ordering of named arguments list when starting with positional argument
Marek Safar [Mon, 16 May 2011 15:41:39 +0000 (16:41 +0100)]
[692149] Fixed ordering of named arguments list when starting with positional argument

12 years ago[asp.net] Fix for bug #650847. Output both tagged and untagged UpdatePanel names...
Marek Habersack [Mon, 16 May 2011 14:13:20 +0000 (16:13 +0200)]
[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.

12 years agoInitial refactoring to accommodate async
Marek Safar [Mon, 16 May 2011 10:57:44 +0000 (11:57 +0100)]
Initial refactoring to accommodate async

12 years agoNew test
Marek Safar [Mon, 16 May 2011 08:45:07 +0000 (09:45 +0100)]
New test

12 years agoDo not import xs:any member as XmlElement[]. Create a wrapper class instead.
Atsushi Eno [Mon, 16 May 2011 09:45:08 +0000 (18:45 +0900)]
Do not import xs:any member as XmlElement[]. Create a wrapper class instead.

Part of bugfix #670945.

12 years agoMerge pull request #101 from occ/master
Atsushi Eno [Mon, 16 May 2011 07:35:10 +0000 (00:35 -0700)]
Merge pull request #101 from occ/master

Decimal support to XmlBinaryDictionaryReader

12 years agoAttachable property setter was not working with XamlObjectWriter.
Atsushi Eno [Mon, 16 May 2011 07:31:14 +0000 (16:31 +0900)]
Attachable property setter was not working with XamlObjectWriter.

Fixed bug #693779.

12 years agoAdd test for bug 686486.
Flose Maier [Sun, 15 May 2011 11:25:38 +0000 (13:25 +0200)]
Add test for bug 686486.

12 years agoAvoid a crash in Field:GetRawConstantValue () if the field type couldn't be loaded...
Zoltan Varga [Sun, 15 May 2011 11:04:02 +0000 (13:04 +0200)]
Avoid a crash in Field:GetRawConstantValue () if the field type couldn't be loaded. Fixes #693894.

13 years agoFix warnings + the windows build.
Zoltan Varga [Fri, 13 May 2011 20:16:15 +0000 (22:16 +0200)]
Fix warnings + the windows build.

13 years agoMore win32 fixing
Rodrigo Kumpera [Fri, 13 May 2011 20:09:57 +0000 (17:09 -0300)]
More win32 fixing

13 years agoFix win32
Rodrigo Kumpera [Fri, 13 May 2011 18:18:45 +0000 (15:18 -0300)]
Fix win32

13 years agoAdd decimal support to XmlBinaryDictionaryReader
Onur Can Cakmak [Fri, 13 May 2011 18:11:55 +0000 (14:11 -0400)]
Add decimal support to XmlBinaryDictionaryReader

13 years agoImplement XmlSerializerMessageContractImporter, round 2.
Atsushi Eno [Fri, 13 May 2011 16:28:03 +0000 (01:28 +0900)]
Implement XmlSerializerMessageContractImporter, round 2.

This time it is XmlSerializer-based, got it somewhat working.

13 years agoFix variant iface verification.
Rodrigo Kumpera [Thu, 12 May 2011 22:40:19 +0000 (19:40 -0300)]
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

13 years agoFix the build.
Zoltan Varga [Fri, 13 May 2011 15:44:56 +0000 (17:44 +0200)]
Fix the build.

13 years agoMerge pull request #100 from Unity-Technologies/master-leak-descriptors
Zoltan Varga [Fri, 13 May 2011 14:07:50 +0000 (07:07 -0700)]
Merge pull request #100 from Unity-Technologies/master-leak-descriptors

[Fix] Don't leak function descriptors on ia64 and ppc64.

13 years agoDon't ifdef ftnptrs_hash.
Tak [Fri, 13 May 2011 13:45:54 +0000 (15:45 +0200)]
Don't ifdef ftnptrs_hash.