Exceptions are currently thrown and handled per AvmCore, not per-thread. However, for a multi-threaded VM, it would be useful to throw exceptions concurrently from any thread.
Created attachment 461060 [details] [diff] [review] Initial patch The attached patch provides two things: - Thread-local implementation of the current AvmCore fields which manage exceptions. This is a really simple implementation, and should be optimized more for the AvmCore's application-thread (as it will have to access a thread-local even when entering a try block). - ExceptionSpecification: a mechanism for internal-VM threads to throw exceptions without having to execute AS constructors or class initializers. The above is enabled via AVMFEATURE_BASIC_VM_THREAD_SAFETY
Created attachment 525942 [details] [diff] [review] Latest. TR rev 6090. Patch queue rev 277
(In reply to comment #2) > Created attachment 525942 [details] [diff] [review] > Latest. TR rev 6090. Patch queue rev 277 This feature is not ifdef'd in the latest patch. AVMFEATURE_BASIC_VM_THREAD_SAFETY has been removed.