mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8258459: Decouple gc_globals.hpp from globals.hpp
Reviewed-by: lfoltan, coleenp
This commit is contained in:
parent
2499ac3db5
commit
5ea960728c
127 changed files with 375 additions and 192 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -23,7 +23,6 @@
|
|||
*/
|
||||
|
||||
#include "precompiled.hpp"
|
||||
#include "runtime/thread.inline.hpp"
|
||||
#include "jvm.h"
|
||||
#include "aot/aotLoader.hpp"
|
||||
#include "classfile/classLoader.hpp"
|
||||
|
@ -42,6 +41,7 @@
|
|||
#include "gc/shared/gcVMOperations.hpp"
|
||||
#include "gc/shared/oopStorage.hpp"
|
||||
#include "gc/shared/oopStorageSet.hpp"
|
||||
#include "gc/shared/tlab_globals.hpp"
|
||||
#include "gc/shared/workgroup.hpp"
|
||||
#include "interpreter/interpreter.hpp"
|
||||
#include "interpreter/linkResolver.hpp"
|
||||
|
@ -326,6 +326,12 @@ Thread::Thread() {
|
|||
}
|
||||
}
|
||||
|
||||
void Thread::initialize_tlab() {
|
||||
if (UseTLAB) {
|
||||
tlab().initialize();
|
||||
}
|
||||
}
|
||||
|
||||
void Thread::initialize_thread_current() {
|
||||
#ifndef USE_LIBRARY_BASED_TLS_ONLY
|
||||
assert(_thr_current == NULL, "Thread::current already initialized");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue