mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
ab079773d3
commit
2558c6054e
|
|
@ -1,3 +1,8 @@
|
||||||
|
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,6 +668,8 @@ java::lang::Class::newInstance (void)
|
||||||
void
|
void
|
||||||
java::lang::Class::finalize (void)
|
java::lang::Class::finalize (void)
|
||||||
{
|
{
|
||||||
|
// Array classes don't have an engine, and don't need to be finalized.
|
||||||
|
if (engine)
|
||||||
engine->unregister(this);
|
engine->unregister(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue