public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: cagney@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Trim Host.get(TaskId).
Date: Wed, 27 Feb 2008 19:43:00 -0000	[thread overview]
Message-ID: <20080227194359.4229.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  f0bc57dd50f9c00eddfc9b054fd9e5f2e717de36 (commit)
      from  d65cdc1ffc9f4e023508552b16a530f04c96458a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit f0bc57dd50f9c00eddfc9b054fd9e5f2e717de36
Author: Andrew Cagney <cagney@redhat.com>
Date:   Wed Feb 27 14:43:04 2008 -0500

    Trim Host.get(TaskId).
    
    frysk-core/frysk/proc/ChangeLog
    2008-02-27  Andrew Cagney  <cagney@redhat.com>
    
    	* ProcEvent.java (getProcFromTaskId()): Delete.
    	* Host.java (get(TaskId)): Delete.
    	* Proc.java (getMainTask()): Use taskPool, not Host.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/proc/ChangeLog      |    4 ++++
 frysk-core/frysk/proc/Host.java      |    5 -----
 frysk-core/frysk/proc/Proc.java      |    2 +-
 frysk-core/frysk/proc/ProcEvent.java |   12 ------------
 4 files changed, 5 insertions(+), 18 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index e488180..863fd83 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,5 +1,9 @@
 2008-02-27  Andrew Cagney  <cagney@redhat.com>
 
+	* ProcEvent.java (getProcFromTaskId()): Delete.
+	* Host.java (get(TaskId)): Delete.
+	* Proc.java (getMainTask()): Use taskPool, not Host.
+
 	* ProcTasksObserver.java: Use Proc.getMainTask.  Use Log.
 
 	* Proc.java (taskPool): Make private.
diff --git a/frysk-core/frysk/proc/Host.java b/frysk-core/frysk/proc/Host.java
index 69f5891..6d15454 100644
--- a/frysk-core/frysk/proc/Host.java
+++ b/frysk-core/frysk/proc/Host.java
@@ -83,11 +83,6 @@ public abstract class Host implements Comparable {
 	logger.log(Level.FINE, "{0} removeTasks Collection\n", this);
 	taskPool.values().removeAll(c);
     }
-    public Task get(TaskId id) {
-	logger.log(Level.FINE, "{0} get TaskId\n", this);	
-	return (Task) taskPool.get(id);
-    }
-
 	
     /**
      * XXX: Should not be public.
diff --git a/frysk-core/frysk/proc/Proc.java b/frysk-core/frysk/proc/Proc.java
index f6f2b6b..3aa0a24 100644
--- a/frysk-core/frysk/proc/Proc.java
+++ b/frysk-core/frysk/proc/Proc.java
@@ -120,7 +120,7 @@ public abstract class Proc implements Comparable {
      * @return The main task for this process
      */
     public Task getMainTask() {
-	return this.host.get(new TaskId(this.getPid()));
+	return (Task) taskPool.get(new TaskId(this.getPid()));
     }
   
     /**
diff --git a/frysk-core/frysk/proc/ProcEvent.java b/frysk-core/frysk/proc/ProcEvent.java
index 79f95f4..a84da2c 100644
--- a/frysk-core/frysk/proc/ProcEvent.java
+++ b/frysk-core/frysk/proc/ProcEvent.java
@@ -69,18 +69,6 @@ public abstract class ProcEvent
     {
 	this.taskId = taskId;
     }
-    /**
-     * Find the Proc that owns the task.
-     */
-    protected Proc getProcFromTaskId ()
-    {
-	logger.log (Level.FINE, "", this); 
-	Task task = Manager.host.get (taskId);
-	if (task == null)
-	    return null;
-	proc = task.getProc();
-	return proc;
-    }
     public String toString ()
     {
 	return ("[ProcEvent"


hooks/post-receive
--
frysk system monitor/debugger


                 reply	other threads:[~2008-02-27 19:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080227194359.4229.qmail@sourceware.org \
    --to=cagney@sourceware.org \
    --cc=frysk-cvs@sourceware.org \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).