hotspot/src/share/vm/oops/oop.cpp
changeset 46271 979ebd346ecf
parent 37248 11a660dbbb8e
child 46810 7dad333205cd
equal deleted inserted replaced
46270:2e7898927798 46271:979ebd346ecf
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    94   verify_on(tty);
    94   verify_on(tty);
    95 }
    95 }
    96 
    96 
    97 intptr_t oopDesc::slow_identity_hash() {
    97 intptr_t oopDesc::slow_identity_hash() {
    98   // slow case; we have to acquire the micro lock in order to locate the header
    98   // slow case; we have to acquire the micro lock in order to locate the header
       
    99   Thread* THREAD = Thread::current();
    99   ResetNoHandleMark rnm; // Might be called from LEAF/QUICK ENTRY
   100   ResetNoHandleMark rnm; // Might be called from LEAF/QUICK ENTRY
   100   HandleMark hm;
   101   HandleMark hm(THREAD);
   101   Handle object(this);
   102   Handle object(THREAD, this);
   102   return ObjectSynchronizer::identity_hash_value_for(object);
   103   return ObjectSynchronizer::identity_hash_value_for(object);
   103 }
   104 }
   104 
   105 
   105 // When String table needs to rehash
   106 // When String table needs to rehash
   106 unsigned int oopDesc::new_hash(juint seed) {
   107 unsigned int oopDesc::new_hash(juint seed) {