src/hotspot/share/oops/oop.cpp
changeset 49722 a47d1e21b3f1
parent 49592 77fb0be7d19f
child 49851 9082914ccaf2
equal deleted inserted replaced
49721:ea0cc7c74e75 49722:a47d1e21b3f1
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2018, 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.
   132   // Outside of a safepoint, the header could be changing (for example,
   132   // Outside of a safepoint, the header could be changing (for example,
   133   // another thread could be inflating a lock on this object).
   133   // another thread could be inflating a lock on this object).
   134   if (ignore_mark_word) {
   134   if (ignore_mark_word) {
   135     return true;
   135     return true;
   136   }
   136   }
   137   if (obj->mark() != NULL) {
   137   if (obj->mark_raw() != NULL) {
   138     return true;
   138     return true;
   139   }
   139   }
   140   return !SafepointSynchronize::is_at_safepoint();
   140   return !SafepointSynchronize::is_at_safepoint();
   141 }
   141 }
   142 
   142