comparison src/share/vm/code/nmethod.hpp @ 4873:0382d2b469b2

7013347: allow crypto functions to be called inline to enhance performance Reviewed-by: kvn
author never
date Wed, 01 Feb 2012 16:57:08 -0800
parents c124e2e7463e
children 33df1aeaebbf 500023bd0818
comparison
equal deleted inserted replaced
4872:aa3d708d67c4 4873:0382d2b469b2
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, 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.
173 bool _unload_reported; 173 bool _unload_reported;
174 174
175 // set during construction 175 // set during construction
176 unsigned int _has_unsafe_access:1; // May fault due to unsafe access. 176 unsigned int _has_unsafe_access:1; // May fault due to unsafe access.
177 unsigned int _has_method_handle_invokes:1; // Has this method MethodHandle invokes? 177 unsigned int _has_method_handle_invokes:1; // Has this method MethodHandle invokes?
178 unsigned int _lazy_critical_native:1; // Lazy JNI critical native
178 179
179 // Protected by Patching_lock 180 // Protected by Patching_lock
180 unsigned char _state; // {alive, not_entrant, zombie, unloaded} 181 unsigned char _state; // {alive, not_entrant, zombie, unloaded}
181 182
182 #ifdef ASSERT 183 #ifdef ASSERT
428 429
429 bool has_method_handle_invokes() const { return _has_method_handle_invokes; } 430 bool has_method_handle_invokes() const { return _has_method_handle_invokes; }
430 void set_has_method_handle_invokes(bool z) { _has_method_handle_invokes = z; } 431 void set_has_method_handle_invokes(bool z) { _has_method_handle_invokes = z; }
431 432
432 bool is_speculatively_disconnected() const { return _speculatively_disconnected; } 433 bool is_speculatively_disconnected() const { return _speculatively_disconnected; }
433 void set_speculatively_disconnected(bool z) { _speculatively_disconnected = z; } 434 void set_speculatively_disconnected(bool z) { _speculatively_disconnected = z; }
435
436 bool is_lazy_critical_native() const { return _lazy_critical_native; }
437 void set_lazy_critical_native(bool z) { _lazy_critical_native = z; }
434 438
435 int comp_level() const { return _comp_level; } 439 int comp_level() const { return _comp_level; }
436 440
437 // Support for oops in scopes and relocs: 441 // Support for oops in scopes and relocs:
438 // Note: index 0 is reserved for null. 442 // Note: index 0 is reserved for null.