- 
                Notifications
    You must be signed in to change notification settings 
- Fork 5.2k
[mono] Miscellaneous startup optimizations #101263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -735,6 +735,17 @@ mono_class_create_from_typedef (MonoImage *image, guint32 type_token, MonoError | |
| } | ||
| } | ||
|  | ||
| // compute is_exception_class, used by interp to avoid inlining exception handling code | ||
| if ( | ||
| klass->parent && !m_class_is_valuetype (klass) && | ||
| !m_class_is_interface (klass) | ||
| ) { | ||
| if (m_class_is_exception_class (klass->parent)) | ||
| klass->is_exception_class = 1; | ||
| else if (!strcmp (klass->name, "Exception") && !strcmp(klass->name_space, "System")) | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is a  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think that's not applicable here since it wouldn't have a value while we're initializing System.Exception, right? | ||
| klass->is_exception_class = 1; | ||
| } | ||
|  | ||
| mono_loader_unlock (); | ||
|  | ||
| MONO_PROFILER_RAISE (class_loaded, (klass)); | ||
|  | @@ -926,6 +937,7 @@ mono_class_create_generic_inst (MonoGenericClass *gclass) | |
| klass->this_arg.byref__ = TRUE; | ||
| klass->is_inlinearray = gklass->is_inlinearray; | ||
| klass->inlinearray_value = gklass->inlinearray_value; | ||
| klass->is_exception_class = gklass->is_exception_class; | ||
| klass->enumtype = gklass->enumtype; | ||
| klass->valuetype = gklass->valuetype; | ||
|  | ||
|  | ||
Uh oh!
There was an error while loading. Please reload this page.