mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8252685: APIs that require JavaThread should take JavaThread arguments
Reviewed-by: coleenp, sspitsyn, kvn, iklam
This commit is contained in:
parent
2066f497b9
commit
02f895c5f6
120 changed files with 507 additions and 521 deletions
|
@ -91,10 +91,10 @@ void oopDesc::verify(oopDesc* oop_desc) {
|
|||
|
||||
intptr_t oopDesc::slow_identity_hash() {
|
||||
// slow case; we have to acquire the micro lock in order to locate the header
|
||||
Thread* THREAD = Thread::current();
|
||||
Thread* current = Thread::current();
|
||||
ResetNoHandleMark rnm; // Might be called from LEAF/QUICK ENTRY
|
||||
HandleMark hm(THREAD);
|
||||
Handle object(THREAD, this);
|
||||
HandleMark hm(current);
|
||||
Handle object(current, this);
|
||||
return ObjectSynchronizer::identity_hash_value_for(object);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue