RFR: 8234779: Provide idiom for declaring classes noncopyable

Kim Barrett kim.barrett at oracle.com
Mon Dec 2 19:49:02 UTC 2019


> On Dec 2, 2019, at 4:04 AM, Per Liden <per.liden at oracle.com> wrote:
> I'd also like to suggest that this type of macro belongs in globalDefinitions.hpp rather than macros.hpp, since it feels more akin to ALWAYSINLINE/ATTRIBUTE_ALIGNED/etc than INCLUDE_JVMTI/X86_ONLY/etc.

Yeah, now that you point it out, macros.hpp is definitely the wrong place for it.
I personally don’t care for the dumping ground that is globalDefinitions.hpp and
would prefer smaller and more focused headers, but that’s an entirely different
discussion.  I’ll move this new macro there and clean up the patch accordingly
(there are #include changes that will need adjusting).




More information about the hotspot-dev mailing list