GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — Optimize NMethod type check by apangin · Pull Request #1701 · async-profiler/async-profiler Conversation
|
| Benchmark | Before | After | % |
|---|---|---|---|
| spring-petclinic | 13042 | 11656 | -10.6% |
| renaissance dotty | 18490 | 16322 | -11.7% |
This change was inspired by @fandreuz's PR: #1662
However, what I'm not happy about in that implementation is that it makes isType methods stateful. I found that the actual performance issue was not in the string comparison itself, but rather in an indirect call to a standard library function. I went further and replaced isInterpreter with a single pointer comparison, since HotSpot has exactly one Code Blob with the name Interpreter.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| anchor = NULL; | ||
| } | ||
|
|
||
| if (nm->isNMethod()) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
No actual changes; just swapped nm->isInterpreter() and nm->isNMethod() branches.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.