RFR: 8274322: Problems with oopDesc construction [v2]

Kim Barrett kbarrett at openjdk.java.net
Fri Oct 1 00:29:16 UTC 2021


On Thu, 30 Sep 2021 11:18:51 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   dholmes review
>
> src/hotspot/share/oops/markWord.hpp line 79:
> 
>> 77: 
>> 78:   // It is critical for performance that this class be trivially
>> 79:   // destructable, copyable, and assignable.
> 
> Given the comment, would it make sense to also explicitly mark them as `= default`?

Yes.  That would make it hard for someone to break the restriction without reading the comment.

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

PR: https://git.openjdk.java.net/jdk/pull/5729


More information about the hotspot-dev mailing list