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
8265101: Remove unnecessary functions in os*.inline.hpp #3475
8265101: Remove unnecessary functions in os*.inline.hpp #3475
Conversation
|
/label remove serviceability |
@iklam |
Webrevs
|
Hi Ioi,
This all seems fine to me. I agree these seem unlikely to need to be inlined for performance.
Thanks,
David
@iklam This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
Thanks @dholmes-ora and @kimbarrett for the review. |
@iklam Since your change was applied there have been 2 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 33b6378. |
Many functions like
os::write
,os::exit
,os::dll_unload
, etc, are implemented in various os*.inline.hpp files. This forces many .hpp and .cpp files to explicitly include "runtime/os.inline.hpp".There's no performance reason to inline these functions. They will make a system call, whose overhead is way bigger than the cost of making an extra function call.
The full list methods moved from
os*inline.hpp
toos_<platform>.cpp
are:I also took this chance to remove unnecessary inclusion of os.hpp and os.inline.hpp from various files. I added some missing
#include
directives that were exposed as a result.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3475/head:pull/3475
$ git checkout pull/3475
Update a local copy of the PR:
$ git checkout pull/3475
$ git pull https://git.openjdk.java.net/jdk pull/3475/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3475
View PR using the GUI difftool:
$ git pr show -t 3475
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3475.diff