mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8252406: Introduce Thread::as_Java_thread() convenience function
Reviewed-by: shade, coleenp, kbarrett, dcubed
This commit is contained in:
parent
488022689f
commit
976acddeb5
110 changed files with 360 additions and 456 deletions
|
@ -140,8 +140,7 @@ static JavaThread* get_current_thread(bool allow_null=true) {
|
|||
assert(allow_null, "npe");
|
||||
return NULL;
|
||||
}
|
||||
assert(thread->is_Java_thread(), "must be");
|
||||
return (JavaThread*) thread;
|
||||
return thread->as_Java_thread();
|
||||
}
|
||||
|
||||
// Entry to native method implementation that transitions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue