projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b06c6a
)
[jit] Mark bblocks making calls to the corlib ThrowHelper class as out of line. ...
author
Zoltan Varga
<vargaz@gmail.com>
Tue, 9 May 2017 18:33:26 +0000
(14:33 -0400)
committer
GitHub
<noreply@github.com>
Tue, 9 May 2017 18:33:26 +0000
(14:33 -0400)
mono/mini/method-to-ir.c
patch
|
blob
|
history
diff --git
a/mono/mini/method-to-ir.c
b/mono/mini/method-to-ir.c
index 42cfa1b7bcbe5bec782d576aaae349515b70bd4b..d3dae70204bde121eaea2870836f2e084f323960 100644
(file)
--- a/
mono/mini/method-to-ir.c
+++ b/
mono/mini/method-to-ir.c
@@
-8734,6
+8734,9
@@
mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
sp -= n;
+ if (cmethod && cmethod->klass->image == mono_defaults.corlib && !strcmp (cmethod->klass->name, "ThrowHelper"))
+ cfg->cbb->out_of_line = TRUE;
+
/*
* We have the `constrained.' prefix opcode.
*/