8264797: Do not include klassVtable.hpp from instanceKlass.hpp #3360
instanceKlass.hpp is a popular header, included by 647 of about 1000 HotSpot .o files. It unnecessarily includes klassVtable.hpp (only forward class declarations are needed).
After refactoring, the number of .o files that includes klassVtable.hpp reduces from 647 to 132.
@iklam This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 10 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 for the review.
I looked this up to make sure what I am doing is allowed. Accord to the C++ specification, a forward-declared class is an incomplete type, which cannot be used "in general, when the size and layout of the type must be known". In this case, we just have a declaration of a function, so an incomplete type is allowed.
@iklam Since your change was applied there have been 12 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit c3abdc9.