summaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/gcj/runtime')
-rw-r--r--libjava/gnu/gcj/runtime/BootClassLoader.h43
-rw-r--r--libjava/gnu/gcj/runtime/ExtensionClassLoader.h40
-rw-r--r--libjava/gnu/gcj/runtime/FinalizerThread.h41
-rw-r--r--libjava/gnu/gcj/runtime/HelperClassLoader$1.h38
-rw-r--r--libjava/gnu/gcj/runtime/HelperClassLoader.h35
-rw-r--r--libjava/gnu/gcj/runtime/JNIWeakRef.h32
-rw-r--r--libjava/gnu/gcj/runtime/NameFinder$Addr2Line.h39
-rw-r--r--libjava/gnu/gcj/runtime/NameFinder.h50
-rw-r--r--libjava/gnu/gcj/runtime/PersistentByteMap$AccessMode.h49
-rw-r--r--libjava/gnu/gcj/runtime/PersistentByteMap$ByteWrapper.h42
-rw-r--r--libjava/gnu/gcj/runtime/PersistentByteMap$HashIterator.h44
-rw-r--r--libjava/gnu/gcj/runtime/PersistentByteMap$MapEntry.h40
-rw-r--r--libjava/gnu/gcj/runtime/PersistentByteMap.h115
-rw-r--r--libjava/gnu/gcj/runtime/SharedLibHelper.h76
-rw-r--r--libjava/gnu/gcj/runtime/SharedLibLoader.h47
-rw-r--r--libjava/gnu/gcj/runtime/StringBuffer.h54
-rw-r--r--libjava/gnu/gcj/runtime/SystemClassLoader.h40
-rw-r--r--libjava/gnu/gcj/runtime/natSharedLibLoader.cc8
18 files changed, 829 insertions, 4 deletions
diff --git a/libjava/gnu/gcj/runtime/BootClassLoader.h b/libjava/gnu/gcj/runtime/BootClassLoader.h
new file mode 100644
index 00000000000..dbfd1567162
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/BootClassLoader.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_BootClassLoader__
+#define __gnu_gcj_runtime_BootClassLoader__
+
+#pragma interface
+
+#include <gnu/gcj/runtime/HelperClassLoader.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class BootClassLoader;
+ }
+ }
+ }
+ namespace java
+ {
+ namespace net
+ {
+ class URL;
+ }
+ }
+}
+
+class gnu::gcj::runtime::BootClassLoader : public ::gnu::gcj::runtime::HelperClassLoader
+{
+
+public: // actually package-private
+ BootClassLoader(::java::lang::String *);
+public:
+ ::java::lang::Class * bootLoadClass(::java::lang::String *);
+ ::java::net::URL * bootGetResource(::java::lang::String *);
+ ::java::util::Enumeration * bootGetResources(::java::lang::String *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_BootClassLoader__
diff --git a/libjava/gnu/gcj/runtime/ExtensionClassLoader.h b/libjava/gnu/gcj/runtime/ExtensionClassLoader.h
new file mode 100644
index 00000000000..ee17c2d845c
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/ExtensionClassLoader.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_ExtensionClassLoader__
+#define __gnu_gcj_runtime_ExtensionClassLoader__
+
+#pragma interface
+
+#include <gnu/gcj/runtime/HelperClassLoader.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class ExtensionClassLoader;
+ class SystemClassLoader;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::ExtensionClassLoader : public ::gnu::gcj::runtime::HelperClassLoader
+{
+
+ ExtensionClassLoader();
+ void init();
+public: // actually package-private
+ static void initialize();
+ static ::gnu::gcj::runtime::ExtensionClassLoader * instance;
+ static ::gnu::gcj::runtime::SystemClassLoader * system_instance;
+public:
+ static ::java::lang::Class class$;
+
+ friend class ::java::lang::ClassLoader;
+};
+
+#endif // __gnu_gcj_runtime_ExtensionClassLoader__
diff --git a/libjava/gnu/gcj/runtime/FinalizerThread.h b/libjava/gnu/gcj/runtime/FinalizerThread.h
new file mode 100644
index 00000000000..572f89d598d
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/FinalizerThread.h
@@ -0,0 +1,41 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_FinalizerThread__
+#define __gnu_gcj_runtime_FinalizerThread__
+
+#pragma interface
+
+#include <java/lang/Thread.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class FinalizerThread;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::FinalizerThread : public ::java::lang::Thread
+{
+
+public:
+ FinalizerThread();
+private:
+ void init();
+public: // actually package-private
+ static void finalizerReady();
+public:
+ void run();
+private:
+ static jboolean finalizer_ready;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_FinalizerThread__
diff --git a/libjava/gnu/gcj/runtime/HelperClassLoader$1.h b/libjava/gnu/gcj/runtime/HelperClassLoader$1.h
new file mode 100644
index 00000000000..8b53b5afc4d
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/HelperClassLoader$1.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_HelperClassLoader$1__
+#define __gnu_gcj_runtime_HelperClassLoader$1__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class HelperClassLoader;
+ class HelperClassLoader$1;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::HelperClassLoader$1 : public ::java::lang::Object
+{
+
+public: // actually package-private
+ HelperClassLoader$1(::gnu::gcj::runtime::HelperClassLoader *);
+public:
+ jboolean accept(::java::io::File *, ::java::lang::String *);
+public: // actually package-private
+ ::gnu::gcj::runtime::HelperClassLoader * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_HelperClassLoader$1__
diff --git a/libjava/gnu/gcj/runtime/HelperClassLoader.h b/libjava/gnu/gcj/runtime/HelperClassLoader.h
new file mode 100644
index 00000000000..30311d3f861
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/HelperClassLoader.h
@@ -0,0 +1,35 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_HelperClassLoader__
+#define __gnu_gcj_runtime_HelperClassLoader__
+
+#pragma interface
+
+#include <java/net/URLClassLoader.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class HelperClassLoader;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::HelperClassLoader : public ::java::net::URLClassLoader
+{
+
+public: // actually package-private
+ HelperClassLoader();
+ HelperClassLoader(::java::lang::ClassLoader *);
+ virtual void addDirectoriesFromProperty(::java::lang::String *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_HelperClassLoader__
diff --git a/libjava/gnu/gcj/runtime/JNIWeakRef.h b/libjava/gnu/gcj/runtime/JNIWeakRef.h
new file mode 100644
index 00000000000..e23a59f6dbd
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/JNIWeakRef.h
@@ -0,0 +1,32 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_JNIWeakRef__
+#define __gnu_gcj_runtime_JNIWeakRef__
+
+#pragma interface
+
+#include <java/lang/ref/WeakReference.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class JNIWeakRef;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::JNIWeakRef : public ::java::lang::ref::WeakReference
+{
+
+public:
+ JNIWeakRef(::java::lang::Object *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_JNIWeakRef__
diff --git a/libjava/gnu/gcj/runtime/NameFinder$Addr2Line.h b/libjava/gnu/gcj/runtime/NameFinder$Addr2Line.h
new file mode 100644
index 00000000000..7d5b5a34264
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/NameFinder$Addr2Line.h
@@ -0,0 +1,39 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_NameFinder$Addr2Line__
+#define __gnu_gcj_runtime_NameFinder$Addr2Line__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class NameFinder;
+ class NameFinder$Addr2Line;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::NameFinder$Addr2Line : public ::java::lang::Object
+{
+
+public: // actually package-private
+ NameFinder$Addr2Line(::gnu::gcj::runtime::NameFinder *, ::java::lang::String *);
+ virtual void close();
+ ::java::lang::Process * __attribute__((aligned(__alignof__( ::java::lang::Object)))) proc;
+ ::java::io::BufferedWriter * out;
+ ::java::io::BufferedReader * in;
+ ::gnu::gcj::runtime::NameFinder * this$0;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_NameFinder$Addr2Line__
diff --git a/libjava/gnu/gcj/runtime/NameFinder.h b/libjava/gnu/gcj/runtime/NameFinder.h
new file mode 100644
index 00000000000..38fd98babe4
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/NameFinder.h
@@ -0,0 +1,50 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_NameFinder__
+#define __gnu_gcj_runtime_NameFinder__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class NameFinder;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::NameFinder : public ::java::lang::Object
+{
+
+public: // actually package-private
+ static jboolean showRaw();
+ static jboolean removeUnknown();
+public:
+ NameFinder();
+ virtual ::java::lang::String * getSourceFile();
+ virtual jint getLineNum();
+ virtual void lookup(::java::lang::String *, jlong);
+ static ::java::lang::String * demangleInterpreterMethod(::java::lang::String *, ::java::lang::String *);
+ virtual void close();
+private:
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) binaryFile;
+ ::java::lang::String * sourceFile;
+ jint lineNum;
+ ::java::util::HashMap * procs;
+ static ::java::util::Set * blacklist;
+ static jboolean use_addr2line;
+ static jboolean show_raw;
+ static jboolean remove_unknown;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_NameFinder__
diff --git a/libjava/gnu/gcj/runtime/PersistentByteMap$AccessMode.h b/libjava/gnu/gcj/runtime/PersistentByteMap$AccessMode.h
new file mode 100644
index 00000000000..2cd93fad80b
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/PersistentByteMap$AccessMode.h
@@ -0,0 +1,49 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_PersistentByteMap$AccessMode__
+#define __gnu_gcj_runtime_PersistentByteMap$AccessMode__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class PersistentByteMap$AccessMode;
+ }
+ }
+ }
+ namespace java
+ {
+ namespace nio
+ {
+ namespace channels
+ {
+ class FileChannel$MapMode;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::PersistentByteMap$AccessMode : public ::java::lang::Object
+{
+
+ PersistentByteMap$AccessMode(::java::nio::channels::FileChannel$MapMode *);
+public: // actually package-private
+ static ::java::nio::channels::FileChannel$MapMode * access$0(::gnu::gcj::runtime::PersistentByteMap$AccessMode *);
+private:
+ ::java::nio::channels::FileChannel$MapMode * __attribute__((aligned(__alignof__( ::java::lang::Object)))) mapMode;
+public:
+ static ::gnu::gcj::runtime::PersistentByteMap$AccessMode * READ_ONLY;
+ static ::gnu::gcj::runtime::PersistentByteMap$AccessMode * READ_WRITE;
+ static ::gnu::gcj::runtime::PersistentByteMap$AccessMode * PRIVATE;
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_PersistentByteMap$AccessMode__
diff --git a/libjava/gnu/gcj/runtime/PersistentByteMap$ByteWrapper.h b/libjava/gnu/gcj/runtime/PersistentByteMap$ByteWrapper.h
new file mode 100644
index 00000000000..39cad37d302
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/PersistentByteMap$ByteWrapper.h
@@ -0,0 +1,42 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_PersistentByteMap$ByteWrapper__
+#define __gnu_gcj_runtime_PersistentByteMap$ByteWrapper__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class PersistentByteMap;
+ class PersistentByteMap$ByteWrapper;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::PersistentByteMap$ByteWrapper : public ::java::lang::Object
+{
+
+public:
+ PersistentByteMap$ByteWrapper(::gnu::gcj::runtime::PersistentByteMap *, JArray< jbyte > *);
+ jint hashCode();
+ jboolean equals(::java::lang::Object *);
+public: // actually package-private
+ JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) bytes;
+ jint hash;
+ ::gnu::gcj::runtime::PersistentByteMap * this$0;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_PersistentByteMap$ByteWrapper__
diff --git a/libjava/gnu/gcj/runtime/PersistentByteMap$HashIterator.h b/libjava/gnu/gcj/runtime/PersistentByteMap$HashIterator.h
new file mode 100644
index 00000000000..65df6ceea3b
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/PersistentByteMap$HashIterator.h
@@ -0,0 +1,44 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_PersistentByteMap$HashIterator__
+#define __gnu_gcj_runtime_PersistentByteMap$HashIterator__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class PersistentByteMap;
+ class PersistentByteMap$HashIterator;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::PersistentByteMap$HashIterator : public ::java::lang::Object
+{
+
+public: // actually package-private
+ PersistentByteMap$HashIterator(::gnu::gcj::runtime::PersistentByteMap *, jint);
+public:
+ jboolean hasNext();
+ ::java::lang::Object * next();
+ void remove();
+private:
+ jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) idx;
+ jint count;
+ jint type;
+public: // actually package-private
+ ::gnu::gcj::runtime::PersistentByteMap * this$0;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_PersistentByteMap$HashIterator__
diff --git a/libjava/gnu/gcj/runtime/PersistentByteMap$MapEntry.h b/libjava/gnu/gcj/runtime/PersistentByteMap$MapEntry.h
new file mode 100644
index 00000000000..7cb8b63f0f9
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/PersistentByteMap$MapEntry.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_PersistentByteMap$MapEntry__
+#define __gnu_gcj_runtime_PersistentByteMap$MapEntry__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class PersistentByteMap$MapEntry;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::PersistentByteMap$MapEntry : public ::java::lang::Object
+{
+
+public:
+ PersistentByteMap$MapEntry(jint, ::java::lang::Object *, ::java::lang::Object *);
+ ::java::lang::Object * getKey();
+ ::java::lang::Object * getValue();
+ jint getBucket();
+private:
+ ::java::lang::Object * __attribute__((aligned(__alignof__( ::java::lang::Object)))) key;
+ ::java::lang::Object * value;
+ jint bucket;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_PersistentByteMap$MapEntry__
diff --git a/libjava/gnu/gcj/runtime/PersistentByteMap.h b/libjava/gnu/gcj/runtime/PersistentByteMap.h
new file mode 100644
index 00000000000..1bac1d2c086
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/PersistentByteMap.h
@@ -0,0 +1,115 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_PersistentByteMap__
+#define __gnu_gcj_runtime_PersistentByteMap__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class PersistentByteMap;
+ class PersistentByteMap$AccessMode;
+ }
+ }
+ }
+ namespace java
+ {
+ namespace nio
+ {
+ class MappedByteBuffer;
+ namespace channels
+ {
+ class FileChannel;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::PersistentByteMap : public ::java::lang::Object
+{
+
+ PersistentByteMap(::java::io::File *);
+public:
+ PersistentByteMap(::java::lang::String *, ::gnu::gcj::runtime::PersistentByteMap$AccessMode *);
+ PersistentByteMap(::java::io::File *, ::gnu::gcj::runtime::PersistentByteMap$AccessMode *);
+private:
+ void init(::gnu::gcj::runtime::PersistentByteMap *, ::java::io::File *, jint, jint);
+public:
+ static ::gnu::gcj::runtime::PersistentByteMap * emptyPersistentByteMap(::java::io::File *, jint, jint);
+private:
+ jint getWord(jint);
+ void putWord(jint, jint);
+public:
+ virtual ::java::util::Set * entrySet();
+private:
+ jint getBucket(jint);
+ jint getKeyPos(jint);
+ jint getValuePos(jint);
+ void putKeyPos(jint, jint);
+ void putValuePos(jint, jint);
+ JArray< jbyte > * getBytes(jint);
+ jint hash(JArray< jbyte > *);
+public:
+ virtual JArray< jbyte > * get(JArray< jbyte > *);
+ virtual void put(JArray< jbyte > *, JArray< jbyte > *);
+private:
+ jint addBytes(JArray< jbyte > *);
+public:
+ virtual ::java::util::Iterator * iterator(jint);
+ virtual jint size();
+ virtual jint stringTableSize();
+ virtual jint capacity();
+ virtual void force();
+ virtual ::java::io::File * getFile();
+ virtual void close();
+ virtual void putAll(::gnu::gcj::runtime::PersistentByteMap *);
+public: // actually package-private
+ static jint access$0(::gnu::gcj::runtime::PersistentByteMap *);
+ static jint access$1(::gnu::gcj::runtime::PersistentByteMap *);
+ static jint access$2(::gnu::gcj::runtime::PersistentByteMap *, jint);
+ static jint access$3(::gnu::gcj::runtime::PersistentByteMap *, jint);
+ static JArray< jbyte > * access$4(::gnu::gcj::runtime::PersistentByteMap *, jint);
+private:
+ ::java::nio::MappedByteBuffer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) buf;
+ static const jint MAGIC = 0;
+ static const jint VERSION = 4;
+ static const jint CAPACITY = 8;
+ static const jint TABLE_BASE = 12;
+ static const jint STRING_BASE = 16;
+ static const jint STRING_SIZE = 20;
+ static const jint FILE_SIZE = 24;
+ static const jint ELEMENTS = 28;
+ static const jint INT_SIZE = 4;
+ static const jint TABLE_ENTRY_SIZE = 8;
+ jint capacity__;
+ jint table_base;
+ jint string_base;
+ jint string_size;
+ jint file_size;
+ jint elements;
+ jlong length;
+ ::java::io::File * name;
+ static const jint UNUSED_ENTRY = -1;
+public:
+ static const jint KEYS = 0;
+ static const jint VALUES = 1;
+ static const jint ENTRIES = 2;
+private:
+ ::java::util::HashMap * values;
+public: // actually package-private
+ ::java::nio::channels::FileChannel * fc;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_PersistentByteMap__
diff --git a/libjava/gnu/gcj/runtime/SharedLibHelper.h b/libjava/gnu/gcj/runtime/SharedLibHelper.h
new file mode 100644
index 00000000000..b2900b7e0df
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/SharedLibHelper.h
@@ -0,0 +1,76 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_SharedLibHelper__
+#define __gnu_gcj_runtime_SharedLibHelper__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ class Core;
+ class RawData;
+ namespace runtime
+ {
+ class SharedLibHelper;
+ }
+ }
+ }
+ namespace java
+ {
+ namespace net
+ {
+ class URL;
+ }
+ namespace security
+ {
+ class CodeSource;
+ class ProtectionDomain;
+ }
+ }
+}
+
+class gnu::gcj::runtime::SharedLibHelper : public ::java::lang::Object
+{
+
+public: // actually package-private
+ SharedLibHelper(::java::lang::String *, ::java::lang::ClassLoader *, ::java::security::CodeSource *, ::java::security::ProtectionDomain *, jint);
+public:
+ static ::gnu::gcj::runtime::SharedLibHelper * findHelper(::java::lang::String *);
+public: // actually package-private
+ static void copyFile(::java::io::File *, ::java::io::File *);
+public:
+ static ::gnu::gcj::runtime::SharedLibHelper * findHelper(::java::lang::ClassLoader *, ::java::lang::String *, ::java::security::CodeSource *, jboolean);
+ static ::gnu::gcj::runtime::SharedLibHelper * findHelper(::java::lang::ClassLoader *, ::java::lang::String *, ::java::security::CodeSource *, ::java::security::ProtectionDomain *, jboolean);
+ virtual void finalize();
+ virtual ::java::lang::Class * findClass(::java::lang::String *);
+ virtual ::java::net::URL * findResource(::java::lang::String *);
+ virtual ::gnu::gcj::Core * findCore(::java::lang::String *);
+public: // actually package-private
+ virtual void ensureInit();
+ virtual jboolean hasResource(::java::lang::String *);
+ virtual void init();
+ virtual void ensureSupersLinked(::java::lang::Class *);
+public:
+ virtual ::java::lang::String * toString();
+public: // actually package-private
+ virtual void registerClass(::java::lang::String *, ::java::lang::Class *);
+ ::gnu::gcj::RawData * __attribute__((aligned(__alignof__( ::java::lang::Object)))) handler;
+ ::gnu::gcj::RawData * core_chain;
+ ::java::util::HashMap * classMap;
+ ::java::lang::ClassLoader * loader;
+ ::java::lang::String * baseName;
+ ::java::security::ProtectionDomain * domain;
+ jint flags;
+ jboolean initialized;
+ static ::java::util::HashMap * map;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_SharedLibHelper__
diff --git a/libjava/gnu/gcj/runtime/SharedLibLoader.h b/libjava/gnu/gcj/runtime/SharedLibLoader.h
new file mode 100644
index 00000000000..8a439d3d3d7
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/SharedLibLoader.h
@@ -0,0 +1,47 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_SharedLibLoader__
+#define __gnu_gcj_runtime_SharedLibLoader__
+
+#pragma interface
+
+#include <java/lang/ClassLoader.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class SharedLibHelper;
+ class SharedLibLoader;
+ }
+ }
+ }
+ namespace java
+ {
+ namespace net
+ {
+ class URL;
+ }
+ }
+}
+
+class gnu::gcj::runtime::SharedLibLoader : public ::java::lang::ClassLoader
+{
+
+public:
+ SharedLibLoader(::java::lang::String *, ::java::lang::ClassLoader *, jint);
+ SharedLibLoader(::java::lang::String *);
+ virtual ::java::lang::Class * findClass(::java::lang::String *);
+ virtual ::java::net::URL * findResource(::java::lang::String *);
+ virtual ::java::util::Enumeration * findResources(::java::lang::String *);
+public: // actually package-private
+ ::gnu::gcj::runtime::SharedLibHelper * __attribute__((aligned(__alignof__( ::java::lang::ClassLoader)))) helper;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_SharedLibLoader__
diff --git a/libjava/gnu/gcj/runtime/StringBuffer.h b/libjava/gnu/gcj/runtime/StringBuffer.h
new file mode 100644
index 00000000000..27a3a7e30fb
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/StringBuffer.h
@@ -0,0 +1,54 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_StringBuffer__
+#define __gnu_gcj_runtime_StringBuffer__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class StringBuffer;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::StringBuffer : public ::java::lang::Object
+{
+
+public:
+ ::gnu::gcj::runtime::StringBuffer * append(jboolean);
+ ::gnu::gcj::runtime::StringBuffer * append(jchar);
+ ::gnu::gcj::runtime::StringBuffer * append(jint);
+ ::gnu::gcj::runtime::StringBuffer * append(jlong);
+ ::gnu::gcj::runtime::StringBuffer * append(jfloat);
+ ::gnu::gcj::runtime::StringBuffer * append(jdouble);
+ ::gnu::gcj::runtime::StringBuffer * append(::java::lang::Object *);
+ ::gnu::gcj::runtime::StringBuffer * append(::java::lang::String *);
+private:
+ void ensureCapacity_unsynchronized(jint);
+public:
+ StringBuffer();
+ StringBuffer(jint);
+ StringBuffer(::java::lang::String *);
+ ::java::lang::String * toString();
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) count;
+ JArray< jchar > * value;
+private:
+ static const jint DEFAULT_CAPACITY = 16;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_StringBuffer__
diff --git a/libjava/gnu/gcj/runtime/SystemClassLoader.h b/libjava/gnu/gcj/runtime/SystemClassLoader.h
new file mode 100644
index 00000000000..58c709659e8
--- /dev/null
+++ b/libjava/gnu/gcj/runtime/SystemClassLoader.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_runtime_SystemClassLoader__
+#define __gnu_gcj_runtime_SystemClassLoader__
+
+#pragma interface
+
+#include <java/net/URLClassLoader.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace runtime
+ {
+ class SystemClassLoader;
+ }
+ }
+ }
+}
+
+class gnu::gcj::runtime::SystemClassLoader : public ::java::net::URLClassLoader
+{
+
+public: // actually package-private
+ SystemClassLoader(::java::lang::ClassLoader *);
+ void addClass(::java::lang::Class *);
+public: // actually protected
+ ::java::lang::Class * findClass(::java::lang::String *);
+public: // actually package-private
+ void init();
+private:
+ ::java::util::HashMap * __attribute__((aligned(__alignof__( ::java::net::URLClassLoader)))) nativeClasses;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_runtime_SystemClassLoader__
diff --git a/libjava/gnu/gcj/runtime/natSharedLibLoader.cc b/libjava/gnu/gcj/runtime/natSharedLibLoader.cc
index e20ccb9e336..0d8d0e8341b 100644
--- a/libjava/gnu/gcj/runtime/natSharedLibLoader.cc
+++ b/libjava/gnu/gcj/runtime/natSharedLibLoader.cc
@@ -87,9 +87,9 @@ gnu::gcj::runtime::SharedLibHelper::init(void)
if (flags==0)
flags = RTLD_GLOBAL | RTLD_LAZY;
- JvSynchronize dummy1(&java::lang::Class::class$);
+ JvSynchronize dummy1(&::java::lang::Class::class$);
SharedLibDummy dummy2;
- curLoader = ((void*)loader == java::lang::VMClassLoader::bootLoader
+ curLoader = ((void*)loader == ::java::lang::VMClassLoader::bootLoader
? NULL : loader);
curHelper = this;
_Jv_RegisterClassHook = _Jv_sharedlib_register_hook;
@@ -98,13 +98,13 @@ gnu::gcj::runtime::SharedLibHelper::init(void)
if (h == NULL)
{
const char *msg = dlerror();
- throw new java::lang::UnknownError(JvNewStringLatin1(msg));
+ throw new ::java::lang::UnknownError(JvNewStringLatin1(msg));
}
handler = (gnu::gcj::RawData*) h;
#else
const char *msg
= "shared library class loading is not supported on this platform";
- throw new java::lang::UnsupportedOperationException(JvNewStringLatin1(msg));
+ throw new ::java::lang::UnsupportedOperationException(JvNewStringLatin1(msg));
#endif
}