RFR: JDK-8310510: WordsPerLong is wrong for 64-bit platforms
Thomas Stuefe
stuefe at openjdk.org
Wed Jun 21 13:45:11 UTC 2023
On Wed, 21 Jun 2023 12:41:41 GMT, David Holmes <dholmes at openjdk.org> wrote:
>
> Not sure how this can be wrong given it means "number of stack slots for a Java long" - which is 2. ??
Wrong as in "does not fit hotspot terminology". All other uses of "Word" in this file mean "pointer-sized" aka "4bytes on 32-bit, 8bytes on 64-bit". E.g. `wordSize = sizeof(char*);`. "Long" means always 8 bytes, always. So, "WordsPerLong=2" would be only correct for 32-bit platforms.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14580#issuecomment-1600859605
More information about the hotspot-dev
mailing list