summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/classpath/Configuration.java.in
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-26 01:48:04 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-26 01:48:04 +0000
commit225627d7c6bf030c419f926e56c45660dbd5bb9d (patch)
tree4eaca964f2a13f025b0393ee000372ef3380e323 /libjava/gnu/classpath/Configuration.java.in
parentace65efdcf04e82460a38b314b7341a795cb16c4 (diff)
downloadppe42-gcc-225627d7c6bf030c419f926e56c45660dbd5bb9d.tar.gz
ppe42-gcc-225627d7c6bf030c419f926e56c45660dbd5bb9d.zip
2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/System.java (setProperties): Only call init_properties() if properties is null. (getProperties): Ditto. (getProperty): Ditto. (setProperty): Call init_properties if properties are null. (prop_init): Remove field. * java/lang/natSystem.cc (init_properties): Synchronize the entire method. Check for null properties after synchronizing instead of prop_init flag. Set the properties field last for thread safety. * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set, test for gcj.dumpobjects property and enable object stream dumping if it is set. (dumpElement): No longer native. (dumpElementln): Ditto. (setDump): Do not define. * java/io/natObjectInputStream.cc (dumpElement): Removed. (dumpElementln): Removed. (setDump): Removed. 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz> * configure: Rebuilt. * Makefile.in: Rebuilt. * Makefile.am (built_java_source_files): Add Configuration.java. * configure.in: Add Configuration.java to CONFIG_FILES. Set LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. Create `gnu' directory in the build tree. * gnu/classpath/Configuration.java.in: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37749 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/classpath/Configuration.java.in')
-rw-r--r--libjava/gnu/classpath/Configuration.java.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/gnu/classpath/Configuration.java.in b/libjava/gnu/classpath/Configuration.java.in
new file mode 100644
index 00000000000..7f4a90e6aa7
--- /dev/null
+++ b/libjava/gnu/classpath/Configuration.java.in
@@ -0,0 +1,14 @@
+// This file defines compile-time constants that can be accessed by java code.
+// It is pre-processed by configure.
+
+package gnu.classpath;
+
+public interface Configuration
+{
+ // The value of DEBUG is substituted according to whether the
+ // "--enable-libgcj-debug" argument was passed to configure. Code
+ // which is made conditional based on the value of this flag will
+ // be removed by the optimizer in a non-debug build.
+
+ boolean DEBUG = @LIBGCJDEBUG@;
+}
OpenPOWER on IntegriCloud