summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/ChangeLog14
-rw-r--r--libjava/Makefile.am1
-rw-r--r--libjava/Makefile.in161
-rw-r--r--libjava/classpath/ChangeLog9
-rw-r--r--libjava/classpath/gnu/java/lang/management/MemoryMXBeanImpl.java2
-rw-r--r--libjava/classpath/gnu/javax/management/ListenerData.java (renamed from libjava/classpath/gnu/classpath/ListenerData.java)2
-rw-r--r--libjava/classpath/javax/management/MBeanServerDelegate.java2
-rw-r--r--libjava/classpath/lib/gnu/classpath/ListenerData.classbin1197 -> 0 bytes
-rw-r--r--libjava/classpath/lib/gnu/java/lang/management/MemoryMXBeanImpl.classbin7173 -> 7187 bytes
-rw-r--r--libjava/classpath/lib/gnu/javax/management/ListenerData.classbin0 -> 1211 bytes
-rw-r--r--libjava/classpath/lib/java/lang/Thread$State.classbin1242 -> 1242 bytes
-rw-r--r--libjava/classpath/lib/java/lang/Thread.classbin9343 -> 10110 bytes
-rw-r--r--libjava/classpath/lib/java/lang/management/VMManagementFactory.classbin444 -> 707 bytes
-rw-r--r--libjava/classpath/lib/javax/management/MBeanServerDelegate.classbin4928 -> 4942 bytes
-rw-r--r--libjava/gnu/javax/management/ListenerData.h (renamed from libjava/gnu/classpath/ListenerData.h)15
-rw-r--r--libjava/java/lang/Thread.java45
-rw-r--r--libjava/java/lang/management/VMManagementFactory.java20
-rw-r--r--libjava/java/lang/management/natVMManagementFactory.cc44
-rwxr-xr-xlibjava/scripts/makemake.tcl14
-rw-r--r--libjava/sources.am44
20 files changed, 188 insertions, 185 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index bd312d0322f..948f2dfab21 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,17 @@
+2007-02-15 Andrew Haley <aph@redhat.com>
+
+ * Makefile.am (nat_source_files): Remove
+ java/lang/management/natVMManagementFactory.cc.
+ * java/lang/Thread.java (getStackTrace): Use reflection to call
+ the ManagementFactory.
+ * java/lang/management/VMManagementFactory.java: Remove native
+ methods.
+ * java/lang/management/natVMManagementFactory.cc: Deleted.
+ * sources.am: Regnerate.
+ * scripts/makemake.tcl: Add new "bcheaders" type.
+ Move java/lang/management and gnu/classpath/management to "bc".
+ Move gnu/java/lang/management to "bcheaders".
+
2007-02-15 Kyle Galloway <kgallowa@redhat.com>
* interpret.cc (_Jv_InterpMethod::check_handler): New method.
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 93b03e41a4e..2532ed6d4f2 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -867,7 +867,6 @@ gnu/java/nio/channels/natFileChannelImpl.cc \
java/io/natFile.cc \
java/io/natVMObjectInputStream.cc \
java/io/natVMObjectStreamClass.cc \
-java/lang/management/natVMManagementFactory.cc \
java/lang/natCharacter.cc \
java/lang/natClass.cc \
java/lang/natClassLoader.cc \
diff --git a/libjava/Makefile.in b/libjava/Makefile.in
index 3be95319233..16abe2df57a 100644
--- a/libjava/Makefile.in
+++ b/libjava/Makefile.in
@@ -166,9 +166,9 @@ am__DEPENDENCIES_1 = gnu/awt.lo gnu/awt/j2d.lo gnu/classpath.lo \
gnu/java/awt/font/opentype/truetype.lo gnu/java/awt/image.lo \
gnu/java/awt/java2d.lo gnu/java/awt/peer.lo \
gnu/java/awt/peer/headless.lo gnu/java/awt/print.lo \
- gnu/java/io.lo gnu/java/lang.lo gnu/java/lang/management.lo \
- gnu/java/lang/reflect.lo gnu/java/locale.lo gnu/java/math.lo \
- gnu/java/net.lo gnu/java/net/loader.lo gnu/java/net/local.lo \
+ gnu/java/io.lo gnu/java/lang.lo gnu/java/lang/reflect.lo \
+ gnu/java/locale.lo gnu/java/math.lo gnu/java/net.lo \
+ gnu/java/net/loader.lo gnu/java/net/local.lo \
gnu/java/net/protocol/core.lo gnu/java/net/protocol/file.lo \
gnu/java/net/protocol/ftp.lo gnu/java/net/protocol/gcjlib.lo \
gnu/java/net/protocol/http.lo gnu/java/net/protocol/https.lo \
@@ -204,8 +204,8 @@ am__DEPENDENCIES_1 = gnu/awt.lo gnu/awt/j2d.lo gnu/classpath.lo \
gnu/javax/crypto/sasl/plain.lo gnu/javax/crypto/sasl/srp.lo \
gnu/javax/imageio.lo gnu/javax/imageio/bmp.lo \
gnu/javax/imageio/gif.lo gnu/javax/imageio/jpeg.lo \
- gnu/javax/imageio/png.lo gnu/javax/management.lo \
- gnu/javax/naming/giop.lo gnu/javax/naming/ictxImpl/trans.lo \
+ gnu/javax/imageio/png.lo gnu/javax/naming/giop.lo \
+ gnu/javax/naming/ictxImpl/trans.lo \
gnu/javax/naming/jndi/url/corbaname.lo \
gnu/javax/naming/jndi/url/rmi.lo gnu/javax/net/ssl.lo \
gnu/javax/net/ssl/provider.lo gnu/javax/print.lo \
@@ -236,26 +236,25 @@ am__DEPENDENCIES_1 = gnu/awt.lo gnu/awt/j2d.lo gnu/classpath.lo \
java/awt/peer.lo java/awt/print.lo java/beans.lo \
java/beans/beancontext.lo java/io.lo java/lang.lo \
java/lang/annotation.lo java/lang/instrument.lo \
- java/lang/management.lo java/lang/ref.lo java/lang/reflect.lo \
- java/math.lo java/net.lo java/nio.lo java/nio/channels.lo \
- java/nio/channels/spi.lo java/nio/charset.lo \
- java/nio/charset/spi.lo java/rmi.lo java/rmi/activation.lo \
- java/rmi/dgc.lo java/rmi/registry.lo java/rmi/server.lo \
- java/security.lo java/security/acl.lo java/security/cert.lo \
- java/security/interfaces.lo java/security/spec.lo java/sql.lo \
- java/text.lo java/util.lo java/util/concurrent.lo \
- java/util/concurrent/atomic.lo java/util/concurrent/locks.lo \
- java/util/jar.lo java/util/logging.lo java/util/prefs.lo \
- java/util/regex.lo java/util/zip.lo javax/accessibility.lo \
- javax/crypto.lo javax/crypto/interfaces.lo \
- javax/crypto/spec.lo javax/management.lo \
- javax/management/loading.lo javax/management/openmbean.lo \
- javax/naming.lo javax/naming/directory.lo \
- javax/naming/event.lo javax/naming/ldap.lo javax/naming/spi.lo \
- javax/net.lo javax/net/ssl.lo javax/print.lo \
- javax/print/attribute.lo javax/print/attribute/standard.lo \
- javax/print/event.lo javax/security/auth.lo \
- javax/security/auth/callback.lo \
+ java/lang/ref.lo java/lang/reflect.lo java/math.lo java/net.lo \
+ java/nio.lo java/nio/channels.lo java/nio/channels/spi.lo \
+ java/nio/charset.lo java/nio/charset/spi.lo java/rmi.lo \
+ java/rmi/activation.lo java/rmi/dgc.lo java/rmi/registry.lo \
+ java/rmi/server.lo java/security.lo java/security/acl.lo \
+ java/security/cert.lo java/security/interfaces.lo \
+ java/security/spec.lo java/sql.lo java/text.lo java/util.lo \
+ java/util/concurrent.lo java/util/concurrent/atomic.lo \
+ java/util/concurrent/locks.lo java/util/jar.lo \
+ java/util/logging.lo java/util/prefs.lo java/util/regex.lo \
+ java/util/zip.lo javax/accessibility.lo javax/crypto.lo \
+ javax/crypto/interfaces.lo javax/crypto/spec.lo \
+ javax/management.lo javax/management/loading.lo \
+ javax/management/openmbean.lo javax/naming.lo \
+ javax/naming/directory.lo javax/naming/event.lo \
+ javax/naming/ldap.lo javax/naming/spi.lo javax/net.lo \
+ javax/net/ssl.lo javax/print.lo javax/print/attribute.lo \
+ javax/print/attribute/standard.lo javax/print/event.lo \
+ javax/security/auth.lo javax/security/auth/callback.lo \
javax/security/auth/kerberos.lo javax/security/auth/login.lo \
javax/security/auth/spi.lo javax/security/auth/x500.lo \
javax/security/cert.lo javax/security/sasl.lo \
@@ -274,13 +273,14 @@ am__DEPENDENCIES_1 = gnu/awt.lo gnu/awt/j2d.lo gnu/classpath.lo \
sun/reflect.lo sun/reflect/annotation.lo sun/reflect/misc.lo
am__DEPENDENCIES_2 = gnu-CORBA.lo gnu-java-awt-dnd-peer-gtk.lo \
gnu-java-awt-peer-gtk.lo gnu-java-awt-peer-swing.lo \
- gnu-java-beans.lo gnu-java-util-prefs-gconf.lo \
+ gnu-java-beans.lo gnu-java-lang-management.lo \
+ gnu-java-util-prefs-gconf.lo gnu-javax-management.lo \
gnu-javax-rmi.lo gnu-javax-sound-midi.lo gnu-xml-aelfred2.lo \
gnu-xml-dom.lo gnu-xml-libxmlj.lo gnu-xml-pipeline.lo \
gnu-xml-stream.lo gnu-xml-transform.lo gnu-xml-util.lo \
- gnu-xml-validation.lo gnu-xml-xpath.lo javax-imageio.lo \
- javax-rmi.lo javax-xml.lo org-omg.lo org-relaxng.lo org-w3c.lo \
- org-xml.lo
+ gnu-xml-validation.lo gnu-xml-xpath.lo java-lang-management.lo \
+ javax-imageio.lo javax-rmi.lo javax-xml.lo org-omg.lo \
+ org-relaxng.lo org-w3c.lo org-xml.lo
am__DEPENDENCIES_3 = $(patsubst classpath/resource/%,%,$(addsuffix \
.lo,$(property_files)))
am__DEPENDENCIES_4 =
@@ -323,18 +323,16 @@ am__libgcj_la_SOURCES_DIST = prims.cc jni.cc jvmti.cc exception.cc \
gnu/java/nio/natVMChannel.cc \
gnu/java/nio/channels/natFileChannelImpl.cc java/io/natFile.cc \
java/io/natVMObjectInputStream.cc \
- java/io/natVMObjectStreamClass.cc \
- java/lang/management/natVMManagementFactory.cc \
- java/lang/natCharacter.cc java/lang/natClass.cc \
- java/lang/natClassLoader.cc java/lang/natConcreteProcess.cc \
- java/lang/natVMDouble.cc java/lang/natVMFloat.cc \
- java/lang/natMath.cc java/lang/natObject.cc \
- java/lang/natRuntime.cc java/lang/natString.cc \
- java/lang/natStringBuffer.cc java/lang/natStringBuilder.cc \
- java/lang/natSystem.cc java/lang/natThread.cc \
- java/lang/natThreadLocal.cc java/lang/natVMClassLoader.cc \
- java/lang/natVMThrowable.cc java/lang/ref/natReference.cc \
- java/lang/reflect/natArray.cc \
+ java/io/natVMObjectStreamClass.cc java/lang/natCharacter.cc \
+ java/lang/natClass.cc java/lang/natClassLoader.cc \
+ java/lang/natConcreteProcess.cc java/lang/natVMDouble.cc \
+ java/lang/natVMFloat.cc java/lang/natMath.cc \
+ java/lang/natObject.cc java/lang/natRuntime.cc \
+ java/lang/natString.cc java/lang/natStringBuffer.cc \
+ java/lang/natStringBuilder.cc java/lang/natSystem.cc \
+ java/lang/natThread.cc java/lang/natThreadLocal.cc \
+ java/lang/natVMClassLoader.cc java/lang/natVMThrowable.cc \
+ java/lang/ref/natReference.cc java/lang/reflect/natArray.cc \
java/lang/reflect/natConstructor.cc \
java/lang/reflect/natField.cc java/lang/reflect/natMethod.cc \
java/lang/reflect/natVMProxy.cc java/net/natVMInetAddress.cc \
@@ -387,18 +385,16 @@ am__objects_2 = gnu/classpath/jdwp/natVMFrame.lo \
gnu/java/nio/natVMChannel.lo \
gnu/java/nio/channels/natFileChannelImpl.lo java/io/natFile.lo \
java/io/natVMObjectInputStream.lo \
- java/io/natVMObjectStreamClass.lo \
- java/lang/management/natVMManagementFactory.lo \
- java/lang/natCharacter.lo java/lang/natClass.lo \
- java/lang/natClassLoader.lo java/lang/natConcreteProcess.lo \
- java/lang/natVMDouble.lo java/lang/natVMFloat.lo \
- java/lang/natMath.lo java/lang/natObject.lo \
- java/lang/natRuntime.lo java/lang/natString.lo \
- java/lang/natStringBuffer.lo java/lang/natStringBuilder.lo \
- java/lang/natSystem.lo java/lang/natThread.lo \
- java/lang/natThreadLocal.lo java/lang/natVMClassLoader.lo \
- java/lang/natVMThrowable.lo java/lang/ref/natReference.lo \
- java/lang/reflect/natArray.lo \
+ java/io/natVMObjectStreamClass.lo java/lang/natCharacter.lo \
+ java/lang/natClass.lo java/lang/natClassLoader.lo \
+ java/lang/natConcreteProcess.lo java/lang/natVMDouble.lo \
+ java/lang/natVMFloat.lo java/lang/natMath.lo \
+ java/lang/natObject.lo java/lang/natRuntime.lo \
+ java/lang/natString.lo java/lang/natStringBuffer.lo \
+ java/lang/natStringBuilder.lo java/lang/natSystem.lo \
+ java/lang/natThread.lo java/lang/natThreadLocal.lo \
+ java/lang/natVMClassLoader.lo java/lang/natVMThrowable.lo \
+ java/lang/ref/natReference.lo java/lang/reflect/natArray.lo \
java/lang/reflect/natConstructor.lo \
java/lang/reflect/natField.lo java/lang/reflect/natMethod.lo \
java/lang/reflect/natVMProxy.lo java/net/natVMInetAddress.lo \
@@ -1147,7 +1143,6 @@ gnu/awt/xlib/XToolkit.java
gnu_awt_xlib_header_files = $(patsubst %.java,%.h,$(gnu_awt_xlib_source_files))
gnu_classpath_source_files = \
gnu/classpath/Configuration.java \
-classpath/gnu/classpath/ListenerData.java \
classpath/gnu/classpath/NotImplementedException.java \
classpath/gnu/classpath/Pointer.java \
classpath/gnu/classpath/Pointer32.java \
@@ -2888,9 +2883,9 @@ classpath/gnu/javax/imageio/png/PNGTime.java
gnu_javax_imageio_png_header_files = $(patsubst classpath/%,%,$(patsubst %.java,%.h,$(gnu_javax_imageio_png_source_files)))
gnu_javax_management_source_files = \
+classpath/gnu/javax/management/ListenerData.java \
classpath/gnu/javax/management/Server.java
-gnu_javax_management_header_files = $(patsubst classpath/%,%,$(patsubst %.java,%.h,$(gnu_javax_management_source_files)))
gnu_javax_naming_giop_source_files = \
classpath/gnu/javax/naming/giop/ContextContinuation.java \
classpath/gnu/javax/naming/giop/CorbalocParser.java \
@@ -4355,7 +4350,6 @@ classpath/java/lang/management/ThreadInfo.java \
classpath/java/lang/management/ThreadMXBean.java \
java/lang/management/VMManagementFactory.java
-java_lang_management_header_files = $(patsubst classpath/%,%,$(patsubst %.java,%.h,$(java_lang_management_source_files)))
java_lang_ref_source_files = \
classpath/java/lang/ref/PhantomReference.java \
java/lang/ref/Reference.java \
@@ -7246,7 +7240,6 @@ all_packages_source_files = \
gnu/java/awt/print.list \
gnu/java/io.list \
gnu/java/lang.list \
- gnu/java/lang/management.list \
gnu/java/lang/reflect.list \
gnu/java/locale.list \
gnu/java/math.list \
@@ -7324,7 +7317,6 @@ all_packages_source_files = \
gnu/javax/imageio/gif.list \
gnu/javax/imageio/jpeg.list \
gnu/javax/imageio/png.list \
- gnu/javax/management.list \
gnu/javax/naming/giop.list \
gnu/javax/naming/ictxImpl/trans.list \
gnu/javax/naming/jndi/url/corbaname.list \
@@ -7378,7 +7370,6 @@ all_packages_source_files = \
java/lang.list \
java/lang/annotation.list \
java/lang/instrument.list \
- java/lang/management.list \
java/lang/ref.list \
java/lang/reflect.list \
java/math.list \
@@ -7577,7 +7568,6 @@ ordinary_header_files = \
$(gnu_javax_imageio_gif_header_files) \
$(gnu_javax_imageio_jpeg_header_files) \
$(gnu_javax_imageio_png_header_files) \
- $(gnu_javax_management_header_files) \
$(gnu_javax_naming_giop_header_files) \
$(gnu_javax_naming_ictxImpl_trans_header_files) \
$(gnu_javax_naming_jndi_url_corbaname_header_files) \
@@ -7626,7 +7616,6 @@ ordinary_header_files = \
$(java_lang_header_files) \
$(java_lang_annotation_header_files) \
$(java_lang_instrument_header_files) \
- $(java_lang_management_header_files) \
$(java_lang_ref_header_files) \
$(java_lang_reflect_header_files) \
$(java_math_header_files) \
@@ -7719,7 +7708,9 @@ bc_objects = \
gnu-java-awt-peer-gtk.lo \
gnu-java-awt-peer-swing.lo \
gnu-java-beans.lo \
+ gnu-java-lang-management.lo \
gnu-java-util-prefs-gconf.lo \
+ gnu-javax-management.lo \
gnu-javax-rmi.lo \
gnu-javax-sound-midi.lo \
gnu-xml-aelfred2.lo \
@@ -7731,6 +7722,7 @@ bc_objects = \
gnu-xml-util.lo \
gnu-xml-validation.lo \
gnu-xml-xpath.lo \
+ java-lang-management.lo \
javax-imageio.lo \
javax-rmi.lo \
javax-xml.lo \
@@ -7986,7 +7978,6 @@ gnu/java/nio/channels/natFileChannelImpl.cc \
java/io/natFile.cc \
java/io/natVMObjectInputStream.cc \
java/io/natVMObjectStreamClass.cc \
-java/lang/management/natVMManagementFactory.cc \
java/lang/natCharacter.cc \
java/lang/natClass.cc \
java/lang/natClassLoader.cc \
@@ -8476,15 +8467,6 @@ java/io/natVMObjectInputStream.lo: java/io/$(am__dirstamp) \
java/io/$(DEPDIR)/$(am__dirstamp)
java/io/natVMObjectStreamClass.lo: java/io/$(am__dirstamp) \
java/io/$(DEPDIR)/$(am__dirstamp)
-java/lang/management/$(am__dirstamp):
- @$(mkdir_p) java/lang/management
- @: > java/lang/management/$(am__dirstamp)
-java/lang/management/$(DEPDIR)/$(am__dirstamp):
- @$(mkdir_p) java/lang/management/$(DEPDIR)
- @: > java/lang/management/$(DEPDIR)/$(am__dirstamp)
-java/lang/management/natVMManagementFactory.lo: \
- java/lang/management/$(am__dirstamp) \
- java/lang/management/$(DEPDIR)/$(am__dirstamp)
java/lang/$(am__dirstamp):
@$(mkdir_p) java/lang
@: > java/lang/$(am__dirstamp)
@@ -8938,8 +8920,6 @@ mostlyclean-compile:
-rm -f java/io/natVMObjectStreamClass.lo
-rm -f java/lang/Object.$(OBJEXT)
-rm -f java/lang/Object.lo
- -rm -f java/lang/management/natVMManagementFactory.$(OBJEXT)
- -rm -f java/lang/management/natVMManagementFactory.lo
-rm -f java/lang/natCharacter.$(OBJEXT)
-rm -f java/lang/natCharacter.lo
-rm -f java/lang/natClass.$(OBJEXT)
@@ -9125,7 +9105,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@java/lang/$(DEPDIR)/natVMDouble.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@java/lang/$(DEPDIR)/natVMFloat.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@java/lang/$(DEPDIR)/natVMThrowable.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@java/lang/management/$(DEPDIR)/natVMManagementFactory.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@java/lang/ref/$(DEPDIR)/natReference.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@java/lang/reflect/$(DEPDIR)/natArray.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@java/lang/reflect/$(DEPDIR)/natConstructor.Plo@am__quote@
@@ -9413,7 +9392,6 @@ clean-libtool:
-rm -rf gnu/java/nio/channels/.libs gnu/java/nio/channels/_libs
-rm -rf java/io/.libs java/io/_libs
-rm -rf java/lang/.libs java/lang/_libs
- -rm -rf java/lang/management/.libs java/lang/management/_libs
-rm -rf java/lang/ref/.libs java/lang/ref/_libs
-rm -rf java/lang/reflect/.libs java/lang/reflect/_libs
-rm -rf java/net/.libs java/net/_libs
@@ -9824,8 +9802,6 @@ distclean-generic:
-rm -f java/io/$(am__dirstamp)
-rm -f java/lang/$(DEPDIR)/$(am__dirstamp)
-rm -f java/lang/$(am__dirstamp)
- -rm -f java/lang/management/$(DEPDIR)/$(am__dirstamp)
- -rm -f java/lang/management/$(am__dirstamp)
-rm -f java/lang/ref/$(DEPDIR)/$(am__dirstamp)
-rm -f java/lang/ref/$(am__dirstamp)
-rm -f java/lang/reflect/$(DEPDIR)/$(am__dirstamp)
@@ -9863,7 +9839,7 @@ clean-am: clean-binPROGRAMS clean-dbexecLTLIBRARIES clean-generic \
distclean: distclean-multi distclean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf ./$(DEPDIR) classpath/tools/$(DEPDIR) gnu/classpath/$(DEPDIR) gnu/classpath/jdwp/$(DEPDIR) gnu/gcj/$(DEPDIR) gnu/gcj/convert/$(DEPDIR) gnu/gcj/io/$(DEPDIR) gnu/gcj/jvmti/$(DEPDIR) gnu/gcj/runtime/$(DEPDIR) gnu/gcj/tools/gcj_dbtool/$(DEPDIR) gnu/gcj/util/$(DEPDIR) gnu/gcj/xlib/$(DEPDIR) gnu/java/lang/$(DEPDIR) gnu/java/lang/management/$(DEPDIR) gnu/java/net/$(DEPDIR) gnu/java/net/protocol/core/$(DEPDIR) gnu/java/nio/$(DEPDIR) gnu/java/nio/channels/$(DEPDIR) java/io/$(DEPDIR) java/lang/$(DEPDIR) java/lang/management/$(DEPDIR) java/lang/ref/$(DEPDIR) java/lang/reflect/$(DEPDIR) java/net/$(DEPDIR) java/nio/$(DEPDIR) java/nio/channels/$(DEPDIR) java/security/$(DEPDIR) java/text/$(DEPDIR) java/util/$(DEPDIR) java/util/concurrent/atomic/$(DEPDIR) java/util/logging/$(DEPDIR) java/util/zip/$(DEPDIR) sun/misc/$(DEPDIR)
+ -rm -rf ./$(DEPDIR) classpath/tools/$(DEPDIR) gnu/classpath/$(DEPDIR) gnu/classpath/jdwp/$(DEPDIR) gnu/gcj/$(DEPDIR) gnu/gcj/convert/$(DEPDIR) gnu/gcj/io/$(DEPDIR) gnu/gcj/jvmti/$(DEPDIR) gnu/gcj/runtime/$(DEPDIR) gnu/gcj/tools/gcj_dbtool/$(DEPDIR) gnu/gcj/util/$(DEPDIR) gnu/gcj/xlib/$(DEPDIR) gnu/java/lang/$(DEPDIR) gnu/java/lang/management/$(DEPDIR) gnu/java/net/$(DEPDIR) gnu/java/net/protocol/core/$(DEPDIR) gnu/java/nio/$(DEPDIR) gnu/java/nio/channels/$(DEPDIR) java/io/$(DEPDIR) java/lang/$(DEPDIR) java/lang/ref/$(DEPDIR) java/lang/reflect/$(DEPDIR) java/net/$(DEPDIR) java/nio/$(DEPDIR) java/nio/channels/$(DEPDIR) java/security/$(DEPDIR) java/text/$(DEPDIR) java/util/$(DEPDIR) java/util/concurrent/atomic/$(DEPDIR) java/util/logging/$(DEPDIR) java/util/zip/$(DEPDIR) sun/misc/$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-libtool distclean-local distclean-tags
@@ -9896,7 +9872,7 @@ installcheck-am:
maintainer-clean: maintainer-clean-multi maintainer-clean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
- -rm -rf ./$(DEPDIR) classpath/tools/$(DEPDIR) gnu/classpath/$(DEPDIR) gnu/classpath/jdwp/$(DEPDIR) gnu/gcj/$(DEPDIR) gnu/gcj/convert/$(DEPDIR) gnu/gcj/io/$(DEPDIR) gnu/gcj/jvmti/$(DEPDIR) gnu/gcj/runtime/$(DEPDIR) gnu/gcj/tools/gcj_dbtool/$(DEPDIR) gnu/gcj/util/$(DEPDIR) gnu/gcj/xlib/$(DEPDIR) gnu/java/lang/$(DEPDIR) gnu/java/lang/management/$(DEPDIR) gnu/java/net/$(DEPDIR) gnu/java/net/protocol/core/$(DEPDIR) gnu/java/nio/$(DEPDIR) gnu/java/nio/channels/$(DEPDIR) java/io/$(DEPDIR) java/lang/$(DEPDIR) java/lang/management/$(DEPDIR) java/lang/ref/$(DEPDIR) java/lang/reflect/$(DEPDIR) java/net/$(DEPDIR) java/nio/$(DEPDIR) java/nio/channels/$(DEPDIR) java/security/$(DEPDIR) java/text/$(DEPDIR) java/util/$(DEPDIR) java/util/concurrent/atomic/$(DEPDIR) java/util/logging/$(DEPDIR) java/util/zip/$(DEPDIR) sun/misc/$(DEPDIR)
+ -rm -rf ./$(DEPDIR) classpath/tools/$(DEPDIR) gnu/classpath/$(DEPDIR) gnu/classpath/jdwp/$(DEPDIR) gnu/gcj/$(DEPDIR) gnu/gcj/convert/$(DEPDIR) gnu/gcj/io/$(DEPDIR) gnu/gcj/jvmti/$(DEPDIR) gnu/gcj/runtime/$(DEPDIR) gnu/gcj/tools/gcj_dbtool/$(DEPDIR) gnu/gcj/util/$(DEPDIR) gnu/gcj/xlib/$(DEPDIR) gnu/java/lang/$(DEPDIR) gnu/java/lang/management/$(DEPDIR) gnu/java/net/$(DEPDIR) gnu/java/net/protocol/core/$(DEPDIR) gnu/java/nio/$(DEPDIR) gnu/java/nio/channels/$(DEPDIR) java/io/$(DEPDIR) java/lang/$(DEPDIR) java/lang/ref/$(DEPDIR) java/lang/reflect/$(DEPDIR) java/net/$(DEPDIR) java/nio/$(DEPDIR) java/nio/channels/$(DEPDIR) java/security/$(DEPDIR) java/text/$(DEPDIR) java/util/$(DEPDIR) java/util/concurrent/atomic/$(DEPDIR) java/util/logging/$(DEPDIR) java/util/zip/$(DEPDIR) sun/misc/$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
@@ -10249,11 +10225,10 @@ gnu/java/lang.list: $(gnu_java_lang_source_files)
-include gnu/java/lang.deps
-gnu/java/lang/management.list: $(gnu_java_lang_management_source_files)
- @$(mkinstalldirs) $(dir $@)
- echo $(srcdir)/classpath/lib/gnu/java/lang/management/*.class > gnu/java/lang/management.list
-
--include gnu/java/lang/management.deps
+gnu-java-lang-management.lo: $(gnu_java_lang_management_source_files)
+ @find $(srcdir)/classpath/lib/gnu/java/lang/management -name '*.class' > gnu-java-lang-management.list
+ $(LTGCJCOMPILE) -fsource-filename=$(here)/classpath/lib/classes -findirect-dispatch -fno-indirect-classes -c -o gnu-java-lang-management.lo @gnu-java-lang-management.list
+ @rm -f gnu-java-lang-management.list
gnu/java/lang/reflect.list: $(gnu_java_lang_reflect_source_files)
@$(mkinstalldirs) $(dir $@)
@@ -10722,11 +10697,10 @@ gnu/javax/imageio/png.list: $(gnu_javax_imageio_png_source_files)
-include gnu/javax/imageio/png.deps
-gnu/javax/management.list: $(gnu_javax_management_source_files)
- @$(mkinstalldirs) $(dir $@)
- echo $(srcdir)/classpath/lib/gnu/javax/management/*.class > gnu/javax/management.list
-
--include gnu/javax/management.deps
+gnu-javax-management.lo: $(gnu_javax_management_source_files)
+ @find $(srcdir)/classpath/lib/gnu/javax/management -name '*.class' > gnu-javax-management.list
+ $(LTGCJCOMPILE) -fsource-filename=$(here)/classpath/lib/classes -fjni -findirect-dispatch -fno-indirect-classes -c -o gnu-javax-management.lo @gnu-javax-management.list
+ @rm -f gnu-javax-management.list
gnu/javax/naming/giop.list: $(gnu_javax_naming_giop_source_files)
@$(mkinstalldirs) $(dir $@)
@@ -11101,11 +11075,10 @@ java/lang/instrument.list: $(java_lang_instrument_source_files)
-include java/lang/instrument.deps
-java/lang/management.list: $(java_lang_management_source_files)
- @$(mkinstalldirs) $(dir $@)
- echo $(srcdir)/classpath/lib/java/lang/management/*.class > java/lang/management.list
-
--include java/lang/management.deps
+java-lang-management.lo: $(java_lang_management_source_files)
+ @find $(srcdir)/classpath/lib/java/lang/management -name '*.class' > java-lang-management.list
+ $(LTGCJCOMPILE) -fsource-filename=$(here)/classpath/lib/classes -fjni -findirect-dispatch -fno-indirect-classes -c -o java-lang-management.lo @java-lang-management.list
+ @rm -f java-lang-management.list
java/lang/ref.list: $(java_lang_ref_source_files)
@$(mkinstalldirs) $(dir $@)
diff --git a/libjava/classpath/ChangeLog b/libjava/classpath/ChangeLog
index 85fa74c0b8c..577fa677225 100644
--- a/libjava/classpath/ChangeLog
+++ b/libjava/classpath/ChangeLog
@@ -1,3 +1,12 @@
+2007-02-16 Andrew Haley <aph@redhat.com>
+
+ * gnu/java/lang/management/MemoryMXBeanImpl.java,
+ javax/management/MBeanServerDelegate.java: Use
+ gnu.javax.management.ListenerData rather than
+ gnu.classpath.ListenerData.
+ * gnu/javax/management/ListenerData.java: Move here from
+ gnu/classpath/ListenerData.java.
+
2007-02-14 Jakub Jelinek <jakub@redhat.com>
Andrew Haley <aph@redhat.com>
diff --git a/libjava/classpath/gnu/java/lang/management/MemoryMXBeanImpl.java b/libjava/classpath/gnu/java/lang/management/MemoryMXBeanImpl.java
index 8cb10420213..1e6c63afccf 100644
--- a/libjava/classpath/gnu/java/lang/management/MemoryMXBeanImpl.java
+++ b/libjava/classpath/gnu/java/lang/management/MemoryMXBeanImpl.java
@@ -37,7 +37,7 @@ exception statement from your version. */
package gnu.java.lang.management;
-import gnu.classpath.ListenerData;
+import gnu.javax.management.ListenerData;
import java.lang.management.MemoryMXBean;
import java.lang.management.MemoryNotificationInfo;
diff --git a/libjava/classpath/gnu/classpath/ListenerData.java b/libjava/classpath/gnu/javax/management/ListenerData.java
index 284fa02f192..719daa086c5 100644
--- a/libjava/classpath/gnu/classpath/ListenerData.java
+++ b/libjava/classpath/gnu/javax/management/ListenerData.java
@@ -35,7 +35,7 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
-package gnu.classpath;
+package gnu.javax.management;
import javax.management.NotificationFilter;
import javax.management.NotificationListener;
diff --git a/libjava/classpath/javax/management/MBeanServerDelegate.java b/libjava/classpath/javax/management/MBeanServerDelegate.java
index 347e51fc97c..9e9d19111a8 100644
--- a/libjava/classpath/javax/management/MBeanServerDelegate.java
+++ b/libjava/classpath/javax/management/MBeanServerDelegate.java
@@ -37,7 +37,7 @@ exception statement from your version. */
package javax.management;
-import gnu.classpath.ListenerData;
+import gnu.javax.management.ListenerData;
import gnu.classpath.SystemProperties;
import java.net.InetAddress;
diff --git a/libjava/classpath/lib/gnu/classpath/ListenerData.class b/libjava/classpath/lib/gnu/classpath/ListenerData.class
deleted file mode 100644
index 2ab92adf60d..00000000000
--- a/libjava/classpath/lib/gnu/classpath/ListenerData.class
+++ /dev/null
Binary files differ
diff --git a/libjava/classpath/lib/gnu/java/lang/management/MemoryMXBeanImpl.class b/libjava/classpath/lib/gnu/java/lang/management/MemoryMXBeanImpl.class
index 714075ef180..9347297b37a 100644
--- a/libjava/classpath/lib/gnu/java/lang/management/MemoryMXBeanImpl.class
+++ b/libjava/classpath/lib/gnu/java/lang/management/MemoryMXBeanImpl.class
Binary files differ
diff --git a/libjava/classpath/lib/gnu/javax/management/ListenerData.class b/libjava/classpath/lib/gnu/javax/management/ListenerData.class
new file mode 100644
index 00000000000..aaebddd058d
--- /dev/null
+++ b/libjava/classpath/lib/gnu/javax/management/ListenerData.class
Binary files differ
diff --git a/libjava/classpath/lib/java/lang/Thread$State.class b/libjava/classpath/lib/java/lang/Thread$State.class
index 3ce018edd9c..e5ddca2eab8 100644
--- a/libjava/classpath/lib/java/lang/Thread$State.class
+++ b/libjava/classpath/lib/java/lang/Thread$State.class
Binary files differ
diff --git a/libjava/classpath/lib/java/lang/Thread.class b/libjava/classpath/lib/java/lang/Thread.class
index 8329bc15523..09315799f1e 100644
--- a/libjava/classpath/lib/java/lang/Thread.class
+++ b/libjava/classpath/lib/java/lang/Thread.class
Binary files differ
diff --git a/libjava/classpath/lib/java/lang/management/VMManagementFactory.class b/libjava/classpath/lib/java/lang/management/VMManagementFactory.class
index 98185d22de3..7602cf7bacd 100644
--- a/libjava/classpath/lib/java/lang/management/VMManagementFactory.class
+++ b/libjava/classpath/lib/java/lang/management/VMManagementFactory.class
Binary files differ
diff --git a/libjava/classpath/lib/javax/management/MBeanServerDelegate.class b/libjava/classpath/lib/javax/management/MBeanServerDelegate.class
index 90130982041..c0c761938cb 100644
--- a/libjava/classpath/lib/javax/management/MBeanServerDelegate.class
+++ b/libjava/classpath/lib/javax/management/MBeanServerDelegate.class
Binary files differ
diff --git a/libjava/gnu/classpath/ListenerData.h b/libjava/gnu/javax/management/ListenerData.h
index 03be1ce5d87..ff1b8f0d4dd 100644
--- a/libjava/gnu/classpath/ListenerData.h
+++ b/libjava/gnu/javax/management/ListenerData.h
@@ -1,8 +1,8 @@
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
-#ifndef __gnu_classpath_ListenerData__
-#define __gnu_classpath_ListenerData__
+#ifndef __gnu_javax_management_ListenerData__
+#define __gnu_javax_management_ListenerData__
#pragma interface
@@ -11,9 +11,12 @@ extern "Java"
{
namespace gnu
{
- namespace classpath
+ namespace javax
{
- class ListenerData;
+ namespace management
+ {
+ class ListenerData;
+ }
}
}
namespace javax
@@ -26,7 +29,7 @@ extern "Java"
}
}
-class gnu::classpath::ListenerData : public ::java::lang::Object
+class gnu::javax::management::ListenerData : public ::java::lang::Object
{
public:
@@ -43,4 +46,4 @@ public:
static ::java::lang::Class class$;
};
-#endif // __gnu_classpath_ListenerData__
+#endif // __gnu_javax_management_ListenerData__
diff --git a/libjava/java/lang/Thread.java b/libjava/java/lang/Thread.java
index 7216512530d..84682f3fb83 100644
--- a/libjava/java/lang/Thread.java
+++ b/libjava/java/lang/Thread.java
@@ -50,6 +50,9 @@ import java.lang.management.ThreadMXBean;
import java.util.HashMap;
import java.util.Map;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
* "The Java Language Specification", ISBN 0-201-63451-1
* plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
@@ -1291,9 +1294,43 @@ public class Thread implements Runnable
SecurityManager sm = SecurityManager.current; // Be thread-safe.
if (sm != null)
sm.checkPermission(new RuntimePermission("getStackTrace"));
- ThreadMXBean bean = ManagementFactory.getThreadMXBean();
- ThreadInfo info = bean.getThreadInfo(getId(), Integer.MAX_VALUE);
- return info.getStackTrace();
- }
+ // Calling java.lang.management via reflection means that
+ // javax.management be overridden in the endorsed directory.
+
+ // This is the equivalent code:
+ //
+ // ThreadMXBean bean = ManagementFactory.getThreadMXBean();
+ // ThreadInfo info = bean.getThreadInfo(getId(), Integer.MAX_VALUE);
+ // return info.getStackTrace();
+
+ try
+ {
+ try
+ {
+ Object bean
+ = (Class.forName("java.lang.management.ManagementFactory")
+ .getDeclaredMethod("getThreadMXBean")
+ .invoke(null));
+ Object info = bean.getClass()
+ .getDeclaredMethod("getThreadInfo", long.class, int.class)
+ .invoke(bean, new Long(getId()), new Integer(Integer.MAX_VALUE));
+ Object trace = info.getClass()
+ .getDeclaredMethod("getStackTrace").invoke(info);
+ return (StackTraceElement[])trace;
+ }
+ catch (InvocationTargetException e)
+ {
+ throw (Exception)e.getTargetException();
+ }
+ }
+ catch (UnsupportedOperationException e)
+ {
+ throw e;
+ }
+ catch (Exception e)
+ {
+ throw new UnsupportedOperationException(e);
+ }
+ }
}
diff --git a/libjava/java/lang/management/VMManagementFactory.java b/libjava/java/lang/management/VMManagementFactory.java
index f10497014b4..35b15e360f1 100644
--- a/libjava/java/lang/management/VMManagementFactory.java
+++ b/libjava/java/lang/management/VMManagementFactory.java
@@ -1,5 +1,5 @@
/* VMManagementFactory.java - VM interface for obtaining system beans.
- Copyright (C) 2006 Free Software Foundation
+ Copyright (C) 2006, 2007 Free Software Foundation
This file is part of GNU Classpath.
@@ -54,7 +54,11 @@ final class VMManagementFactory
*
* @return a list of memory pool names.
*/
- static native String[] getMemoryPoolNames();
+ static String[] getMemoryPoolNames()
+ {
+ String[] result = {"Heap"};
+ return result;
+ }
/**
* Return a list of the names of the currently available
@@ -63,7 +67,11 @@ final class VMManagementFactory
*
* @return a list of memory manager names.
*/
- static native String[] getMemoryManagerNames();
+ static String[] getMemoryManagerNames()
+ {
+ String[] result = {};
+ return result;
+ }
/**
* Return a list of the names of the currently available
@@ -71,5 +79,9 @@ final class VMManagementFactory
*
* @return a list of garbage collector names.
*/
- static native String[] getGarbageCollectorNames();
+ static String[] getGarbageCollectorNames()
+ {
+ String[] result = {"BoehmGC"};
+ return result;
+ }
}
diff --git a/libjava/java/lang/management/natVMManagementFactory.cc b/libjava/java/lang/management/natVMManagementFactory.cc
deleted file mode 100644
index 35a418bb338..00000000000
--- a/libjava/java/lang/management/natVMManagementFactory.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Copyright (C) 2006 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-/**
- * @author Andrew John Hughes <gnu_andrew@member.fsf.org>
- * @date Tue 08 Aug 2006 */
-/* Implemented for our sole pool, the heap, and our sole memory
- * manager/garbage collector, Boehm GC.
- * Status: Believed complete and correct.
- */
-
-#include <config.h>
-
-#include <gcj/cni.h>
-#include <java/lang/String.h>
-#include <java/lang/management/VMManagementFactory.h>
-
-JArray< ::java::lang::String *> *
-java::lang::management::VMManagementFactory::getMemoryPoolNames ()
-{
- return (JArray<jstring>*)
- JvNewObjectArray(1, &java::lang::String::class$, JvNewStringLatin1("Heap"));
-}
-
-
-JArray< ::java::lang::String *> *
-java::lang::management::VMManagementFactory::getMemoryManagerNames ()
-{
- return (JArray<jstring>*)
- JvNewObjectArray(0, &java::lang::String::class$, NULL);
-}
-
-
-JArray< ::java::lang::String *> *
-java::lang::management::VMManagementFactory::getGarbageCollectorNames ()
-{
- return (JArray<jstring>*)
- JvNewObjectArray(1, &java::lang::String::class$, JvNewStringLatin1("BoehmGC"));
-}
diff --git a/libjava/scripts/makemake.tcl b/libjava/scripts/makemake.tcl
index 5a60097d698..59a5915a5fe 100755
--- a/libjava/scripts/makemake.tcl
+++ b/libjava/scripts/makemake.tcl
@@ -22,6 +22,8 @@ proc verbose {text} {
# * bc objects in this package and all its sub-packages
# are to be compiled with the BC ABI. It is an error
# for sub-packages to also appear in the map.
+# * bcheaders
+# as bc, but generate header files and compile with CNI.
# * package
# objects in this package (and possibly sub-packages,
# if they do not appear in the map) will be compiled en masse
@@ -73,6 +75,10 @@ set package_map(javax/rmi) bc
set package_map(org/omg) bc
set package_map(gnu/CORBA) bc
set package_map(gnu/javax/rmi) bc
+set package_map(gnu/java/lang/management) bcheaders
+set package_map(java/lang/management) bc
+set package_map(gnu/classpath/management) bc
+set package_map(gnu/javax/management) bc
# parser/HTML_401F.class is really big, and there have been complaints
# about this package requiring too much memory to build. So, we
@@ -265,7 +271,11 @@ proc emit_bc_rule {package} {
set omit "| grep -v $exclusion_map($package)"
}
puts "\t@find \$(srcdir)/classpath/lib/$package -name '*.class'${omit} > $tname"
- puts "\t\$(LTGCJCOMPILE) -fsource-filename=\$(here)/classpath/lib/classes -fjni -findirect-dispatch -fno-indirect-classes -c -o $loname @$tname"
+ puts -nonewline "\t\$(LTGCJCOMPILE) -fsource-filename=\$(here)/classpath/lib/classes "
+ if {$package_map($package) == "bc"} {
+ puts -nonewline "-fjni "
+ }
+ puts "-findirect-dispatch -fno-indirect-classes -c -o $loname @$tname"
puts "\t@rm -f $tname"
puts ""
@@ -461,6 +471,8 @@ foreach package [lsort [array names package_map]] {
if {$package_map($package) == "bc"} {
emit_bc_rule $package
+ } elseif {$package_map($package) == "bcheaders"} {
+ emit_bc_rule $package
} elseif {$package_map($package) == "ordinary"} {
emit_ordinary_rule $package
} elseif {$package_map($package) == "package"} {
diff --git a/libjava/sources.am b/libjava/sources.am
index cce44e11198..ce077f4c700 100644
--- a/libjava/sources.am
+++ b/libjava/sources.am
@@ -223,7 +223,6 @@ gnu/awt/xlib.list: $(gnu_awt_xlib_source_files)
gnu_classpath_source_files = \
gnu/classpath/Configuration.java \
-classpath/gnu/classpath/ListenerData.java \
classpath/gnu/classpath/NotImplementedException.java \
classpath/gnu/classpath/Pointer.java \
classpath/gnu/classpath/Pointer32.java \
@@ -1125,12 +1124,10 @@ gnu/java/lang/management/VMThreadMXBeanImpl.java
gnu_java_lang_management_header_files = $(patsubst classpath/%,%,$(patsubst %.java,%.h,$(gnu_java_lang_management_source_files)))
-gnu/java/lang/management.list: $(gnu_java_lang_management_source_files)
- @$(mkinstalldirs) $(dir $@)
- echo $(srcdir)/classpath/lib/gnu/java/lang/management/*.class > gnu/java/lang/management.list
-
--include gnu/java/lang/management.deps
-
+gnu-java-lang-management.lo: $(gnu_java_lang_management_source_files)
+ @find $(srcdir)/classpath/lib/gnu/java/lang/management -name '*.class' > gnu-java-lang-management.list
+ $(LTGCJCOMPILE) -fsource-filename=$(here)/classpath/lib/classes -findirect-dispatch -fno-indirect-classes -c -o gnu-java-lang-management.lo @gnu-java-lang-management.list
+ @rm -f gnu-java-lang-management.list
gnu_java_lang_reflect_source_files = \
classpath/gnu/java/lang/reflect/ClassSignatureParser.java \
@@ -2879,16 +2876,13 @@ gnu/javax/imageio/png.list: $(gnu_javax_imageio_png_source_files)
gnu_javax_management_source_files = \
+classpath/gnu/javax/management/ListenerData.java \
classpath/gnu/javax/management/Server.java
-gnu_javax_management_header_files = $(patsubst classpath/%,%,$(patsubst %.java,%.h,$(gnu_javax_management_source_files)))
-
-gnu/javax/management.list: $(gnu_javax_management_source_files)
- @$(mkinstalldirs) $(dir $@)
- echo $(srcdir)/classpath/lib/gnu/javax/management/*.class > gnu/javax/management.list
-
--include gnu/javax/management.deps
-
+gnu-javax-management.lo: $(gnu_javax_management_source_files)
+ @find $(srcdir)/classpath/lib/gnu/javax/management -name '*.class' > gnu-javax-management.list
+ $(LTGCJCOMPILE) -fsource-filename=$(here)/classpath/lib/classes -fjni -findirect-dispatch -fno-indirect-classes -c -o gnu-javax-management.lo @gnu-javax-management.list
+ @rm -f gnu-javax-management.list
gnu_javax_naming_giop_source_files = \
classpath/gnu/javax/naming/giop/ContextContinuation.java \
@@ -4828,14 +4822,10 @@ classpath/java/lang/management/ThreadInfo.java \
classpath/java/lang/management/ThreadMXBean.java \
java/lang/management/VMManagementFactory.java
-java_lang_management_header_files = $(patsubst classpath/%,%,$(patsubst %.java,%.h,$(java_lang_management_source_files)))
-
-java/lang/management.list: $(java_lang_management_source_files)
- @$(mkinstalldirs) $(dir $@)
- echo $(srcdir)/classpath/lib/java/lang/management/*.class > java/lang/management.list
-
--include java/lang/management.deps
-
+java-lang-management.lo: $(java_lang_management_source_files)
+ @find $(srcdir)/classpath/lib/java/lang/management -name '*.class' > java-lang-management.list
+ $(LTGCJCOMPILE) -fsource-filename=$(here)/classpath/lib/classes -fjni -findirect-dispatch -fno-indirect-classes -c -o java-lang-management.lo @java-lang-management.list
+ @rm -f java-lang-management.list
java_lang_ref_source_files = \
classpath/java/lang/ref/PhantomReference.java \
@@ -8464,7 +8454,6 @@ all_packages_source_files = \
gnu/java/awt/print.list \
gnu/java/io.list \
gnu/java/lang.list \
- gnu/java/lang/management.list \
gnu/java/lang/reflect.list \
gnu/java/locale.list \
gnu/java/math.list \
@@ -8542,7 +8531,6 @@ all_packages_source_files = \
gnu/javax/imageio/gif.list \
gnu/javax/imageio/jpeg.list \
gnu/javax/imageio/png.list \
- gnu/javax/management.list \
gnu/javax/naming/giop.list \
gnu/javax/naming/ictxImpl/trans.list \
gnu/javax/naming/jndi/url/corbaname.list \
@@ -8596,7 +8584,6 @@ all_packages_source_files = \
java/lang.list \
java/lang/annotation.list \
java/lang/instrument.list \
- java/lang/management.list \
java/lang/ref.list \
java/lang/reflect.list \
java/math.list \
@@ -8795,7 +8782,6 @@ ordinary_header_files = \
$(gnu_javax_imageio_gif_header_files) \
$(gnu_javax_imageio_jpeg_header_files) \
$(gnu_javax_imageio_png_header_files) \
- $(gnu_javax_management_header_files) \
$(gnu_javax_naming_giop_header_files) \
$(gnu_javax_naming_ictxImpl_trans_header_files) \
$(gnu_javax_naming_jndi_url_corbaname_header_files) \
@@ -8844,7 +8830,6 @@ ordinary_header_files = \
$(java_lang_header_files) \
$(java_lang_annotation_header_files) \
$(java_lang_instrument_header_files) \
- $(java_lang_management_header_files) \
$(java_lang_ref_header_files) \
$(java_lang_reflect_header_files) \
$(java_math_header_files) \
@@ -8937,7 +8922,9 @@ bc_objects = \
gnu-java-awt-peer-gtk.lo \
gnu-java-awt-peer-swing.lo \
gnu-java-beans.lo \
+ gnu-java-lang-management.lo \
gnu-java-util-prefs-gconf.lo \
+ gnu-javax-management.lo \
gnu-javax-rmi.lo \
gnu-javax-sound-midi.lo \
gnu-xml-aelfred2.lo \
@@ -8949,6 +8936,7 @@ bc_objects = \
gnu-xml-util.lo \
gnu-xml-validation.lo \
gnu-xml-xpath.lo \
+ java-lang-management.lo \
javax-imageio.lo \
javax-rmi.lo \
javax-xml.lo \