equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "gc/shared/barrierSet.hpp" |
|
27 #include "gc/shared/collectedHeap.hpp" |
|
28 #include "gc/shared/collectedHeap.inline.hpp" |
|
29 #include "memory/universe.hpp" |
26 #include "memory/universe.hpp" |
30 #include "oops/oopsHierarchy.hpp" |
27 #include "oops/oopsHierarchy.hpp" |
31 #include "runtime/thread.inline.hpp" |
28 #include "runtime/thread.inline.hpp" |
32 #include "utilities/globalDefinitions.hpp" |
29 #include "utilities/globalDefinitions.hpp" |
33 |
30 |
54 if (t != NULL && t->is_Java_thread()) { |
51 if (t != NULL && t->is_Java_thread()) { |
55 t->unhandled_oops()->unregister_unhandled_oop(this); |
52 t->unhandled_oops()->unregister_unhandled_oop(this); |
56 } |
53 } |
57 } |
54 } |
58 |
55 |
59 bool oop::operator==(const oop o) const { |
|
60 assert(BarrierSet::barrier_set()->oop_equals_operator_allowed(), "Not allowed"); |
|
61 return obj() == o.obj(); |
|
62 } |
|
63 |
|
64 bool oop::operator!=(const volatile oop o) const { |
|
65 assert(BarrierSet::barrier_set()->oop_equals_operator_allowed(), "Not allowed"); |
|
66 return obj() != o.obj(); |
|
67 } |
|
68 |
|
69 #endif // CHECK_UNHANDLED_OOPS |
56 #endif // CHECK_UNHANDLED_OOPS |