48
49 void copy(JavaFrameAnchor* src) {
50 // In order to make sure the transition state is valid for "this"
51 // We must clear _last_Java_sp before copying the rest of the new data
52 //
53 // Hack Alert: Temporary bugfix for 4717480/4721647
54 // To act like previous version (pd_cache_state) don't NULL _last_Java_sp
55 // unless the value is changing
56 //
57 if (_last_Java_sp != src->_last_Java_sp) {
58 _last_Java_sp = NULL;
59 OrderAccess::release();
60 }
61 _last_Java_fp = src->_last_Java_fp;
62 _last_Java_pc = src->_last_Java_pc;
63 // Must be last so profiler will always see valid frame if has_last_frame() is true
64 _last_Java_sp = src->_last_Java_sp;
65 }
66
67 // Always walkable
68 bool walkable(void) { return true; }
69 // Never any thing to do since we are always walkable and can find address of return addresses
70 void make_walkable(JavaThread* thread) { }
71
72 intptr_t* last_Java_sp(void) const { return _last_Java_sp; }
73
74 address last_Java_pc(void) { return _last_Java_pc; }
75
76 private:
77
78 static ByteSize last_Java_fp_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_fp); }
79
80 public:
81
82 void set_last_Java_sp(intptr_t* sp) { _last_Java_sp = sp; OrderAccess::release(); }
83
84 intptr_t* last_Java_fp(void) { return _last_Java_fp; }
85 // Assert (last_Java_sp == NULL || fp == NULL)
86 void set_last_Java_fp(intptr_t* fp) { OrderAccess::release(); _last_Java_fp = fp; }
87
88 #endif // CPU_AARCH64_VM_JAVAFRAMEANCHOR_AARCH64_HPP
|
48
49 void copy(JavaFrameAnchor* src) {
50 // In order to make sure the transition state is valid for "this"
51 // We must clear _last_Java_sp before copying the rest of the new data
52 //
53 // Hack Alert: Temporary bugfix for 4717480/4721647
54 // To act like previous version (pd_cache_state) don't NULL _last_Java_sp
55 // unless the value is changing
56 //
57 if (_last_Java_sp != src->_last_Java_sp) {
58 _last_Java_sp = NULL;
59 OrderAccess::release();
60 }
61 _last_Java_fp = src->_last_Java_fp;
62 _last_Java_pc = src->_last_Java_pc;
63 // Must be last so profiler will always see valid frame if has_last_frame() is true
64 _last_Java_sp = src->_last_Java_sp;
65 }
66
67 // Always walkable
68 bool walkable(void) { return _last_Java_sp != NULL && _last_Java_pc != NULL; }
69 void make_walkable(JavaThread* thread);
70 void capture_last_Java_pc(void);
71
72 intptr_t* last_Java_sp(void) const { return _last_Java_sp; }
73
74 address last_Java_pc(void) { return _last_Java_pc; }
75
76 private:
77
78 static ByteSize last_Java_fp_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_fp); }
79
80 public:
81
82 void set_last_Java_sp(intptr_t* sp) { _last_Java_sp = sp; OrderAccess::release(); }
83
84 intptr_t* last_Java_fp(void) { return _last_Java_fp; }
85 // Assert (last_Java_sp == NULL || fp == NULL)
86 void set_last_Java_fp(intptr_t* fp) { OrderAccess::release(); _last_Java_fp = fp; }
87
88 #endif // CPU_AARCH64_VM_JAVAFRAMEANCHOR_AARCH64_HPP
|