8198270: Remove dangerous assert in HandleArea::oops_do()
authorpliden
Fri, 08 Dec 2017 13:47:08 +0100
changeset 49013 5f7dc39f51a5
parent 49012 1544557aab97
child 49014 407a8495d4b3
8198270: Remove dangerous assert in HandleArea::oops_do() Reviewed-by: coleenp
src/hotspot/share/runtime/handles.cpp
--- a/src/hotspot/share/runtime/handles.cpp	Sun Feb 18 13:48:01 2018 -0500
+++ b/src/hotspot/share/runtime/handles.cpp	Fri Dec 08 13:47:08 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, 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
@@ -97,10 +97,6 @@
   // during GC phase 3, a handle may be a forward pointer that
   // is not yet valid, so loosen the assertion
   while (bottom < top) {
-    // This test can be moved up but for now check every oop.
-
-    assert(oopDesc::is_oop(*bottom, true), "handle should point to oop");
-
     f->do_oop(bottom++);
   }
   return handles_visited;