diff options
author | Elliott Hughes <enh@google.com> | 2014-10-21 07:36:19 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-10-21 07:36:19 -0700 |
commit | 4f55ff6887559f91f8fb1cbfab0d5b0f3b2cafbe (patch) | |
tree | 0fc142e084c3b1f43ba84cb6a8d3ac436e66d5e6 | |
parent | 9c1634645e7777aa21a2390f0603ce56a2d1fd2b (diff) | |
download | art-4f55ff6887559f91f8fb1cbfab0d5b0f3b2cafbe.zip art-4f55ff6887559f91f8fb1cbfab0d5b0f3b2cafbe.tar.gz art-4f55ff6887559f91f8fb1cbfab0d5b0f3b2cafbe.tar.bz2 |
Clarify a confusing error message.
We didn't run out of stack; we ran out of heap so there's no stack
trace in the pre-allocated exception we're throwing.
Bug: 17975886
Change-Id: I406f84d7580a28451b232eba323f9c9978e678e6
-rw-r--r-- | runtime/runtime.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 62b0656..36f6dcd 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -850,14 +850,14 @@ bool Runtime::Init(const RuntimeOptions& raw_options, bool ignore_unrecognized) // Pre-allocate an OutOfMemoryError for the double-OOME case. self->ThrowNewException(ThrowLocation(), "Ljava/lang/OutOfMemoryError;", "OutOfMemoryError thrown while trying to throw OutOfMemoryError; " - "no stack available"); + "no stack trace available"); pre_allocated_OutOfMemoryError_ = GcRoot<mirror::Throwable>(self->GetException(NULL)); self->ClearException(); // Pre-allocate a NoClassDefFoundError for the common case of failing to find a system class // ahead of checking the application's class loader. self->ThrowNewException(ThrowLocation(), "Ljava/lang/NoClassDefFoundError;", - "Class not found using the boot class loader; no stack available"); + "Class not found using the boot class loader; no stack trace available"); pre_allocated_NoClassDefFoundError_ = GcRoot<mirror::Throwable>(self->GetException(NULL)); self->ClearException(); |