Skip to content

Handle Java null pointers (and divide by zero, etc.) #4

Open
@dzagieboylo

Description

@dzagieboylo

From @gharrma on February 23, 2017 4:23

Options:

  • Write a signal handler for SIGSEGV that (somehow) throws a NullPointerException. See here for tips.
  • Emit code that checks for null on each dereference, with the potential to remove redundant checks.
  • Just crash, and make it clear that PolyLLVM does not support NullPointerExceptions. (But even if this were ok for client code, I doubt it would be OK for the Java library...)

Copied from original issue: gharrma/polyllvm#20

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions