From e76e4ccdf0730907308cd380d5452f5dd22d439b Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 14 Sep 2007 17:05:06 -0600 Subject: [PATCH] protect local object variable in multianewarray --- src/run.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/run.cpp b/src/run.cpp index 25b2ba87ab..1643727dda 100644 --- a/src/run.cpp +++ b/src/run.cpp @@ -2126,6 +2126,7 @@ run(Thread* t) object class_ = resolveClass(t, codePool(t, code), index - 1); if (UNLIKELY(exception)) goto throw_; + PROTECT(t, class_); int32_t counts[dimensions]; for (int i = dimensions - 1; i >= 0; --i) {