You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@@ -405,7 +405,7 @@ namespace System.Text.RegularExpressions {
|
||||
* This method is internal virtual so the jit does not inline it.
|
||||
*/
|
||||
[
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
HostProtection(MayLeakOnAbort=true),
|
||||
#endif
|
||||
MethodImplAttribute(MethodImplOptions.NoInlining)
|
||||
@@ -1252,7 +1252,7 @@ namespace System.Text.RegularExpressions {
|
||||
#if !(SILVERLIGHT || FULL_AOT_RUNTIME)
|
||||
/// <devdoc>
|
||||
/// </devdoc>
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
[HostProtection(MayLeakOnAbort=true)]
|
||||
#endif
|
||||
[ResourceExposure(ResourceScope.Machine)] // The AssemblyName is interesting.
|
||||
@@ -1265,7 +1265,7 @@ namespace System.Text.RegularExpressions {
|
||||
|
||||
/// <devdoc>
|
||||
/// </devdoc>
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
[HostProtection(MayLeakOnAbort=true)]
|
||||
#endif
|
||||
[ResourceExposure(ResourceScope.Machine)] // The AssemblyName is interesting.
|
||||
@@ -1275,7 +1275,7 @@ namespace System.Text.RegularExpressions {
|
||||
CompileToAssemblyInternal(regexinfos, assemblyname, attributes, null);
|
||||
}
|
||||
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
[HostProtection(MayLeakOnAbort=true)]
|
||||
#endif
|
||||
[ResourceExposure(ResourceScope.Machine)]
|
||||
@@ -1408,12 +1408,16 @@ namespace System.Text.RegularExpressions {
|
||||
/// <devdoc>
|
||||
/// </devdoc>
|
||||
protected bool UseOptionC() {
|
||||
/* Mono: Set to false until we investigate https://bugzilla.xamarin.com/show_bug.cgi?id=25671 */
|
||||
return false;
|
||||
#if FULL_AOT_RUNTIME
|
||||
return false;
|
||||
#else
|
||||
|
||||
#if MONO
|
||||
/* Mono: Set to false until we investigate https://bugzilla.xamarin.com/show_bug.cgi?id=25671 */
|
||||
return false;
|
||||
#else
|
||||
return(roptions & RegexOptions.Compiled) != 0;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
@@ -1 +1 @@
|
||||
6f191129671672f5a0d3c58901385525b798814c
|
||||
5a60311ee31fcc8fcb19b911668c562b11ce4123
|
@@ -77,7 +77,7 @@ namespace System.Text.RegularExpressions {
|
||||
/// multiple threads.</para>
|
||||
/// </devdoc>
|
||||
#if !SILVERLIGHT
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
[HostProtection(Synchronization=true)]
|
||||
#endif
|
||||
static public Group Synchronized(Group inner) {
|
||||
|
@@ -201,7 +201,7 @@ namespace System.Text.RegularExpressions {
|
||||
/// </devdoc>
|
||||
|
||||
#if !SILVERLIGHT
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
[HostProtection(Synchronization=true)]
|
||||
#endif
|
||||
static public Match Synchronized(Match inner) {
|
||||
|
@@ -567,11 +567,11 @@ namespace System.Text.RegularExpressions {
|
||||
// This is code for Posix style properties - [:Ll:] or [:IsTibetan:].
|
||||
// It currently doesn't do anything other than skip the whole thing!
|
||||
if (CharsRight() > 0 && RightChar() == ':' && !inRange) {
|
||||
String name;
|
||||
// String name;
|
||||
int savePos = Textpos();
|
||||
|
||||
MoveRight();
|
||||
name = ScanCapname();
|
||||
/* name = */ ScanCapname();
|
||||
if (CharsRight() < 2 || MoveRightGetChar() != ':' || MoveRightGetChar() != ']')
|
||||
Textto(savePos);
|
||||
// else lookup name (nyi)
|
||||
|
@@ -28,7 +28,7 @@ namespace System.Text.RegularExpressions {
|
||||
protected internal override RegexRunner CreateInstance() {
|
||||
CompiledRegexRunner runner = new CompiledRegexRunner();
|
||||
|
||||
#if FEATURE_MONO_CAS
|
||||
#if MONO_FEATURE_CAS
|
||||
new ReflectionPermission(PermissionState.Unrestricted).Assert();
|
||||
#endif
|
||||
runner.SetDelegates((NoParamDelegate) goMethod.CreateDelegate(typeof(NoParamDelegate)),
|
||||
|
Reference in New Issue
Block a user