Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343800

Cleanup definition of NULL_WORD

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • b27

      NULL_WORD exists to provide an integral value representing null, primarily as a literal in x86 assembly code. (There are a small number of uses outside of x86 assembly code, some of which might be considered questionable.)

      The definition of NULL_WORD varies by platform. It's also a macro. It seems like a sufficient definition for all platforms would be

      const intptr_t NULL_WORD = 0;

      In particular, it really ought not ever be defined as equivalent to NULL.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: