mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
Merge branch 'master' of dice:git/vm
This commit is contained in:
commit
dbbcf90e6c
@ -81,6 +81,12 @@ Java_java_lang_System_doMapLibraryName(JNIEnv* e, jclass, jstring name)
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" JNIEXPORT jdouble JNICALL
|
||||||
|
Java_java_lang_Math_sin(JNIEnv*, jclass, jdouble val)
|
||||||
|
{
|
||||||
|
return sin(val);
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" JNIEXPORT jdouble JNICALL
|
extern "C" JNIEXPORT jdouble JNICALL
|
||||||
Java_java_lang_Math_sqrt(JNIEnv*, jclass, jdouble val)
|
Java_java_lang_Math_sqrt(JNIEnv*, jclass, jdouble val)
|
||||||
{
|
{
|
||||||
@ -99,6 +105,12 @@ Java_java_lang_Math_floor(JNIEnv*, jclass, jdouble val)
|
|||||||
return floor(val);
|
return floor(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" JNIEXPORT jdouble JNICALL
|
||||||
|
Java_java_lang_Math_ceil(JNIEnv*, jclass, jdouble val)
|
||||||
|
{
|
||||||
|
return ceil(val);
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" JNIEXPORT jint JNICALL
|
extern "C" JNIEXPORT jint JNICALL
|
||||||
Java_java_lang_Double_fillBufferWithDouble(JNIEnv* e, jclass, jdouble val,
|
Java_java_lang_Double_fillBufferWithDouble(JNIEnv* e, jclass, jdouble val,
|
||||||
jbyteArray buffer, jint bufferSize) {
|
jbyteArray buffer, jint bufferSize) {
|
||||||
|
@ -2605,6 +2605,11 @@ collect(Thread* t, Heap::CollectionType type)
|
|||||||
void
|
void
|
||||||
printTrace(Thread* t, object exception)
|
printTrace(Thread* t, object exception)
|
||||||
{
|
{
|
||||||
|
if (exception == 0) {
|
||||||
|
exception = makeNullPointerException(t, 0,
|
||||||
|
makeTrace(t, t->m->processor->frameStart(t)),
|
||||||
|
0);
|
||||||
|
}
|
||||||
for (object e = exception; e; e = throwableCauseUnsafe(t, e)) {
|
for (object e = exception; e; e = throwableCauseUnsafe(t, e)) {
|
||||||
if (e != exception) {
|
if (e != exception) {
|
||||||
fprintf(stderr, "caused by: ");
|
fprintf(stderr, "caused by: ");
|
||||||
|
Loading…
Reference in New Issue
Block a user