* XmlNamespaceManager.cs : GetEnumerator() should return all of the
available pairs (of prefix and namespace).
* XmlQualifiedName.cs : Quick fix for NullReferenceException in case
of name (or ns) is null. (The description of the immediate previous
changes will be inserted below.)
* XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
* XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
will release resources it had allocated.
svn path=/trunk/mcs/; revision=17996
* mini.c (mono_print_tree_nl): New function callable while debugging.
* mini.c (mono_print_code): Export this.
* mini.h (MonoCompile): Added 'jit_info' field.
* mini.c (mini_method_compile): Save the generated MonoJitInfo into
the cfg structure, since it is needed by the AOT compiler.
* mini.h (MONO_AOT_FILE_VERSION): Bump version number.
* aot.c: A major rewrite. Changes include:
- save exception tables for methods which have them.
- cache failed lookups in aot_get_method () to avoid the (slow) calls
to g_module_symbol.
- reworked the file format so it is now much smaller and needs
fewer relocation entries.
svn path=/trunk/mono/; revision=17993
* image.c (load_class_names): Use a temporary hash table to hold the
namespaces in order to avoid doing many string comparisons.
* image.h: Fix typo.
* image.c class.c rawbuffer.c reflection.c threads.c verify.c domain.c:
Pass NULL instead of g_direct_equal to the GHashTable constructor
since the NULL case is short-circuited inside g_hash_table_lookup,
leading to better performance.
svn path=/trunk/mono/; revision=17992
* metadata.c (mono_metadata_custom_attrs_from_index): New function to
obtain the first custom attribute for a given index. Depends on the
CustomAttribute table being sorted by the parent field.
* reflection.c (mono_custom_attrs_from_index): Use the new function
for better performance.
svn path=/trunk/mono/; revision=17991
* Context.cs: Added constructor and Document field.
* DocumentContext.cs: Added Name field.
* JSParser.cs: Integration of antlr's generated parser with
JSParser public API. ScriptBlock is now the principal data structure that
represents a Jscript .Net program.
* JSScanner.cs: Integration of antlr's generated lexer with
JSScanner public API.
svn path=/trunk/mcs/; revision=17988
* Referral.cs: Oops - didn't compile when WSE1 was defined
* ReferralCollection.cs: Oops - didn't compile when WSE1 was defined
svn path=/trunk/mcs/; revision=17984
* report.cs (Error, Warning): Added overloaded versions which take
a `params object[] args' and call String.Format().
svn path=/trunk/mcs/; revision=17977
* decl.cs (DeclSpace..ctor): Don't call
NamespaceEntry.DefineName() here; do it in RecordDecl() which is
called from Tree.RecordDecl(). Fixes the CS0101 reporting.
(DeclSpace.RecordDecl): New method.
* tree.cs (Tree.RecordDecl): Call ds.RecordDecl().
svn path=/trunk/mcs/; revision=17976
* class.c (mono_class_init): If we're a generic instance, inflate
all our methods instead of loading them from the image.
(mono_class_from_generic): Set `class->methods = gklass->methods'.
svn path=/trunk/mono/; revision=17970
* Microsoft.Web.Services.dll.sources: Added stubbed input/output soap
filters for Routing and Referral so Configuration can be compiled.
svn path=/trunk/mcs/; revision=17962
* DefaultContext.cs, Expresssion.cs, Parser.jay: Rewrite so that
system functions are actually expressions. Will allow for some
nice optimizations.
svn path=/trunk/mcs/; revision=17947
* EncryptedKey.cs: Fixed typo.
* Security.cs: Fixed compilation issues.
* SignedXml.cs: Fixed compilation issues.
* SignedXmlSignature.cs: Copied from System.Security assembly (where
it is known as Signature.cs) as MS duplicate the class (in WSE) to
fixed some issues.
* XmlSignature.cs: Added more missing string used in System.Security.
svn path=/trunk/mcs/; revision=17940
* Makefile: Added reference to System.Security assembly and a define
for WSE1 (required for classes shared between SS and WSE).
* Microsoft.Web.Services.dll.sources: Added (shared) files from
System.Security assembly.
svn path=/trunk/mcs/; revision=17897
* Reference.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedInfo.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedXml.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* TransformChain.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
svn path=/trunk/mcs/; revision=17894
* BitVector32.cs (CreateSection): Check that the new
calculated offset isn't more than 32 and not that the sum of the
new offset and the number of set bits is more than 32.
(this): Perform bitwise and with the complement of the mask
shifted version (~(section.Mask << section.Offset)) and not with
the shifted version of the mask's complement (~section.Mask <<
section.Offset).
(this): Currently doesn't return the correct value when the data
in the BitVector32 instance is negative.
* ListDictionary.cs (CopyTo): If the array is null, it should
throw ArgumentNullException. If the index is less than 0, it
should throw ArgumentOutOfRangeException.
(Remove): Throw ArgumentNullException when the parameter is null.
* BitVector32Test.cs (TestNegativeIndexer, TestSectionIndexer,
TestCreateSection): new tests from Alon Gazit <[email protected]>.
* ListDictionaryTest.cs (CopyTo1, CopyTo2, Remove): New file, with
tests from Alon Gazit <[email protected]>.
svn path=/trunk/mcs/; revision=17885
* decl.cs (DeclSpace.LookupGeneric): New method.
(DeclSpace.CheckAccessLevel): Ignore generic parameters for the
moment.
* generic.cs (TypeParameterExpr): Take a TypeParameter as
argument, not just a string.
(TypeParameter.Define): New public method; this is called to
actually define the generic parameter; after this, you can use the
new `Type' property to get the type.
svn path=/trunk/mcs/; revision=17881
* decl.cs (DeclSpace.SetParameterInfo): The `constraints' argument
is now an ArrayList; initialize the result of the `TypeParameters'
property here.
(DeclSpace.GetGenericData): Removed.
(DeclSpace.LookupGeneric): Temporarily removed; we need to
implement this in a different way.
(DeclSpace.GetTypeParameters): Removed; there's now a
`TypeParameters' property.
(DeclSpace.TypeParameters): New public property.
* ecore.cs (SimpleName.ResolveAsTypeStep): Removed the generic
lookup for the moment.
* generic.cs (Constraints): Make this class public.
(TypeParameter): New public class.
svn path=/trunk/mcs/; revision=17874
* decl.cs (DeclSpace.GetTypeParameters): New method to return the
generic parameters.
* class.cs (TypeContainer.DefineType): Call
TypeBuilder.DefineGenericParameter () on all generic parameters if
this is a generic type.
svn path=/trunk/mcs/; revision=17873
* metadata.c (mono_type_size): Added MONO_TYPE_VAR and MONO_TYPE_MVAR.
* reflection.h (MonoReflectionGenericParam): New typedef.
(MonoReflectionTypeBuilder): Added `num_generic_params' and
`generic_params' fields to get the generic parameters from the
managed TypeBuilder.
* reflection.c (mono_reflection_define_generic_parameter): New function.
(mono_reflection_create_runtime_class): Encode generic parameters.
(mono_reflection_setup_generic_class): New function; this is
called after adding adding all generic params to the TypeBuilder.
(encode_type): Added MONO_TYPE_VAR.
svn path=/trunk/mono/; revision=17871
* TypeBuilder.cs (TypeBuilder.DefineGenericParameter): New public
method. We can now create generic types.
(TypeBuilder.GetGenericTypeDefinition): Override this; call the
`setup_internal_class' interncall before calling our base impl.
svn path=/trunk/mcs/; revision=17870
* aot.c: Move AOT module loading logic here from mono_assembly_open.
* aot.c: Save the optimization flags used to compile the code into
the AOT module.
* mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
support emitting domain specific code.
* mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
no longer domain neutral. It can be made domain neutral by compiling
with --optimize=shared.
* aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
between appdomains.
* driver.c mini.h mini.c: New --no-aot debugging option which disables
loading of AOT code.
* inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
svn path=/trunk/mono/; revision=17867
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
if there is no domain neutrality information.
svn path=/trunk/mono/; revision=17866
* class.h class.c (mono_class_needs_cctor_run): Moved this method
here from the JIT.
* assembly.h assembly.c: Moved the AOT loading code into an assembly
load hook.
svn path=/trunk/mono/; revision=17865
* ServiceDescriptionImporter.cs: initial implementation.
* ServiceDescriptionReflector.cs: Added support for bare parameter style.
Added support for encoded format.
svn path=/trunk/mcs/; revision=17855
* reflection.h reflection.c class.h class.c: Delete duplicate
definition of mono_type_get_name () from reflection.c and export the
one in class.c.
* class.c: Class loading fixes from Bernie Solomon
([email protected]).
svn path=/trunk/mono/; revision=17841
* class.cs (MethodCore.LabelParameters): Make static and more
generic so that it can be used from other places - like interface
methods, for instance.
* interface.cs (Interface.Emit): Call LabelParameters before
emitting attributes on the InterfaceMethod.
svn path=/trunk/mcs/; revision=17833
* attribute.cs (CheckAttributeTarget): Ensure that we allow return
value attributes to be applied to ParameterBuilders.
svn path=/trunk/mcs/; revision=17831
* AssemblyInfo.cs: Updated version to 0.26.99 (all tools).
* cert2spc.cs: Updated to use Mono.Security.X509.
* chktrust.cs: Tool to validate Authenticode(tm) signatures on PE
files (including assemblies).
* signcode.cs: Tool to sign and timestamp PE files using
Authenticode(tm) compatible certificates.
* README: Updated to include a small tutorial on how to use
Authenticode(tm) to sign/verify assemblies.
* Makefile: Updated to build chktrust.exe and signcode.exe
svn path=/trunk/mcs/; revision=17813
* ITrustAnchors.cs: New. Interface to trust anchors.
* TestAnchors.cs: New. Include 2 tests anchors: Microsoft Root Agency
(for Windows compatibility) and Mono Test Root.
* TrustAnchors.cs: New. Include some widely used (commercial) code
signing root certificates.
* X509CertificateCollection.cs: New. Collection for Mono's X509
certificates.
* X509Chain.cs: New. MINIMAL certificate chaining engine to support
Authenticode(tm). VERY PARTIAL IMPLEMENTATION!!!
svn path=/trunk/mcs/; revision=17811
* AuthenticodeBase.cs: New. Base class including how to hash a
PE file.
* AuthenticodeDeformatter.cs: New. Class to decode Authenticode(tm)
signatures.
* AuthenticodeFormatter.cs: New. Class to encode a Authenticode(tm)
signature, and optionally a timestamp, into a PE file.
* SoftwarePublisherCertificate.cs: Now use Mono.Security.X509.
X509Certificate class.
svn path=/trunk/mcs/; revision=17810
* Encoding.cs (UTF8Unmarked): make it also not error out on
invalid input, that is what the Microsoft default is for the
StreamReader and BinaryReader expect (our main consumers).
svn path=/trunk/mcs/; revision=17807
* aot.c (mono_compile_assembly): Emit a symbol containing the file
format version into the generated library.
* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
callee method into the caller since one of them could be shared.
* mini.h mini-x86.c aot.c: Added two new relocations so throwing
system exceptions from AOT code now works.
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
method if it is domain neutral and the callee is not.
* graph.c (cfg_emit_one_loop_level): Fix warning.
svn path=/trunk/mono/; revision=17800
* assembly.h assembly.c: Define a file format version for AOT
libraries.
* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
* appdomain.h (MonoJitInfo): New field to determine whenever the
code is domain neutral.
svn path=/trunk/mono/; revision=17799
* aot.c (mono_compile_assembly): Emit a symbol containing the file
format version into the generated library.
* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
callee method into the caller since one of them could be shared.
* mini.h mini-x86.c aot.c: Added two new relocations so throwing
system exceptions from AOT code now works.
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
method if it is domain neutral and the callee is not.
* graph.c (cfg_emit_one_loop_level): Fix warning.
svn path=/trunk/mono/; revision=17798
* assembly.h assembly.c: Define a file format version for AOT
libraries.
* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
* appdomain.h (MonoJitInfo): New field to determine whenever the
code is domain neutral.
svn path=/trunk/mono/; revision=17796
- New questions & answers
- revised answers for compatibility questions
- moved some questions to more sensible categories (e.g. VB questions moved
to "Compatibility" section, away from "Mono & Microsoft").
- Spelling Fixes
Alas, all my editors (gedit & gvim) "fixed" the spelling of some names,
probably because those editors assume UTF-8 encoding... This was seen for
Carlos Perell�� and Lluis S��nchez.
svn path=/trunk/mono/; revision=17780
* win32functions.cs: Added GetUpdateRect function.
* Control.cs: Make sure to call OnPaint even if UserPaint style is not
enabled. Get the appropriate DC for WM_PAINT operations.
svn path=/trunk/mcs/; revision=17769
* interp.c: Use mono_field_from_token () in the appropriate places.
This simplifies the code and also fixes#48051.
svn path=/trunk/mono/; revision=17752
* icall.c (ves_icall_System_Web_Util_ICalls_get_machine_install_dir):
(ves_icall_System_Configuration_DefaultConfig_get_machine_config_path):
Avoid caching the result since strings must be domain specific. Fixes
#48050.
svn path=/trunk/mono/; revision=17743
* mini.c (mini_init): Call mono_marshal_init () explicitly since it
is needed by code which is executed before mono_runtime_init ().
Thanks to Bernie Solomon ([email protected]) for noticing this.
svn path=/trunk/mono/; revision=17727
* marshal.c (mono_marshal_init): Make this callable multiple times
since it is hard to find a correct place to call it.
svn path=/trunk/mono/; revision=17726
* object.c (mono_runtime_class_init): Execute static constructors in
the correct appdomain.
* image.c (build_guid_table): Handle the case when multiple images have
the same GUID.
svn path=/trunk/mono/; revision=17725
* HttpApplication.cs: ensure we do all the EndRequest steps. Don't
filter the output on error.
* HttpResponse.cs: modified DoFilter to allow bypassing filtering.
svn path=/trunk/mcs/; revision=17713
* inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
* cpu-pentium.md: Fix the length of call opcodes so they include the
ESP restoring instruction. Fixes#47968.
svn path=/trunk/mono/; revision=17700
* icall.c (ves_icall_Type_BindGenericParameters): Use
`klass->generic_inst' instead of `&klass->byval_arg' in the
mono_type_get_object() call. The returned type must be
MONO_TYPE_GENERICINST and not MONO_TYPE_CLASS.
svn path=/trunk/mono/; revision=17698
* critical-sections.c: Patch from Bernie Solomon <[email protected]> to emit a warning if locking a critical section fails.
svn path=/trunk/mono/; revision=17697
* OperationMessage.cs: Added default value attribute for Name property.
* ServiceDescription.cs: Changed order of some properties, so they are
serialized in the right order.
Added GetNamespaceList(), which returns the namespaces to add when serializing
the document.
Implemented classes ServiceDescriptionSerializer and ServiceDescriptionWriter,
that extends the XmlSerializer by adding suport for XmlFormatExtensions.
* ServiceDescriptionReflector.cs: Basic implementation (no support for
extensions yet).
* SoapBinding.cs: Fixed namespace name.
* SoapBodyBinding.cs: Added null check in PartsString property.
* SoapOperationBinding.cs: Fixed namespace name.
svn path=/trunk/mcs/; revision=17693
* Methods.cs: Added SoapBindingStyle, SoapBindingUse, InputMembersMapping
and OutputMembersMapping properties in MethodStubInfo.
Use default value defined in TypeStubInfo for RequestNamespace,
ResponseNamespace and other properties.
Added class BindingInfo to store information about class bindings.
In TypeStubInfo added SoapBindingStyle, DefaultBinding, Methods and
Bindings properties.
* SoapRpcMethodAttribute.cs: Use WebServiceAttribute.DefaultNamespace constant
instead of hardcoded namespace name.
* WebServiceHandlerFactory.cs: Create new SoapDocumentationHandler for
documentation requests.
* SoapDocumentationHandler.cs: new handler that generates WS documentation.
svn path=/trunk/mcs/; revision=17692
* XmlSchemas.cs: Find method: make sure the returned object belongs to
the requested type.
* XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
Add null checks for eventSource.
* XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
* XmlSerializationWriter.cs: In Initialize method, initialize the provided
namespece declarations. Virtual method WriteObject not needed any more.
In WriteStartElement, write the provided namespaces.
* XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
Added GetTypeMap method, that returns the map for a given type. Added some
virtual methods, so writer behavior can be extended at several places by
derived classes.
* XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
methods CreateReader and CreateWriter are not called unless no type or
type mapping was provided in the constructor.
svn path=/trunk/mcs/; revision=17690
* mini-x86.c (mono_arch_call_opcode): Added support for
MONO_TYPE_GENERICINST.
* mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
svn path=/trunk/mono/; revision=17682
* cs-parser.jay (opt_type_argument_list): Use
`OP_GENERICS_LT type_arguments OP_GENERICS_GT'.
(primary_expression): Replace `qualified_identifier' with `type_name'.
(type_parameter_list): Use `OP_GENERICS_LT type_parameters OP_GENERICS_GT'.
* cs-tokenizer.cs (is_punct): When reading a `<', invoke a custom
parser to check whether it is syntactically a type parameter list;
return OP_GENERICS_LT/OP_GENERICS_GT instead of OP_LT/OP_GT in
this case.
svn path=/trunk/mcs/; revision=17675
* Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
a JIT. Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=17670
* interp.c (main): Fix the order of initialization calls so it maches
the order in the JIT.Patch by Bernie Solomon ([email protected]).
Also remove the unused ms mutex.
svn path=/trunk/mono/; revision=17669
* object.c appdomain.h: Get rid of metadata_section.
It is no longer needed and it was causing deadlocks with domain->lock.
* appdomain.c (add_assemblies_to_domain): Make it thread safe.
svn path=/trunk/mono/; revision=17661
* System.Web/HttpApplication.cs: when the request is completed or an
error happens, execute all the delegates attached to EndRequest, not
only the last one. This makes xsp/test/authtest work again.
* System.Web/HttpMethodNotAllowedHandler.cs: fixed description for http
status code.
* System.Web.Security/UrlAuthorizationModule.cs: fixed description for
status code.
* System.Web.Util/UrlUtils.cs: made Reduce work when a "/" is passed.
svn path=/trunk/mcs/; revision=17655
* statement.cs (Using.DoResolve): This is internally emitting a
try/finally clause, so we need to set ec.NeedExplicitReturn if we
do not always return. Fixes#47681.
svn path=/trunk/mcs/; revision=17634
* mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
when reporting an error, set this to the actual error location.
(mono_method_to_ir): Report the correct error location if
get_basic_blocks() returned an error.
svn path=/trunk/mono/; revision=17630
* decl.cs (MemberCore): Moved WarningNotHiding(),
Error_CannotChangeAccessModifiers() and CheckMethodAgainstBase()
into MemberBase.
(AdditionResult): Make this nested in DeclSpace.
(DeclSpace.ctor): The .ctor now takes an additional NamespaceEntry
argument; call NamespaceEntry.Define() unless we're nested in a
class or struct.
* namespace.cs (Namespace.DefineName): New public function. This
is called from DeclSpace's .ctor to add
(Namespace.Lookup): Include DeclSpaces in the lookup.
* class.cs (Operator): Derive from MemberBase, not MemberCore.
* const.cs (Const): Derive from MemberBase, not MemberCore.
svn path=/trunk/mcs/; revision=17627
* mono-hash.h mono-hash.c (mono_g_hash_table_remap): New function used
to remap hashtable values during a copying collection. Not used at the
moment.
* mono-hash.c (g_hash_node_new): Restructured to avoid the global lock
in the common case.
* mono-hash.c (mono_g_hash_table_new_full): Enable the optimization of
the key function even if the client supplied g_direct_equal instead of
NULL.
svn path=/trunk/mono/; revision=17624
* DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
exception. Thanks to Mark Easton <[email protected]>.
svn path=/trunk/mcs/; revision=17622
* System.Web.UI.WebControls/CheckBox.cs: in LoadPostData, only return
true when the new data is different from the one we had. Fixed
conditions to save Checked state. Thanks to [email protected]
(Yaron Shkop).
* System.Web.UI/Page.cs: check if controls that require postback have
been changed by an event and register them to be notified of data
changed event.
Fixes bug #47869.
svn path=/trunk/mcs/; revision=17621
* assembly.c: Reworked assembly loading to make it really thread safe.
After these changes, the assembly returned by mono_assembly_open is
fully initialized, i.e. all its references assemblies are loaded.
* assembly.c (mono_image_load_references): Renamed to
mono_assembly_load_references, and made private, since clients no
longer need to call it.
* class.c: Removed calls to mono_assembly_load_references, since it was
a source of deadlocks.
* loader.h loader.c class.h class.c: Protect data structures using a
new lock, the loader lock.
* class.c (mono_class_setup_vtable): Create temporary hash tables and
GPtrArrays only when needed.
* class.c (mono_class_layout_fields): Ignore the dummy field inserted
into empty structures by mcs. Fixes pinvoke7.cs.
* domain.c (mono_init): Call a new initialization function.
svn path=/trunk/mono/; revision=17617
* appdomain.c (mono_runtime_init): Call the new initializer function
of the marshal module.
* marshal.c (mono_marshal_load_type_info): Ignore the dummy field
inserted into empty structures by mono. Fixes pinvoke7.cs.
* marshal.h marshal.c: Added locks around the wrapper caches to make
this module thread safe.
svn path=/trunk/mono/; revision=17616
* XPathNavigator.cs: "Smart" behavior in Matches. Nice 8x speed
improvement in the method (5ms/call -> .7 ms / call) measured by
monodoc's rendering of N:System.
* Expression.cs: Utility methods to support above.
svn path=/trunk/mcs/; revision=17596
* convert.cs (Convert.ExplicitReferenceConversion): When
converting from an interface type to a class, unbox if the target
type is a struct type. Fixes#47822.
svn path=/trunk/mcs/; revision=17588
enumeration of values. Removed fields to store remote call output values in
MonoAsyncResult. Not needed any more.
* object.c: Initialize call_type and async_result fields in mono_message_init.
* marshal.c: mono_delegate_begin_invoke(): for proxies, set call_type before
dispatching the message.
mono_delegate_end_invoke (): delegate to the proxy the work of waiting for the
async call to finish. To do it use a message with EndInvoke call type.
svn path=/trunk/mono/; revision=17580
* CallContext.cs: Clean current logical context before setting the new
values form LogicalCallContext (SetCurrentCallContext).
* MonoMethodMessage.cs: Added new CallType field and enum.
* StackBuilderSink.cs: Improved error message.
svn path=/trunk/mcs/; revision=17578
* mini.c (mono_type_blittable): OBJECT is not blittable.
(mono_method_blittable): Methods which have marshalling descriptors
are not blittable either. Fixes#47842.
svn path=/trunk/mono/; revision=17573
* XmlValidatingReader.cs : Implemented SchemaType. Added support for
ValidationType.Schema. Added support for XmlResolver. Fixed
ReadTypedValue() not to consume EndElement.
svn path=/trunk/mcs/; revision=17561
* SymmetricAlgorithm.cs: Fixed IV length exception for stream ciphers
(e.g. RC4) which don't uses IV. This needs more tests for small IV...
svn path=/trunk/mcs/; revision=17551
* System.Drawing.dll.sources: Add Cairo implementation.
2003-08-24 Duncan Mak <[email protected]>
Initial checkin of System.Drawing.XrImpl ported to use Cairo.
* Graphics.cs (DrawCurve):
(DrawImageUnscaled):
(IsVisible):Implement the overloads in terms of the other overloads.
(FillClosedCurve): Implement the simple APIs, the default tension
is 0.5, the default FillMode is FillMode.Alternate.
* cairo.cs: A copy of the CairoAPI class from the Mono.Cairo
assembly, with some method parameter/return type changed to better
fit the usage within System.Drawing.
* gdk-helpers.cs: Emulate some of Gdk.Pixbuf's API here,
basically the same as XrImpl's GDKfunctions.cs, but the names of
the functions are nicer, with the help of the DllImportAttribute's
EntryPoint field.
svn path=/trunk/mcs/; revision=17546
* HttpRequest.cs: quick way of checking that the path is within the
root for the application. Thanks to Johannes for reporting.
* HttpRuntime.cs: use the status code from teh exception when it'ss a
HttpException.
* StaticFileHandler.cs: forbidden is 403.
svn path=/trunk/mcs/; revision=17525
* class.cs (MethodData.Define): While checking if a method is an
interface implementation, improve the test a bit more to fix#47654.
svn path=/trunk/mcs/; revision=17523
* get.c (dis_stringify_method_signature): New argument specifying
whenever to return a fully qualified method name.
* dump.c main.c: Updated to work with the new function.
* main.c (dis_property_methods): Print fully qualified method names
for property methods. Fixes#46221.
svn path=/trunk/mono/; revision=17519
to MS.NET).
Removed try/catch from AsyncProcessRequest. If there is an exception it must
flow to the caller.
in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
throws an exception if the result code is 400, 500. Is is not a communication
error, but an application or server error. The content of the body must be
deserialized like in normal responses.
In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
efficient way of writing the content.
In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
* HttpHelper.cs: Removed some debugging code that is not needed.
* HttpServer.cs: Improved formatting of some code.
In CheckRequest method, send a 100-continue response if the request has
the header: expect:100-continue.
Method SendResponse: the remoting formatter may include the result code and
reason phrase to use in the transport headers. Used them if provided.
* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
a request.
svn path=/trunk/mcs/; revision=17515
* SoapMessageFormatter.cs: Fixed some problems with out and ref parameters.
* SoapServerFormatterSink.cs: Improved catching of exceptions.
svn path=/trunk/mcs/; revision=17511
to avoid reuse of client proxies.
* CallSeq.cs: Now, "domain ID" is set manually.
* ContextsTest.cs: Added initialization of common domain id. Other small fixes.
* ReflectionCalls.cs: Get the method for the invoke for the correct type.
GetType() for a proxy to interface always return MarshalByRefObject.
* TcpCalls.cs, HttpCalls.cs: Added delegate tests.
* DelegateCalls.cs: New test suite for calls using delegates.
svn path=/trunk/mcs/; revision=17507
The following two fixes bug #40315.
* Tds.cs (ProcessEndToken): RecordsAffected was not filled
correctly. I've found out that the record count was submitted for
TdsPacketSubType.Done. So I changed the behaviour to include this
(without deeper knowledge of the TDS protocol). Patch from J�rg
Rosenkranz <[email protected]>.
* SqlCommand.cs (ExecuteNonQuery): Return
Connection.Tds.RecordsAffected if it is successful. Patch from
J�rg Rosenkranz <[email protected]>.
* ListControl.cs (DataSource): Implementation by Brian Takita
<[email protected]>.
svn path=/trunk/mcs/; revision=17498
* expression.cs (UnaryMutator.ResolveVariable): If the target is a
LocalVariableReference, ensure it's not read-only. Fixes#47536.
* statement.cs (Fixed.DoResolve): Make all variables read-only.
svn path=/trunk/mcs/; revision=17494
* ecore.cs (FieldExpr.DoResolveLValue): Static read-only fields
can only be assigned in static constructors. Fixes#47161.
svn path=/trunk/mcs/; revision=17493
Rewrote and improved the flow analysis code.
* flowbranching.cs (FlowBranching): Make this class abstract.
(FlowBranching.CreateBranching): New static function to create a
new flow branching.
(FlowBranchingBlock, FlowBranchingException): New classes.
(FlowBranching.UsageVector.Type): New public readonly field.
(FlowBranching.UsageVector.Breaks): Removed the setter.
(FlowBranching.UsageVector.Returns): Removed the setter.
(FlowBranching.UsageVector): Added Break(), Return(),
NeverReachable() and Throw() methods to modify the reachability.
(FlowBranching.UsageVector.MergeChildren): Removed, this is now
done by FlowBranching.Merge().
(FlowBranching.UsageVector.MergeChild): New method; merges the
merge result into the current vector.
(FlowBranching.Merge): New abstract method to merge a branching.
svn path=/trunk/mcs/; revision=17491
* XslVariable.cs : use newly introduced XmlNodeWriter.ctor(false) to
support for tree fragment, not only for single element.
svn path=/trunk/mcs/; revision=17476
* inssel.brg: 64bit fixes from Laurent Morichetti <[email protected]>.
* linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
regalloc.c, regalloc.h: specify available registers in arch-specific
code and support floats in the regallocator (patch by Laurent Morichetti
<[email protected]>)
svn path=/trunk/mono/; revision=17474
* object.c (mono_object_isinst): Fix casts to TransparentProxy in
the interpreter. Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=17467
* String.cs: Created method FormatHelper that does formatting,
using a StringBuilder.
* StringBuilder.cs
(AppendFormat) Use FormatHelper in System.String to avoid
allocating an extra StringBuilder.
(Append string, int, int), (Append char, int): Both were
allocating extra strings.
svn path=/trunk/mcs/; revision=17466
* rawbuffer.c rawbuffer.h: Make this module thread safe.
* domain.c: Make this module thread safe.
* domain.c (mono_init): Call new initialization function.
svn path=/trunk/mono/; revision=17465
* image.c (mono_image_init): Fixed warnings.
* class.c (mono_class_from_typeref): Handle assembly load failure
correctly.
* appdomain.c (add_assemblies_to_domain): Handle the case when
the references of an assembly are not yet loaded.
* metadata.c image.c assembly.c: Moved initialization of global
variables to a separate function called at startup since lazy
initialization of these variables is not thread safe.
* image.c assembly.c: Made this module thread safe by adding locks in
the appropriate places.
* domain.c (mono_init): Call the new initialization functions of the
three modules.
svn path=/trunk/mono/; revision=17458
* mini.c: mono_thread_current() can be called only after
mono_runtime_init(): rearrange code to not call it early on.
svn path=/trunk/mono/; revision=17448
make a direct call. It is proxy's work to make the call asynchronous.
mono_delegate_end_invoke(): If the targe is a proxy, just collect
the return values.
* object.cs: mono_method_call_message_new(): read AsyncResult and
state object from parameters list, if this info is requested.
* object.h: Added fields to store remote call output values in
MonoAsyncResult. Added AsyncResult field in MonoMethodMessage.
svn path=/trunk/mono/; revision=17446
TcpCalls.cs: new test suite for remoting. It tests sync calls, async calls
and reflection calls using tcp and http channels.
* CallSeq.cs, ContextHookAttribute.cs: Add methods for getting a context and
domain ids that are the same between tests runs.
* ContextsTest.cs: unregister channel on test shutdown.
svn path=/trunk/mcs/; revision=17441
* object.h: add needed fields to MonoThread.
* threads.c, threads.h: allow registering a function to cleanup data
allocated per thread by the JIT.
svn path=/trunk/mono/; revision=17437
* FieldDef.cs: Stub method for adding data values
* TypeDef.cs: Implement long form overrides, fix some backwords
variable naming, add a method to lookup data definitions.
svn path=/trunk/mcs/; revision=17434
Rosenkranz <[email protected]>. Currently, if a connection is
closed by an external event (network problem, etc.) it is pushed
back into the connection pool. The next Open call retrieves this
invalid connection which leads to exceptions when executing
statements.
This patch fixes this problem. This closes bug #47429.
svn path=/trunk/mcs/; revision=17431
* Hashtable.cs (PutImpl): Fix my previous checkin, see details
posted on bug #47692.
I really hope I don't mess up this time, because, if I do again,
it will be really embarrassing.
svn path=/trunk/mcs/; revision=17430
* ControlCollection.cs:
* EmptyControlCollection.cs: create a minimum ArrayList for this.
* BaseParser.cs: added setter for BaseVirtualDir.
* Page.cs: fixed message when restoring view state fails.
* UserControlParser.cs: set the BaseVirtualDirectory to handle the case
when a relative path to the control is given. Fixes bug #47685.
svn path=/trunk/mcs/; revision=17424
* Style.cs: the MARKED bit is not send set in ViewState unless something
is changed. Fixed TrackViewState condition.
* WebControl.cs: save the base ViewState *after* ControlStyle is done,
because it uses the same ViewState as the control. Fixes bug #47725.
svn path=/trunk/mcs/; revision=17421
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
infinite loop.
* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
Commented out Console.Error.WriteLine().
* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
escape and unescape for relative URI string.
svn path=/trunk/mcs/; revision=17414
* Compiler.cs : Fixed XslNameUtil.FromString() so that unprefixed name
won't have default namespace. See http://www.w3.org/TR/xslt#qname
svn path=/trunk/mcs/; revision=17412
* XslTransformProcessor.cs: add support for resolving documents.
* XsltCompiledContext: add support for document () function.
svn path=/trunk/mcs/; revision=17410
* Outputter.cs, TextOutputter.cs, XmlOutputter.cs: Implement some
of the abstract methods in Outputter, making them call other
functions with default values, remove impl's in derived classes.
svn path=/trunk/mcs/; revision=17407
* Outputter.cs: s/Close/Done
* TextOutputter.cs, XmlOutputter.cs: Flush, don't close the backing.
* XslTransformProcessor.cs: Flush output when popping, pop at end.
svn path=/trunk/mcs/; revision=17406
* Outputter.cs: Add support for namespaces.
* XslCopyOf.cs, XslLiteralElement: Use namespace support in Outputter.
svn path=/trunk/mcs/; revision=17405
* Compiler.cs, XslOutput.cs, XslStylesheet.cs,
XslTransformProcessor.cs: move output logic from XslStylesheet to
Compiler.
* XslVariable.cs: sync to API changes
* ManagedXslTransform.cs: sync to API changes
svn path=/trunk/mcs/; revision=17404
* XslOutput.cs: add support for encoding.
* ManagedXslTransform.cs, XslTransformImpl.cs: Add support for
encoding.
svn path=/trunk/mcs/; revision=17395
* MethodDef.cs: Make some properties public, Add method to get a
list of parameter types. This is used to build signatures. Alow
sentinels in signatures and in param lists. Fix some tabbing.
* ParamDef.cs: Expose the parameters type so they can be used when
building signatures.
* TypeDef.cs: Add and emit overrides.
svn path=/trunk/mcs/; revision=17391
* HttpException.cs: make the unhandled error more like the MS one.
* HttpRuntime.cs: set a 500 error code on unhandled exceptions.
svn path=/trunk/mcs/; revision=17390
* HttpResponse.cs: flush headers when the body length is 0.
* StaticFileHandler.cs: added If-Modified-Since handling patch slightly
modified from the original by Piers Haken <[email protected]>.
svn path=/trunk/mcs/; revision=17387
* System.Xml.dll.source: add System.Xml/HighWaterStack.cs
* XmlChar.cs (IsWhitespace): Spare enumerator allocation.
* XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
fat, use low-fat loops instead. Even better, call the function
inside XmlChar for code reuse.
* HighWaterStack.cs (added): New class that acts like a Stack, but
helps with memory allocation.
* XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
HighWaterStack.
* XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
use a variable that stores the position in the ArrayList.
svn path=/trunk/mcs/; revision=17385
* XmlTextWriter.cs: Begin diet. String.Format has too much
saturated fat, lets replace with the fat-free .Write ()
calls. Effects best seen when Paolo's StreamWriter patch is
applied.
svn path=/trunk/mcs/; revision=17384
* Control.cs: when we load the viewstate for a control that has children
viewstates and the child is not found, keep its viewstate around and
wait until the child is added to load the viewstate. Fixes bug #47697.
svn path=/trunk/mcs/; revision=17381
* interp.c: Get rid of duplicate definition of CHECK_MUL_OVERFLOW.
* interp.h interp.c: Get rid of VAL_VALUETA, use VAL_MP instead. Fix
the INITOBJ opcode which was the only user of VALUETA.
svn path=/trunk/mono/; revision=17380
Currently Hashtable.PutImpl has an incorrect test which causes the
key chain search to terminate as soon as a free slot is found,
causing key duplication.
svn path=/trunk/mcs/; revision=17376
* XslComment.cs, XslTemplateContent.cs: remove dead variables.
* XsltCompiledContext.cs, Compiler.cs: copy the XPathNavigator
from the stylesheet for correct namespace resolution.
* XslTransformImpl.cs: close XmlTextWriter when we create it.
svn path=/trunk/mcs/; revision=17374
* reflection.h reflection.c (mono_param_get_objects): Changed this to
return a MonoArray. This simplifies the code and also ensures that
the cache allways contains an object reference as a value.
* icall.c (ves_icall_get_parameter_info): Simplified using the new
function.
svn path=/trunk/mono/; revision=17367
* interp.c (ves_exec_method): Implemented mul.ovf correctly for int32
and int64. Implemented the conv.ovf opcodes for all argument types.
2003-08-15 Zoltan Varga <[email protected]>
(ves_exec_method): Added support for the synchronized flag to the
interpreter. Also fixed the CALLI opcode, and made exception handling
work though the managed-unmanaged barrier.
svn path=/trunk/mono/; revision=17366
* HyperLinkColumn.cs: patch from David Pickens <[email protected]>
that fixes databinding when only DataTextField or DataNavigateUrlField
is set.
svn path=/trunk/mcs/; revision=17365
* socket-io.c: patch by Bernie Solomon <[email protected]> that
fixes a problem with byte ordering when getting the address family for
a socket.
svn path=/trunk/mono/; revision=17364
* Microsoft.CSharp/CSharpCodeGenerator.cs:
- fixed support for method references where target
object is null
- fixed CodeThrowExceptionStatement
- disabled member access modifiers for private method
implementations
- disabled generation of empty method body for interface
declarations
- disabled generation of empty property accessor bodies
in interface declarations
- added support for indexers (properties named "Item")
- added support for chained constructor arguments and
base constructor arguments
* System.CodeDom/CodeTypeDeclaration.cs:
- TypeAttributes of CodeTypeDeclaration now defaults to
TypeAttributes.Public (same as MS implementation)
svn path=/trunk/mcs/; revision=17363
correct ByteFX.Data.MySqlClient (note the change in
capitalization). Thanks to Tom Wagner <[email protected]> for
spotting the error.
svn path=/trunk/mono/; revision=17360
* reflection.h reflection.c loader.c: Added support for parameter
marshalling to dynamically created types. Fixes#47295.
svn path=/trunk/mono/; revision=17356
* Report.cs: New file - All error/warning/progress reporting will
go through here.
* ilasm.exe.sources: Add report to build
svn path=/trunk/mcs/; revision=17353
* HttpResponse.cs: another patch from totte and me. This one prevents
writing output if the client have disconnected and filters the data
when there's a non-final Flush in the middle of the process.
svn path=/trunk/mcs/; revision=17343
ContextLevelActivator.cs, RemoteActivationAttribute.cs,
RemoteActivator.cs: Changed class from public to internal.
svn path=/trunk/mcs/; revision=17336
* ListControl.cs: patch by Yaacov Akiba Slama <[email protected]> that
fixes selection of values before assigning a data source and other
issues.
svn path=/trunk/mcs/; revision=17333
2003-07-17 Peter Williams <[email protected]>
* DTMXPathDocumentBuilder.cs: csc.exe is more stringent about namespaces
than mcs. We need to disambiguate System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=17331
* DTDValidatingReader.cs : Added SchemaType.
Read() Assures to return to element.
* DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
* XmlReader.cs : ReadString() should be virtual in NET_1_1.
* XmlTextReader.cs : 1) Depth should consider Attribute and its values.
Introduced insideAttribute field to support them.
2) ReadAttributeValue() should consider empty string.
* XmlValidatingReader.cs :
Fixed several properties which premised as if it was already read.
Encoding and Namespaces now throws NotSupportedException for other
than XmlTextReader.
Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
svn path=/trunk/mcs/; revision=17330
* DTMXPathDocument.cs,
DTMXPathDocumentBuilder.cs,
DTMXPathNavigator.cs :
- Implemented ID support using XmlValidatingReader.
- Prefix should be String.Empty even if XmlReader.Prefix is null.
svn path=/trunk/mcs/; revision=17328
* Compiler.cs : 1) Changed public .ctor() to receive Evidence argument
introduced in .NET 1.1. 2) XmlResolver object is required for 'res'.
svn path=/trunk/mcs/; revision=17324
* XslApplyTemplates.cs,
XslCallTemplate.cs : Should accept other than element content such
as comment and PI.
* XslNumber.cs : In Compile(), 'value' might not exist. (Think about
it later if how it should be.)
* XslTemplateContent.cs : "comment" and "number" support. (I know they
are still incomplete.)
svn path=/trunk/mcs/; revision=17323
Read-only data is data which is not modified after creation, like the
actual binary metadata in the metadata tables.
There are three kinds of threads with regards to read-only data:
- readers
- the creator of the data
- the destroyer of the data
Most threads are readers.
- synchronization between readers is not neccesary
- synchronization between the writers is done using locks.
- synchronization between the readers and the creator is done by not exposing
the data to readers before it is fully constructed.
- synchronization between the readers and the destroyer: TBD.
1.2 Deadlock prevention plan
----------------------------
Hold locks for the shortest time possible. Avoid calling functions inside
locks which might obtain global locks (i.e. locks known outside this module).
1.3 Locks
----------
1.3.1 Simple locks
------------------
There are a lot of global data structures which can be protected by a 'simple' lock. Simple means:
- the lock protects only this data structure or it only protects the data structures in a given C module.
An example would be the appdomains list in domain.c
- the lock is only held for a short amount of time, and no other lock is acquired inside this simple lock. Thus there is
no possibility of deadlock.
1.3.2 The class loader lock
---------------------------
This locks is held by the class loading routines in class.c and loader.c. It
protects the various caches inside MonoImage which are used by these modules.
1.3.3 The domain lock
---------------------
Each appdomain has a lock which protects the per-domain data structures.
1.3.4 The locking hierarchy
---------------------------
It is useful to model locks by a locking hierarchy, which is a relation between locks, which is reflexive, transitive,
and antisymmetric, in other words, a lattice. If a thread wants to acquire a lock B, while already holding A, it can only
do it if A < B. If all threads work this way, then no deadlocks can occur.
Our locking hierarchy so far looks like this:
<DOMAIN LOCK>
\
<CLASS LOADER LOCK>
\ \
<SIMPLE LOCK 1> <SIMPLE LOCK 2>
1.4 Notes
----------
Some common scenarios:
- if a function needs to access a data structure, then it should lock it itself, and do not count on its caller locking it.
So for example, the image->class_cache hash table would be locked by mono_class_get().
- there are lots of places where a runtime data structure is created and stored in a cache. In these places, care must be
taken to avoid multiple threads creating the same runtime structure, for example, two threads might call mono_class_get ()
with the same class name. There are two choices here:
<enter mutex>
<check that item is created>
if (created) {
<leave mutex>
return item
}
<create item>
<store it in cache>
<leave mutex>
This is the easiest solution, but it requires holding the lock for the whole time which might create a scalability problem, and could also lead to deadlock.
<enter mutex>
<check that item is created>
<leave mutex>
if (created) {
return item
}
<create item>
<enter mutex>
<check that item is created>
if (created) {
/* Another thread already created and stored the same item */
<free our item>
<leave mutex>
return orig item
}
else {
<store item in cache>
<leave mutex>
return item
}
This solution does not present scalability problems, but the created item might be hard to destroy (like a MonoClass).
- lazy initialization of hashtables etc. is not thread safe
MessageBoxMB_YESNO"Mono ${MILESTONE} has been removed, but the default installation of Mono differs form this version. Should the wrappers and the Mono registry key be still be removed? This could disable other Mono installations."IDNOGoNext2
DeleteWrappers:
; Complete Uninstall
DeleteRegKeyHKLMSOFTWARE\Mono
Delete$WINDIR\monobasepath.bat
Delete$WINDIR\mcs.bat
Delete$WINDIR\mbas.bat
Delete$WINDIR\mint.bat
Delete$WINDIR\mono.bat
Delete$WINDIR\monodis.bat
Delete$WINDIR\monoilasm.bat
Delete$WINDIR\sqlsharp.bat
Delete$WINDIR\secutil.bat
Delete$WINDIR\cert2spc.bat
Delete$WINDIR\monoresgen.bat
Delete$WINDIR\monosn.bat
Delete$WINDIR\cilc.bat
GoNext2:
NoUnInstall:
SectionEnd
Section
; Warn people if a newer Mono is already installed
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.