mirror of
https://github.com/corda/corda.git
synced 2025-02-02 01:08:09 +00:00
Merge branch 'oss-master' into ios
This commit is contained in:
commit
ab840c91db
@ -8064,8 +8064,7 @@ class ArgumentList {
|
|||||||
|
|
||||||
case 'J':
|
case 'J':
|
||||||
case 'D':
|
case 'D':
|
||||||
addLong(cast<int64_t>(objectArrayBody(t, arguments, index++),
|
addLong(cast<int64_t>(objectArrayBody(t, arguments, index++), 8));
|
||||||
BytesPerWord));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -2772,8 +2772,7 @@ pushArguments(Thread* t, object this_, const char* spec, object a)
|
|||||||
|
|
||||||
case 'J':
|
case 'J':
|
||||||
case 'D':
|
case 'D':
|
||||||
pushLong(t, cast<int64_t>(objectArrayBody(t, a, index++),
|
pushLong(t, cast<int64_t>(objectArrayBody(t, a, index++), 8));
|
||||||
BytesPerWord));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -974,13 +974,11 @@ handleException(LPEXCEPTION_POINTERS e)
|
|||||||
|
|
||||||
if (jump) {
|
if (jump) {
|
||||||
return EXCEPTION_CONTINUE_EXECUTION;
|
return EXCEPTION_CONTINUE_EXECUTION;
|
||||||
|
} else if (system->crashDumpDirectory) {
|
||||||
|
dump(e, system->crashDumpDirectory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (system->crashDumpDirectory) {
|
|
||||||
dump(e, system->crashDumpDirectory);
|
|
||||||
}
|
|
||||||
|
|
||||||
return EXCEPTION_CONTINUE_SEARCH;
|
return EXCEPTION_CONTINUE_SEARCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,25 @@ public class Floats {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static class Rectangle {
|
||||||
|
public double x;
|
||||||
|
public double y;
|
||||||
|
public double width;
|
||||||
|
public double height;
|
||||||
|
|
||||||
|
public void setX(double x) {
|
||||||
|
this.x = x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) throws Exception {
|
||||||
|
expect(new Double(42.0) == 42.0);
|
||||||
|
|
||||||
|
{ Rectangle r = new Rectangle();
|
||||||
|
Rectangle.class.getMethod("setX", double.class).invoke(r, 42.0);
|
||||||
|
expect(r.x == 42.0);
|
||||||
|
}
|
||||||
|
|
||||||
{ double input[] = new double[8];
|
{ double input[] = new double[8];
|
||||||
double left[] = new double[8];
|
double left[] = new double[8];
|
||||||
double right[] = new double[8];
|
double right[] = new double[8];
|
||||||
|
@ -65,9 +65,25 @@ public class Longs {
|
|||||||
return x >>> 32;
|
return x >>> 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class Rectangle {
|
||||||
|
public long x;
|
||||||
|
public long y;
|
||||||
|
public long width;
|
||||||
|
public long height;
|
||||||
|
|
||||||
|
public void setX(long x) {
|
||||||
|
this.x = x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
expect(volatileLong == getConstant());
|
expect(volatileLong == getConstant());
|
||||||
|
|
||||||
|
{ Rectangle r = new Rectangle();
|
||||||
|
Rectangle.class.getMethod("setX", long.class).invoke(r, 42L);
|
||||||
|
expect(r.x == 42L);
|
||||||
|
}
|
||||||
|
|
||||||
{ long a = 0x1FFFFFFFFL;
|
{ long a = 0x1FFFFFFFFL;
|
||||||
long b = -1;
|
long b = -1;
|
||||||
expect(a != b);
|
expect(a != b);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user