Withdrawn: 8295067: Remove virtual from ResourceObj::print_on

Johan Sjölen jsjolen at openjdk.org
Mon Oct 10 14:48:53 UTC 2022


On Mon, 10 Oct 2022 13:23:06 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> We never use this method in any virtual manner. For example, we never iterate over `ResourceObj*` where the underlying types are different subclasses of `ResourceObj`. Removing `virtual` removes 8 bytes from each allocation (24 bytes -> 16 bytes) and also allows subclasses `print_on` to be non-`const`.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk/pull/10630


More information about the hotspot-runtime-dev mailing list