Commit 40f4ae32 by Tom Tromey Committed by Tom Tromey

Runtime support for PR gcj/2:

	* prims.cc (_Jv_ThrowNullPointerException): New function.
	* include/jvm.h (_Jv_ThrowNullPointerException): Declare.

From-SVN: r33492
parent 739fb049
2000-04-05 Tom Tromey <tromey@cygnus.com>
Runtime support for PR gcj/2:
* prims.cc (_Jv_ThrowNullPointerException): New function.
* include/jvm.h (_Jv_ThrowNullPointerException): Declare.
2000-04-27 Bryce McKinlay <bryce@albatross.co.nz> 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
* prims.cc (_Jv_NewObjectArray): Fix typo. * prims.cc (_Jv_NewObjectArray): Fix typo.
......
...@@ -186,6 +186,7 @@ _Jv_GetArrayElementFromElementType (jobject array, ...@@ -186,6 +186,7 @@ _Jv_GetArrayElementFromElementType (jobject array,
} }
extern "C" void _Jv_ThrowBadArrayIndex (jint bad_index); extern "C" void _Jv_ThrowBadArrayIndex (jint bad_index);
extern "C" void _Jv_ThrowNullPointerException (void);
extern "C" jobject _Jv_NewArray (jint type, jint size) extern "C" jobject _Jv_NewArray (jint type, jint size)
__attribute__((__malloc__)); __attribute__((__malloc__));
extern "C" jobject _Jv_NewMultiArray (jclass klass, jint dims, ...) extern "C" jobject _Jv_NewMultiArray (jclass klass, jint dims, ...)
......
...@@ -303,6 +303,12 @@ _Jv_ThrowBadArrayIndex(jint bad_index) ...@@ -303,6 +303,12 @@ _Jv_ThrowBadArrayIndex(jint bad_index)
(java::lang::String::valueOf(bad_index))); (java::lang::String::valueOf(bad_index)));
} }
void
_Jv_ThrowNullPointerException ()
{
throw new java::lang::NullPointerException ();
}
// Allocate some unscanned memory and throw an exception if no memory. // Allocate some unscanned memory and throw an exception if no memory.
void * void *
_Jv_AllocBytesChecked (jsize size) _Jv_AllocBytesChecked (jsize size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment