< prev index next >

src/hotspot/share/jfr/leakprofiler/chains/objectSampleMarker.hpp

Print this page
rev 57531 : [mq]: 8234173.0
rev 57532 : [mq]: 8234173.1

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -65,14 +65,12 @@
 
   void mark(oop obj) {
     assert(obj != NULL, "invariant");
     // save the original markWord
     _store->push(ObjectSampleMarkWord(obj, obj->mark()));
-    // now we will "poison" the mark word of the sample object
-    // to marked.
-    // This will be used to quickly identify sample objects
-    // during the reachability search from gc roots.
+    // now we will set the mark word to "marked" in order to quickly
+    // identify sample objects during the reachability search from gc roots.
     assert(!obj->mark().is_marked(), "should only mark an object once");
     obj->set_mark(markWord::prototype().set_marked());
     assert(obj->mark().is_marked(), "invariant");
   }
 };
< prev index next >