Withdrawn: 8337597: Macros should be defined in the global namespace in src/hotspot/share/memory/metaspace

Casper Norrbin duke at openjdk.org
Tue Aug 20 08:10:53 UTC 2024


On Fri, 16 Aug 2024 08:40:17 GMT, Casper Norrbin <duke at openjdk.org> wrote:

> Hi everyone,
> 
> Metaspace currently contains macros that appear to be scoped within the `metaspace` namespace, but in reality, their scope is global. To avoid confusion, these macros should be moved to the global namespace.
> 
> Additionally, there are instances where macros are defined within functions for localized use. Moving these macros outside the functions would introduce unnecessary complexity. Instead, I’ve opted to `#undef` these macros immediately after their use, ensuring they remain accessible only within their respective functions.
> 
> Thanks!

This pull request has been closed without being integrated.

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

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


More information about the hotspot-runtime-dev mailing list