equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2018, 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. |
47 } |
47 } |
48 } |
48 } |
49 } |
49 } |
50 |
50 |
51 void ConcurrentGCThread::initialize_in_thread() { |
51 void ConcurrentGCThread::initialize_in_thread() { |
52 this->initialize_named_thread(); |
|
53 this->set_active_handles(JNIHandleBlock::allocate_block()); |
52 this->set_active_handles(JNIHandleBlock::allocate_block()); |
54 // From this time Thread::current() should be working. |
53 // From this time Thread::current() should be working. |
55 assert(this == Thread::current(), "just checking"); |
54 assert(this == Thread::current(), "just checking"); |
56 } |
55 } |
57 |
56 |