mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8252656: Replace RegisterArrayForGC mechanism with plain Handles
Reviewed-by: coleenp, tschatzl, dholmes
This commit is contained in:
parent
7282d0deb5
commit
4c73e045ce
3 changed files with 3 additions and 35 deletions
|
@ -1691,7 +1691,6 @@ void JavaThread::initialize() {
|
|||
_on_thread_list = false;
|
||||
_thread_state = _thread_new;
|
||||
_terminated = _not_terminated;
|
||||
_array_for_gc = NULL;
|
||||
_suspend_equivalent = false;
|
||||
_in_deopt_handler = 0;
|
||||
_doing_unsafe_access = false;
|
||||
|
@ -3010,13 +3009,6 @@ void JavaThread::oops_do(OopClosure* f, CodeBlobClosure* cf) {
|
|||
// Record JavaThread to GC thread
|
||||
RememberProcessedThread rpt(this);
|
||||
|
||||
// traverse the registered growable array
|
||||
if (_array_for_gc != NULL) {
|
||||
for (int index = 0; index < _array_for_gc->length(); index++) {
|
||||
f->do_oop(_array_for_gc->adr_at(index));
|
||||
}
|
||||
}
|
||||
|
||||
// Traverse the monitor chunks
|
||||
for (MonitorChunk* chunk = monitor_chunks(); chunk != NULL; chunk = chunk->next()) {
|
||||
chunk->oops_do(f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue