Paolo Molaro [Mon, 8 Nov 2010 15:30:56 +0000 (16:30 +0100)]
Log profiler: fill and display a few more data fields in the header.
Paolo Molaro [Mon, 8 Nov 2010 14:16:03 +0000 (15:16 +0100)]
More log profiler doc clarifications.
Rodrigo Kumpera [Mon, 8 Nov 2010 15:30:20 +0000 (13:30 -0200)]
Don't allow zero local var tokens.
* metadata-verify.c (is_valid_method_header): The local
token cannot have a zero index.
* metadata.c (mono_metadata_parse_mh_full): Fail if locals
token index is zero.
Fixes #651682
Zoltan Varga [Mon, 8 Nov 2010 15:00:09 +0000 (16:00 +0100)]
Transition ves_icall_get_frame_info () to use find_jit_info_ext (), remove the managed->native wrapper hacks.
Marek Habersack [Mon, 8 Nov 2010 14:41:18 +0000 (15:41 +0100)]
[asp.net] Optimize memory usage a bit. String hashes are cached in thread-local storage.
Rodrigo Kumpera [Fri, 5 Nov 2010 20:20:29 +0000 (18:20 -0200)]
Work with classes been loaded.
* metadata.c (do_mono_metadata_parse_type): It's possible
that we're decoding a reference to a class that it's currently
been loaded so byval_arg.type will be zero.
Rodrigo Kumpera [Fri, 5 Nov 2010 20:19:54 +0000 (18:19 -0200)]
Fix FieldInfo::GetFieldFromHandle signature.
Paolo Molaro [Mon, 8 Nov 2010 13:44:51 +0000 (14:44 +0100)]
Fixed make dist for log profiler.
Paolo Molaro [Mon, 8 Nov 2010 11:40:55 +0000 (12:40 +0100)]
Emit object heap sizes for allocations and heap-shot in the log profiler.
Atsushi Eno [Mon, 8 Nov 2010 11:37:37 +0000 (20:37 +0900)]
Forgot to add a test xml.
Atsushi Eno [Mon, 8 Nov 2010 11:35:12 +0000 (20:35 +0900)]
Fix positional parameter argument output location check.
MarkupExtension with multiple arguments are prohibited at top level.
Paolo Molaro [Mon, 8 Nov 2010 11:29:13 +0000 (12:29 +0100)]
Added a check for a corner case of a stack walk during thread startup.
* mini-exceptions.c: sometimes an allocation happens at thread startup
where the data structures are not yet setup to allow stack walking.
If we request a stack trace there, we'd crash. To reproduce the crash
without this change, just run xsp with the log profiler with the nocalls
option.
Atsushi Eno [Mon, 8 Nov 2010 11:22:09 +0000 (20:22 +0900)]
Fix attribute state management to handle x:Key inside MarkupExtension correctly.
Namely TypeExtension (it got working).
Paolo Molaro [Mon, 8 Nov 2010 09:52:20 +0000 (10:52 +0100)]
More log profiler portability and warning fixes.
Paolo Molaro [Mon, 8 Nov 2010 09:38:41 +0000 (10:38 +0100)]
Integrated the log profiler in the build, warning and portability fixes.
Paolo Molaro [Sun, 7 Nov 2010 18:19:29 +0000 (19:19 +0100)]
Log profiler: added copyright header and comments.
Paolo Molaro [Sun, 7 Nov 2010 18:07:08 +0000 (19:07 +0100)]
Ported log profiler to windows (untested) and OSX time factor fix.
Paolo Molaro [Sun, 7 Nov 2010 17:05:08 +0000 (18:05 +0100)]
Documented the current version for the log profiler data format.
Zoltan Varga [Mon, 8 Nov 2010 10:19:39 +0000 (11:19 +0100)]
Make frames of type FRAME_TYPE_MANAGED_TO_NATIVE act as a marker, i.e. the caller should ignore them and unwind once more to get the last managed frame and its associated context.
Atsushi Eno [Mon, 8 Nov 2010 08:46:38 +0000 (17:46 +0900)]
Fix PositionalParameter serialization in collections.
Dictionary still needs another fix.
Atsushi Eno [Mon, 8 Nov 2010 07:51:32 +0000 (16:51 +0900)]
Forgot to remove old internal stuff.
Atsushi Eno [Mon, 8 Nov 2010 07:41:43 +0000 (16:41 +0900)]
Fixed member order in Dictionary key and item in XamlObjectReader.
This requires messy and complicated change and sort of illogical member ordering!
Zoltan Varga [Mon, 8 Nov 2010 07:04:22 +0000 (08:04 +0100)]
Fix llvm build with LLVM 2.8.
Mark Probst [Sun, 7 Nov 2010 01:46:11 +0000 (02:46 +0100)]
Merge branch 'marksweep-evacuate'
Mark Probst [Sat, 6 Nov 2010 14:29:31 +0000 (15:29 +0100)]
[sgen] Don't compile evacuation for parallel mark.
Parallel Mark doesn't yet support evacuation, so don't compile
it in.
Mark Probst [Sat, 30 Oct 2010 14:22:30 +0000 (16:22 +0200)]
[sgen] User-settable evacuation threshold.
A MONO_GC_PARAMS option for setting the evacuation
threshold.
Mark Probst [Sat, 30 Oct 2010 12:40:05 +0000 (14:40 +0200)]
[sgen] Mark&Sweep evacuation.
When the occupancy for some block size falls below a certain
threshold the objects in that block size will be evacuated in
the next major collection, resulting in optimal occupancy.
Mark Probst [Thu, 28 Oct 2010 22:23:08 +0000 (00:23 +0200)]
[sgen] Function for querying current collection generation.
This lets the major collector query whether the current collection
is a minor or a major one.
Mark Probst [Mon, 18 Oct 2010 12:30:39 +0000 (14:30 +0200)]
[sgen] Dump Mark&Sweep heap occupancy.
For each block size dump the occupancy to the heap-dump
file.
Mark Probst [Wed, 20 Oct 2010 12:18:31 +0000 (14:18 +0200)]
[sgen] Flush the binary protocol file when protocol is flushed.
Zoltan Varga [Sat, 6 Nov 2010 18:27:03 +0000 (19:27 +0100)]
Remove the s390 hacks from the EH code by decreasing the ip stored into ctx->ip by 1, as it is done on all other platforms.
Zoltan Varga [Sat, 6 Nov 2010 15:00:25 +0000 (16:00 +0100)]
Add another assert to the amd64 EH code.
Zoltan Varga [Sat, 6 Nov 2010 14:57:49 +0000 (15:57 +0100)]
Add a few exceptions to the EH code to determine whenever they hold on all platforms in all cases.
Zoltan Varga [Sat, 6 Nov 2010 14:16:25 +0000 (15:16 +0100)]
Reorganize mono_handle_exception_internal ():
* Use mono_find_jit_info_ext ()
* Avoid putting the main body of code inside two if's.
Zoltan Varga [Sat, 6 Nov 2010 09:14:14 +0000 (10:14 +0100)]
Rework an if () inside an #ifdef since it confuses emacs.
Zoltan Varga [Sat, 6 Nov 2010 07:26:14 +0000 (08:26 +0100)]
Fix encode/decode_sleb128 () on 64 bit systems.
Marek Safar [Fri, 5 Nov 2010 23:03:29 +0000 (23:03 +0000)]
Add *.xml to ignore list
Marek Safar [Fri, 5 Nov 2010 22:56:38 +0000 (22:56 +0000)]
Merge branch 'marek'
Geoff Norton [Fri, 5 Nov 2010 21:23:29 +0000 (17:23 -0400)]
Implement the new logging profiler on OSX
Atsushi Eno [Fri, 5 Nov 2010 19:14:37 +0000 (04:14 +0900)]
Dictionary key might be inappropriately serialized into an attribute.
Sebastien Pouliot [Fri, 5 Nov 2010 18:38:12 +0000 (14:38 -0400)]
Add CookieParser to Moonlight's System.Net assembly
* moonlight_raw_System.Net.dll.sources: Add new CookieParser to the
build
Sebastien Pouliot [Fri, 5 Nov 2010 18:35:30 +0000 (14:35 -0400)]
Refactoring to ease fix cookie support in moonlight client stack
* System.Net/CookieParser.cs: Add more common/shared code
* System.Net/HttpWebResponse.cs: Move out CookieParser class and some
utility methods so they can be shared with Moonlight http client stack
* System.dll.sources:
* mobile_System.dll.sources:
* moonlight_shared_System.dll.sources:
Add new CookieParser.cs to the build
Atsushi Eno [Fri, 5 Nov 2010 18:32:08 +0000 (03:32 +0900)]
Add support for ContentPropertyAttribute (e.g. Reference) in XamlXmlWriter.
Atsushi Eno [Fri, 5 Nov 2010 18:18:15 +0000 (03:18 +0900)]
Implement member pending at StartMember when it should be indeterminant. Lots of code cleanup.
Zoltan Varga [Fri, 5 Nov 2010 18:10:07 +0000 (19:10 +0100)]
Enlarge try-finally blocks preceeded by a Monitor.Enter () call to include the call itself, to avoid races inherent in such code. Fixes #651546.
Atsushi Eno [Fri, 5 Nov 2010 17:11:17 +0000 (02:11 +0900)]
Add new XamlXmlWriter implementation. Marked some as NotWorking while removed a lot.
Atsushi Eno [Fri, 5 Nov 2010 17:10:18 +0000 (02:10 +0900)]
MarkupExtension type xml names are omitted their "Extension" parts.
Atsushi Eno [Fri, 5 Nov 2010 17:09:24 +0000 (02:09 +0900)]
indent text xml.
U-monkeytimeline2\atsushi [Fri, 5 Nov 2010 15:50:51 +0000 (00:50 +0900)]
A few refactoring for new XamlXmlWriter. Add tests for [ContentProperty].
Paolo Molaro [Fri, 5 Nov 2010 15:35:11 +0000 (16:35 +0100)]
First cut of the new log profiler and report generator.
This is the first preview version of the new log profiler.
It is not included in the build yet because it needs some
portability cleanups, see the top of proflog.c for compilation
instructions.
It currently works on Linux x86 (64 bit support may work but it
is untested).
The documentation is included in the log-profiler.txt file.
Zoltan Varga [Fri, 5 Nov 2010 15:30:04 +0000 (16:30 +0100)]
Fix DISABLE_REFLECTION_EMIT build.
Marek Safar [Fri, 5 Nov 2010 15:01:38 +0000 (15:01 +0000)]
Better 843 error message
Marek Safar [Fri, 5 Nov 2010 15:00:29 +0000 (15:00 +0000)]
Move 2.0 Monitor.Enter back out of the try block
Marek Safar [Fri, 5 Nov 2010 11:11:41 +0000 (11:11 +0000)]
Only when importing nested types definition base type cannot be setup
Zoltan Varga [Fri, 5 Nov 2010 11:20:59 +0000 (12:20 +0100)]
Get rid of gregs_from_ucontext (), use the normal UCONTEXT_REG_... macros instead.
Marek Habersack [Fri, 5 Nov 2010 10:35:28 +0000 (11:35 +0100)]
[asp.net,routing] Fix for bug #651593. Don't match all-literal routes for URLs with excessive segments.
Marek Safar [Fri, 5 Nov 2010 09:57:41 +0000 (09:57 +0000)]
Don't build obsolete Compat.ICSharpCode.SharpZipLib in 4.0 profile to avoid another version conflict
Zoltan Varga [Fri, 5 Nov 2010 08:55:21 +0000 (09:55 +0100)]
Unify stack walking functions:
* Rename mono_jit_walk_stack_from_ctx_in_thread to mono_walk_stack.
* Make the old stack walker use this one.
* Remove the old mono_walk_stack functions.
Zoltan Varga [Fri, 5 Nov 2010 06:45:33 +0000 (07:45 +0100)]
Fix a bug introduced by the previous change to mono_jit_walk_stack_from_ctx_in_thread ().
Zoltan Varga [Fri, 5 Nov 2010 05:53:11 +0000 (06:53 +0100)]
Fix crashes in the debugger stack walk code if a gshared method calls another using a managed-to-native translation.
Zoltan Varga [Fri, 5 Nov 2010 05:37:28 +0000 (06:37 +0100)]
Fix more gshared problems in the soft debugger.
Zoltan Varga [Fri, 5 Nov 2010 04:20:19 +0000 (05:20 +0100)]
Fix gshared support in the soft debugger. Fixes #651251.
Carlos Alberto Cortez [Thu, 4 Nov 2010 13:14:31 +0000 (14:14 +0100)]
Add our new System.ServiceModel.Channel test files to the build.
* System.ServiceModel_test.dll.sources: Add
MsmqTransportSecurityTest.cs,
CustomPolicyConversionContext.cs,
ConnectionOrientedTransportBindingElementTest.cs,
and MsmqBindingElementBaseTest.cs to our test build.
Carlos Alberto Cortez [Thu, 4 Nov 2010 13:10:50 +0000 (14:10 +0100)]
Add IPolicyExportExtension tests for classes in System.ServiceModel.Channels.
* CustomPolicyConversionContext.cs: New file, containing a dummy
child of PolicyConversionContext.
* MsmqBindingElementBaseTest.cs: New test file.
* ConnectionOrientedTransportBindingElementTest.cs: New test file.
* HttpTransportBindingElementTest.cs: Add IPolicyExportExtension
tests.
Carlos Alberto Cortez [Thu, 4 Nov 2010 13:09:21 +0000 (14:09 +0100)]
Implement IPoliciExportExtension support for MsmqBindingElementBase.
* MsmqBindingElementBase.cs: Implement ExportPolicy.
Carlos Alberto Cortez [Thu, 4 Nov 2010 13:08:15 +0000 (14:08 +0100)]
Implement IPolicyExportExtension support for ConnectionOrientedTransportBindingElement.
* ConnectionOrientedTransportBindingElement.cs: Implement ExportPolicy.
Carlos Alberto Cortez [Thu, 4 Nov 2010 13:06:33 +0000 (14:06 +0100)]
Implement IPolicyExportExtension support for HttpTransportBindingElement.
* HttpTransportBindingElement.cs: Implement ExportPolicy.
Carlos Alberto Cortez [Thu, 4 Nov 2010 12:36:22 +0000 (13:36 +0100)]
Properly set the default values for MsmqTransportSecurity.
* MsmqTransportSecurity.cs: Use the proper default values for
this class.
Carlos Alberto Cortez [Thu, 4 Nov 2010 12:29:09 +0000 (13:29 +0100)]
Add MsmqTransportSecurityTest.cs to our test suite.
* MsmqTransportSecurityTest.cs: New test file.
Marek Habersack [Thu, 4 Nov 2010 23:35:56 +0000 (00:35 +0100)]
[asp.net] HttpContext.TimeoutReached - check whether timer != null before using it.
Marek Habersack [Thu, 4 Nov 2010 23:30:10 +0000 (00:30 +0100)]
[asp.net] Expire items must always check if the dequeued item is not null before using it.
Sebastien Pouliot [Thu, 4 Nov 2010 19:10:23 +0000 (15:10 -0400)]
Move assignation earlier to ensure value is available for parameter checks
* FileStream.cs: Move anonymous assignation earlier so the value is
available when validation are made (and calls other methods)
Jonathan Pryor [Thu, 4 Nov 2010 19:05:54 +0000 (15:05 -0400)]
[mdoc-update] Explicitly order //Type children.
Unlike
03c231a585c8ff46f93084210fa240e8f6e4f65b, this isn't needed for
'mdoc-validate', it's instead for "niceness" reasons.
For example, as with
f6e4f65b, if we update docs generated by an older
version mdoc, we'll add a <TypeSignature/> for ILAsm. However, the
added <TypeSignature/> is at the end of the file, nowhere near the
existing <TypeSignature/>s, which is...odd. Not bad, per-se, but
"undesirable".
Thus, we order things for consistency during/after updates.
Marek Safar [Thu, 4 Nov 2010 17:47:02 +0000 (17:47 +0000)]
Allow liften null as a given number of bit positions for shift operator
Marek Safar [Thu, 4 Nov 2010 17:23:19 +0000 (17:23 +0000)]
For some strange reason Console.Write(Line) allows null params formatter arguments
Jonathan Pryor [Thu, 4 Nov 2010 16:03:43 +0000 (12:03 -0400)]
[mdoc] Explicitly order //Member children.
The problem is the intermixing of updating "old" documentation and
wanting the result to pass `mdoc validate`.
For example, mdoc-2.6 will only generate a <MemberSignature/> for C#,
while mdoc-2.8+ will generate two, one for C# and one for ILAsm.
Unfortunately, mdoc will _append_ the new <MemberSignature/> as the
_last_ child within <Member/>; result: 'mdoc validate' gives errors.
Oops.
Thus, we explicitly reorder //Member children so that the ordering
matches the order in monodoc-ecma.xsd.
Jérémie Laval [Thu, 4 Nov 2010 15:51:05 +0000 (15:51 +0000)]
ConcurrentDictionary performance improvements
Jérémie Laval [Thu, 4 Nov 2010 15:50:29 +0000 (15:50 +0000)]
ReaderWriterLockSlim performance improvements
Jérémie Laval [Thu, 4 Nov 2010 15:49:40 +0000 (15:49 +0000)]
ManualResetEventSlim performance improvements
Jérémie Laval [Thu, 4 Nov 2010 15:49:21 +0000 (15:49 +0000)]
SpinLock performance improvements
Marek Safar [Thu, 4 Nov 2010 15:34:36 +0000 (15:34 +0000)]
Fix SharpZipLib 4.0 profile version number to not overwrite non-4.0 version of same assembly in GAC
Geoff Norton [Thu, 4 Nov 2010 15:28:30 +0000 (11:28 -0400)]
[RUNTIME] Ensure that we initialize the cpu for every thread [Bug #650439]
It appears that on OSX the FPU settings on x86/amd64 are not inherited
to child threads of a process, leading to differences in precision between
the main thread and the sub thread. We now call mono_arch_cpu_init
on every thread on every platform
Marek Safar [Thu, 4 Nov 2010 14:48:12 +0000 (14:48 +0000)]
Add boxing for dynamic nullable conversion of coalescing operator
Marek Safar [Thu, 4 Nov 2010 10:41:28 +0000 (10:41 +0000)]
Reject inaccessible members based on declaring type in dynamic context
Marek Safar [Wed, 3 Nov 2010 19:27:22 +0000 (19:27 +0000)]
Inflate also event backing field
Marek Safar [Wed, 3 Nov 2010 18:09:31 +0000 (18:09 +0000)]
Another missing full dynamic type equality check
Marek Habersack [Thu, 4 Nov 2010 13:57:45 +0000 (14:57 +0100)]
[asp.net] Part of fix for bug #649546. Better handling of nested UpdatePanels
Nested update panels don't ever output a script block in RenderChildren, they write to the passed
HtmlTextWriter instead.
Atsushi Eno [Thu, 4 Nov 2010 07:49:44 +0000 (16:49 +0900)]
Move XamlType-generic PositionalParameter stuff from XamlObjectReader-specific source for writer support.
Rodrigo Kumpera [Wed, 3 Nov 2010 23:15:46 +0000 (21:15 -0200)]
Handle incorrectly encoded types.
* metadata.c (do_mono_metadata_parse_type): Fail if
a valuetype is encoded as MONO_TYPE_CLASS and vice-versa.
This can't be done easily in the verifier since it requires
resolving the destination type.
Fixes #650936
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 23:07:23 +0000 (19:07 -0400)]
a5
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 23:05:30 +0000 (19:05 -0400)]
a4
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 23:04:17 +0000 (19:04 -0400)]
a3
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 22:59:34 +0000 (18:59 -0400)]
a2
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 22:48:09 +0000 (18:48 -0400)]
iii
Rodrigo Kumpera [Wed, 3 Nov 2010 22:36:13 +0000 (20:36 -0200)]
Don't allow zero index token in signatures.
* metadata-verify.c (parse_type): Don't allow zero index type
tokens.
* metadata.c (mono_metadata_decode_row): Assert on negative
indexes.
Fixes #560359
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 22:05:33 +0000 (18:05 -0400)]
i
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 21:57:59 +0000 (17:57 -0400)]
Last
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 21:29:52 +0000 (17:29 -0400)]
Test 5
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 20:58:36 +0000 (16:58 -0400)]
Last test
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 20:49:56 +0000 (16:49 -0400)]
Test 3