Serviceability Agent
Andrew Hughes
ahughes at redhat.com
Wed Oct 24 09:20:41 PDT 2012
I've noticed the following patch in OpenJDK8's HotSpot:
changeset: 3593:a9fed06c01d2
user: bpittore
date: Thu Aug 30 11:20:01 2012 -0400
summary: 7154641: Servicability agent should work on platforms other than x86, sparc
http://hg.openjdk.java.net/jdk8/jdk8/hotspot/rev/a9fed06c01d2
Discussion: http://mail.openjdk.java.net/pipermail/serviceability-dev/2012-August/006709.html
This changes the serviceability agent to search for additional CPU support rather than
just failing. I notice they didn't actually add the code to support those CPUs, and I imagine
that's why:
+ try {
+ Class pic = Class.forName("sun.jvm.hotspot.utilities.PlatformInfoClosed");
+ AltPlatformInfo api = (AltPlatformInfo)pic.newInstance();
+ if (api.knownCPU(cpu)) {
+ return cpu;
+ }
+ } catch (Exception e) {}
and:
+ifeq ($(HS_ALT_MAKE),)
+ ifneq ($(OPENJDK),true)
+ HS_ALT_MAKE=$(GAMMADIR)/make/closed
+ else
+ HS_ALT_MAKE=NO_SUCH_PATH
+ endif
+endif
were added.
After this change, only ia64 and zero don't have the agent.
In the case of Zero, do we know why this is? And do we intend to get it
working on Zero and, for that matter, Shark & the ARM ports?
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
More information about the distro-pkg-dev
mailing list