This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Does the GC run finalizers in the order that they are registered? If so then we should be ok.Mohan> The GC finalizer finalize_native in natThread.cc should destroy Mohan> the join synchronization objects if the target platform supports Mohan> these destruction operations (which isn't the case for Linux and Mohan> -DLINUX_THREADS but is the case for Win32).
This isn't a problem with your patch, but what happens if a user
writes a subclass of Thread that has a finalize method which
resurrects the Thread? Won't we start referring to freed data in this
code?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |