jdk/test/sun/tools/jps/jps-Vvml_Output1.awk
author twisti
Thu, 24 Mar 2011 23:04:40 -0700
changeset 8863 6f1fc00f3bbc
parent 2 90ce3da70b43
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
BEGIN	{
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
	    totallines=0; matched=0
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
	}
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
/^[0-9]+ sun.tools.jps.Jps -Vvml.*-XX:Flags=.*vmflags.* \+DisableExplicitGC$/	{
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
	    matched++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
	}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
	{ totallines++; print $0 }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
END	{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
	    if ((totallines > 0) && (matched >= 1)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
	        exit 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
	    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
	    else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
	        exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
	    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
	}