Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3819 from WalterBright/fix13193
[reg] fix Issue 13193 - Extreme slowdown in compilation time of OpenSSL in Tango for optimized build
- Loading branch information
Showing
2 changed files
with
129 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
// REQUIRED_ARGS: -O -inline -c | ||
|
||
|
||
final class SharedLib { | ||
void getSymbol() {return getSymbolImpl();} | ||
void getSymbolImpl() {return getSymbol_();} | ||
/* add more intermediate functions to go slower */ | ||
void getSymbol_() {} | ||
} | ||
|
||
|
||
void test13193() | ||
{ | ||
SharedLib ssllib; | ||
void bindFunc() {ssllib.getSymbol();} | ||
bindFunc(); /* add more of these to go slower */ | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 10 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 20 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 30 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 40 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 50 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 60 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 70 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 80 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 90 */ | ||
|
||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); | ||
bindFunc(); /* 100 */ | ||
} | ||
|