RFR: 8342011: Conditionally compile ReservedHeapSpace compressed heap support [v2]

Stefan Karlsson stefank at openjdk.org
Thu Oct 17 07:08:14 UTC 2024


On Wed, 16 Oct 2024 22:45:26 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> src/hotspot/share/memory/virtualspace.cpp line 646:
>> 
>>> 644: #ifndef _LP64
>>> 645:     NOT_LP64(ShouldNotReachHere();)
>>> 646: #else
>> 
>> Suggestion:
>> 
>> #ifndef _LP64
>>     ShouldNotReachHere();
>> #else
>> 
>> With that said, I think it would be nicer to invert the code:
>> 
>> #ifdef _LP64
>>   ... All the code we typically care of up front
>> #else
>>   ... Code we typically ignore
>>   ShouldNotReachHere();
>> #endif
>
> Yeah, forgot to remove the NOT_LP64.
> 
> Flipping the order seemed like it made the 32bit case coverage easy to miss.  But maybe that's okay. 
> And it's not really all that far apart.  So okay, I've made that change.

Thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21484#discussion_r1804222731


More information about the hotspot-runtime-dev mailing list