mirror of
https://github.com/corda/corda.git
synced 2025-01-19 03:06:36 +00:00
Merge pull request #499 from dicej/hostvm-message
print informative message if lambda encountered with no host VM
This commit is contained in:
commit
2a82809a57
@ -5140,6 +5140,14 @@ loop:
|
||||
PROTECT(t, bootstrapArray);
|
||||
|
||||
if (isLambda(t, c->loader(), bootstrapArray, invocation)) {
|
||||
if (bc->hostVM == 0) {
|
||||
throwNew(t,
|
||||
GcVirtualMachineError::Type,
|
||||
"lambda expression encountered, but host VM is not "
|
||||
"available; use -hostvm option to bootimage-generator to "
|
||||
"fix this");
|
||||
}
|
||||
|
||||
JNIEnv* e;
|
||||
if (bc->hostVM->vtable->AttachCurrentThread(bc->hostVM, &e, 0) == 0) {
|
||||
e->vtable->PushLocalFrame(e, 256);
|
||||
|
Loading…
Reference in New Issue
Block a user