Runtime support for PR gcj/2:

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

From-SVN: r33492
This commit is contained in:
Tom Tromey 2000-04-27 23:13:31 +00:00 committed by Tom Tromey
parent 739fb04929
commit 40f4ae3280
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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>
* prims.cc (_Jv_NewObjectArray): Fix typo.

View File

@ -186,6 +186,7 @@ _Jv_GetArrayElementFromElementType (jobject array,
}
extern "C" void _Jv_ThrowBadArrayIndex (jint bad_index);
extern "C" void _Jv_ThrowNullPointerException (void);
extern "C" jobject _Jv_NewArray (jint type, jint size)
__attribute__((__malloc__));
extern "C" jobject _Jv_NewMultiArray (jclass klass, jint dims, ...)

View File

@ -303,6 +303,12 @@ _Jv_ThrowBadArrayIndex(jint 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.
void *
_Jv_AllocBytesChecked (jsize size)