15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_RUNTIME_INTERFACESUPPORT_INLINE_HPP
26 #define SHARE_VM_RUNTIME_INTERFACESUPPORT_INLINE_HPP
27
28 #include "runtime/handles.inline.hpp"
29 #include "runtime/mutexLocker.hpp"
30 #include "runtime/orderAccess.hpp"
31 #include "runtime/os.hpp"
32 #include "runtime/safepointMechanism.inline.hpp"
33 #include "runtime/safepointVerifiers.hpp"
34 #include "runtime/thread.hpp"
35 #include "runtime/vm_operations.hpp"
36 #include "utilities/globalDefinitions.hpp"
37 #include "utilities/macros.hpp"
38 #include "utilities/preserveException.hpp"
39
40 // Wrapper for all entry points to the virtual machine.
41
42 // InterfaceSupport provides functionality used by the VM_LEAF_BASE and
43 // VM_ENTRY_BASE macros. These macros are used to guard entry points into
44 // the VM and perform checks upon leave of the VM.
45
46
47 class InterfaceSupport: AllStatic {
48 # ifdef ASSERT
49 public:
50 static long _scavenge_alot_counter;
51 static long _fullgc_alot_counter;
52 static long _number_of_calls;
53 static long _fullgc_alot_invocation;
54
55 // Helper methods used to implement +ScavengeALot and +FullGCALot
|
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_RUNTIME_INTERFACESUPPORT_INLINE_HPP
26 #define SHARE_VM_RUNTIME_INTERFACESUPPORT_INLINE_HPP
27
28 #include "runtime/handles.inline.hpp"
29 #include "runtime/mutexLocker.hpp"
30 #include "runtime/orderAccess.hpp"
31 #include "runtime/os.hpp"
32 #include "runtime/safepointMechanism.inline.hpp"
33 #include "runtime/safepointVerifiers.hpp"
34 #include "runtime/thread.hpp"
35 #include "runtime/vmOperations.hpp"
36 #include "utilities/globalDefinitions.hpp"
37 #include "utilities/macros.hpp"
38 #include "utilities/preserveException.hpp"
39
40 // Wrapper for all entry points to the virtual machine.
41
42 // InterfaceSupport provides functionality used by the VM_LEAF_BASE and
43 // VM_ENTRY_BASE macros. These macros are used to guard entry points into
44 // the VM and perform checks upon leave of the VM.
45
46
47 class InterfaceSupport: AllStatic {
48 # ifdef ASSERT
49 public:
50 static long _scavenge_alot_counter;
51 static long _fullgc_alot_counter;
52 static long _number_of_calls;
53 static long _fullgc_alot_invocation;
54
55 // Helper methods used to implement +ScavengeALot and +FullGCALot
|