| 571 | } |
| 572 | |
| 573 | extern "C" AVIAN_EXPORT int64_t JNICALL |
| 574 | Avian_java_lang_Thread_getStackTrace(Thread* t, |
| 575 | object, |
| 576 | uintptr_t* arguments) |
| 577 | { |
| 578 | int64_t peer; |
| 579 | memcpy(&peer, arguments, 8); |
| 580 | |
| 581 | if (reinterpret_cast<Thread*>(peer) == t) { |
| 582 | return reinterpret_cast<int64_t>(makeTrace(t)); |
| 583 | } else { |
| 584 | return reinterpret_cast<int64_t>( |
| 585 | t->m->processor->getStackTrace(t, reinterpret_cast<Thread*>(peer))); |
| 586 | } |
| 587 | } |
| 588 | |
| 589 | extern "C" AVIAN_EXPORT int64_t JNICALL |
| 590 | Avian_java_lang_Thread_activeCount(Thread* t, object, uintptr_t*) |
nothing calls this directly
no test coverage detected