comparison src/share/vm/prims/jvmtiExport.hpp @ 5935:a735aec54ea4

7123170: JCK vm/jvmti/ResourceExhausted/resexh001/resexh00101/ tests fails since 7u4 b02 Summary: The JVMTI ResourceExhausted events must be generated in all places where OOME is thrown Reviewed-by: acorn, coleenp, dcubed, dholmes, dsamersoff, jwilhelm, tonyp Contributed-by: serguei.spitsyn@oracle.com
author sspitsyn
date Wed, 14 Mar 2012 20:06:48 -0700
parents f6f3bb0ee072
children d2a62e0f25eb
comparison
equal deleted inserted replaced
5934:61b82be3b1ff 5935:a735aec54ea4
1 /* 1 /*
2 * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 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.
322 inline static void vm_object_alloc_event_collector(oop object) { 322 inline static void vm_object_alloc_event_collector(oop object) {
323 if (should_post_vm_object_alloc()) { 323 if (should_post_vm_object_alloc()) {
324 record_vm_internal_object_allocation(object); 324 record_vm_internal_object_allocation(object);
325 } 325 }
326 } 326 }
327 inline static void post_array_size_exhausted() {
328 if (should_post_resource_exhausted()) {
329 post_resource_exhausted(JVMTI_RESOURCE_EXHAUSTED_OOM_ERROR,
330 "Requested array size exceeds VM limit");
331 }
332 }
327 333
328 static void cleanup_thread (JavaThread* thread) KERNEL_RETURN; 334 static void cleanup_thread (JavaThread* thread) KERNEL_RETURN;
329 335
330 static void oops_do(OopClosure* f) KERNEL_RETURN; 336 static void oops_do(OopClosure* f) KERNEL_RETURN;
331 static void weak_oops_do(BoolObjectClosure* b, OopClosure* f) KERNEL_RETURN; 337 static void weak_oops_do(BoolObjectClosure* b, OopClosure* f) KERNEL_RETURN;