comparison src/share/vm/gc_interface/allocTracer.hpp @ 22938:a4ad5d51d29c

8065331: Add trace events for failed allocations Reviewed-by: ehelin, jwilhelm
author mlarsson
date Mon, 02 Mar 2015 14:50:53 +0100
parents f2110083203d
children
comparison
equal deleted inserted replaced
22937:af8f16ac392c 22938:a4ad5d51d29c
1 /* 1 /*
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, 2015, 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.
30 30
31 class AllocTracer : AllStatic { 31 class AllocTracer : AllStatic {
32 public: 32 public:
33 static void send_allocation_outside_tlab_event(KlassHandle klass, size_t alloc_size); 33 static void send_allocation_outside_tlab_event(KlassHandle klass, size_t alloc_size);
34 static void send_allocation_in_new_tlab_event(KlassHandle klass, size_t tlab_size, size_t alloc_size); 34 static void send_allocation_in_new_tlab_event(KlassHandle klass, size_t tlab_size, size_t alloc_size);
35 static void send_allocation_requiring_gc_event(size_t size, const GCId& gcId);
35 }; 36 };
36 37
37 #endif /* SHARE_VM_GC_INTERFACE_ALLOCTRACER_HPP */ 38 #endif /* SHARE_VM_GC_INTERFACE_ALLOCTRACER_HPP */