Commit e1d1a11 1 parent b55b924 commit e1d1a11 Copy full SHA for e1d1a11
File tree 4 files changed +0
-21
lines changed
4 files changed +0
-21
lines changed Original file line number Diff line number Diff line change 29
29
30
30
#include " memory/allocation.hpp"
31
31
#include " oops/oop.hpp"
32
- #include " runtime/objectMonitor.hpp"
33
32
#include " runtime/safepoint.hpp"
34
33
#include " utilities/align.hpp"
35
34
#include " utilities/count_trailing_zeros.hpp"
@@ -263,7 +262,6 @@ class OopStorage::IfAliveFn {
263
262
if (_is_alive->do_object_b (v)) {
264
263
result = _f (ptr);
265
264
} else {
266
- ObjectMonitor::maybe_deflate_dead (ptr);
267
265
*ptr = nullptr ; // Clear dead value.
268
266
}
269
267
}
Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ class WeakProcessor::CountingClosure : public Closure {
65
65
_keep_alive->do_oop (p);
66
66
++_live;
67
67
} else {
68
- ObjectMonitor::maybe_deflate_dead (p);
69
68
*p = nullptr ;
70
69
++_new_dead;
71
70
}
Original file line number Diff line number Diff line change @@ -600,22 +600,6 @@ bool ObjectMonitor::deflate_monitor() {
600
600
return true ; // Success, ObjectMonitor has been deflated.
601
601
}
602
602
603
- // We might access the dead object headers for parsable heap walk, make sure
604
- // headers are in correct shape, e.g. monitors deflated.
605
- void ObjectMonitor::maybe_deflate_dead (oop* p) {
606
- oop obj = *p;
607
- assert (obj != NULL , " must not yet been cleared" );
608
- markWord mark = obj->mark ();
609
- if (mark.has_monitor ()) {
610
- ObjectMonitor* monitor = mark.monitor ();
611
- if (p == monitor->_object .ptr_raw ()) {
612
- assert (monitor->object_peek () == obj, " lock object must match" );
613
- markWord dmw = monitor->header ();
614
- obj->set_mark (dmw);
615
- }
616
- }
617
- }
618
-
619
603
// Install the displaced mark word (dmw) of a deflating ObjectMonitor
620
604
// into the header of the object associated with the monitor. This
621
605
// idempotent method is called by a thread that is deflating a
Original file line number Diff line number Diff line change @@ -343,8 +343,6 @@ class ObjectMonitor : public CHeapObj<mtObjectMonitor> {
343
343
// Use the following at your own risk
344
344
intx complete_exit (JavaThread* current);
345
345
346
- static void maybe_deflate_dead (oop* p);
347
-
348
346
private:
349
347
void AddWaiter (ObjectWaiter* waiter);
350
348
void INotify (JavaThread* current);
You can’t perform that action at this time.
0 commit comments