ReadyTalk / avian

[INACTIVE] Avian is a lightweight virtual machine and class library designed to provide a useful subset of Java's features, suitable for building self-contained applications.
https://readytalk.github.io/avian/
Other
1.22k stars 172 forks source link

Allow any uncaught exception to be logged as the thread exits. #548

Closed chrisr3 closed 7 years ago

chrisr3 commented 7 years ago

Not clearing the uncaught exception here means that it will be logged in Thread::Runnable::run():

  vm::run(t, runThread, 0);

  if (t->exception and t->exception != roots(t)->shutdownInProgress()) {
    printTrace(t, t->exception);
  }

This is not a bad thing.