mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8268368: Adopt cast notation for JavaThread conversions
Reviewed-by: dholmes, stefank
This commit is contained in:
parent
b6cfca8a89
commit
cd678a383f
64 changed files with 139 additions and 145 deletions
|
@ -613,7 +613,7 @@ MethodCounters* Method::build_method_counters(Thread* current, Method* m) {
|
|||
methodHandle mh(current, m);
|
||||
MethodCounters* counters;
|
||||
if (current->is_Java_thread()) {
|
||||
JavaThread* THREAD = current->as_Java_thread(); // For exception macros.
|
||||
JavaThread* THREAD = JavaThread::cast(current); // For exception macros.
|
||||
// Use the TRAPS version for a JavaThread so it will adjust the GC threshold
|
||||
// if needed.
|
||||
counters = MethodCounters::allocate_with_exception(mh, THREAD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue