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

Cleanup definition of NULL_WORD

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot

      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.

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

              Created:
              Updated: