comparison src/share/vm/gc_interface/collectedHeap.hpp @ 17883:9428a0b94204

8028497: SIGSEGV at ClassLoaderData::oops_do(OopClosure*, KlassClosure*, bool) Summary: Keep class in CLD::_klasses list and mirror created for CDS classes if OOM during restore_shareable_info(). This keeps pointers consistent for CMS. Reviewed-by: ehelin, stefank, jmasa, iklam
author coleenp
date Tue, 15 Apr 2014 17:02:20 -0400
parents cfd4aac53239
children cf9f24de0b93
comparison
equal deleted inserted replaced
17876:9c3dc501b5eb 17883:9428a0b94204
1 /* 1 /*
2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2014, 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.
310 uint n_par_threads() { return _n_par_threads; } 310 uint n_par_threads() { return _n_par_threads; }
311 311
312 // May be overridden to set additional parallelism. 312 // May be overridden to set additional parallelism.
313 virtual void set_par_threads(uint t) { _n_par_threads = t; }; 313 virtual void set_par_threads(uint t) { _n_par_threads = t; };
314 314
315 // Allocate and initialize instances of Class
316 static oop Class_obj_allocate(KlassHandle klass, int size, KlassHandle real_klass, TRAPS);
317
318 // General obj/array allocation facilities. 315 // General obj/array allocation facilities.
319 inline static oop obj_allocate(KlassHandle klass, int size, TRAPS); 316 inline static oop obj_allocate(KlassHandle klass, int size, TRAPS);
320 inline static oop array_allocate(KlassHandle klass, int size, int length, TRAPS); 317 inline static oop array_allocate(KlassHandle klass, int size, int length, TRAPS);
321 inline static oop array_allocate_nozero(KlassHandle klass, int size, int length, TRAPS); 318 inline static oop array_allocate_nozero(KlassHandle klass, int size, int length, TRAPS);
322 319