mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8249837: Avoid direct or implicit Thread::current() calls when we already have a current thread variable
Add current thread OR remove unneeded HandleMark Reviewed-by: kvn, dholmes
This commit is contained in:
parent
79f02a67ce
commit
9798a0846b
50 changed files with 108 additions and 143 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -253,7 +253,9 @@ void ScopeDesc::print_on(outputStream* st, PcDesc* pd) const {
|
|||
#endif
|
||||
|
||||
void ScopeDesc::verify() {
|
||||
ResourceMark rm;
|
||||
Thread* current_thread = Thread::current();
|
||||
ResourceMark rm(current_thread);
|
||||
HandleMark hm(current_thread);
|
||||
guarantee(method()->is_method(), "type check");
|
||||
|
||||
// check if we have any illegal elements on the expression stack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue