* src/native/vm/nativevm.c (nativevm_init)
authortwisti <none@none>
Tue, 19 Jun 2007 19:43:00 +0000 (19:43 +0000)
committertwisti <none@none>
Tue, 19 Jun 2007 19:43:00 +0000 (19:43 +0000)
[ENABLE_JAVASE && WITH_CLASSPATH_GNU]: Call
_Jv_java_util_concurrent_atomic_AtomicLong_init.

* src/native/vm/Makefile.am [ENABLE_JAVASE]
(JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES): Added.
(libnativevm_la_SOURCES): Added
JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES.

* src/native/vm/java_util_concurrent_atomic_AtomicLong.c: New file.
* src/native/vm/java_util_concurrent_atomic_AtomicLong.h: Likewise.

* src/native/vm/gnu/Makefile.am (libnativevmcore_la_SOURCES): Added
java_util_concurrent_atomic_AtomicLong.c.

* src/native/vm/gnu/java_util_concurrent_atomic_AtomicLong.c: New
file.

* src/native/include/Makefile.am (JAVASE_HEADER_FILES): Added
java_util_concurrent_atomic_AtomicLong.h.

src/native/include/Makefile.am
src/native/vm/Makefile.am
src/native/vm/gnu/Makefile.am
src/native/vm/gnu/java_util_concurrent_atomic_AtomicLong.c [new file with mode: 0644]
src/native/vm/java_util_concurrent_atomic_AtomicLong.c [new file with mode: 0644]
src/native/vm/java_util_concurrent_atomic_AtomicLong.h [new file with mode: 0644]
src/native/vm/nativevm.c

index 59f408ae8f24d597500bd6905487b63d8b39a122..612ec0ec8bef0faea86ab31b95f595eee03538b6 100644 (file)
@@ -22,7 +22,7 @@
 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 ## 02110-1301, USA.
 ##
-## $Id: Makefile.am 7927 2007-05-21 08:48:46Z twisti $
+## $Id: Makefile.am 8103 2007-06-19 19:43:00Z twisti $
 
 ## Process this file with automake to produce Makefile.in
 
@@ -67,6 +67,7 @@ JAVASE_HEADER_FILES = \
        java_nio_Buffer.h \
        java_nio_DirectByteBufferImpl.h \
        java_security_ProtectionDomain.h \
+       java_util_concurrent_atomic_AtomicLong.h \
        sun_misc_Unsafe.h
 
 JAVAME_CLDC1_1_HEADER_FILES = \
index d10fb54ff2701d777e19ed496cfebab82390e0fd..5cd7dee95a3dfd33821c44042301d26555586f57 100644 (file)
@@ -63,6 +63,10 @@ JAVA_LANG_REFLECT_METHOD_SOURCES = \
        java_lang_reflect_Method.c \
        java_lang_reflect_Method.h
 
+JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES = \
+       java_util_concurrent_atomic_AtomicLong.c \
+       java_util_concurrent_atomic_AtomicLong.h
+
 SUN_MISC_UNSAFE_SOURCES = \
        sun_misc_Unsafe.c
 endif
@@ -87,6 +91,7 @@ libnativevm_la_SOURCES = \
        java_lang_Thread.h \
        $(JAVA_LANG_REFLECT_CONSTRUCTOR_SOURCES) \
        $(JAVA_LANG_REFLECT_METHOD_SOURCES) \
+       $(JAVA_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_SOURCES) \
        $(SUN_MISC_UNSAFE_SOURCES)
 
 libnativevm_la_LIBADD = \
index 41c48d3b843b10f81232ff4a1be641f09f22eda3..db6cba9e59d7ccf9313c0ecf0ac5098f34391d1c 100644 (file)
@@ -26,7 +26,7 @@
 ##
 ## Authors: Christian Thalinger
 ##
-## $Id: Makefile.am 8015 2007-06-05 20:58:11Z twisti $
+## $Id: Makefile.am 8103 2007-06-19 19:43:00Z twisti $
 
 ## Process this file with automake to produce Makefile.in
 
@@ -62,7 +62,8 @@ libnativevmcore_la_SOURCES = \
        java_lang_reflect_Field.c \
        java_lang_reflect_Method.c \
        java_lang_reflect_VMProxy.c \
-       java_security_VMAccessController.c
+       java_security_VMAccessController.c \
+       java_util_concurrent_atomic_AtomicLong.c
 
 if ENABLE_JVMTI
 libjdwp_la_SOURCES = \
diff --git a/src/native/vm/gnu/java_util_concurrent_atomic_AtomicLong.c b/src/native/vm/gnu/java_util_concurrent_atomic_AtomicLong.c
new file mode 100644 (file)
index 0000000..48d9f53
--- /dev/null
@@ -0,0 +1,76 @@
+/* src/native/vm/gnu/java_util_concurrent_atomic_AtomicLong.c
+
+   Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
+   C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
+   E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
+   J. Wenninger, Institut f. Computersprachen - TU Wien
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.
+
+   $Id: java_lang_VMString.c 8017 2007-06-05 23:46:59Z twisti $
+
+*/
+
+
+#include "config.h"
+
+#include <stdint.h>
+
+#include "native/jni.h"
+#include "native/native.h"
+
+#include "native/vm/java_util_concurrent_atomic_AtomicLong.h"
+
+#include "vmcore/utf8.h"
+
+
+/* native methods implemented by this file ************************************/
+
+static JNINativeMethod methods[] = {
+       { "VMSupportsCS8", "()Z", (void *) (intptr_t) &_Jv_java_util_concurrent_atomic_AtomicLong_VMSupportsCS8 },
+};
+
+
+/* _Jv_java_util_concurrent_atomic_AtomicLong_init *****************************
+
+   Register native functions.
+
+*******************************************************************************/
+
+void _Jv_java_util_concurrent_atomic_AtomicLong_init(void)
+{
+       utf *u;
+
+       u = utf_new_char("java/util/concurrent/atomic/AtomicLong");
+
+       native_method_register(u, methods, NATIVE_METHODS_COUNT);
+}
+
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */
diff --git a/src/native/vm/java_util_concurrent_atomic_AtomicLong.c b/src/native/vm/java_util_concurrent_atomic_AtomicLong.c
new file mode 100644 (file)
index 0000000..378834d
--- /dev/null
@@ -0,0 +1,61 @@
+/* src/native/vm/java_util_concurrent_atomic_AtomicLong.c
+
+   Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
+   C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
+   E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
+   J. Wenninger, Institut f. Computersprachen - TU Wien
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.
+
+   $Id: java_lang_VMObject.c 6213 2006-12-18 17:36:06Z twisti $
+
+*/
+
+
+#include "config.h"
+
+#include <stdint.h>
+
+#include "native/jni.h"
+
+
+/*
+ * Class:     java/util/concurrent/atomic/AtomicLong
+ * Method:    VMSupportsCS8
+ * Signature: ()Z
+ */
+JNIEXPORT int32_t JNICALL _Jv_java_util_concurrent_atomic_AtomicLong_VMSupportsCS8(JNIEnv *env, jclass clazz)
+{
+       /* IMPLEMENT ME */
+
+       return 0;
+}
+
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */
diff --git a/src/native/vm/java_util_concurrent_atomic_AtomicLong.h b/src/native/vm/java_util_concurrent_atomic_AtomicLong.h
new file mode 100644 (file)
index 0000000..944f0d3
--- /dev/null
@@ -0,0 +1,58 @@
+/* src/native/vm/java_util_concurrent_atomic_AtomicLong.h
+
+   Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel, C. Oates,
+   R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
+   C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
+   Institut f. Computersprachen - TU Wien
+
+   This file is part of CACAO.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2, or (at
+   your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.
+
+   $Id: java_lang_VMObject.c 6213 2006-12-18 17:36:06Z twisti $
+
+*/
+
+
+#ifndef _JV_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_H
+#define _JV_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_H
+
+#include "config.h"
+
+#include <stdint.h>
+
+#include "native/jni.h"
+
+
+/* function prototypes ********************************************************/
+
+int32_t _Jv_java_util_concurrent_atomic_AtomicLong_VMSupportsCS8(JNIEnv *env, jclass clazz);
+
+#endif /* _JV_UTIL_CONCURRENT_ATOMIC_ATOMICLONG_H */
+
+
+/*
+ * These are local overrides for various environment variables in Emacs.
+ * Please do not remove this and leave it at the end of the file, where
+ * Emacs will automagically detect them.
+ * ---------------------------------------------------------------------
+ * Local variables:
+ * mode: c
+ * indent-tabs-mode: t
+ * c-basic-offset: 4
+ * tab-width: 4
+ * End:
+ */
index 196cac4d8f96ec3ed5d057376ad1abc6b3ece31a..6c81da05559fe18c928b6a59c61d09a5882ff586 100644 (file)
@@ -67,6 +67,7 @@ bool nativevm_init(void)
        _Jv_java_lang_reflect_Method_init();
        _Jv_java_lang_reflect_VMProxy_init();
        _Jv_java_security_VMAccessController_init();
+       _Jv_java_util_concurrent_atomic_AtomicLong_init();
        _Jv_sun_misc_Unsafe_init();
 
 # else