Commit 2558c605 by Andrew Haley Committed by Andrew Haley

natClass.cc (finalize): Make sure that the class really has an engine.

2011-07-12  Andrew Haley  <aph@redhat.com>

	* java/lang/natClass.cc (finalize): Make sure that the class
	really has an engine.

From-SVN: r176199
parent ab079773
2011-07-12 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (finalize): Make sure that the class
really has an engine.
2011-07-07 Matthias Klose <doko@ubuntu.com> 2011-07-07 Matthias Klose <doko@ubuntu.com>
* libtool-version: Bump soversion. * libtool-version: Bump soversion.
......
...@@ -668,7 +668,9 @@ java::lang::Class::newInstance (void) ...@@ -668,7 +668,9 @@ java::lang::Class::newInstance (void)
void void
java::lang::Class::finalize (void) java::lang::Class::finalize (void)
{ {
engine->unregister(this); // Array classes don't have an engine, and don't need to be finalized.
if (engine)
engine->unregister(this);
} }
#ifdef INTERPRETER #ifdef INTERPRETER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment