equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, 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 static bool initialize(TRAPS) { |
48 static bool initialize(TRAPS) { |
49 static bool initialized = false; |
49 static bool initialized = false; |
50 if (!initialized) { |
50 if (!initialized) { |
51 DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_vm(THREAD)); |
51 DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_vm(THREAD)); |
52 jvm_upcalls_class_sym = SymbolTable::new_permanent_symbol("jdk/jfr/internal/JVMUpcalls", CHECK_false); |
52 jvm_upcalls_class_sym = SymbolTable::new_permanent_symbol("jdk/jfr/internal/JVMUpcalls"); |
53 on_retransform_method_sym = SymbolTable::new_permanent_symbol("onRetransform", CHECK_false); |
53 on_retransform_method_sym = SymbolTable::new_permanent_symbol("onRetransform"); |
54 on_retransform_signature_sym = SymbolTable::new_permanent_symbol("(JZLjava/lang/Class;[B)[B", CHECK_false); |
54 on_retransform_signature_sym = SymbolTable::new_permanent_symbol("(JZLjava/lang/Class;[B)[B"); |
55 bytes_for_eager_instrumentation_sym = SymbolTable::new_permanent_symbol("bytesForEagerInstrumentation", CHECK_false); |
55 bytes_for_eager_instrumentation_sym = SymbolTable::new_permanent_symbol("bytesForEagerInstrumentation"); |
56 bytes_for_eager_instrumentation_sig_sym = SymbolTable::new_permanent_symbol("(JZLjava/lang/Class;[B)[B", THREAD); |
56 bytes_for_eager_instrumentation_sig_sym = SymbolTable::new_permanent_symbol("(JZLjava/lang/Class;[B)[B"); |
57 initialized = bytes_for_eager_instrumentation_sig_sym != NULL; |
57 initialized = bytes_for_eager_instrumentation_sig_sym != NULL; |
58 } |
58 } |
59 return initialized; |
59 return initialized; |
60 } |
60 } |
61 |
61 |