mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6975078: assert(allocated_on_res_area() || allocated_on_C_heap() || allocated_on_arena()
Pass the check in ResourceObj() if _allocation value is already set and object is allocated on stack. Reviewed-by: dholmes, johnc
This commit is contained in:
parent
7895bef72f
commit
2e48a18645
6 changed files with 49 additions and 34 deletions
|
@ -807,7 +807,7 @@ bool Thread::is_in_stack(address adr) const {
|
|||
// should be revisited, and they should be removed if possible.
|
||||
|
||||
bool Thread::is_lock_owned(address adr) const {
|
||||
return (_stack_base >= adr && adr >= (_stack_base - _stack_size));
|
||||
return on_local_stack(adr);
|
||||
}
|
||||
|
||||
bool Thread::set_as_starting_thread() {
|
||||
|
|
|
@ -449,6 +449,11 @@ public:
|
|||
void set_stack_size(size_t size) { _stack_size = size; }
|
||||
void record_stack_base_and_size();
|
||||
|
||||
bool on_local_stack(address adr) const {
|
||||
/* QQQ this has knowledge of direction, ought to be a stack method */
|
||||
return (_stack_base >= adr && adr >= (_stack_base - _stack_size));
|
||||
}
|
||||
|
||||
int lgrp_id() const { return _lgrp_id; }
|
||||
void set_lgrp_id(int value) { _lgrp_id = value; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue