mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8268855: Cleanup name handling in the Thread class and subclasses
Reviewed-by: lfoltan, coleenp
This commit is contained in:
parent
c79034e0c9
commit
08ee7ae672
16 changed files with 71 additions and 51 deletions
|
@ -205,7 +205,7 @@ void JVMCIEnv::init_env_mode_runtime(JavaThread* thread, JNIEnv* parent_env) {
|
|||
ResourceMark rm; // Thread name is resource allocated
|
||||
JavaVMAttachArgs attach_args;
|
||||
attach_args.version = JNI_VERSION_1_2;
|
||||
attach_args.name = thread->name();
|
||||
attach_args.name = const_cast<char*>(thread->name());
|
||||
attach_args.group = NULL;
|
||||
if (_runtime->AttachCurrentThread(thread, (void**) &_env, &attach_args) != JNI_OK) {
|
||||
fatal("Error attaching current thread (%s) to JVMCI shared library JNI interface", attach_args.name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue