hotspot/src/share/vm/runtime/serviceThread.cpp
changeset 25057 f38210f84f8c
parent 22758 c6b6abb73544
child 26843 1220c9e50fff
equal deleted inserted replaced
25056:5ad92b0d1beb 25057:f38210f84f8c
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    39   EXCEPTION_MARK;
    39   EXCEPTION_MARK;
    40 
    40 
    41   instanceKlassHandle klass (THREAD,  SystemDictionary::Thread_klass());
    41   instanceKlassHandle klass (THREAD,  SystemDictionary::Thread_klass());
    42   instanceHandle thread_oop = klass->allocate_instance_handle(CHECK);
    42   instanceHandle thread_oop = klass->allocate_instance_handle(CHECK);
    43 
    43 
    44   const char* name = JDK_Version::is_gte_jdk17x_version() ?
    44   const char* name = "Service Thread";
    45       "Service Thread" : "Low Memory Detector";
       
    46 
    45 
    47   Handle string = java_lang_String::create_from_str(name, CHECK);
    46   Handle string = java_lang_String::create_from_str(name, CHECK);
    48 
    47 
    49   // Initialize thread_oop to put it into the system threadGroup
    48   // Initialize thread_oop to put it into the system threadGroup
    50   Handle thread_group (THREAD, Universe::system_thread_group());
    49   Handle thread_group (THREAD, Universe::system_thread_group());