Skip to content

Commit 91d00b3

Browse files
committed
8288473: Remove unused frame::set_pc_preserve_deopt methods
Reviewed-by: rpressler, dcubed
1 parent 45ff10c commit 91d00b3

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

src/hotspot/share/runtime/frame.cpp

+1-16
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ address frame::raw_pc() const {
217217
// Change the pc in a frame object. This does not change the actual pc in
218218
// actual frame. To do that use patch_pc.
219219
//
220-
void frame::set_pc(address newpc ) {
220+
void frame::set_pc(address newpc) {
221221
#ifdef ASSERT
222222
if (_cb != NULL && _cb->is_nmethod()) {
223223
assert(!((nmethod*)_cb)->is_deopt_pc(_pc), "invariant violation");
@@ -231,21 +231,6 @@ void frame::set_pc(address newpc ) {
231231

232232
}
233233

234-
void frame::set_pc_preserve_deopt(address newpc) {
235-
set_pc_preserve_deopt(newpc, CodeCache::find_blob(newpc));
236-
}
237-
238-
void frame::set_pc_preserve_deopt(address newpc, CodeBlob* cb) {
239-
#ifdef ASSERT
240-
if (_cb != NULL && _cb->is_nmethod()) {
241-
assert(!((nmethod*)_cb)->is_deopt_pc(_pc), "invariant violation");
242-
}
243-
#endif // ASSERT
244-
245-
_pc = newpc;
246-
_cb = cb;
247-
}
248-
249234
// type testers
250235
bool frame::is_ignored_frame() const {
251236
return false; // FIXME: some LambdaForm frames should be ignored

src/hotspot/share/runtime/frame.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ class frame {
120120
address raw_pc() const;
121121

122122
void set_pc(address newpc);
123-
void set_pc_preserve_deopt(address newpc);
124-
void set_pc_preserve_deopt(address newpc, CodeBlob* cb);
125123

126124
intptr_t* sp() const { assert_absolute(); return _sp; }
127125
void set_sp( intptr_t* newsp ) { _sp = newsp; }

0 commit comments

Comments
 (0)