Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.hpp @ 14297:febc6428bc79
8028275: Metaspace ShrinkGrowTest causes fatal error if run with JFR
Summary: Clean up initialization from Threads::create_vm() so that exceptions cause vm_exit_during_initialzation without an exception mark.
Reviewed-by: dholmes, hseigel
author | coleenp |
---|---|
date | Mon, 27 Jan 2014 23:12:13 -0500 |
parents | 469216acdb28 |
children | 2c95095271e9 |
comparison
equal
deleted
inserted
replaced
14296:50bb249de889 | 14297:febc6428bc79 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 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. |
1889 static int _return_code; | 1889 static int _return_code; |
1890 #ifdef ASSERT | 1890 #ifdef ASSERT |
1891 static bool _vm_complete; | 1891 static bool _vm_complete; |
1892 #endif | 1892 #endif |
1893 | 1893 |
1894 static void initialize_java_lang_classes(JavaThread* main_thread, TRAPS); | |
1895 static void initialize_jsr292_core_classes(TRAPS); | |
1894 public: | 1896 public: |
1895 // Thread management | 1897 // Thread management |
1896 // force_daemon is a concession to JNI, where we may need to add a | 1898 // force_daemon is a concession to JNI, where we may need to add a |
1897 // thread to the thread list before allocating its thread object | 1899 // thread to the thread list before allocating its thread object |
1898 static void add(JavaThread* p, bool force_daemon = false); | 1900 static void add(JavaThread* p, bool force_daemon = false); |