Package javax.tools.diagnostics.image

Examples of javax.tools.diagnostics.image.ImageProcess


       
        if (nextProcess instanceof CorruptData) {
          continue;
        }
       
        ImageProcess process = (ImageProcess) nextProcess;
       
        List runtimes = process.getRuntimes();
       
        for (Object nextRuntime : runtimes) {
         
          if (nextRuntime instanceof CorruptData) {
            continue;
View Full Code Here


 
  private boolean printSymbol(long pointer, long diff, int pointerSize, ImageAddressSpace ias)
  {
    Iterator itProcess = ias.getProcesses().iterator();
    while (itProcess.hasNext()) {
      ImageProcess ip = (ImageProcess)itProcess.next();
      Iterator itModule;
      try {
        itModule = ip.getLibraries().iterator();
      } catch (CorruptDataException e) {
        // FIXME
        itModule = null;
      } catch (DataUnavailable e) {
        // FIXME
View Full Code Here

    Iterator itAddressSpace;
    Iterator itProcess;
    Iterator itRuntime;
    ManagedRuntime mr;
    ImageAddressSpace ias;
    ImageProcess ip;
   
    itAddressSpace = loadedImage.getAddressSpaces().iterator();
    while (itAddressSpace.hasNext()) {
      ias = (ImageAddressSpace)itAddressSpace.next();
      itProcess = ias.getProcesses().iterator();
      while (itProcess.hasNext())
      {
        ip = (ImageProcess)itProcess.next();
        itRuntime = ip.getRuntimes().iterator();
        while (itRuntime.hasNext()) {
          // this iterator can contain ManagedRuntime or CorruptData objects
          Object next = itRuntime.next();
          if (next instanceof CorruptData) {
            continue; // skip any CorruptData objects
View Full Code Here

    }
  }
 
  private JavaRuntime getRuntime(ImageAddressSpace addressSpace)
  {
    ImageProcess process = addressSpace.getCurrentProcess();
   
    if(process == null) {
      out.error("Couldn't get handle on current process");
      return null;
    }
   
    Iterator runtimeIterator = process.getRuntimes().iterator();
   
    if(! runtimeIterator.hasNext()) {
      out.error("Cannot find a runtime");
      return null;
    }
View Full Code Here

    while (itAddressSpace.hasNext())
    {
      ias = (ImageAddressSpace)itAddressSpace.next();
      out.print("\taddress space # " + asnum + "\n");
     
      ImageProcess ip = ias.getCurrentProcess();
      if (ip == null)
      {
        out.print("\t(No current process in this address space)\n");
      }
      else
View Full Code Here

  private JavaRuntime getJavaRuntime(Image loadedImage) {
   
    for(Object space:loadedImage.getAddressSpaces()) {
      if(space instanceof  ImageAddressSpace ) {
        ImageAddressSpace addr=(ImageAddressSpace) space;
        ImageProcess process=addr.getCurrentProcess();
        if(process!=null) {
          for(Object rt:process.getRuntimes()) {
            if(rt instanceof JavaRuntime) return (JavaRuntime) rt;
          }
        }
       
      }
View Full Code Here

TOP

Related Classes of javax.tools.diagnostics.image.ImageProcess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.