Module openj9.dtfj

Class PHDCorruptJavaLocation

java.lang.Object
com.ibm.dtfj.phd.PHDCorruptData
com.ibm.dtfj.phd.PHDCorruptJavaLocation
All Implemented Interfaces:
CorruptData, JavaLocation

public class PHDCorruptJavaLocation extends PHDCorruptData implements JavaLocation
  • Method Details

    • getCompilationLevel

      public int getCompilationLevel() throws CorruptDataException
      Description copied from interface: JavaLocation
      Get the compilation level for this location. This is an implementation defined number indicating the level at which the current location was compiled. 0 indicates interpreted. Any positive number indicates some level of JIT compilation. Typically, higher numbers indicate more aggressive compilation strategies

      For native methods, a non-zero compilation level indicates that some level of JIT compilation has been applied to the native call (e.g. a custom native call stub). To determine if the method is native, use getMethod().getModifiers().

      Specified by:
      getCompilationLevel in interface JavaLocation
      Returns:
      the compilation level
      Throws:
      CorruptDataException
    • getFilename

      public String getFilename() throws DataUnavailable, CorruptDataException
      Description copied from interface: JavaLocation
      Get the source file name.
      Specified by:
      getFilename in interface JavaLocation
      Returns:
      the name of the source file, if available, or throws DataUnavailable if it is not available
      Throws:
      DataUnavailable - if the source file name is unavailable in the core
      CorruptDataException
    • getLineNumber

      public int getLineNumber() throws DataUnavailable, CorruptDataException
      Description copied from interface: JavaLocation
      Get the line number.
      Specified by:
      getLineNumber in interface JavaLocation
      Returns:
      the line number, if available, or throws DataUnavailable if it is not available Line numbers are counted from 1
      Throws:
      DataUnavailable - if the line number data is not available for this location
      CorruptDataException
    • getMethod

      public JavaMethod getMethod() throws CorruptDataException
      Description copied from interface: JavaLocation
      Get the method which contains the point of execution.
      Specified by:
      getMethod in interface JavaLocation
      Returns:
      the method which contains the point of execution
      Throws:
      CorruptDataException